aboutsummaryrefslogtreecommitdiffstats
path: root/security/silktools/Makefile
blob: 221ad2a162ab517add3094d799547b7a638ebee7 (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
# Created by: David Thiel <lx@redundancy.redundancy.org>
# $FreeBSD$

PORTNAME=   silktools
PORTVERSION=    3.8.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

LIB_DEPENDS=    liblzo2.so:${PORTSDIR}/archivers/lzo2 \
        libfixbuf.so:${PORTSDIR}/net/libfixbuf

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --with-lzo=${LOCALBASE} --enable-packing-tools --with-python \
                --prefix=${STAGEDIR}/${PREFIX}
USE_PYTHON= yes
USE_GMAKE=  yes
MAKE_ARGS=  CC="${CC}" GCC_FLAGS="" CFLAGS_RELEASE=""
USE_LDCONFIG=   yes
USES=       perl5
USE_PERL5=  build

OPTIONS_DEFINE= LOCALTIME
LOCALTIME_DESC= Use localtime instead of UTC

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MLOCALTIME}
CONFIGURE_ARGS+=--enable-localtime
.endif

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

.include <bsd.port.mk>