aboutsummaryrefslogtreecommitdiffstats
path: root/net/dtcpclient/Makefile
blob: 2ff4ed9604637fbacf77bc08dd3b451b38baa0ff (plain) (blame)
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=    20040622
#PORTREVISION=  0
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_CMD} "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>