mirror of
https://git.yoctoproject.org/meta-security
synced 2026-06-01 13:10:33 +00:00
suricata: update to 2.0.6
fix new build issues with pcap-config cleanup configure selection Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
@@ -8,6 +8,6 @@ inherit autotools pkgconfig
|
||||
|
||||
CFLAGS += "-D_DEFAULT_SOURCE"
|
||||
|
||||
S = "${WORKDIR}/suricata-2.0.5/${BPN}"
|
||||
S = "${WORKDIR}/suricata-2.0.6/${BPN}"
|
||||
|
||||
RDEPENDS_${PN} += "zlib"
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
Index: suricata-2.0.6/configure
|
||||
===================================================================
|
||||
--- suricata-2.0.6.orig/configure
|
||||
+++ suricata-2.0.6/configure
|
||||
@@ -17372,8 +17372,6 @@ fi
|
||||
|
||||
if test "$HAVE_PCAP_CONFIG" = "no"; then
|
||||
CFLAGS="${CFLAGS} -DLIBPCAP_VERSION_MAJOR=1"
|
||||
- else
|
||||
- CFLAGS="${CFLAGS} `pcap-config --defines` `pcap-config --cflags` -DLIBPCAP_VERSION_MAJOR=1"
|
||||
fi
|
||||
else
|
||||
CFLAGS="${CFLAGS} -DLIBPCAP_VERSION_MAJOR=0"
|
||||
Index: suricata-2.0.6/configure.ac
|
||||
===================================================================
|
||||
--- suricata-2.0.6.orig/configure.ac
|
||||
+++ suricata-2.0.6/configure.ac
|
||||
@@ -1060,8 +1060,6 @@
|
||||
AC_PATH_PROG(HAVE_PCAP_CONFIG, pcap-config, "no")
|
||||
if test "$HAVE_PCAP_CONFIG" = "no"; then
|
||||
CFLAGS="${CFLAGS} -DLIBPCAP_VERSION_MAJOR=1"
|
||||
- else
|
||||
- CFLAGS="${CFLAGS} `pcap-config --defines` `pcap-config --cflags` -DLIBPCAP_VERSION_MAJOR=1"
|
||||
fi
|
||||
else
|
||||
CFLAGS="${CFLAGS} -DLIBPCAP_VERSION_MAJOR=0"
|
||||
@@ -1,7 +1,8 @@
|
||||
HOMEPAGE = "http://suricata-ids.org/"
|
||||
SECTION = "security Monitor/Admin"
|
||||
LICENSE = "GPLv2"
|
||||
|
||||
SRC_URI = "http://www.openinfosecfoundation.org/download/suricata-2.0.5.tar.gz"
|
||||
SRC_URI = "http://www.openinfosecfoundation.org/download/suricata-2.0.6.tar.gz"
|
||||
|
||||
SRC_URI[md5sum] = "2ff10b929bf7d5fd4d345b0fd8f268a1"
|
||||
SRC_URI[sha256sum] = "57b1120e91bd4e348e1a4cee9eb7b197d05fc25169e062f1a11f5dd4b9322c60"
|
||||
SRC_URI[md5sum] = "14bfb3adc184d4da321c93ed9abae500"
|
||||
SRC_URI[sha256sum] = "e833e35ea3b6029bbdef81660af22e8f563494eac85d97618d761ce1b69c78ec"
|
||||
|
||||
+16
-19
@@ -5,37 +5,34 @@ require suricata.inc
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;beginline=1;endline=2;md5=1fbd81241fe252ec0f5658a521ab7dd8"
|
||||
|
||||
SRC_URI += "file://no_libhtp_build.patch \
|
||||
file://no_pcap_pkgconf_check.patch \
|
||||
file://volatiles.03_suricata \
|
||||
file://suricata.yaml \
|
||||
"
|
||||
|
||||
DEPENDS = "libhtp file libpcre libyaml libpcap libcap-ng libnet libnfnetlink"
|
||||
|
||||
inherit autotools-brokensep pkgconfig
|
||||
|
||||
CFLAGS += "-D_DEFAULT_SOURCE"
|
||||
|
||||
CACHED_CONFIGUREVARS = "ac_cv_header_htp_htp_h=yes ac_cv_lib_htp_htp_conn_create=yes "
|
||||
|
||||
EXTRA_OECONF += " --disable-debug \
|
||||
--enable-non-bundled-htp \
|
||||
--disable-gccmarch-native \
|
||||
--with-libpcre-includes=${STAGING_INCDIR} \
|
||||
--with-libpcre-libraries=${STAGING_LIBDIR} \
|
||||
--with-libyaml-includes=${STAGING_INCDIR} \
|
||||
--with-libyaml-libraries=${STAGING_LIBDIR} \
|
||||
--with-libpcap-includes=${STAGING_INCDIR} \
|
||||
--with-libpcap-libraries=${STAGING_LIBDIR} \
|
||||
--with-libcap_ng-includes=${STAGING_INCDIR} \
|
||||
--with-libcap_ng-libraries=${STAGING_LIBDIR} \
|
||||
--with-libnfnetlink-includes=${STAGING_INCDIR} \
|
||||
--with-libnfnetlink-libraries=${STAGING_LIBDIR} \
|
||||
--with-libnet-includes=${STAGING_INCDIR} \
|
||||
--with-libnet-libraries=${STAGING_LIBDIR} \
|
||||
--with-libhtp-includes=${STAGING_INCDIR} \
|
||||
--with-libhtp-libraries=${STAGING_LIBDIR} \
|
||||
--with-libjansson-includes=${STAGING_INCDIR} \
|
||||
--with-libjansson-libraries=${STAGING_LIBDIR} \
|
||||
"
|
||||
|
||||
PACKAGECONFIG ??= "htp jansson file pcre yaml pcap cap-ng net nfnetlink"
|
||||
PACKAGECONFIG[htp] = "--with-libhtp-includes=${STAGING_INCDIR} --with-libhtp-libraries=${STAGING_LIBDIR}, ,libhtp,"
|
||||
PACKAGECONFIG[pcre] = "--with-libpcre-includes=${STAGING_INCDIR} --with-libpcre-libraries=${STAGING_LIBDIR}, ,libpcre ,"
|
||||
PACKAGECONFIG[yaml] = "--with-libyaml-includes=${STAGING_INCDIR} --with-libyaml-libraries=${STAGING_LIBDIR}, ,libyaml ,"
|
||||
PACKAGECONFIG[pcap] = "--with-libpcap-includes=${STAGING_INCDIR} --with-libpcap-libraries=${STAGING_LIBDIR}, ,libpcap ,"
|
||||
PACKAGECONFIG[cap-ng] = "--with-libcap_ng-includes=${STAGING_INCDIR} --with-libcap_ng-libraries=${STAGING_LIBDIR}, ,libcap-ng , "
|
||||
PACKAGECONFIG[net] = "--with-libnet-includes=${STAGING_INCDIR} --with-libnet-libraries=${STAGING_LIBDIR}, , libnet,"
|
||||
PACKAGECONFIG[nfnetlink] = "--with-libnfnetlink-includes=${STAGING_INCDIR} --with-libnfnetlink-libraries=${STAGING_LIBDIR}, ,libnfnetlink ,"
|
||||
|
||||
PACKAGECONFIG[jansson] = "--with-libjansson-includes=${STAGING_INCDIR} --with-libjansson-libraries=${STAGING_LIBDIR},,jansson, jansson"
|
||||
PACKAGECONFIG[file] = ",,file, file"
|
||||
|
||||
export logdir = "${localstatedir}/log"
|
||||
|
||||
do_install_append () {
|
||||
@@ -57,4 +54,4 @@ fi
|
||||
FILES_${PN} += "${sysconfdir}/suricata ${logdir}/suricata"
|
||||
FILES_${PN}-dev += "/usr/lib/python2.7/site-packages"
|
||||
|
||||
RDEPENDS_${PN} += " file jansson"
|
||||
RDEPENDS_${PN} += " python"
|
||||
Reference in New Issue
Block a user