aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authordd <dd@FreeBSD.org>2001-08-01 23:19:58 +0800
committerdd <dd@FreeBSD.org>2001-08-01 23:19:58 +0800
commit204fb47ee42043343ae0f1e1626b9f75461119bd (patch)
tree82456779a6e4c581e49650b166a34af450556687 /lang
parentf81718f0a5e654136a1199f3209dfcb95ee4415e (diff)
downloadfreebsd-ports-gnome-204fb47ee42043343ae0f1e1626b9f75461119bd.tar.gz
freebsd-ports-gnome-204fb47ee42043343ae0f1e1626b9f75461119bd.tar.zst
freebsd-ports-gnome-204fb47ee42043343ae0f1e1626b9f75461119bd.zip
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.
Diffstat (limited to 'lang')
-rw-r--r--lang/gawk/files/patch-Makefile11
1 files changed, 11 insertions, 0 deletions
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)
+