aboutsummaryrefslogtreecommitdiffstats
path: root/net/hf6to4/Makefile
blob: cd0e86e08a16468103f0e4c2a8b5e2ef7c5d0501 (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
38
39
40
41
42
43
# New ports collection makefile for:   hf6to4
# Date created:                26 September 2003
# Whom:                        Kimura Fuyuki <fuyuki@nigredo.org>
#
# $FreeBSD$
#

PORTNAME=   hf6to4
PORTVERSION=    1.2
CATEGORIES= net ipv6
MASTER_SITES=   http://cvsweb.netbsd.org/bsdweb.cgi/~checkout~/pkgsrc/net/hf6to4/files/
DISTFILES=  hf6to4\?rev=1.3\&content-type=text%2fplain \
        hf6to4.8\?rev=1.2\&content-type=text%2fplain \
        hf6to4.conf\?rev=1.2\&content-type=text%2fplain
DIST_SUBDIR=    ${PORTNAME}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Enables 6to4 IPv6 automatic tunnels

USE_REINPLACE=  yes
NO_BUILD=   yes

MAN8=       hf6to4.8

do-extract:
    ${MKDIR} ${WRKSRC}
.for i in ${DISTFILES}
    ${CP} ${DISTDIR}/${DIST_SUBDIR}/${i} ${WRKSRC}/${i:C/\?.*$//}
.endfor

post-patch:
    ${REINPLACE_CMD} -e 's|/usr/pkg|${PREFIX}|g' \
        ${WRKSRC}/hf6to4 ${WRKSRC}/hf6to4.8

do-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/hf6to4 ${PREFIX}/sbin
    ${INSTALL_MAN} ${WRKSRC}/hf6to4.8 ${PREFIX}/man/man8
    ${INSTALL_DATA} ${WRKSRC}/hf6to4.conf ${PREFIX}/etc/hf6to4.conf.sample

post-install:
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>