1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00
freebsd-ports/net/dtcp/Makefile

60 lines
1.6 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: dtcp
# Date Created: Sep 27 2002
# Whom: Hajimu UMEMOTO <ume@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= dtcp
2004-06-10 16:33:06 +00:00
PORTVERSION= 20040611
PORTREVISION= 1
CATEGORIES= net ipv6
MASTER_SITES= http://www.imasy.or.jp/~ume/ipv6/ \
http://home.jp.FreeBSD.org/~ume/ipv6/
MAINTAINER= ume@FreeBSD.org
2003-02-20 20:10:05 +00:00
COMMENT= Dynamic Tunnel Configuration Protocol daemon and client
.if !defined(DTCP_CLIENT_ONLY)
RUN_DEPENDS= qpopauth:${PORTSDIR}/mail/qpopper
.endif
2004-06-07 17:35:36 +00:00
USE_RC_SUBR= yes
USE_RUBY= yes
2004-06-07 17:35:36 +00:00
MAKE_ENV+= RUBY=${RUBY}
2003-01-01 19:53:08 +00:00
MAN8= dtcpauth.8 dtcpc.8 dtcps.8
MANCOMPRESSED= yes
2004-04-19 18:40:52 +00: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}
2005-02-04 12:50:16 +00:00
PLIST_FILES= sbin/dtcpauth sbin/dtcpc sbin/dtcps \
etc/rc.d/dtcpc.sh etc/rc.d/dtcps.sh
pre-everything::
.if !defined(DTCP_CLIENT_ONLY)
2003-09-27 03:28:50 +00: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} ""
.endif
2004-04-19 18:40:52 +00:00
pre-install:
@for script in ${RC_SCRIPTS}; do \
if [ -f $${script} ]; then \
2004-06-07 17:35:36 +00:00
${ECHO_MSG} "Remove old $${script} before install."; \
2004-04-19 18:40:52 +00:00
exit 1; \
fi; \
done
post-install:
2004-04-19 18:40:52 +00: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
.include <bsd.port.mk>