summaryrefslogtreecommitdiff
path: root/net/chrony/Makefile
diff options
context:
space:
mode:
authorjoerg <joerg>2006-01-08 13:27:53 +0000
committerjoerg <joerg>2006-01-08 13:27:53 +0000
commitbb52150a002cddb056631a444c1ca96d5ca5b2b9 (patch)
tree81370fa5ec0ca35badeb73e5332c87991c348396 /net/chrony/Makefile
parent1265f36a20698caf3749813007332888ad1ba7f2 (diff)
downloadpkgsrc-bb52150a002cddb056631a444c1ca96d5ca5b2b9.tar.gz
Use SUBST framework, add man pages to the list of files in need of
substituation. Use PKG_SYSCONFDIR instead of PREFIX/etc, it can be different. Bump revision.
Diffstat (limited to 'net/chrony/Makefile')
-rw-r--r--net/chrony/Makefile17
1 files changed, 8 insertions, 9 deletions
diff --git a/net/chrony/Makefile b/net/chrony/Makefile
index 590c3ed08bd..234562455da 100644
--- a/net/chrony/Makefile
+++ b/net/chrony/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.20 2005/12/29 06:21:58 jlam Exp $
+# $NetBSD: Makefile,v 1.21 2006/01/08 13:27:53 joerg Exp $
DISTNAME= chrony-1.20
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= net
MASTER_SITES= ftp://chrony.sunsite.dk/projects/chrony/
@@ -21,17 +21,16 @@ MAKE_ENV+= INSTALL_PROGRAM=${INSTALL_PROGRAM:Q}
MAKE_ENV+= INSTALL_DATA=${INSTALL_DATA:Q}
MAKE_ENV+= INSTALL_MAN=${INSTALL_MAN:Q}
-pre-install:
- for file in ${EGFILES}; do \
- ${SED} ${FILES_SUBST_SED} \
- ${WRKSRC}/examples/$${file} > \
- ${WRKDIR}/$${file}; \
- done
+SUBST_CLASSES+= paths
+SUBST_FILES.paths= ${EGFILES:S/^/examples\//} chrony.conf.5 chronyd.8
+SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g'
+SUBST_SED.paths+= -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g'
+SUBST_STAGE.paths= post-patch
post-install:
${INSTALL_DATA_DIR} ${EGDIR}
for file in ${EGFILES}; do \
- ${INSTALL_DATA} ${WRKDIR}/$${file} \
+ ${INSTALL_DATA} ${WRKSRC}/examples/$${file} \
${EGDIR}/$${file}; \
done