summaryrefslogtreecommitdiff
path: root/system/heirloom-sh/makefile.patch
diff options
context:
space:
mode:
authorslakmagik <slakmagik@gmail.com>2010-12-15 22:44:07 -0200
committerErik Hanson <erik@slackbuilds.org>2010-12-17 07:56:48 -0600
commit33fb5cc27e33b9a000e39a79ccad69f976605bb2 (patch)
treefef8c269f3ff5bd5f78c8383495d0bd7983c7946 /system/heirloom-sh/makefile.patch
parentc0b229f21e7a7bdb26ca429b307f1580df71a79b (diff)
downloadslackbuilds-33fb5cc27e33b9a000e39a79ccad69f976605bb2.tar.gz
system/heirloom-sh: Added (portable variant of Unix shell)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'system/heirloom-sh/makefile.patch')
-rw-r--r--system/heirloom-sh/makefile.patch83
1 files changed, 83 insertions, 0 deletions
diff --git a/system/heirloom-sh/makefile.patch b/system/heirloom-sh/makefile.patch
new file mode 100644
index 0000000000..5f370d9d9f
--- /dev/null
+++ b/system/heirloom-sh/makefile.patch
@@ -0,0 +1,83 @@
+diff -Naurp heirloom-sh-050706.orig//makefile heirloom-sh-050706//makefile
+--- heirloom-sh-050706.orig//makefile 2005-07-06 06:59:57.000000000 -0400
++++ heirloom-sh-050706//makefile 2010-11-09 23:52:32.200954003 -0500
+@@ -7,12 +7,12 @@ ROOT=
+ #
+ # The destination directory for the "sh" and "jsh" binaries.
+ #
+-SV3BIN=/usr/5bin
++SV3BIN=/usr/bin
+
+ #
+ # Location for manual pages (with man1 below).
+ #
+-MANDIR=/usr/share/man/5man
++MANDIR=/usr/man
+
+ #
+ # Enable this definition if spell checking should be done for the
+@@ -23,7 +23,7 @@ MANDIR=/usr/share/man/5man
+ #
+ # A BSD-compatible install command.
+ #
+-UCBINST=/usr/ucb/install
++UCBINST=/usr/bin/install
+
+ #
+ # The strip command that is used at installation time.
+@@ -49,7 +49,7 @@ CFLAGS=-O
+ #
+ # Flags for the C preprocessor.
+ #
+-CFLAGS=-D_GNU_SOURCE
++CPPFLAGS=-D_GNU_SOURCE
+
+ #
+ # A define for large file support, if necessary.
+@@ -81,11 +81,11 @@ OBJ = args.o blok.o bltin.o cmd.o ctype.
+ all: sh jsh sh.1.out
+
+ sh: $(OBJ)
+- $(CC) $(LDFLAGS) $(OBJ) $(LIBS) -o sh
++ $(CC) $(LDFLAGS) $(OBJ) $(LIBS) -o hsh
+
+ jsh: sh
+ rm -f jsh
+- $(LNS) sh jsh
++ $(LNS) hsh jsh
+
+ sh.1.out: sh.1
+ test "x$(SPELL)" != x && cat sh.1 >$@ || \
+@@ -93,17 +93,17 @@ sh.1.out: sh.1
+
+ install: all
+ test -d $(ROOT)$(SV3BIN) || mkdir -p $(ROOT)$(SV3BIN)
+- $(UCBINST) -c -m 755 sh $(ROOT)$(SV3BIN)/sh
+- $(STRIP) $(ROOT)$(SV3BIN)/sh
++ $(UCBINST) -c -m 755 hsh $(ROOT)$(SV3BIN)/hsh
++ $(STRIP) $(ROOT)$(SV3BIN)/hsh
+ rm -f $(ROOT)$(SV3BIN)/jsh
+- cd $(ROOT)$(SV3BIN) && $(LNS) sh jsh
++ cd $(ROOT)$(SV3BIN) && $(LNS) hsh jsh
+ test -d $(ROOT)$(MANDIR)/man1 || mkdir -p $(ROOT)$(MANDIR)/man1
+- $(UCBINST) -c -m 644 sh.1.out $(ROOT)$(MANDIR)/man1/sh.1
++ $(UCBINST) -c -m 644 sh.1.out $(ROOT)$(MANDIR)/man1/hsh.1
+ rm -f $(ROOT)$(MANDIR)/man1/jsh.1
+- cd $(ROOT)$(MANDIR)/man1 && $(LNS) sh.1 jsh.1
++ cd $(ROOT)$(MANDIR)/man1 && $(LNS) hsh.1 jsh.1
+
+ maninstall: sh.1.out
+- $(UCBINST) -c -m 644 sh.1.out $(ROOT)$(MANDIR)/man1/sh.1
++ $(UCBINST) -c -m 644 sh.1.out $(ROOT)$(MANDIR)/man1/hsh.1
+
+ diet:
+ $(MAKE) CC='diet gcc -Ifakewchar' CFLAGS='-Os -fomit-frame-pointer' \
+@@ -123,7 +123,7 @@ world:
+ $(MAKE) clean
+
+ clean:
+- rm -f $(OBJ) sh jsh sh.1.out core log *~
++ rm -f $(OBJ) hsh jsh sh.1.out core log *~
+
+ mrproper: clean
+