diff options
| -rw-r--r-- | meta-networking/recipes-connectivity/daq/daq_2.0.6.bb (renamed from meta-networking/recipes-connectivity/daq/daq_2.0.2.bb) | 4 | ||||
| -rw-r--r-- | meta-networking/recipes-connectivity/daq/files/disable-run-test-program-while-cross-compiling.patch | 18 | ||||
| -rw-r--r-- | meta-networking/recipes-connectivity/snort/snort/0001-fix-do_package-failed-since-snort-2.9.7.0.patch | 35 | ||||
| -rw-r--r-- | meta-networking/recipes-connectivity/snort/snort/disable-daq-flow-id.patch | 50 | ||||
| -rw-r--r-- | meta-networking/recipes-connectivity/snort/snort/disable-daq-verdict-retry.patch | 51 | ||||
| -rw-r--r-- | meta-networking/recipes-connectivity/snort/snort/m4-oom-during-configure.patch | 21 | ||||
| -rw-r--r-- | meta-networking/recipes-connectivity/snort/snort/not-hardcoded-libdir.patch | 279 | ||||
| -rw-r--r-- | meta-networking/recipes-connectivity/snort/snort_2.9.7.5.bb (renamed from meta-networking/recipes-connectivity/snort/snort_2.9.6.0.bb) | 25 |
8 files changed, 162 insertions, 321 deletions
diff --git a/meta-networking/recipes-connectivity/daq/daq_2.0.2.bb b/meta-networking/recipes-connectivity/daq/daq_2.0.6.bb index b8f84077ce..48039f07ad 100644 --- a/meta-networking/recipes-connectivity/daq/daq_2.0.2.bb +++ b/meta-networking/recipes-connectivity/daq/daq_2.0.6.bb | |||
| @@ -20,7 +20,7 @@ SRC_URI = "http://fossies.org/linux/misc/daq-${PV}.tar.gz \ | |||
| 20 | EXTRA_OECONF = "--disable-nfq-module --disable-ipq-module --includedir=${includedir} \ | 20 | EXTRA_OECONF = "--disable-nfq-module --disable-ipq-module --includedir=${includedir} \ |
| 21 | --with-libpcap-includes=${STAGING_INCDIR} --with-dnet-includes=${STAGING_LIBDIR}" | 21 | --with-libpcap-includes=${STAGING_INCDIR} --with-dnet-includes=${STAGING_LIBDIR}" |
| 22 | 22 | ||
| 23 | SRC_URI[md5sum] = "865bf9b750a2a2ca632591a3c70b0ea0" | 23 | SRC_URI[md5sum] = "2cd6da422a72c129c685fc4bb848c24c" |
| 24 | SRC_URI[sha256sum] = "d65d1e67c4994e02c3142c49a648642e780b7e3d942b4a51f605309beac269a8" | 24 | SRC_URI[sha256sum] = "b40e1d1273e08aaeaa86e69d4f28d535b7e53bdb3898adf539266b63137be7cb" |
| 25 | 25 | ||
| 26 | inherit autotools | 26 | inherit autotools |
diff --git a/meta-networking/recipes-connectivity/daq/files/disable-run-test-program-while-cross-compiling.patch b/meta-networking/recipes-connectivity/daq/files/disable-run-test-program-while-cross-compiling.patch index 12a6cba600..a100b7cb83 100644 --- a/meta-networking/recipes-connectivity/daq/files/disable-run-test-program-while-cross-compiling.patch +++ b/meta-networking/recipes-connectivity/daq/files/disable-run-test-program-while-cross-compiling.patch | |||
| @@ -5,12 +5,13 @@ configure: error: cannot run test program while cross compiling | |||
| 5 | 5 | ||
| 6 | Signed-off-by: Chunrong Guo <B40290@freescale.com> | 6 | Signed-off-by: Chunrong Guo <B40290@freescale.com> |
| 7 | 7 | ||
| 8 | --- a/m4/sf.m4old 2013-08-30 04:08:18.768409680 -0500 | 8 | --- a/m4/sf.m4old 2015-10-28 10:21:20.270557986 +0800 |
| 9 | +++ b/m4/sf.m4 2013-08-30 04:09:24.591367890 -0500 | 9 | +++ a/m4/sf.m4 2015-10-28 10:23:22.726551974 +0800 |
| 10 | @@ -135,19 +135,6 @@ | 10 | @@ -135,20 +135,7 @@ |
| 11 | echo | ||
| 11 | exit 1 | 12 | exit 1 |
| 12 | fi | 13 | fi |
| 13 | AC_MSG_CHECKING([for libpcap version >= $1]) | 14 | - AC_CACHE_CHECK([for libpcap version >= $1], [daq_cv_libpcap_version_1x], [ |
| 14 | - AC_RUN_IFELSE( | 15 | - AC_RUN_IFELSE( |
| 15 | - [AC_LANG_PROGRAM( | 16 | - [AC_LANG_PROGRAM( |
| 16 | - [[ | 17 | - [[ |
| @@ -22,8 +23,9 @@ Signed-off-by: Chunrong Guo <B40290@freescale.com> | |||
| 22 | - if (strcmp(pcap_version, $1) < 0) | 23 | - if (strcmp(pcap_version, $1) < 0) |
| 23 | - return 1; | 24 | - return 1; |
| 24 | - ]])], | 25 | - ]])], |
| 25 | - [libpcap_version_1x="yes"], | 26 | - [daq_cv_libpcap_version_1x="yes"], |
| 26 | - [libpcap_version_1x="no"]) | 27 | - [daq_cv_libpcap_version_1x="no"])]) |
| 27 | if test "x$libpcap_version_1x" = "xno"; then | 28 | + AC_CACHE_CHECK([for libpcap version >= $1], [daq_cv_libpcap_version_1x]) |
| 28 | AC_MSG_RESULT(no) | 29 | if test "x$daq_cv_libpcap_version_1x" = "xno"; then |
| 29 | echo | 30 | echo |
| 31 | echo " ERROR! Libpcap library version >= $1 not found." | ||
diff --git a/meta-networking/recipes-connectivity/snort/snort/0001-fix-do_package-failed-since-snort-2.9.7.0.patch b/meta-networking/recipes-connectivity/snort/snort/0001-fix-do_package-failed-since-snort-2.9.7.0.patch new file mode 100644 index 0000000000..1520553a45 --- /dev/null +++ b/meta-networking/recipes-connectivity/snort/snort/0001-fix-do_package-failed-since-snort-2.9.7.0.patch | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | From 815e861721a9c43efddb78521147145ebc7569ca Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Zhiquan Li <zhiquan.li@windriver.com> | ||
| 3 | Date: Fri, 13 Nov 2015 17:40:24 +0800 | ||
| 4 | Subject: [PATCH] fix do_package failed since snort 2.9.7.0 | ||
| 5 | |||
| 6 | Remove redundant '/' as a workround for below error: | ||
| 7 | /lib/rpm/bin/debugedit: canonicalization unexpectedly shrank by one character | ||
| 8 | |||
| 9 | It's a rpm debugedit bug: | ||
| 10 | * http://sourceforge.net/p/snort/mailman/message/34130268/ | ||
| 11 | * https://bugzilla.redhat.com/show_bug.cgi?id=304121 | ||
| 12 | |||
| 13 | Upstream-Status:Inappropriate [embedded specific] | ||
| 14 | |||
| 15 | Signed-off-by: Zhiquan Li <zhiquan.li@windriver.com> | ||
| 16 | --- | ||
| 17 | src/snort.h | 2 +- | ||
| 18 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 19 | |||
| 20 | diff --git a/src/snort.h b/src/snort.h | ||
| 21 | index 8308e57..499d157 100644 | ||
| 22 | --- a/src/snort.h | ||
| 23 | +++ b/src/snort.h | ||
| 24 | @@ -39,7 +39,7 @@ | ||
| 25 | #include "sfdaq.h" | ||
| 26 | #include "sf_types.h" | ||
| 27 | #include "sfutil/sflsq.h" | ||
| 28 | -#include "sfutil//sfActionQueue.h" | ||
| 29 | +#include "sfutil/sfActionQueue.h" | ||
| 30 | #include "profiler.h" | ||
| 31 | #include "rules.h" | ||
| 32 | #include "treenodes.h" | ||
| 33 | -- | ||
| 34 | 1.9.1 | ||
| 35 | |||
diff --git a/meta-networking/recipes-connectivity/snort/snort/disable-daq-flow-id.patch b/meta-networking/recipes-connectivity/snort/snort/disable-daq-flow-id.patch new file mode 100644 index 0000000000..e6afcabaa8 --- /dev/null +++ b/meta-networking/recipes-connectivity/snort/snort/disable-daq-flow-id.patch | |||
| @@ -0,0 +1,50 @@ | |||
| 1 | Upstream-Status:Inappropriate [embedded specific] | ||
| 2 | |||
| 3 | fix the below error: | ||
| 4 | checking for daq flow ID... configure: | ||
| 5 | configure: error: cannot run test program while cross compiling | ||
| 6 | |||
| 7 | |||
| 8 | --- a/configure.in 2015-10-28 10:36:42.918512690 +0800 | ||
| 9 | +++ b/configure.in 2015-10-28 10:37:36.738510048 +0800 | ||
| 10 | @@ -716,23 +716,23 @@ | ||
| 11 | # [DAQ version supports address space ID in header.]) | ||
| 12 | #fi | ||
| 13 | |||
| 14 | -AC_MSG_CHECKING([for daq flow ID]) | ||
| 15 | -AC_RUN_IFELSE( | ||
| 16 | -[AC_LANG_PROGRAM( | ||
| 17 | -[[ | ||
| 18 | -#include <daq.h> | ||
| 19 | -]], | ||
| 20 | -[[ | ||
| 21 | - DAQ_PktHdr_t hdr; | ||
| 22 | - hdr.flow_id = 0; | ||
| 23 | -]])], | ||
| 24 | -[have_daq_flow_id="yes"], | ||
| 25 | -[have_daq_flow_id="no"]) | ||
| 26 | -AC_MSG_RESULT($have_daq_flow_id) | ||
| 27 | -if test "x$have_daq_flow_id" = "xyes"; then | ||
| 28 | - AC_DEFINE([HAVE_DAQ_FLOW_ID],[1], | ||
| 29 | - [DAQ version supports flow ID in header.]) | ||
| 30 | -fi | ||
| 31 | +#AC_MSG_CHECKING([for daq flow ID]) | ||
| 32 | +#AC_RUN_IFELSE( | ||
| 33 | +#[AC_LANG_PROGRAM( | ||
| 34 | +#[[ | ||
| 35 | +##include <daq.h> | ||
| 36 | +#]], | ||
| 37 | +#[[ | ||
| 38 | +# DAQ_PktHdr_t hdr; | ||
| 39 | +# hdr.flow_id = 0; | ||
| 40 | +#]])], | ||
| 41 | +have_daq_flow_id="yes" | ||
| 42 | +#[have_daq_flow_id="no"]) | ||
| 43 | +#AC_MSG_RESULT($have_daq_flow_id) | ||
| 44 | +#if test "x$have_daq_flow_id" = "xyes"; then | ||
| 45 | +# AC_DEFINE([HAVE_DAQ_FLOW_ID],[1], | ||
| 46 | +# [DAQ version supports flow ID in header.]) | ||
| 47 | +#fi | ||
| 48 | |||
| 49 | AC_MSG_CHECKING([for DAQ_VERDICT_RETRY]) | ||
| 50 | AC_RUN_IFELSE( | ||
diff --git a/meta-networking/recipes-connectivity/snort/snort/disable-daq-verdict-retry.patch b/meta-networking/recipes-connectivity/snort/snort/disable-daq-verdict-retry.patch new file mode 100644 index 0000000000..1a13298ca2 --- /dev/null +++ b/meta-networking/recipes-connectivity/snort/snort/disable-daq-verdict-retry.patch | |||
| @@ -0,0 +1,51 @@ | |||
| 1 | Upstream-Status:Inappropriate [embedded specific] | ||
| 2 | |||
| 3 | fix the below error: | ||
| 4 | checking for DAQ_VERDICT_RETRY... configure: | ||
| 5 | configure: error: cannot run test program while cross compiling | ||
| 6 | |||
| 7 | |||
| 8 | --- a/configure.in 2015-10-28 10:45:18.174487395 +0800 | ||
| 9 | +++ b/configure.in 2015-10-28 10:45:47.586485951 +0800 | ||
| 10 | @@ -734,23 +734,23 @@ | ||
| 11 | # [DAQ version supports flow ID in header.]) | ||
| 12 | #fi | ||
| 13 | |||
| 14 | -AC_MSG_CHECKING([for DAQ_VERDICT_RETRY]) | ||
| 15 | -AC_RUN_IFELSE( | ||
| 16 | -[AC_LANG_PROGRAM( | ||
| 17 | -[[ | ||
| 18 | -#include <daq.h> | ||
| 19 | -]], | ||
| 20 | -[[ | ||
| 21 | - DAQ_Verdict verdict; | ||
| 22 | - verdict = DAQ_VERDICT_RETRY; | ||
| 23 | -]])], | ||
| 24 | -[have_daq_verdict_retry="yes"], | ||
| 25 | -[have_daq_verdict_retry="no"]) | ||
| 26 | -AC_MSG_RESULT($have_daq_verdict_retry) | ||
| 27 | -if test "x$have_daq_verdict_retry" = "xyes"; then | ||
| 28 | - AC_DEFINE([HAVE_DAQ_VERDICT_RETRY],[1], | ||
| 29 | - [DAQ version supports DAQ_VERDICT_RETRY in DAQ_Verdict.]) | ||
| 30 | -fi | ||
| 31 | +#AC_MSG_CHECKING([for DAQ_VERDICT_RETRY]) | ||
| 32 | +#AC_RUN_IFELSE( | ||
| 33 | +#[AC_LANG_PROGRAM( | ||
| 34 | +#[[ | ||
| 35 | +##include <daq.h> | ||
| 36 | +#]], | ||
| 37 | +#[[ | ||
| 38 | +# DAQ_Verdict verdict; | ||
| 39 | +# verdict = DAQ_VERDICT_RETRY; | ||
| 40 | +#]])], | ||
| 41 | +have_daq_verdict_retry="yes" | ||
| 42 | +#[have_daq_verdict_retry="no"]) | ||
| 43 | +#AC_MSG_RESULT($have_daq_verdict_retry) | ||
| 44 | +#if test "x$have_daq_verdict_retry" = "xyes"; then | ||
| 45 | +# AC_DEFINE([HAVE_DAQ_VERDICT_RETRY],[1], | ||
| 46 | +# [DAQ version supports DAQ_VERDICT_RETRY in DAQ_Verdict.]) | ||
| 47 | +#fi | ||
| 48 | |||
| 49 | # any sparc platform has to have this one defined. | ||
| 50 | AC_MSG_CHECKING(for sparc) | ||
| 51 | |||
diff --git a/meta-networking/recipes-connectivity/snort/snort/m4-oom-during-configure.patch b/meta-networking/recipes-connectivity/snort/snort/m4-oom-during-configure.patch deleted file mode 100644 index 2250611536..0000000000 --- a/meta-networking/recipes-connectivity/snort/snort/m4-oom-during-configure.patch +++ /dev/null | |||
| @@ -1,21 +0,0 @@ | |||
| 1 | Upstream-Status: Backport | ||
| 2 | |||
| 3 | There is an incorrect m4_define() in configure.in which will result in an | ||
| 4 | infinite recursion, and it doesn't make sense, since snort 2.9.7 it has been | ||
| 5 | commented out. We follow this solution to fix it. | ||
| 6 | |||
| 7 | Signed-off-by: Zhiquan Li <zhiquan.li@windriver.com> | ||
| 8 | |||
| 9 | --- a/configure.in 2015-10-22 13:58:50.743367251 +0800 | ||
| 10 | +++ b/configure.in 2015-10-22 13:59:13.855366117 +0800 | ||
| 11 | @@ -1100,8 +1100,8 @@ | ||
| 12 | # Define PKG_CHECK_MODULES if it doesnt already exist. | ||
| 13 | #file_ This prevents './configure' from erroring on machines that dont have | ||
| 14 | # 'pkgconfig' installed. | ||
| 15 | -m4_ifdef([PKG_CHECK_MODULES],[], [m4_define([PKG_CHECK_MODULES], | ||
| 16 | - [echo "PKG_CHECK_MODULES not defined"])]) | ||
| 17 | +#m4_ifdef([PKG_CHECK_MODULES],[], [m4_define([PKG_CHECK_MODULES], | ||
| 18 | +# [echo "PKG_CHECK_MODULES not defined"])]) | ||
| 19 | |||
| 20 | if test "x$enable_rzb_saac" = "xyes"; then | ||
| 21 | AC_CHECK_PROG(PKG_CONFIG,pkg-config,yes) | ||
diff --git a/meta-networking/recipes-connectivity/snort/snort/not-hardcoded-libdir.patch b/meta-networking/recipes-connectivity/snort/snort/not-hardcoded-libdir.patch deleted file mode 100644 index 075ec138b1..0000000000 --- a/meta-networking/recipes-connectivity/snort/snort/not-hardcoded-libdir.patch +++ /dev/null | |||
| @@ -1,279 +0,0 @@ | |||
| 1 | [PATCH] do not hardcoded libdir | ||
| 2 | |||
| 3 | Upstream-Status: Pending | ||
| 4 | |||
| 5 | libdir is hardcoded to ${exec_prefix}/lib, but we want it to support multilib | ||
| 6 | |||
| 7 | Signed-off-by: Roy.Li <rongqing.li@windriver.com> | ||
| 8 | --- | ||
| 9 | src/dynamic-examples/dynamic-preprocessor/Makefile.am | 2 +- | ||
| 10 | src/dynamic-examples/dynamic-rule/Makefile.am | 2 +- | ||
| 11 | src/dynamic-plugins/sf_engine/Makefile.am | 2 +- | ||
| 12 | src/dynamic-preprocessors/dcerpc2/Makefile.am | 2 +- | ||
| 13 | src/dynamic-preprocessors/dnp3/Makefile.am | 2 +- | ||
| 14 | src/dynamic-preprocessors/dns/Makefile.am | 2 +- | ||
| 15 | src/dynamic-preprocessors/file/Makefile.am | 2 +- | ||
| 16 | src/dynamic-preprocessors/ftptelnet/Makefile.am | 2 +- | ||
| 17 | src/dynamic-preprocessors/gtp/Makefile.am | 2 +- | ||
| 18 | src/dynamic-preprocessors/imap/Makefile.am | 2 +- | ||
| 19 | src/dynamic-preprocessors/modbus/Makefile.am | 2 +- | ||
| 20 | src/dynamic-preprocessors/pop/Makefile.am | 2 +- | ||
| 21 | src/dynamic-preprocessors/reputation/Makefile.am | 2 +- | ||
| 22 | src/dynamic-preprocessors/rzb_saac/Makefile.am | 2 +- | ||
| 23 | src/dynamic-preprocessors/sdf/Makefile.am | 2 +- | ||
| 24 | src/dynamic-preprocessors/sip/Makefile.am | 2 +- | ||
| 25 | src/dynamic-preprocessors/smtp/Makefile.am | 2 +- | ||
| 26 | src/dynamic-preprocessors/ssh/Makefile.am | 2 +- | ||
| 27 | src/dynamic-preprocessors/ssl/Makefile.am | 2 +- | ||
| 28 | 19 files changed, 19 insertions(+), 19 deletions(-) | ||
| 29 | |||
| 30 | diff --git a/src/dynamic-examples/dynamic-preprocessor/Makefile.am b/src/dynamic-examples/dynamic-preprocessor/Makefile.am | ||
| 31 | index 255755e..1cafead 100644 | ||
| 32 | --- a/src/dynamic-examples/dynamic-preprocessor/Makefile.am | ||
| 33 | +++ b/src/dynamic-examples/dynamic-preprocessor/Makefile.am | ||
| 34 | @@ -3,7 +3,7 @@ AUTOMAKE_OPTIONS=foreign no-dependencies | ||
| 35 | |||
| 36 | INCLUDES = -I../include | ||
| 37 | |||
| 38 | -noinst_libdir = ${exec_prefix}/lib/snort_dynamicpreprocessor | ||
| 39 | +noinst_libdir = ${exec_prefix}${base_libdir}/snort_dynamicpreprocessor | ||
| 40 | |||
| 41 | noinst_lib_LTLIBRARIES = lib_sfdynamic_preprocessor_example.la | ||
| 42 | |||
| 43 | diff --git a/src/dynamic-examples/dynamic-rule/Makefile.am b/src/dynamic-examples/dynamic-rule/Makefile.am | ||
| 44 | index e5338d2..82eb212 100644 | ||
| 45 | --- a/src/dynamic-examples/dynamic-rule/Makefile.am | ||
| 46 | +++ b/src/dynamic-examples/dynamic-rule/Makefile.am | ||
| 47 | @@ -3,7 +3,7 @@ AUTOMAKE_OPTIONS=foreign no-dependencies | ||
| 48 | |||
| 49 | INCLUDES = -I../include | ||
| 50 | |||
| 51 | -noinst_libdir = ${exec_prefix}/lib/snort_dynamicrules | ||
| 52 | +noinst_libdir = ${exec_prefix}${base_libdir}/snort_dynamicrules | ||
| 53 | |||
| 54 | noinst_lib_LTLIBRARIES = lib_sfdynamic_example_rule.la | ||
| 55 | |||
| 56 | diff --git a/src/dynamic-plugins/sf_engine/Makefile.am b/src/dynamic-plugins/sf_engine/Makefile.am | ||
| 57 | index d6a6200..3d270c3 100644 | ||
| 58 | --- a/src/dynamic-plugins/sf_engine/Makefile.am | ||
| 59 | +++ b/src/dynamic-plugins/sf_engine/Makefile.am | ||
| 60 | @@ -5,7 +5,7 @@ INCLUDES = @INCLUDES@ | ||
| 61 | |||
| 62 | lib_LTLIBRARIES = libsf_engine.la | ||
| 63 | |||
| 64 | -libdir = ${exec_prefix}/lib/snort_dynamicengine | ||
| 65 | +libdir = ${exec_prefix}${base_libdir}/snort_dynamicengine | ||
| 66 | |||
| 67 | libsf_engine_la_LDFLAGS = -export-dynamic -module @XCCFLAGS@ | ||
| 68 | |||
| 69 | diff --git a/src/dynamic-preprocessors/dcerpc2/Makefile.am b/src/dynamic-preprocessors/dcerpc2/Makefile.am | ||
| 70 | index 9843073..8a0caa5 100644 | ||
| 71 | --- a/src/dynamic-preprocessors/dcerpc2/Makefile.am | ||
| 72 | +++ b/src/dynamic-preprocessors/dcerpc2/Makefile.am | ||
| 73 | @@ -3,7 +3,7 @@ AUTOMAKE_OPTIONS=foreign no-dependencies | ||
| 74 | |||
| 75 | INCLUDES = -I../include -I${srcdir}/../libs -I$(srcdir)/includes | ||
| 76 | |||
| 77 | -libdir = ${exec_prefix}/lib/snort_dynamicpreprocessor | ||
| 78 | +libdir = ${exec_prefix}${base_libdir}/snort_dynamicpreprocessor | ||
| 79 | |||
| 80 | lib_LTLIBRARIES = libsf_dce2_preproc.la | ||
| 81 | |||
| 82 | diff --git a/src/dynamic-preprocessors/dnp3/Makefile.am b/src/dynamic-preprocessors/dnp3/Makefile.am | ||
| 83 | index 1358862..18e2178 100644 | ||
| 84 | --- a/src/dynamic-preprocessors/dnp3/Makefile.am | ||
| 85 | +++ b/src/dynamic-preprocessors/dnp3/Makefile.am | ||
| 86 | @@ -3,7 +3,7 @@ AUTOMAKE_OPTIONS=foreign no-dependencies | ||
| 87 | |||
| 88 | INCLUDES = -I../include -I${srcdir}/../libs | ||
| 89 | |||
| 90 | -libdir = ${exec_prefix}/lib/snort_dynamicpreprocessor | ||
| 91 | +libdir = ${exec_prefix}${base_libdir}/snort_dynamicpreprocessor | ||
| 92 | |||
| 93 | lib_LTLIBRARIES = libsf_dnp3_preproc.la | ||
| 94 | |||
| 95 | diff --git a/src/dynamic-preprocessors/dns/Makefile.am b/src/dynamic-preprocessors/dns/Makefile.am | ||
| 96 | index f22d90e..49d2f55 100644 | ||
| 97 | --- a/src/dynamic-preprocessors/dns/Makefile.am | ||
| 98 | +++ b/src/dynamic-preprocessors/dns/Makefile.am | ||
| 99 | @@ -3,7 +3,7 @@ AUTOMAKE_OPTIONS=foreign no-dependencies | ||
| 100 | |||
| 101 | INCLUDES = -I../include -I${srcdir}/../libs | ||
| 102 | |||
| 103 | -libdir = ${exec_prefix}/lib/snort_dynamicpreprocessor | ||
| 104 | +libdir = ${exec_prefix}${base_libdir}/snort_dynamicpreprocessor | ||
| 105 | |||
| 106 | lib_LTLIBRARIES = libsf_dns_preproc.la | ||
| 107 | |||
| 108 | diff --git a/src/dynamic-preprocessors/file/Makefile.am b/src/dynamic-preprocessors/file/Makefile.am | ||
| 109 | index d71c0fd..834f7ac 100644 | ||
| 110 | --- a/src/dynamic-preprocessors/file/Makefile.am | ||
| 111 | +++ b/src/dynamic-preprocessors/file/Makefile.am | ||
| 112 | @@ -3,7 +3,7 @@ AUTOMAKE_OPTIONS=foreign no-dependencies | ||
| 113 | |||
| 114 | INCLUDES = -I../include -I${srcdir}/../libs -I./include | ||
| 115 | |||
| 116 | -libdir = ${exec_prefix}/lib/snort_dynamicpreprocessor | ||
| 117 | +libdir = ${exec_prefix}${base_libdir}/snort_dynamicpreprocessor | ||
| 118 | |||
| 119 | lib_LTLIBRARIES = libsf_file_preproc.la | ||
| 120 | |||
| 121 | diff --git a/src/dynamic-preprocessors/ftptelnet/Makefile.am b/src/dynamic-preprocessors/ftptelnet/Makefile.am | ||
| 122 | index fe73835..3457231 100644 | ||
| 123 | --- a/src/dynamic-preprocessors/ftptelnet/Makefile.am | ||
| 124 | +++ b/src/dynamic-preprocessors/ftptelnet/Makefile.am | ||
| 125 | @@ -3,7 +3,7 @@ AUTOMAKE_OPTIONS=foreign no-dependencies | ||
| 126 | |||
| 127 | INCLUDES = -I../include -I${srcdir}/../libs -I$(srcdir)/includes | ||
| 128 | |||
| 129 | -libdir = ${exec_prefix}/lib/snort_dynamicpreprocessor | ||
| 130 | +libdir = ${exec_prefix}${base_libdir}/snort_dynamicpreprocessor | ||
| 131 | |||
| 132 | lib_LTLIBRARIES = libsf_ftptelnet_preproc.la | ||
| 133 | |||
| 134 | diff --git a/src/dynamic-preprocessors/gtp/Makefile.am b/src/dynamic-preprocessors/gtp/Makefile.am | ||
| 135 | index 51c961a..d7fb9b2 100644 | ||
| 136 | --- a/src/dynamic-preprocessors/gtp/Makefile.am | ||
| 137 | +++ b/src/dynamic-preprocessors/gtp/Makefile.am | ||
| 138 | @@ -3,7 +3,7 @@ AUTOMAKE_OPTIONS=foreign no-dependencies | ||
| 139 | |||
| 140 | INCLUDES = -I../include -I${srcdir}/../libs -I$(srcdir)/includes | ||
| 141 | |||
| 142 | -libdir = ${exec_prefix}/lib/snort_dynamicpreprocessor | ||
| 143 | +libdir = ${exec_prefix}${base_libdir}/snort_dynamicpreprocessor | ||
| 144 | |||
| 145 | lib_LTLIBRARIES = libsf_gtp_preproc.la | ||
| 146 | |||
| 147 | diff --git a/src/dynamic-preprocessors/imap/Makefile.am b/src/dynamic-preprocessors/imap/Makefile.am | ||
| 148 | index 533e43d..9efcbc4 100644 | ||
| 149 | --- a/src/dynamic-preprocessors/imap/Makefile.am | ||
| 150 | +++ b/src/dynamic-preprocessors/imap/Makefile.am | ||
| 151 | @@ -3,7 +3,7 @@ AUTOMAKE_OPTIONS=foreign no-dependencies | ||
| 152 | |||
| 153 | INCLUDES = -I../include -I${srcdir}/../libs | ||
| 154 | |||
| 155 | -libdir = ${exec_prefix}/lib/snort_dynamicpreprocessor | ||
| 156 | +libdir = ${exec_prefix}${base_libdir}/snort_dynamicpreprocessor | ||
| 157 | |||
| 158 | lib_LTLIBRARIES = libsf_imap_preproc.la | ||
| 159 | |||
| 160 | diff --git a/src/dynamic-preprocessors/modbus/Makefile.am b/src/dynamic-preprocessors/modbus/Makefile.am | ||
| 161 | index 05fc63e..e4f1415 100644 | ||
| 162 | --- a/src/dynamic-preprocessors/modbus/Makefile.am | ||
| 163 | +++ b/src/dynamic-preprocessors/modbus/Makefile.am | ||
| 164 | @@ -3,7 +3,7 @@ AUTOMAKE_OPTIONS=foreign no-dependencies | ||
| 165 | |||
| 166 | INCLUDES = -I../include -I${srcdir}/../libs | ||
| 167 | |||
| 168 | -libdir = ${exec_prefix}/lib/snort_dynamicpreprocessor | ||
| 169 | +libdir = ${exec_prefix}${base_libdir}/snort_dynamicpreprocessor | ||
| 170 | |||
| 171 | lib_LTLIBRARIES = libsf_modbus_preproc.la | ||
| 172 | |||
| 173 | diff --git a/src/dynamic-preprocessors/pop/Makefile.am b/src/dynamic-preprocessors/pop/Makefile.am | ||
| 174 | index d4b07b3..1345bc6 100644 | ||
| 175 | --- a/src/dynamic-preprocessors/pop/Makefile.am | ||
| 176 | +++ b/src/dynamic-preprocessors/pop/Makefile.am | ||
| 177 | @@ -3,7 +3,7 @@ AUTOMAKE_OPTIONS=foreign no-dependencies | ||
| 178 | |||
| 179 | INCLUDES = -I../include -I${srcdir}/../libs | ||
| 180 | |||
| 181 | -libdir = ${exec_prefix}/lib/snort_dynamicpreprocessor | ||
| 182 | +libdir = ${exec_prefix}${base_libdir}/snort_dynamicpreprocessor | ||
| 183 | |||
| 184 | lib_LTLIBRARIES = libsf_pop_preproc.la | ||
| 185 | |||
| 186 | diff --git a/src/dynamic-preprocessors/reputation/Makefile.am b/src/dynamic-preprocessors/reputation/Makefile.am | ||
| 187 | index 4e16142..14ba0cb 100644 | ||
| 188 | --- a/src/dynamic-preprocessors/reputation/Makefile.am | ||
| 189 | +++ b/src/dynamic-preprocessors/reputation/Makefile.am | ||
| 190 | @@ -3,7 +3,7 @@ AUTOMAKE_OPTIONS=foreign no-dependencies | ||
| 191 | |||
| 192 | INCLUDES = -I../include -I${srcdir}/../libs -I$(srcdir)/includes | ||
| 193 | |||
| 194 | -libdir = ${exec_prefix}/lib/snort_dynamicpreprocessor | ||
| 195 | +libdir = ${exec_prefix}${base_libdir}/snort_dynamicpreprocessor | ||
| 196 | |||
| 197 | lib_LTLIBRARIES = libsf_reputation_preproc.la | ||
| 198 | |||
| 199 | diff --git a/src/dynamic-preprocessors/rzb_saac/Makefile.am b/src/dynamic-preprocessors/rzb_saac/Makefile.am | ||
| 200 | index f0b0912..6ebe04e 100644 | ||
| 201 | --- a/src/dynamic-preprocessors/rzb_saac/Makefile.am | ||
| 202 | +++ b/src/dynamic-preprocessors/rzb_saac/Makefile.am | ||
| 203 | @@ -3,7 +3,7 @@ AUTOMAKE_OPTIONS=foreign no-dependencies | ||
| 204 | |||
| 205 | INCLUDES = -I../include -I${srcdir}/../libs | ||
| 206 | |||
| 207 | -pkglibdir = ${exec_prefix}/lib/snort_dynamicpreprocessor | ||
| 208 | +pkglibdir = ${exec_prefix}${base_libdir}/snort_dynamicpreprocessor | ||
| 209 | |||
| 210 | pkglib_LTLIBRARIES = sf_rzb_saac_preproc.la | ||
| 211 | |||
| 212 | diff --git a/src/dynamic-preprocessors/sdf/Makefile.am b/src/dynamic-preprocessors/sdf/Makefile.am | ||
| 213 | index 97b416e..04b5ce5 100644 | ||
| 214 | --- a/src/dynamic-preprocessors/sdf/Makefile.am | ||
| 215 | +++ b/src/dynamic-preprocessors/sdf/Makefile.am | ||
| 216 | @@ -3,7 +3,7 @@ AUTOMAKE_OPTIONS=foreign no-dependencies | ||
| 217 | |||
| 218 | INCLUDES = -I../include -I${srcdir}/../libs | ||
| 219 | |||
| 220 | -libdir = ${exec_prefix}/lib/snort_dynamicpreprocessor | ||
| 221 | +libdir = ${exec_prefix}${base_libdir}/snort_dynamicpreprocessor | ||
| 222 | |||
| 223 | lib_LTLIBRARIES = libsf_sdf_preproc.la | ||
| 224 | |||
| 225 | diff --git a/src/dynamic-preprocessors/sip/Makefile.am b/src/dynamic-preprocessors/sip/Makefile.am | ||
| 226 | index 67ac1e1..b4f360f 100644 | ||
| 227 | --- a/src/dynamic-preprocessors/sip/Makefile.am | ||
| 228 | +++ b/src/dynamic-preprocessors/sip/Makefile.am | ||
| 229 | @@ -3,7 +3,7 @@ AUTOMAKE_OPTIONS=foreign no-dependencies | ||
| 230 | |||
| 231 | INCLUDES = -I../include -I${srcdir}/../libs -I$(srcdir)/includes | ||
| 232 | |||
| 233 | -libdir = ${exec_prefix}/lib/snort_dynamicpreprocessor | ||
| 234 | +libdir = ${exec_prefix}${base_libdir}/snort_dynamicpreprocessor | ||
| 235 | |||
| 236 | lib_LTLIBRARIES = libsf_sip_preproc.la | ||
| 237 | |||
| 238 | diff --git a/src/dynamic-preprocessors/smtp/Makefile.am b/src/dynamic-preprocessors/smtp/Makefile.am | ||
| 239 | index 3b5893f..96750df 100644 | ||
| 240 | --- a/src/dynamic-preprocessors/smtp/Makefile.am | ||
| 241 | +++ b/src/dynamic-preprocessors/smtp/Makefile.am | ||
| 242 | @@ -3,7 +3,7 @@ AUTOMAKE_OPTIONS=foreign no-dependencies | ||
| 243 | |||
| 244 | INCLUDES = -I../include -I${srcdir}/../libs | ||
| 245 | |||
| 246 | -libdir = ${exec_prefix}/lib/snort_dynamicpreprocessor | ||
| 247 | +libdir = ${exec_prefix}${base_libdir}/snort_dynamicpreprocessor | ||
| 248 | |||
| 249 | lib_LTLIBRARIES = libsf_smtp_preproc.la | ||
| 250 | |||
| 251 | diff --git a/src/dynamic-preprocessors/ssh/Makefile.am b/src/dynamic-preprocessors/ssh/Makefile.am | ||
| 252 | index 0eab645..5ae9b80 100644 | ||
| 253 | --- a/src/dynamic-preprocessors/ssh/Makefile.am | ||
| 254 | +++ b/src/dynamic-preprocessors/ssh/Makefile.am | ||
| 255 | @@ -3,7 +3,7 @@ AUTOMAKE_OPTIONS=foreign no-dependencies | ||
| 256 | |||
| 257 | INCLUDES = -I../include -I${srcdir}/../libs | ||
| 258 | |||
| 259 | -libdir = ${exec_prefix}/lib/snort_dynamicpreprocessor | ||
| 260 | +libdir = ${exec_prefix}${base_libdir}/snort_dynamicpreprocessor | ||
| 261 | |||
| 262 | lib_LTLIBRARIES = libsf_ssh_preproc.la | ||
| 263 | |||
| 264 | diff --git a/src/dynamic-preprocessors/ssl/Makefile.am b/src/dynamic-preprocessors/ssl/Makefile.am | ||
| 265 | index 4ac2943..8d3abe3 100644 | ||
| 266 | --- a/src/dynamic-preprocessors/ssl/Makefile.am | ||
| 267 | +++ b/src/dynamic-preprocessors/ssl/Makefile.am | ||
| 268 | @@ -3,7 +3,7 @@ AUTOMAKE_OPTIONS=foreign no-dependencies | ||
| 269 | |||
| 270 | INCLUDES = -I../include -I${srcdir}/../libs | ||
| 271 | |||
| 272 | -libdir = ${exec_prefix}/lib/snort_dynamicpreprocessor | ||
| 273 | +libdir = ${exec_prefix}${base_libdir}/snort_dynamicpreprocessor | ||
| 274 | |||
| 275 | lib_LTLIBRARIES = libsf_ssl_preproc.la | ||
| 276 | |||
| 277 | -- | ||
| 278 | 1.9.1 | ||
| 279 | |||
diff --git a/meta-networking/recipes-connectivity/snort/snort_2.9.6.0.bb b/meta-networking/recipes-connectivity/snort/snort_2.9.7.5.bb index e15f7bec89..a81aa7f414 100644 --- a/meta-networking/recipes-connectivity/snort/snort_2.9.6.0.bb +++ b/meta-networking/recipes-connectivity/snort/snort_2.9.7.5.bb | |||
| @@ -10,13 +10,14 @@ SRC_URI = " ${GENTOO_MIRROR}/${BP}.tar.gz;name=tarball \ | |||
| 10 | file://snort.init \ | 10 | file://snort.init \ |
| 11 | file://disable-inaddr-none.patch \ | 11 | file://disable-inaddr-none.patch \ |
| 12 | file://disable-dap-address-space-id.patch \ | 12 | file://disable-dap-address-space-id.patch \ |
| 13 | file://disable-daq-flow-id.patch \ | ||
| 14 | file://disable-daq-verdict-retry.patch \ | ||
| 13 | file://0001-libpcap-search-sysroot-for-headers.patch \ | 15 | file://0001-libpcap-search-sysroot-for-headers.patch \ |
| 14 | file://not-hardcoded-libdir.patch \ | 16 | file://0001-fix-do_package-failed-since-snort-2.9.7.0.patch \ |
| 15 | file://m4-oom-during-configure.patch \ | ||
| 16 | " | 17 | " |
| 17 | 18 | ||
| 18 | SRC_URI[tarball.md5sum] = "18111f6de3989ca89add36077a7c2659" | 19 | SRC_URI[tarball.md5sum] = "fd271788c0f8876be87a858a9142f202" |
| 19 | SRC_URI[tarball.sha256sum] = "3cc6c8a9b52f4c863a5736a73b4012aff340b50b5e002771b04d4877f47cd19e" | 20 | SRC_URI[tarball.sha256sum] = "ad03f11b5301b16642199a86aa90388eaa53f5003f83b0c5595745a490047be1" |
| 20 | 21 | ||
| 21 | inherit autotools gettext update-rc.d pkgconfig | 22 | inherit autotools gettext update-rc.d pkgconfig |
| 22 | 23 | ||
| @@ -33,7 +34,9 @@ EXTRA_OECONF = " \ | |||
| 33 | --with-dnet-includes=${STAGING_INCDIR} \ | 34 | --with-dnet-includes=${STAGING_INCDIR} \ |
| 34 | --with-dnet-libraries=${STAGING_LIBDIR} \ | 35 | --with-dnet-libraries=${STAGING_LIBDIR} \ |
| 35 | --with-libpcre-includes=${STAGING_INCDIR} \ | 36 | --with-libpcre-includes=${STAGING_INCDIR} \ |
| 36 | --with-libpcre-libraries=${STAGING_INCDIR} \ | 37 | --with-libpcre-libraries=${STAGING_LIBDIR} \ |
| 38 | --with-daq-includes=${STAGING_INCDIR} \ | ||
| 39 | --with-daq-libraries=${STAGING_LIBDIR} \ | ||
| 37 | " | 40 | " |
| 38 | 41 | ||
| 39 | # if you want to disable it, you need to patch configure.in first | 42 | # if you want to disable it, you need to patch configure.in first |
| @@ -43,15 +46,15 @@ PACKAGECONFIG ?= "openssl" | |||
| 43 | PACKAGECONFIG[openssl] = "--with-openssl-includes=${STAGING_INCDIR} --with-openssl-libraries=${STAGING_LIBDIR}, --without-openssl-includes --without-openssl-libraries, openssl," | 46 | PACKAGECONFIG[openssl] = "--with-openssl-includes=${STAGING_INCDIR} --with-openssl-libraries=${STAGING_LIBDIR}, --without-openssl-includes --without-openssl-libraries, openssl," |
| 44 | 47 | ||
| 45 | do_install_append() { | 48 | do_install_append() { |
| 46 | install -d ${D}/${sysconfdir}/snort/rules | 49 | install -d ${D}${sysconfdir}/snort/rules |
| 47 | install -d ${D}/${sysconfdir}/snort/preproc_rules | 50 | install -d ${D}${sysconfdir}/snort/preproc_rules |
| 48 | install -d ${D}${sysconfdir}/init.d | 51 | install -d ${D}${sysconfdir}/init.d |
| 49 | for i in map config conf dtd; do | 52 | for i in map config conf dtd; do |
| 50 | cp ${S}/etc/*.$i ${D}/${sysconfdir}/snort/ | 53 | cp ${S}/etc/*.$i ${D}${sysconfdir}/snort/ |
| 51 | done | 54 | done |
| 52 | cp ${S}/preproc_rules/*.rules ${D}/${sysconfdir}/snort/preproc_rules/ | 55 | cp ${S}/preproc_rules/*.rules ${D}${sysconfdir}/snort/preproc_rules/ |
| 53 | install -m 755 ${WORKDIR}/snort.init ${D}/${sysconfdir}/init.d/snort | 56 | install -m 755 ${WORKDIR}/snort.init ${D}${sysconfdir}/init.d/snort |
| 54 | mkdir -p ${D}/${localstatedir}/log/snort | 57 | mkdir -p ${D}${localstatedir}/log/snort |
| 55 | install -d ${D}/var/log/snort | 58 | install -d ${D}/var/log/snort |
| 56 | } | 59 | } |
| 57 | 60 | ||
