aboutsummaryrefslogtreecommitdiffstats
path: root/security/ipv6toolkit/Makefile
blob: f0f4452a5dab76d0a435601bbcee97d545b2d4c0 (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
44
45
46
47
# $FreeBSD$

PORTNAME=   ipv6toolkit
PORTVERSION=    2.0
DISTVERSIONPREFIX=  v
CATEGORIES= security ipv6
MASTER_SITES=   http://www.si6networks.com/tools/ipv6toolkit/

MAINTAINER= hrs@FreeBSD.org
COMMENT=    Set of IPv6 security assessment tools

LICENSE=    GPLv3

USES=       shebangfix uidfix
SHEBANG_FILES=  tools/blackhole6 tools/script6
MAKE_ENV=   DATADIR=${DATADIR} WRKSRC=${WRKSRC}
SUB_FILES=  BSDMakefile Makefile Makefile.lib
MAKEFILE=   BSDMakefile
PORTDOCS=   README.TXT CHANGES.TXT CREDITS.TXT

PROGDIRS=   addr6 flow6 frag6 icmp6 jumbo6 na6 ni6 ns6 path6 ra6 rd6 rs6 \
        scan6 tcp6 udp6
LIBDIRS=    libipv6

OPTIONS_DEFINE= DOCS

post-extract:
    @cd ${WRKSRC} && ${MKDIR} ${PROGDIRS} ${LIBDIRS}

post-patch: apply-slist
    ${INSTALL_DATA} ${WRKDIR}/BSDMakefile ${WRKSRC}
    for D in ${PROGDIRS}; do \
        ${INSTALL_DATA} ${WRKDIR}/Makefile ${WRKSRC}/$$D; \
    done
    for D in ${LIBDIRS}; do \
        ${INSTALL_DATA} ${WRKDIR}/Makefile.lib ${WRKSRC}/$$D/Makefile; \
    done

post-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/tools/blackhole6 ${WRKSRC}/tools/script6 \
        ${STAGEDIR}${PREFIX}/sbin

post-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>