diff options
author | pav <pav@FreeBSD.org> | 2005-11-26 08:56:48 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2005-11-26 08:56:48 +0800 |
commit | 2aaf8a32b8813c0afa5575e2591b3b999a8e0e38 (patch) | |
tree | 4be930c6e4750f115de64c7444876e7619562cee /x11/bgrot | |
parent | 350ab381895f09a64fc146def443398412bccf2b (diff) | |
download | freebsd-ports-gnome-2aaf8a32b8813c0afa5575e2591b3b999a8e0e38.tar.gz freebsd-ports-gnome-2aaf8a32b8813c0afa5575e2591b3b999a8e0e38.tar.zst freebsd-ports-gnome-2aaf8a32b8813c0afa5575e2591b3b999a8e0e38.zip |
- Respect PREFIX
PR: ports/89557
Submitted by: Matthew D.Fuller <fullermd@over-yonder.net> (maintainer)
Diffstat (limited to 'x11/bgrot')
-rw-r--r-- | x11/bgrot/files/patch-Makefile | 34 | ||||
-rw-r--r-- | x11/bgrot/files/patch-setconfdir.pl | 13 |
2 files changed, 42 insertions, 5 deletions
diff --git a/x11/bgrot/files/patch-Makefile b/x11/bgrot/files/patch-Makefile index 3571f5fc9ace..50e1a8bf6423 100644 --- a/x11/bgrot/files/patch-Makefile +++ b/x11/bgrot/files/patch-Makefile @@ -1,6 +1,31 @@ ---- Makefile.old Sun Sep 22 19:03:43 2002 -+++ Makefile Sun Sep 22 19:04:30 2002 -@@ -52,7 +52,7 @@ +--- Makefile.orig Wed Jun 21 05:50:30 2000 ++++ Makefile Fri Nov 25 17:13:07 2005 +@@ -4,12 +4,13 @@ + # Written by Matthew Fuller <fullermd@over-yonder.net> + + # OK, first: config stuff ++PREFIX ?= /usr/local + + # BINDIR: Where the programs are +-BINDIR = /usr/local/bin ++BINDIR = ${PREFIX}/bin + + # CONFDIR: Where the system-wide config goes +-CONFDIR = /usr/local/etc ++CONFDIR = ${PREFIX}/etc + + # DIRMODE: Permission bits for directories + # FILEMODE: Permission bits for files +@@ -22,7 +23,7 @@ + BINGRP = bin + + # MANDIR: Where is your manpage base? +-MANDIR = /usr/local/man ++MANDIR = ${PREFIX}/man + + # OK, that's about it for user stuff + # Touch the rest of this file at your own risk +@@ -52,7 +53,7 @@ .endif @echo Installing files... -install -o ${BINOWN} -g ${BINGRP} -m ${FILEMODE} -c ${INSTALLFILES} ${BINDIR} @@ -9,7 +34,7 @@ @echo Compressing manpage... @gzip -c bgrot.1 > bgrot.1.gz @echo Installing manpage... -@@ -88,7 +88,7 @@ +@@ -88,7 +89,7 @@ rm -f ${BINDIR}/$${entry}; \ done @echo Uninstalling configuration... @@ -18,4 +43,3 @@ @echo Uninstalling manpage... @rm -f ${MANDIR}/man1/bgrot.1.gz @echo Done. - diff --git a/x11/bgrot/files/patch-setconfdir.pl b/x11/bgrot/files/patch-setconfdir.pl new file mode 100644 index 000000000000..d2c3e5f91a30 --- /dev/null +++ b/x11/bgrot/files/patch-setconfdir.pl @@ -0,0 +1,13 @@ +--- setconfdir.pl.orig Fri Nov 25 17:15:32 2005 ++++ setconfdir.pl Fri Nov 25 17:15:44 2005 +@@ -16,8 +16,8 @@ + + foreach(<SKEL>) { + chomp; +- if(/^\$CONFDIR\=/) { +- $_ = "\$CONFDIR=\"$CONFDIR\""; ++ if(/^\CONFDIR\=/) { ++ $_ = "\CONFDIR=\"$CONFDIR\""; + } + print OUT "$_\n"; + } |