diff options
author | Armin Kuster <akuster808@gmail.com> | 2015-02-07 22:57:01 -0800 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2015-02-13 17:27:00 -0800 |
commit | 401cec248676d1e79d5b486577fa534d8d74f181 (patch) | |
tree | 642b3a820356032cd7d217f5b5bde0b0bf5cd5c1 | |
parent | 9503b72f573dd18bff7d9a06e19f38f5b5d09e25 (diff) | |
download | meta-security-401cec248676d1e79d5b486577fa534d8d74f181.tar.gz |
suricata: update to 2.0.6
fix new build issues with pcap-config
cleanup configure selection
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | recipes-security/suricata/libhtp_0.5.16.bb | 2 | ||||
-rw-r--r-- | recipes-security/suricata/suricata-2.0.6/no_libhtp_build.patch (renamed from recipes-security/suricata/suricata-2.0.5/no_libhtp_build.patch) | 0 | ||||
-rw-r--r-- | recipes-security/suricata/suricata-2.0.6/no_pcap_pkgconf_check.patch | 26 | ||||
-rw-r--r-- | recipes-security/suricata/suricata-2.0.6/suricata.yaml (renamed from recipes-security/suricata/suricata-2.0.5/suricata.yaml) | 0 | ||||
-rw-r--r-- | recipes-security/suricata/suricata-2.0.6/volatiles.03_suricata (renamed from recipes-security/suricata/suricata-2.0.5/volatiles.03_suricata) | 0 | ||||
-rw-r--r-- | recipes-security/suricata/suricata.inc | 7 | ||||
-rw-r--r-- | recipes-security/suricata/suricata_2.0.6.bb (renamed from recipes-security/suricata/suricata_2.0.5.bb) | 35 |
7 files changed, 47 insertions, 23 deletions
diff --git a/recipes-security/suricata/libhtp_0.5.16.bb b/recipes-security/suricata/libhtp_0.5.16.bb index ede9022..9d07133 100644 --- a/recipes-security/suricata/libhtp_0.5.16.bb +++ b/recipes-security/suricata/libhtp_0.5.16.bb | |||
@@ -8,6 +8,6 @@ inherit autotools pkgconfig | |||
8 | 8 | ||
9 | CFLAGS += "-D_DEFAULT_SOURCE" | 9 | CFLAGS += "-D_DEFAULT_SOURCE" |
10 | 10 | ||
11 | S = "${WORKDIR}/suricata-2.0.5/${BPN}" | 11 | S = "${WORKDIR}/suricata-2.0.6/${BPN}" |
12 | 12 | ||
13 | RDEPENDS_${PN} += "zlib" | 13 | RDEPENDS_${PN} += "zlib" |
diff --git a/recipes-security/suricata/suricata-2.0.5/no_libhtp_build.patch b/recipes-security/suricata/suricata-2.0.6/no_libhtp_build.patch index 2ebf021..2ebf021 100644 --- a/recipes-security/suricata/suricata-2.0.5/no_libhtp_build.patch +++ b/recipes-security/suricata/suricata-2.0.6/no_libhtp_build.patch | |||
diff --git a/recipes-security/suricata/suricata-2.0.6/no_pcap_pkgconf_check.patch b/recipes-security/suricata/suricata-2.0.6/no_pcap_pkgconf_check.patch new file mode 100644 index 0000000..ba9ff90 --- /dev/null +++ b/recipes-security/suricata/suricata-2.0.6/no_pcap_pkgconf_check.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | Index: suricata-2.0.6/configure | ||
2 | =================================================================== | ||
3 | --- suricata-2.0.6.orig/configure | ||
4 | +++ suricata-2.0.6/configure | ||
5 | @@ -17372,8 +17372,6 @@ fi | ||
6 | |||
7 | if test "$HAVE_PCAP_CONFIG" = "no"; then | ||
8 | CFLAGS="${CFLAGS} -DLIBPCAP_VERSION_MAJOR=1" | ||
9 | - else | ||
10 | - CFLAGS="${CFLAGS} `pcap-config --defines` `pcap-config --cflags` -DLIBPCAP_VERSION_MAJOR=1" | ||
11 | fi | ||
12 | else | ||
13 | CFLAGS="${CFLAGS} -DLIBPCAP_VERSION_MAJOR=0" | ||
14 | Index: suricata-2.0.6/configure.ac | ||
15 | =================================================================== | ||
16 | --- suricata-2.0.6.orig/configure.ac | ||
17 | +++ suricata-2.0.6/configure.ac | ||
18 | @@ -1060,8 +1060,6 @@ | ||
19 | AC_PATH_PROG(HAVE_PCAP_CONFIG, pcap-config, "no") | ||
20 | if test "$HAVE_PCAP_CONFIG" = "no"; then | ||
21 | CFLAGS="${CFLAGS} -DLIBPCAP_VERSION_MAJOR=1" | ||
22 | - else | ||
23 | - CFLAGS="${CFLAGS} `pcap-config --defines` `pcap-config --cflags` -DLIBPCAP_VERSION_MAJOR=1" | ||
24 | fi | ||
25 | else | ||
26 | CFLAGS="${CFLAGS} -DLIBPCAP_VERSION_MAJOR=0" | ||
diff --git a/recipes-security/suricata/suricata-2.0.5/suricata.yaml b/recipes-security/suricata/suricata-2.0.6/suricata.yaml index 90417b0..90417b0 100644 --- a/recipes-security/suricata/suricata-2.0.5/suricata.yaml +++ b/recipes-security/suricata/suricata-2.0.6/suricata.yaml | |||
diff --git a/recipes-security/suricata/suricata-2.0.5/volatiles.03_suricata b/recipes-security/suricata/suricata-2.0.6/volatiles.03_suricata index 4627bd3..4627bd3 100644 --- a/recipes-security/suricata/suricata-2.0.5/volatiles.03_suricata +++ b/recipes-security/suricata/suricata-2.0.6/volatiles.03_suricata | |||
diff --git a/recipes-security/suricata/suricata.inc b/recipes-security/suricata/suricata.inc index 1dcffcd..a7f95b1 100644 --- a/recipes-security/suricata/suricata.inc +++ b/recipes-security/suricata/suricata.inc | |||
@@ -1,7 +1,8 @@ | |||
1 | HOMEPAGE = "http://suricata-ids.org/" | ||
1 | SECTION = "security Monitor/Admin" | 2 | SECTION = "security Monitor/Admin" |
2 | LICENSE = "GPLv2" | 3 | LICENSE = "GPLv2" |
3 | 4 | ||
4 | SRC_URI = "http://www.openinfosecfoundation.org/download/suricata-2.0.5.tar.gz" | 5 | SRC_URI = "http://www.openinfosecfoundation.org/download/suricata-2.0.6.tar.gz" |
5 | 6 | ||
6 | SRC_URI[md5sum] = "2ff10b929bf7d5fd4d345b0fd8f268a1" | 7 | SRC_URI[md5sum] = "14bfb3adc184d4da321c93ed9abae500" |
7 | SRC_URI[sha256sum] = "57b1120e91bd4e348e1a4cee9eb7b197d05fc25169e062f1a11f5dd4b9322c60" | 8 | SRC_URI[sha256sum] = "e833e35ea3b6029bbdef81660af22e8f563494eac85d97618d761ce1b69c78ec" |
diff --git a/recipes-security/suricata/suricata_2.0.5.bb b/recipes-security/suricata/suricata_2.0.6.bb index f56c044..7e99791 100644 --- a/recipes-security/suricata/suricata_2.0.5.bb +++ b/recipes-security/suricata/suricata_2.0.6.bb | |||
@@ -5,37 +5,34 @@ require suricata.inc | |||
5 | LIC_FILES_CHKSUM = "file://LICENSE;beginline=1;endline=2;md5=1fbd81241fe252ec0f5658a521ab7dd8" | 5 | LIC_FILES_CHKSUM = "file://LICENSE;beginline=1;endline=2;md5=1fbd81241fe252ec0f5658a521ab7dd8" |
6 | 6 | ||
7 | SRC_URI += "file://no_libhtp_build.patch \ | 7 | SRC_URI += "file://no_libhtp_build.patch \ |
8 | file://no_pcap_pkgconf_check.patch \ | ||
8 | file://volatiles.03_suricata \ | 9 | file://volatiles.03_suricata \ |
9 | file://suricata.yaml \ | 10 | file://suricata.yaml \ |
10 | " | 11 | " |
11 | 12 | ||
12 | DEPENDS = "libhtp file libpcre libyaml libpcap libcap-ng libnet libnfnetlink" | ||
13 | |||
14 | inherit autotools-brokensep pkgconfig | 13 | inherit autotools-brokensep pkgconfig |
15 | 14 | ||
16 | CFLAGS += "-D_DEFAULT_SOURCE" | 15 | CFLAGS += "-D_DEFAULT_SOURCE" |
17 | 16 | ||
17 | CACHED_CONFIGUREVARS = "ac_cv_header_htp_htp_h=yes ac_cv_lib_htp_htp_conn_create=yes " | ||
18 | |||
18 | EXTRA_OECONF += " --disable-debug \ | 19 | EXTRA_OECONF += " --disable-debug \ |
19 | --enable-non-bundled-htp \ | 20 | --enable-non-bundled-htp \ |
20 | --disable-gccmarch-native \ | 21 | --disable-gccmarch-native \ |
21 | --with-libpcre-includes=${STAGING_INCDIR} \ | ||
22 | --with-libpcre-libraries=${STAGING_LIBDIR} \ | ||
23 | --with-libyaml-includes=${STAGING_INCDIR} \ | ||
24 | --with-libyaml-libraries=${STAGING_LIBDIR} \ | ||
25 | --with-libpcap-includes=${STAGING_INCDIR} \ | ||
26 | --with-libpcap-libraries=${STAGING_LIBDIR} \ | ||
27 | --with-libcap_ng-includes=${STAGING_INCDIR} \ | ||
28 | --with-libcap_ng-libraries=${STAGING_LIBDIR} \ | ||
29 | --with-libnfnetlink-includes=${STAGING_INCDIR} \ | ||
30 | --with-libnfnetlink-libraries=${STAGING_LIBDIR} \ | ||
31 | --with-libnet-includes=${STAGING_INCDIR} \ | ||
32 | --with-libnet-libraries=${STAGING_LIBDIR} \ | ||
33 | --with-libhtp-includes=${STAGING_INCDIR} \ | ||
34 | --with-libhtp-libraries=${STAGING_LIBDIR} \ | ||
35 | --with-libjansson-includes=${STAGING_INCDIR} \ | ||
36 | --with-libjansson-libraries=${STAGING_LIBDIR} \ | ||
37 | " | 22 | " |
38 | 23 | ||
24 | PACKAGECONFIG ??= "htp jansson file pcre yaml pcap cap-ng net nfnetlink" | ||
25 | PACKAGECONFIG[htp] = "--with-libhtp-includes=${STAGING_INCDIR} --with-libhtp-libraries=${STAGING_LIBDIR}, ,libhtp," | ||
26 | PACKAGECONFIG[pcre] = "--with-libpcre-includes=${STAGING_INCDIR} --with-libpcre-libraries=${STAGING_LIBDIR}, ,libpcre ," | ||
27 | PACKAGECONFIG[yaml] = "--with-libyaml-includes=${STAGING_INCDIR} --with-libyaml-libraries=${STAGING_LIBDIR}, ,libyaml ," | ||
28 | PACKAGECONFIG[pcap] = "--with-libpcap-includes=${STAGING_INCDIR} --with-libpcap-libraries=${STAGING_LIBDIR}, ,libpcap ," | ||
29 | PACKAGECONFIG[cap-ng] = "--with-libcap_ng-includes=${STAGING_INCDIR} --with-libcap_ng-libraries=${STAGING_LIBDIR}, ,libcap-ng , " | ||
30 | PACKAGECONFIG[net] = "--with-libnet-includes=${STAGING_INCDIR} --with-libnet-libraries=${STAGING_LIBDIR}, , libnet," | ||
31 | PACKAGECONFIG[nfnetlink] = "--with-libnfnetlink-includes=${STAGING_INCDIR} --with-libnfnetlink-libraries=${STAGING_LIBDIR}, ,libnfnetlink ," | ||
32 | |||
33 | PACKAGECONFIG[jansson] = "--with-libjansson-includes=${STAGING_INCDIR} --with-libjansson-libraries=${STAGING_LIBDIR},,jansson, jansson" | ||
34 | PACKAGECONFIG[file] = ",,file, file" | ||
35 | |||
39 | export logdir = "${localstatedir}/log" | 36 | export logdir = "${localstatedir}/log" |
40 | 37 | ||
41 | do_install_append () { | 38 | do_install_append () { |
@@ -57,4 +54,4 @@ fi | |||
57 | FILES_${PN} += "${sysconfdir}/suricata ${logdir}/suricata" | 54 | FILES_${PN} += "${sysconfdir}/suricata ${logdir}/suricata" |
58 | FILES_${PN}-dev += "/usr/lib/python2.7/site-packages" | 55 | FILES_${PN}-dev += "/usr/lib/python2.7/site-packages" |
59 | 56 | ||
60 | RDEPENDS_${PN} += " file jansson" | 57 | RDEPENDS_${PN} += " python" |