1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- Respect PREFIX

PR:		ports/89557
Submitted by:	Matthew D.Fuller <fullermd@over-yonder.net> (maintainer)
This commit is contained in:
Pav Lucistnik 2005-11-26 00:56:48 +00:00
parent a148ec1a32
commit eddbc6a905
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=149521
2 changed files with 42 additions and 5 deletions

View File

@ -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.

View File

@ -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";
}