|
Lines 2-8
Link Here
|
| 2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
| 3 |
|
3 |
|
| 4 |
PORTNAME= suricata |
4 |
PORTNAME= suricata |
| 5 |
PORTVERSION= 2.0.5 |
5 |
PORTVERSION= 2.0.6 |
| 6 |
CATEGORIES= security |
6 |
CATEGORIES= security |
| 7 |
MASTER_SITES= http://www.openinfosecfoundation.org/download/ \ |
7 |
MASTER_SITES= http://www.openinfosecfoundation.org/download/ \ |
| 8 |
http://mirrors.rit.edu/zi/ |
8 |
http://mirrors.rit.edu/zi/ |
|
Lines 24-41
Link Here
|
| 24 |
INSTALL_TARGET= install-strip |
24 |
INSTALL_TARGET= install-strip |
| 25 |
PATHFIX_MAKEFILEIN= Makefile.am |
25 |
PATHFIX_MAKEFILEIN= Makefile.am |
| 26 |
|
26 |
|
| 27 |
OPTIONS_DEFINE= GEOIP HTP_PORT IPFW JSON NSS PORTS_PCAP PRELUDE TESTS |
27 |
OPTIONS_DEFINE= GEOIP HTP_PORT IPFW JSON LUAJIT NSS NSPR PORTS_PCAP PRELUDE SC TESTS |
| 28 |
OPTIONS_DEFAULT= HTP_PORT IPFW PRELUDE |
28 |
OPTIONS_DEFAULT= GEOIP HTP_PORT IPFW JSON LUAJIT NSS NSPR PRELUDE SC |
| 29 |
OPTIONS_SUB= yes |
29 |
OPTIONS_SUB= yes |
| 30 |
|
30 |
|
| 31 |
GEOIP_DESC= Enable GeoIP support |
31 |
GEOIP_DESC= Enable GeoIP support |
| 32 |
HTP_PORT_DESC= Use libhtp from ports |
32 |
HTP_PORT_DESC= Use libhtp from ports |
| 33 |
IPFW_DESC= Enable IPFW and IP Divert support for inline IDP |
33 |
IPFW_DESC= Enable IPFW and IP Divert support for inline IDP |
| 34 |
JSON_DESC= Enable JSON output |
34 |
JSON_DESC= Enable JSON output |
| 35 |
NSS_DESC= Enable file checksums and SSL/TLS fingerprinting |
35 |
LUAJIT_DESC= LuaJIT support |
|
|
36 |
NSS_DESC= NSS crypto driver support |
| 37 |
NSPR_DESC= NSPR support |
| 36 |
PORTS_PCAP_DESC= Use libpcap from ports |
38 |
PORTS_PCAP_DESC= Use libpcap from ports |
| 37 |
PRELUDE_DESC= Enable Prelude support for NIDS alerts |
39 |
PRELUDE_DESC= Enable Prelude support for NIDS alerts |
| 38 |
TESTS_DESC= Build Unit Tests |
40 |
SC_DESC= Build and install suricatasc |
|
|
41 |
TESTS_DESC= Enable unit tests in suricata binary |
| 39 |
|
42 |
|
| 40 |
GEOIP_LIB_DEPENDS= libGeoIP.so:${PORTSDIR}/net/GeoIP |
43 |
GEOIP_LIB_DEPENDS= libGeoIP.so:${PORTSDIR}/net/GeoIP |
| 41 |
GEOIP_CONFIGURE_ON= --enable-geoip |
44 |
GEOIP_CONFIGURE_ON= --enable-geoip |
|
Lines 59-70
Link Here
|
| 59 |
PRELUDE_CONFIGURE_ON= --with-libprelude-prefix=${LOCALBASE} |
62 |
PRELUDE_CONFIGURE_ON= --with-libprelude-prefix=${LOCALBASE} |
| 60 |
|
63 |
|
| 61 |
JSON_LIB_DEPENDS= libjansson.so:${PORTSDIR}/devel/jansson |
64 |
JSON_LIB_DEPENDS= libjansson.so:${PORTSDIR}/devel/jansson |
| 62 |
JSON_CONFIGURE_OFF= --with-libjansson-includes=${LOCALBASE}/include \ |
65 |
JSON_CONFIGURE_ON= --with-libjansson-includes=${LOCALBASE}/include \ |
| 63 |
--with-libjansson-libraries=${LOCALBASE}/lib |
66 |
--with-libjansson-libraries=${LOCALBASE}/lib |
| 64 |
|
67 |
|
|
|
68 |
LUAJIT_LIB_DEPENDS= libluajit-5.1.so:${PORTSDIR}/lang/luajit |
| 69 |
LUAJIT_CONFIGURE_ON= --enable-luajit |
| 70 |
|
| 65 |
NSS_LIB_DEPENDS= libnss3.so:${PORTSDIR}/security/nss |
71 |
NSS_LIB_DEPENDS= libnss3.so:${PORTSDIR}/security/nss |
| 66 |
NSS_CONFIGURE_ON= --with-libnss-includes=${LOCALBASE}/include/nss/nss \ |
72 |
NSS_CONFIGURE_ON= --with-libnss-includes=${LOCALBASE}/include/nss/nss \ |
| 67 |
--with-libnss-libraries=${LOCALBASE}/lib/nss \ |
73 |
--with-libnss-libraries=${LOCALBASE}/lib |
|
|
74 |
|
| 75 |
NSPR_LIB_DEPENDS= libnspr4.so:${PORTSDIR}/devel/nspr |
| 76 |
NSPR_CONFIGURE_ON= --with-libnspr-libraries=${LOCALBASE}/lib \ |
| 77 |
--with-libnspr-includes=${LOCALBASE}/include/nspr |
| 78 |
|
| 79 |
SC_USES= python |
| 80 |
SC_CONFIGURE_ENV= ac_cv_path_HAVE_PYTHON_CONFIG=yes |
| 81 |
SC_CONFIGURE_ENV_OFF= ac_cv_path_HAVE_PYTHON_CONFIG=no |
| 68 |
|
82 |
|
| 69 |
TESTS_CONFIGURE_ENABLE= unittests |
83 |
TESTS_CONFIGURE_ENABLE= unittests |
| 70 |
|
84 |
|
|
Lines 80-86
Link Here
|
| 80 |
--with-libhtp-includes=${LOCALBASE}/include/ \ |
94 |
--with-libhtp-includes=${LOCALBASE}/include/ \ |
| 81 |
--with-libhtp-libraries=${LOCALBASE}/lib \ |
95 |
--with-libhtp-libraries=${LOCALBASE}/lib \ |
| 82 |
--localstatedir=/var/ |
96 |
--localstatedir=/var/ |
| 83 |
CONFIGURE_ENV+= ac_cv_path_HAVE_PYTHON_CONFIG=no |
|
|
| 84 |
|
97 |
|
| 85 |
LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet11-config |
98 |
LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet11-config |
| 86 |
CONFIG_DIR?= ${ETCDIR} |
99 |
CONFIG_DIR?= ${ETCDIR} |
|
Lines 98-109
Link Here
|
| 98 |
pre-patch: |
111 |
pre-patch: |
| 99 |
${CP} ${FILESDIR}/ax_check_compile_flag.m4 ${WRKSRC}/m4 |
112 |
${CP} ${FILESDIR}/ax_check_compile_flag.m4 ${WRKSRC}/m4 |
| 100 |
|
113 |
|
| 101 |
pre-install: |
|
|
| 102 |
@${REINPLACE_CMD} -e 's|/etc/suricata|${CONFIG_DIR}|g' ${WRKSRC}/suricata.yaml |
| 103 |
|
| 104 |
post-install: |
114 |
post-install: |
| 105 |
${MKDIR} ${STAGEDIR}${CONFIG_DIR} |
115 |
${MKDIR} ${STAGEDIR}${CONFIG_DIR} |
| 106 |
${MKDIR} ${STAGEDIR}${RULES_DIR} |
116 |
${MKDIR} ${STAGEDIR}${RULES_DIR} |
|
|
117 |
${MKDIR} ${STAGEDIR}${LOGS_DIR} |
| 107 |
.for f in ${CONFIG_FILES} |
118 |
.for f in ${CONFIG_FILES} |
| 108 |
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${CONFIG_DIR}/${f}.sample |
119 |
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${CONFIG_DIR}/${f}.sample |
| 109 |
.endfor |
120 |
.endfor |
|
Lines 111-116
Link Here
|
| 111 |
${INSTALL_DATA} ${WRKSRC}/rules/${f} ${STAGEDIR}${RULES_DIR}/${f} |
122 |
${INSTALL_DATA} ${WRKSRC}/rules/${f} ${STAGEDIR}${RULES_DIR}/${f} |
| 112 |
.endfor |
123 |
.endfor |
| 113 |
|
124 |
|
|
|
125 |
.if ${PORT_OPTIONS:MSC} |
| 126 |
(cd ${STAGEDIR}${PREFIX} \ |
| 127 |
&& ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \ |
| 128 |
-d ${PYTHONPREFIX_SITELIBDIR} -f ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;}) |
| 129 |
.endif |
| 130 |
|
| 114 |
TMPDIR?= /tmp |
131 |
TMPDIR?= /tmp |
| 115 |
TESTDIR= ${TMPDIR}/${PORTNAME} |
132 |
TESTDIR= ${TMPDIR}/${PORTNAME} |
| 116 |
|
133 |
|