summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-01-08 14:25:35 +0000
committerjoerg <joerg@pkgsrc.org>2006-01-08 14:25:35 +0000
commit288939542cb85a2cc05dc3a8d633c90411206a77 (patch)
treef722761e44e61c1d0969620527134e82e9e2513a
parentaf4025032f9924fddb426f93d0453d62f4d524fc (diff)
downloadpkgsrc-288939542cb85a2cc05dc3a8d633c90411206a77.tar.gz
Use SUBST framework.
-rw-r--r--net/arla/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/net/arla/Makefile b/net/arla/Makefile
index 8c08241b727..cf10444efa0 100644
--- a/net/arla/Makefile
+++ b/net/arla/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.49 2005/12/29 06:21:56 jlam Exp $
+# $NetBSD: Makefile,v 1.50 2006/01/08 14:25:35 joerg Exp $
DISTNAME= arla-0.41
#PKGREVISION= 1
@@ -43,6 +43,11 @@ MESSAGE_SUBST+= ARLA_CACHE=${ARLA_CACHE}
PLIST_SUBST+= ARLA_CACHE=${ARLA_CACHE:Q}
FILES_SUBST+= ARLA_CACHE=${ARLA_CACHE:Q}
+SUBST_CLASSES+= paths
+SUBST_FILES.paths= ${WRKDIR}/lkm.conf
+SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g'
+SUBST_STAGE.paths= post-patch
+
EGDIR= ${PREFIX}/share/examples/arla
EGFILES= CellServDB DynRootDB SuidCells ThisCell arla.conf
@@ -59,10 +64,11 @@ DEINSTALL_EXTRA_TMPL= ${.CURDIR}/DEINSTALL
.include "../../mk/x11.buildlink3.mk"
+post-extract:
+ ${CP} ${FILESDIR}/lkm.conf ${WRKDIR}/lkm.conf
+
post-install:
${RM} -f ${EGDIR}/*.default
- ${SED} ${FILES_SUBST_SED} \
- < ${FILESDIR}/lkm.conf > ${WRKDIR}/lkm.conf
${INSTALL_DATA} ${WRKDIR}/lkm.conf ${EGDIR}
${INSTALL_DATA} ${FILESDIR}/fstab ${EGDIR}