diff options
author | joerg <joerg> | 2006-01-09 23:39:09 +0000 |
---|---|---|
committer | joerg <joerg> | 2006-01-09 23:39:09 +0000 |
commit | 8dd142244a056bb116342ffc399b5c3026cb162d (patch) | |
tree | 9f7262e6c8bb4c403f39a3002967ba91a32338d9 | |
parent | 28c79ed45b6a79b318630fa1113f27e077009f23 (diff) | |
download | pkgsrc-8dd142244a056bb116342ffc399b5c3026cb162d.tar.gz |
Use SUBST framework.
-rw-r--r-- | net/rinetd/Makefile | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/net/rinetd/Makefile b/net/rinetd/Makefile index 6f244f9fd9d..8d5a3807cba 100644 --- a/net/rinetd/Makefile +++ b/net/rinetd/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.9 2005/12/29 06:22:02 jlam Exp $ +# $NetBSD: Makefile,v 1.10 2006/01/09 23:39:09 joerg Exp $ # DISTNAME= rinetd @@ -19,12 +19,13 @@ CPPFLAGS+= -DRINETD_CONF="\"${PKG_SYSCONFDIR}/rinetd.conf\"" RCD_SCRIPTS= rinetd +SUBST_CLASSES+= paths +SUBST_FILES.paths= rinetd.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-extract: @cd ${WRKDIR} && ${MV} -f rinetd ${PKGNAME_NOREV} -pre-build: - @${MV} -f ${WRKSRC}/rinetd.8 ${WRKSRC}/rinetd.8.pre - @${SED} ${FILES_SUBST_SED} ${WRKSRC}/rinetd.8.pre \ - > ${WRKSRC}/rinetd.8 - .include "../../mk/bsd.pkg.mk" |