summaryrefslogtreecommitdiff
path: root/mail/faces
diff options
context:
space:
mode:
authoragc <agc>1998-03-08 02:31:57 +0000
committeragc <agc>1998-03-08 02:31:57 +0000
commitcb065982bc374b232beec93dc0a66ab9ff21ef1e (patch)
treee7133fab6b6a5a8c7c7904cdb753c93afdf80f11 /mail/faces
parent51ea62f1f743b1997003e4c2261fc07be219d1f9 (diff)
downloadpkgsrc-cb065982bc374b232beec93dc0a66ab9ff21ef1e.tar.gz
Pre-process PLIST at install time, so that we don't have hard-coded
(and wrong) paths in the packing list. With thanks to milano and hubertf for pointing this out.
Diffstat (limited to 'mail/faces')
-rw-r--r--mail/faces/Makefile6
-rw-r--r--mail/faces/pkg/PLIST6
2 files changed, 8 insertions, 4 deletions
diff --git a/mail/faces/Makefile b/mail/faces/Makefile
index bddee197294..64dd0498ecd 100644
--- a/mail/faces/Makefile
+++ b/mail/faces/Makefile
@@ -4,7 +4,7 @@
# Whom: Lars Koeller <Lars_Koeller@odie.physik2.uni-rostock.de>
# Andreas Klemm <andreas@FreeBSD.ORG>
#
-# $NetBSD: Makefile,v 1.4 1998/02/28 10:42:39 frueauf Exp $
+# $NetBSD: Makefile,v 1.5 1998/03/08 02:31:57 agc Exp $
# FreeBSD Id: Makefile,v 1.5 1997/11/17 18:47:53 max Exp
#
@@ -27,9 +27,13 @@ post-configure:
-e 's|@x11base@|'${X11BASE}'|g' < $$f.in > $$f; \
done
+PLIST_SRC= ${WRKDIR}/.PLIST-src
+
post-install:
${LDCONFIG} || ${TRUE}
${LN} -f ${PREFIX}/man/man1/compface.1 ${PREFIX}/man/man1/uncompface.1
${LN} -f ${PREFIX}/man/man3/compface.3 ${PREFIX}/man/man3/uncompface.3
+ @${SED} -e 's|@localbase@|'${LOCALBASE}'|g' \
+ -e 's|@x11base@|'${X11BASE}'|g' < pkg/PLIST > ${PLIST_SRC}
.include <bsd.port.mk>
diff --git a/mail/faces/pkg/PLIST b/mail/faces/pkg/PLIST
index 7b8349d551b..a04c42655a9 100644
--- a/mail/faces/pkg/PLIST
+++ b/mail/faces/pkg/PLIST
@@ -1,5 +1,5 @@
-@comment $NetBSD: PLIST,v 1.4 1998/02/28 20:27:12 frueauf Exp $
-@cwd /usr/local
+@comment $NetBSD: PLIST,v 1.5 1998/03/08 02:31:57 agc Exp $
+@cwd @localbase@
share/faces/machine.tab
share/faces/people.tab
@dirrm share/faces
@@ -38,5 +38,5 @@ bin/face_update
bin/faces.sendmail
man/man1/faces.1.gz
man/man1/face_update.1.gz
-@cwd /usr/X11R6
+@cwd @x11base@
lib/X11/app-defaults/Faces