summaryrefslogtreecommitdiff
path: root/sysutils/amanda/Makefile
diff options
context:
space:
mode:
authoragc <agc>1997-10-15 16:54:39 +0000
committeragc <agc>1997-10-15 16:54:39 +0000
commitd2122c32505a2c191c2ba29a7d4ff81e0f6f1006 (patch)
tree355f09dfde7a023dba14ec50c755dbe5fd4caab0 /sysutils/amanda/Makefile
parente2f657cc3599fbc9e8f6a77e149bc918ff583024 (diff)
downloadpkgsrc-d2122c32505a2c191c2ba29a7d4ff81e0f6f1006.tar.gz
Pre-process the source tree, to modify /usr/local to ${PREFIX}.
This is done in the pre-configure stage.
Diffstat (limited to 'sysutils/amanda/Makefile')
-rw-r--r--sysutils/amanda/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/sysutils/amanda/Makefile b/sysutils/amanda/Makefile
index d8a26f06091..2d26fbc871d 100644
--- a/sysutils/amanda/Makefile
+++ b/sysutils/amanda/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 1997/10/13 15:06:07 agc Exp $
+# $NetBSD: Makefile,v 1.4 1997/10/15 16:54:39 agc Exp $
# New ports collection makefile for: amanda
# Version required: 2.3.0
# Date created: 28th Feb 1995
@@ -19,6 +19,11 @@ MAN8= amanda.8 amadmin.8 amcheck.8 amcleanup.8 amdump.8 \
pre-configure:
echo "${CFLAGS}" > /tmp/build-ports-misc-amanda-cflags
+ find ${WRKDIR} -type f -print|xargs grep -l '/usr/local' > ${WRKDIR}/prefix-list
+ for f in `cat ${WRKDIR}/prefix-list`; do \
+ ${SED} -e 's:/usr/local:'${PREFIX}':g' < $$f > $$f.pdone && mv $$f.pdone $$f; \
+ done
+ rm ${WRKDIR}/prefix-list
post-install:
mkdir -p ${PREFIX}/share/examples/amanda