summaryrefslogtreecommitdiffstats
path: root/net/dtcpclient/Makefile
blob: 0b59f364d42bdda1c3a6afeb4f539f8abfc635cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# New ports collection makefile for:	dtcpclient
# Date Created:		Feb 27 2003
# Whom:			Hajimu UMEMOTO <ume@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	dtcpclient
PORTVERSION=	20030324
PORTREVISION=	2
CATEGORIES=	net ipv6
MASTER_SITES=	http://www.imasy.or.jp/~ume/ipv6/ \
		http://home.jp.FreeBSD.org/~ume/ipv6/

MAINTAINER=	ume@FreeBSD.org
COMMENT=	Dynamic Tunnel Configuration Protocol client

USE_RC_SUBR=	YES

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 "Remove old ${RC_SCRIPT} 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>
OpenPOWER on IntegriCloud