pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/arla Use SUBST framework.
details: https://anonhg.NetBSD.org/pkgsrc/rev/67bcd449f0be
branches: trunk
changeset: 505848:67bcd449f0be
user: joerg <joerg%pkgsrc.org@localhost>
date: Sun Jan 08 14:25:35 2006 +0000
description:
Use SUBST framework.
diffstat:
net/arla/Makefile | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diffs (35 lines):
diff -r 6793f2b90f40 -r 67bcd449f0be net/arla/Makefile
--- a/net/arla/Makefile Sun Jan 08 14:14:36 2006 +0000
+++ b/net/arla/Makefile Sun Jan 08 14:25:35 2006 +0000
@@ -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 @@
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 @@
.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}
Home |
Main Index |
Thread Index |
Old Index