Tweak deskutils/just version 1.5.0
[dports.git] / net-mgmt / yaf / Makefile
1 PORTNAME=       yaf
2 PORTVERSION=    2.11.0
3 CATEGORIES=     net-mgmt
4 MASTER_SITES=   http://tools.netsa.cert.org/releases/
5
6 MAINTAINER=     dikshie@sfc.wide.ad.jp
7 COMMENT=        Yet Another Flowmeter
8 WWW=            https://tools.netsa.cert.org/yaf/index.html
9
10 LICENSE=        GPLv2
11 LICENSE_FILE=   ${WRKSRC}/COPYING
12
13 LIB_DEPENDS=    libfixbuf.so:net/libfixbuf \
14                 libltdl.so:devel/libltdl \
15                 libpcre.so:devel/pcre
16
17 GNU_CONFIGURE=  yes
18 INSTALL_TARGET= install-strip
19 USES=           gnome libtool pathfix perl5 pkgconfig
20 USE_GNOME=      glib20
21 USE_LDCONFIG=   yes
22 CONFIGURE_ARGS= --sysconfdir="${ETCDIR}"
23
24 PLIST_SUB+=     PORTVERSION="${PORTVERSION}"
25
26 OPTIONS_DEFINE= PAYLOAD APPLABEL PLUGIN FPEXPORT ENTROPY MPLS NONIP IFEXP CMPTIP4 LOCALTIME DNSAUTH DNSNX
27 OPTIONS_DEFAULT=        PAYLOAD APPLABEL PLUGIN ENTROPY
28 OPTIONS_SUB=    yes
29
30 PAYLOAD_DESC=   YAF will enable reading past IP headers to do deep packet inspection
31 APPLABEL_DESC=  Create protocol application labels via traffic header inspection.
32 PLUGIN_DESC=    Enable YAF plugins, primary for application labeling.
33 FPEXPORT_DESC=  Export of OS fingerprinting information, e.g. p0f.
34 ENTROPY_DESC=   Generate Shannon entropy values of the data stream.
35 MPLS_DESC=      MPLS capture and export
36 NONIP_DESC=     Capture non-IP packets
37 IFEXP_DESC=     Export capture interface for DAG/Napatech/Netronome cards.
38 CMPTIP4_DESC=   Create compact IPv4 output (no IPv6 support).
39 LOCALTIME_DESC= Allow localtime to be used for command inputs and record printing. Flow records are always in UTC.
40 DNSAUTH_DESC=   Modify DNS export to only export Authoritative DNS responses.
41 DNSNX_DESC=     Modify DNS export to only export NXDomain responses.
42
43 PAYLOAD_CONFIGURE_ENABLE=       payload
44 APPLABEL_CONFIGURE_ENABLE=      applabel
45 PLUGIN_CONFIGURE_ENABLE=        plugins
46 FPEXPORT_CONFIGURE_ENABLE=      fpexporter
47 ENTROPY_CONFIGURE_ENABLE=       entropy
48 MPLS_CONFIGURE_ENABLE=  mpls
49 NONIP_CONFIGURE_ENABLE= nonip
50 IFEXP_CONFIGURE_ENABLE= interface
51 CMPTIP4_CONFIGURE_ENABLE=       compact-ip4
52 LOCALTIME_CONFIGURE_ENABLE=     localtime
53 DNSAUTH_CONFIGURE_ENABLE=       exportDNSAuth
54 DNSNX_CONFIGURE_ENABLE= exportDNSNXDomain
55
56 APPLABEL_IMPLIES=       PAYLOAD
57 DNSAUTH_IMPLIES=        PLUGIN APPLABEL
58 DNSNX_IMPLIES=          PLUGIN APPLABEL
59 ENTROPY_IMPLIES=        PAYLOAD
60 NONIP_IMPLIES=          MPLS
61
62 .include <bsd.port.options.mk>
63
64 .if defined(WITH_DAG)
65 CONFIGURE_ARGS+=        --with-dag=${LOCALBASE}
66 .endif
67
68 post-install:
69         @${MKDIR} ${STAGEDIR}${PREFIX}/etc/yaf
70 .for f in dhcp_fingerprints.conf yafApplabelRules.conf yafDPIRules.conf yaf.conf
71         ${MV} ${STAGEDIR}${PREFIX}/etc/yaf/$f ${STAGEDIR}${PREFIX}/etc/yaf/$f.sample
72 .endfor
73         ${RM} ${STAGEDIR}${PREFIX}/etc/p0f.fp
74
75 .include <bsd.port.mk>