diff options
author | clive <clive@FreeBSD.org> | 2004-08-30 15:48:27 +0800 |
---|---|---|
committer | clive <clive@FreeBSD.org> | 2004-08-30 15:48:27 +0800 |
commit | ea962a1a0e4d60a69e7a47b8d3a01cd1a8236665 (patch) | |
tree | 67c46e5197195458e648fc4940d0ff4862b754d6 /net | |
parent | 46dde315541bc14b69eb58614ec27734167555d9 (diff) | |
download | freebsd-ports-graphics-ea962a1a0e4d60a69e7a47b8d3a01cd1a8236665.tar.gz freebsd-ports-graphics-ea962a1a0e4d60a69e7a47b8d3a01cd1a8236665.tar.zst freebsd-ports-graphics-ea962a1a0e4d60a69e7a47b8d3a01cd1a8236665.zip |
Really support rc.subr on RELENG_4.
Pointy hat to: myself
Diffstat (limited to 'net')
-rw-r--r-- | net/dictd/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/net/dictd/Makefile b/net/dictd/Makefile index e61b4b8f628..9454cef29cf 100644 --- a/net/dictd/Makefile +++ b/net/dictd/Makefile @@ -28,6 +28,9 @@ CONFIGURE_ARGS= --with-etcdir=${PREFIX}/etc --with-cflags="${CFLAGS}" \ --without-local-zlib CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" + +RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR} + USE_GMAKE= yes ALL_TARGET= dictd dictzip @@ -50,7 +53,7 @@ post-install: .endfor @${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/${PORTNAME}.conf > ${PREFIX}/etc/${PORTNAME}.conf.sample @[ -f ${PREFIX}/etc/${PORTNAME}.conf ] || ${CP} ${PREFIX}/etc/${PORTNAME}.conf.sample ${PREFIX}/etc/${PORTNAME}.conf - @${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/${PORTNAME}.sh > ${PREFIX}/etc/rc.d/${PORTNAME}.sh + @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} ${FILESDIR}/${PORTNAME}.sh > ${PREFIX}/etc/rc.d/${PORTNAME}.sh @${CHMOD} +x ${PREFIX}/etc/rc.d/${PORTNAME}.sh @${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${PKGMESSAGE} |