aboutsummaryrefslogtreecommitdiffstats
path: root/security/silktools/Makefile
blob: 887f7b22274e3a7ada018f15f432174b672791d5 (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# New ports collection makefile for:    silktools
# Date created:     2006-03-17
# Whom:         David Thiel <lx@redundancy.redundancy.org>
#
# $FreeBSD$
#

PORTNAME=   silktools
PORTVERSION=    1.1.1
CATEGORIES= security net
MASTER_SITES=   http://tools.netsa.cert.org/releases/ \
        http://redundancy.redundancy.org/mirror/
DISTNAME=   silk-${PORTVERSION}

MAINTAINER= lx@FreeBSD.org
COMMENT=    Tools for large-scale network capture analysis

# Optional PySiLK support awaiting a fix for the USE_PYTHON
# chicken/egg issue
OPTIONS=    IPFIX "Enable IPFIX support" off

LIB_DEPENDS=    lzo:${PORTSDIR}/archivers/lzo

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --with-lzo=${LOCALBASE} --enable-packing-tools
USE_GMAKE=  yes
MAKE_ARGS=  CC="${CC}" GCC_FLAGS="" CFLAGS_RELEASE=""
USE_LDCONFIG=   yes
USE_PERL5_BUILD=    yes

MAN1=   rwip2cc.1 rwpmapbuild.1 mapsid.1 num2dot.1 rwaddrcount.1 rwappend.1 \
    rwbag.1 rwbagbuild.1 rwbagcat.1 rwbagtool.1 rwcat.1 rwcount.1 \
    rwcut.1 rwfileinfo.1 rwfilter.1 rwfglob.1 rwgroup.1 rwmatch.1 \
    rwnetmask.1 rwrandomizeip.1 rwset.1 rwsetbuild.1 rwsetcat.1 rwsort.1 \
    rwsetintersect.1 rwsetunion.1 rwstats.1 rwswapbytes.1 rwtotal.1 \
    rwtuc.1 rwuniq.1 rwptoflow.1 rwpmatch.1 rwpdedupe.1 rwpcut.1 \
    rwp2yaf2silk.1 rwgeoip2ccmap.1 rwpmapcat.1 rwresolve.1 rwscan.1 \
    rwscanquery.1 rwsetmember.1 rwsettool.1 rwsplit.1 rwdedupe.1 \
    rwidsquery.1

MAN3=   addrtype.3 ccfilter.3 pmapfilter.3

MAN5=   sensor.conf.5 silk.conf.5

MAN7=   silk.7

MAN8=   rwflowpack.8 rwpackchecker.8 rwflowappend.8 rwreceiver.8 rwsender.8 \
    flowcap.8 rwguess.8

.include <bsd.port.pre.mk>

.if defined(WITH_IPFIX)
LIB_DEPENDS+=   fixbuf:${PORTSDIR}/net/libfixbuf
MAN1+=  rwipfix2silk.1 rwsilk2ipfix.1
PLIST_SUB=  IPFIX=""
.else
PLIST_SUB=  IPFIX="@comment "
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|echo aout|echo elf|' ${WRKSRC}/configure

.include <bsd.port.post.mk>