FreeBSD Bugzilla – Attachment 146629 Details for
Bug 193220
security/suricata: Update to 2.0.4, Add OPTIONS: JSON GEOIP & HTP_PORT
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for the port suricata 2.0.3
suricata-2.0.3_1.patch (text/plain), 3.64 KB, created by
cheffo
on 2014-09-01 13:54:52 UTC
(
hide
)
Description:
patch for the port suricata 2.0.3
Filename:
MIME Type:
Creator:
cheffo
Created:
2014-09-01 13:54:52 UTC
Size:
3.64 KB
patch
obsolete
>diff -urN suricata/Makefile suricata.new/Makefile >--- suricata/Makefile 2014-08-23 15:08:16.000000000 +0300 >+++ suricata.new/Makefile 2014-08-28 11:40:47.441101000 +0300 >@@ -3,6 +3,7 @@ > > PORTNAME= suricata > PORTVERSION= 2.0.3 >+PORTREVISION= 1 > CATEGORIES= security > MASTER_SITES= http://www.openinfosecfoundation.org/download/ \ > http://mirrors.rit.edu/zi/ >@@ -13,18 +14,20 @@ > LICENSE= GPLv2 > > LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre \ >- libhtp.so:${PORTSDIR}/devel/libhtp \ > libnet.so:${PORTSDIR}/net/libnet \ > libyaml.so:${PORTSDIR}/textproc/libyaml > >-OPTIONS_DEFINE= IPFW PRELUDE PORTS_PCAP TESTS >-OPTIONS_DEFAULT=IPFW PRELUDE >+OPTIONS_DEFINE= IPFW PRELUDE PORTS_PCAP TESTS JSON GEOIP HTP_PORT >+OPTIONS_DEFAULT=IPFW PRELUDE HTP_PORT > OPTIONS_SUB= yes > > IPFW_DESC= Enable IPFW and IP Divert support for inline IDP > PRELUDE_DESC= Enable Prelude support for NIDS alerts > PORTS_PCAP_DESC=Use libpcap from ports > TESTS_DESC= Enable unit tests in suricata binary >+JSON_DESC= Enable Suricata JSON output >+GEOIP_DESC= Enable GeoIP support for Suricata >+HTP_PORT_DESC= Use libhtp from ports instead of bundled > > USES= gmake pkgconfig libtool > USE_AUTOTOOLS= aclocal autoconf automake >@@ -43,10 +46,18 @@ > PRELUDE_CONFIGURE_ENABLE= prelude > PRELUDE_CONFIGURE_ON= --with-libprelude-prefix=${LOCALBASE} > TESTS_CONFIGURE_ENABLE= unittests >+JSON_CONFIGURE_OFF= --with-libjansson-includes=${LOCALBASE}/include \ >+ --with-libjansson-libraries=${LOCALBASE}/lib >+JSON_LIB_DEPENDS= libjansson.so:${PORTSDIR}/devel/jansson >+GEOIP_CONFIGURE_ON= --enable-geoip >+GEOIP_LIB_DEPENDS= libGeoIP.so:${PORTSDIR}/net/GeoIP >+HTP_PORT_CONFIGURE_ON= --enable-non-bundled-htp >+HTP_PORT_LIB_DEPENDS= libhtp.so:${PORTSDIR}/devel/libhtp >+HTP_PORT_CONFLICT_OFF= libhtp-[0-9]* libhtp-suricata > > SUB_FILES= pkg-message > >-CONFIGURE_ARGS+=--enable-non-bundled-htp --enable-gccprotect \ >+CONFIGURE_ARGS+=--enable-gccprotect \ > --with-libpcre-includes=${LOCALBASE}/include \ > --with-libpcre-libraries=${LOCALBASE}/lib \ > --with-libyaml-includes=${LOCALBASE}/include \ >@@ -66,6 +77,12 @@ > > .include <bsd.port.pre.mk> > >+.if ${PORT_OPTIONS:MHTP_PORT} >+PLIST_SUB+= HTPPORT="@comment " >+.else >+PLIST_SUB+= HTPPORT="" >+.endif >+ > .if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64" > BROKEN= Does not compile on ia64, powerpc, or sparc64 > .endif >diff -urN suricata/pkg-plist suricata.new/pkg-plist >--- suricata/pkg-plist 2013-11-17 05:09:13.000000000 +0200 >+++ suricata.new/pkg-plist 2014-08-28 11:32:36.862475000 +0300 >@@ -28,6 +28,28 @@ > %%DOCSDIR%%/Ubuntu_Installation.txt > %%DOCSDIR%%/Ubuntu_Installation_from_GIT.txt > %%DOCSDIR%%/Windows.txt >+%%HTPPORT%%include/htp/bstr.h >+%%HTPPORT%%include/htp/bstr_builder.h >+%%HTPPORT%%include/htp/htp.h >+%%HTPPORT%%include/htp/htp_base64.h >+%%HTPPORT%%include/htp/htp_config.h >+%%HTPPORT%%include/htp/htp_connection_parser.h >+%%HTPPORT%%include/htp/htp_core.h >+%%HTPPORT%%include/htp/htp_decompressors.h >+%%HTPPORT%%include/htp/htp_hooks.h >+%%HTPPORT%%include/htp/htp_list.h >+%%HTPPORT%%include/htp/htp_multipart.h >+%%HTPPORT%%include/htp/htp_table.h >+%%HTPPORT%%include/htp/htp_transaction.h >+%%HTPPORT%%include/htp/htp_urlencoded.h >+%%HTPPORT%%include/htp/htp_utf8_decoder.h >+%%HTPPORT%%include/htp/htp_version.h >+%%HTPPORT%%lib/libhtp-0.5.15.so.1 >+%%HTPPORT%%lib/libhtp-0.5.15.so.1.0.0 >+%%HTPPORT%%lib/libhtp.a >+%%HTPPORT%%lib/libhtp.so >+%%HTPPORT%%lib/pkgconfig/htp.pc >+%%HTPPORT%%@dirrmtry lib/pkgconfig > @unexec if cmp -s %D/etc/suricata/suricata.yaml-sample %D/etc/suricata/suricata.yaml; then rm -f %D/etc/suricata/suricata.yaml; fi > etc/suricata/suricata.yaml-sample > @exec if [ ! -f %D/etc/suricata/suricata.yaml ] ; then cp -p %D/%F %B/suricata.yaml; fi
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 193220
:
146629
|
146636
|
147629
|
148029