From 9735b08deba5161189bc8c6366a9c0eba27d0f46 Mon Sep 17 00:00:00 2001
From: Dima Dorfman
Date: Wed, 1 Aug 2001 15:19:58 +0000
Subject: Don't be stupid and assume that there's one, monolithic "bin"
directory, and that we're installing in it. Specifically, don't assume we're
installing into /usr/bin, which is where the system 'awk' is located. This
prevents the creation of a /usr/local/bin/awk symlink, which should fix the
mtree errors reported by bento.
---
lang/gawk/files/patch-Makefile | 11 +++++++++++
1 file changed, 11 insertions(+)
create mode 100644 lang/gawk/files/patch-Makefile
(limited to 'lang/gawk/files')
diff --git a/lang/gawk/files/patch-Makefile b/lang/gawk/files/patch-Makefile
new file mode 100644
index 000000000000..cbc3d75a6b64
--- /dev/null
+++ b/lang/gawk/files/patch-Makefile
@@ -0,0 +1,11 @@
+--- Makefile.in~ Wed Aug 1 15:12:53 2001
++++ Makefile.in Wed Aug 1 15:13:00 2001
+@@ -755,7 +755,7 @@
+ (fullname=gawk-`./gawk --version | sed 1q | awk '{print $$3}'` ; \
+ cd $(DESTDIR)$(bindir); \
+ $(LN) gawk $$fullname ; \
+- if [ ! -f awk ]; \
++ if ! /usr/bin/which -s awk; \
+ then $(LN_S) gawk awk; \
+ fi; exit 0)
+
--
cgit v1.2.3