2002-10-22 20:30:58 +02:00
|
|
|
# New ports collection makefile for: dtcp
|
|
|
|
# Date Created: Sep 27 2002
|
|
|
|
# Whom: Hajimu UMEMOTO <ume@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= dtcp
|
2003-02-28 16:16:16 +01:00
|
|
|
PORTVERSION= 20030228
|
2004-04-19 20:40:52 +02:00
|
|
|
PORTREVISION= 1
|
2002-10-22 20:30:58 +02:00
|
|
|
CATEGORIES= net ipv6
|
2004-02-21 23:05:47 +01:00
|
|
|
MASTER_SITES= http://www.imasy.or.jp/~ume/ipv6/ \
|
|
|
|
http://home.jp.FreeBSD.org/~ume/ipv6/
|
2002-10-22 20:30:58 +02:00
|
|
|
|
|
|
|
MAINTAINER= ume@FreeBSD.org
|
2003-02-20 21:10:05 +01:00
|
|
|
COMMENT= Dynamic Tunnel Configuration Protocol daemon and client
|
2002-10-22 20:30:58 +02:00
|
|
|
|
2004-04-19 20:40:52 +02:00
|
|
|
USE_RC_SUBR= YES
|
|
|
|
|
2002-10-22 20:30:58 +02:00
|
|
|
.if !defined(DTCP_CLIENT_ONLY)
|
|
|
|
RUN_DEPENDS= qpopauth:${PORTSDIR}/mail/qpopper
|
|
|
|
.endif
|
|
|
|
|
|
|
|
USE_RUBY= yes
|
2003-01-01 20:53:08 +01:00
|
|
|
RUBY_SHEBANG_FILES= ${WRKSRC}/dtcpauth.rb ${WRKSRC}/dtcpc.rb \
|
|
|
|
${WRKSRC}/dtcps.rb
|
2002-10-22 20:30:58 +02:00
|
|
|
|
2003-01-01 20:53:08 +01:00
|
|
|
MAN8= dtcpauth.8 dtcpc.8 dtcps.8
|
2002-10-22 20:30:58 +02:00
|
|
|
MANCOMPRESSED= yes
|
|
|
|
|
2004-04-19 20:40:52 +02:00
|
|
|
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}
|
|
|
|
|
2003-02-28 23:53:02 +01:00
|
|
|
pre-everything::
|
2002-10-22 20:30:58 +02:00
|
|
|
.if !defined(DTCP_CLIENT_ONLY)
|
2003-09-27 05:28:50 +02:00
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "If you don't use DTCP server, you don't need qpopper."
|
|
|
|
@${ECHO_MSG} "In that case, You may use DTCP_CLIENT_ONLY=yes to avoid building qpopper."
|
|
|
|
@${ECHO_MSG} ""
|
2002-10-22 20:30:58 +02:00
|
|
|
.endif
|
|
|
|
|
2004-04-19 20:40:52 +02:00
|
|
|
pre-install:
|
|
|
|
@for script in ${RC_SCRIPTS}; do \
|
|
|
|
if [ -f $${script} ]; then \
|
|
|
|
echo "Remove old $${script} before install."; \
|
|
|
|
exit 1; \
|
|
|
|
fi; \
|
|
|
|
done
|
|
|
|
|
2002-10-22 20:30:58 +02:00
|
|
|
post-install:
|
2004-04-19 20:40:52 +02:00
|
|
|
@${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
|
2002-10-22 20:30:58 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|