summaryrefslogtreecommitdiff
path: root/net/netatalk/Makefile
diff options
context:
space:
mode:
authormarkd <markd@pkgsrc.org>2005-01-07 12:29:02 +0000
committermarkd <markd@pkgsrc.org>2005-01-07 12:29:02 +0000
commitb7e57420af65910e6591a16eb40b2202f6a67021 (patch)
treef13b9f65b260989b423d26ec6303ee5e2d63ae6b /net/netatalk/Makefile
parentd9dea87ff547084f1e852ef3d1f07d117c7593a4 (diff)
downloadpkgsrc-b7e57420af65910e6591a16eb40b2202f6a67021.tar.gz
Redo fixing of hardcoded paths, including actually using the value of
${RCD_SCRIPTS_EXAMPLEDIR} rather than just its default.
Diffstat (limited to 'net/netatalk/Makefile')
-rw-r--r--net/netatalk/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/net/netatalk/Makefile b/net/netatalk/Makefile
index e5c6b508c04..41096dd5f41 100644
--- a/net/netatalk/Makefile
+++ b/net/netatalk/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.35 2005/01/05 10:30:44 markd Exp $
+# $NetBSD: Makefile,v 1.36 2005/01/07 12:29:02 markd Exp $
DISTNAME= netatalk-2.0.2
CATEGORIES= net print
@@ -45,10 +45,12 @@ CONFIGURE_ARGS+= --enable-netbsd \
--with-gssapi --enable-krbV-uam
CONFIGURE_ENV+= GSSAPI_LIBS="-lkrb5 -lroken -lasn1 -lcrypto -lcom_err"
-post-patch:
- mv ${WRKSRC}/etc/psf/etc2ps.sh ${WRKSRC}/etc/psf/etc2ps.sh.tmp
- ${SED} -e "s,^\(DVIPS=\)\(/usr/local/tex\)\(/bin\),\1${PREFIX}\3," \
- < ${WRKSRC}/etc/psf/etc2ps.sh.tmp > ${WRKSRC}/etc/psf/etc2ps.sh
+SUBST_CLASSES+= paths
+SUBST_MESSAGE.paths= "Fixing hardcoded paths."
+SUBST_STAGE.paths= post-patch
+SUBST_FILES.paths= etc/psf/etc2ps.sh distrib/initscripts/Makefile.in
+SUBST_SED.paths= -e "s,^\(DVIPS=\)\(/usr/local/tex\)\(/bin\),\1${PREFIX}\3,"
+SUBST_SED.paths+= -e "s,\(NETBSD.*\)/etc/rc.d,\1${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR},"
pre-install:
${INSTALL_DATA_DIR} ${PREFIX}/libexec/psffilters