aboutsummaryrefslogtreecommitdiffstats
path: root/net/dtcpclient
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
parent976c5a69d9dff554ad621da99db611a8837da99e (diff)
downloadfreebsd-ports-gnome-d9cc878b7f990fc26e61b30805e6ce046797c268.tar.gz
freebsd-ports-gnome-d9cc878b7f990fc26e61b30805e6ce046797c268.tar.zst
freebsd-ports-gnome-d9cc878b7f990fc26e61b30805e6ce046797c268.zip
use new scheme of USE_RC_SUBR.
Diffstat (limited to 'net/dtcpclient')
-rw-r--r--net/dtcpclient/Makefile14
-rw-r--r--net/dtcpclient/files/dtcpclient.sh.in (renamed from net/dtcpclient/files/dtcpclient.sh)0
-rw-r--r--net/dtcpclient/pkg-plist1
3 files changed, 3 insertions, 12 deletions
diff --git a/net/dtcpclient/Makefile b/net/dtcpclient/Makefile
index ae7f48f3e661..a597ef7ef847 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>
diff --git a/net/dtcpclient/files/dtcpclient.sh b/net/dtcpclient/files/dtcpclient.sh.in
index e8b0ee65658d..e8b0ee65658d 100644
--- a/net/dtcpclient/files/dtcpclient.sh
+++ b/net/dtcpclient/files/dtcpclient.sh.in
diff --git a/net/dtcpclient/pkg-plist b/net/dtcpclient/pkg-plist
index 9b38dc4333b4..38249fc2b36d 100644
--- a/net/dtcpclient/pkg-plist
+++ b/net/dtcpclient/pkg-plist
@@ -3,4 +3,3 @@ sbin/dtcpclient
%%EXAMPLESDIR%%/dtcpclient.script
@exec [ -f %D/etc/dtcpclient.script ] || cp %B/%f %D/etc/dtcpclient.script
@dirrm %%EXAMPLESDIR%%
-etc/rc.d/dtcpclient.sh