4 MASTER_SITES= http://tools.netsa.cert.org/releases/
6 MAINTAINER= dikshie@sfc.wide.ad.jp
7 COMMENT= Yet Another Flowmeter
8 WWW= https://tools.netsa.cert.org/yaf/index.html
11 LICENSE_FILE= ${WRKSRC}/COPYING
13 LIB_DEPENDS= libfixbuf.so:net/libfixbuf \
14 libltdl.so:devel/libltdl \
18 INSTALL_TARGET= install-strip
19 USES= gnome libtool pathfix perl5 pkgconfig
22 CONFIGURE_ARGS= --sysconfdir="${ETCDIR}"
24 PLIST_SUB+= PORTVERSION="${PORTVERSION}"
26 OPTIONS_DEFINE= PAYLOAD APPLABEL PLUGIN FPEXPORT ENTROPY MPLS NONIP IFEXP CMPTIP4 LOCALTIME DNSAUTH DNSNX
27 OPTIONS_DEFAULT= PAYLOAD APPLABEL PLUGIN ENTROPY
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.
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
56 APPLABEL_IMPLIES= PAYLOAD
57 DNSAUTH_IMPLIES= PLUGIN APPLABEL
58 DNSNX_IMPLIES= PLUGIN APPLABEL
59 ENTROPY_IMPLIES= PAYLOAD
62 .include <bsd.port.options.mk>
65 CONFIGURE_ARGS+= --with-dag=${LOCALBASE}
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
73 ${RM} ${STAGEDIR}${PREFIX}/etc/p0f.fp
75 .include <bsd.port.mk>