aboutsummaryrefslogtreecommitdiff
path: root/shells/sash/files/patch-Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'shells/sash/files/patch-Makefile')
-rw-r--r--shells/sash/files/patch-Makefile38
1 files changed, 38 insertions, 0 deletions
diff --git a/shells/sash/files/patch-Makefile b/shells/sash/files/patch-Makefile
new file mode 100644
index 000000000000..6c4067133819
--- /dev/null
+++ b/shells/sash/files/patch-Makefile
@@ -0,0 +1,38 @@
+--- Makefile.orig Mon Jul 22 01:24:47 2002
++++ Makefile Fri Sep 3 14:53:40 2004
+@@ -8,13 +8,13 @@
+ # The MOUNT_TYPE definition sets the default file system type for -mount.
+ #
+ HAVE_GZIP = 1
+-HAVE_LINUX_ATTR = 1
+-HAVE_LINUX_MOUNT = 1
+-HAVE_BSD_MOUNT = 0
+-MOUNT_TYPE = '"ext3"'
++HAVE_LINUX_ATTR = 0
++HAVE_LINUX_MOUNT = 0
++HAVE_BSD_MOUNT = 1
++MOUNT_TYPE = '"ufs"'
+
+
+-CFLAGS = -O3 -Wall -Wmissing-prototypes \
++CFLAGS += -Wall -Wmissing-prototypes \
+ -DHAVE_GZIP=$(HAVE_GZIP) \
+ -DHAVE_LINUX_ATTR=$(HAVE_LINUX_ATTR) \
+ -DHAVE_LINUX_MOUNT=$(HAVE_LINUX_MOUNT) \
+@@ -25,13 +25,14 @@
+ LIBS = -lz
+
+
+-BINDIR = /bin
+-MANDIR = /usr/man/man1
++BINDIR = $(PREFIX)/bin
++MANDIR = $(MANPREFIX)/man/man1
+
+
+ OBJS = sash.o cmds.o cmd_dd.o cmd_ed.o cmd_grep.o cmd_ls.o cmd_tar.o \
+ cmd_gzip.o cmd_find.o cmd_file.o cmd_chattr.o cmd_ar.o utils.o
+
++all: sash
+
+ sash: $(OBJS)
+ $(CC) $(LDFLAGS) -o sash $(OBJS) $(LIBS)