aboutsummaryrefslogtreecommitdiffstats
path: root/net/dtcp
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/dtcp
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/dtcp')
-rw-r--r--net/dtcp/Makefile22
-rw-r--r--net/dtcp/files/dtcpc.sh.in (renamed from net/dtcp/files/dtcpc.sh)0
-rw-r--r--net/dtcp/files/dtcps.sh.in (renamed from net/dtcp/files/dtcps.sh)0
3 files changed, 6 insertions, 16 deletions
diff --git a/net/dtcp/Makefile b/net/dtcp/Makefile
index e67e13348115..72907ef5f4bf 100644
--- a/net/dtcp/Makefile
+++ b/net/dtcp/Makefile
@@ -19,18 +19,16 @@ COMMENT= Dynamic Tunnel Configuration Protocol daemon and client
RUN_DEPENDS= qpopauth:${PORTSDIR}/mail/qpopper
.endif
-USE_RC_SUBR= yes
+USE_RC_SUBR= dtcpc.sh dtcps.sh
USE_RUBY= yes
MAKE_ENV+= RUBY=${RUBY}
MAN8= dtcpauth.8 dtcpc.8 dtcps.8
MANCOMPRESSED= yes
-RC_SCRIPTS= ${PREFIX}/etc/rc.d/dtcpc.sh ${PREFIX}/etc/rc.d/dtcps.sh
-RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR} RUBY=${RUBY}
+SUB_LIST+= RUBY=${RUBY}
-PLIST_FILES= sbin/dtcpauth sbin/dtcpc sbin/dtcps \
- etc/rc.d/dtcpc.sh etc/rc.d/dtcps.sh
+PLIST_FILES= sbin/dtcpauth sbin/dtcpc sbin/dtcps
pre-everything::
.if !defined(DTCP_CLIENT_ONLY)
@@ -41,19 +39,11 @@ pre-everything::
.endif
pre-install:
- @for script in ${RC_SCRIPTS}; do \
- if [ -f $${script} ]; then \
- ${ECHO_MSG} "Remove old $${script} before install."; \
+ @for script in ${USE_RC_SUBR}; do \
+ if [ -f ${PREFIX}/etc/rc.d/$${script} ]; then \
+ ${ECHO_MSG} "Remove old ${PREFIX}/etc/rc.d/$${script} before install."; \
exit 1; \
fi; \
done
-post-install:
- @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
- ${FILESDIR}/dtcpc.sh > ${PREFIX}/etc/rc.d/dtcpc.sh
- @${CHMOD} ${BINMODE} ${PREFIX}/etc/rc.d/dtcpc.sh
- @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
- ${FILESDIR}/dtcps.sh > ${PREFIX}/etc/rc.d/dtcps.sh
- @${CHMOD} ${BINMODE} ${PREFIX}/etc/rc.d/dtcps.sh
-
.include <bsd.port.mk>
diff --git a/net/dtcp/files/dtcpc.sh b/net/dtcp/files/dtcpc.sh.in
index 3ca23c039e83..3ca23c039e83 100644
--- a/net/dtcp/files/dtcpc.sh
+++ b/net/dtcp/files/dtcpc.sh.in
diff --git a/net/dtcp/files/dtcps.sh b/net/dtcp/files/dtcps.sh.in
index a2e3ad9c9b1a..a2e3ad9c9b1a 100644
--- a/net/dtcp/files/dtcps.sh
+++ b/net/dtcp/files/dtcps.sh.in