aboutsummaryrefslogtreecommitdiffstats
path: root/net/dtcpclient/Makefile
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2005-02-11 03:12:56 +0800
committerume <ume@FreeBSD.org>2005-02-11 03:12:56 +0800
commitd9cc878b7f990fc26e61b30805e6ce046797c268 (patch)
tree954980b963c88cfbd48fc41deba5aa68ccfdb194 /net/dtcpclient/Makefile
parent976c5a69d9dff554ad621da99db611a8837da99e (diff)
downloadfreebsd-ports-graphics-d9cc878b7f990fc26e61b30805e6ce046797c268.tar.gz
freebsd-ports-graphics-d9cc878b7f990fc26e61b30805e6ce046797c268.tar.zst
freebsd-ports-graphics-d9cc878b7f990fc26e61b30805e6ce046797c268.zip
use new scheme of USE_RC_SUBR.
Diffstat (limited to 'net/dtcpclient/Makefile')
-rw-r--r--net/dtcpclient/Makefile14
1 files changed, 3 insertions, 11 deletions
diff --git a/net/dtcpclient/Makefile b/net/dtcpclient/Makefile
index ae7f48f3e66..a597ef7ef84 100644
--- a/net/dtcpclient/Makefile
+++ b/net/dtcpclient/Makefile
@@ -15,23 +15,15 @@ MASTER_SITES= http://www.imasy.or.jp/~ume/ipv6/ \
MAINTAINER= ume@FreeBSD.org
COMMENT= Dynamic Tunnel Configuration Protocol client
-USE_RC_SUBR= yes
+USE_RC_SUBR= dtcpclient.sh
MAN8= dtcpclient.8
MANCOMPRESSED= yes
-RC_SCRIPT= ${PREFIX}/etc/rc.d/dtcpclient.sh
-RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
-
pre-install:
- @if [ -f ${RC_SCRIPT} ]; then \
- ${ECHO_CMD} "Remove old ${RC_SCRIPT} before install."; \
+ @if [ -f ${PREFIX}/etc/rc.d/${USE_RC_SUBR} ]; then \
+ ${ECHO_CMD} "Remove old ${PREFIX}/etc/rc.d/${USE_RC_SUBR} before install."; \
exit 1; \
fi
-post-install:
- @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
- ${FILESDIR}/dtcpclient.sh > ${WRKDIR}/dtcpclient.sh
- @${INSTALL_SCRIPT} ${WRKDIR}/dtcpclient.sh ${RC_SCRIPT}
-
.include <bsd.port.mk>