summaryrefslogtreecommitdiffstats
path: root/meta-networking
diff options
context:
space:
mode:
authorYi Zhao <yi.zhao@windriver.com>2018-07-24 10:33:33 +0800
committerKhem Raj <raj.khem@gmail.com>2018-07-26 20:10:07 -0700
commit6d960cf729ed238916bb42e3bf6db9d9c2f5dd4d (patch)
treef9a8a876ca1de9668874c6f672920a6505c6d7ea /meta-networking
parente4031bcc78ba92f661b257442a0fa13c5dc4b912 (diff)
downloadmeta-openembedded-6d960cf729ed238916bb42e3bf6db9d9c2f5dd4d.tar.gz
snort: upgrade 2.9.7.5 -> 2.9.11.1
* Update SRC_URI * Drop 0001-fix-do_package-failed-since-snort-2.9.7.0.patch since the issue had been fixed upstream. * Drop the following patches and merge their modifications to disable-run-test-program-while-cross-compiling.patch: disable-dap-address-space-id.patch disable-daq-flow-id.patch disable-daq-verdict-retry.patch disable-inaddr-none.patch * Add disable-run-test-program-while-cross-compiling.patch to fix configure error: cannot run test program while cross compiling. The variables have_daq_real_addresses, have_daq_ext_modflow, have_daq_queryflow, have_daq_data_channel_flags and have_daq_data_channel_separate_ip_versions are set to no since they are for daq 2.2.2 but we have daq 2.0.6 in meta-networking layer. Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking')
-rw-r--r--meta-networking/recipes-connectivity/snort/snort/0001-fix-do_package-failed-since-snort-2.9.7.0.patch33
-rw-r--r--meta-networking/recipes-connectivity/snort/snort/disable-dap-address-space-id.patch62
-rw-r--r--meta-networking/recipes-connectivity/snort/snort/disable-daq-flow-id.patch60
-rw-r--r--meta-networking/recipes-connectivity/snort/snort/disable-daq-verdict-retry.patch60
-rw-r--r--meta-networking/recipes-connectivity/snort/snort/disable-inaddr-none.patch85
-rw-r--r--meta-networking/recipes-connectivity/snort/snort/disable-run-test-program-while-cross-compiling.patch254
-rw-r--r--meta-networking/recipes-connectivity/snort/snort_2.9.11.1.bb (renamed from meta-networking/recipes-connectivity/snort/snort_2.9.7.5.bb)12
7 files changed, 258 insertions, 308 deletions
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
deleted file mode 100644
index 047caec32..000000000
--- a/meta-networking/recipes-connectivity/snort/snort/0001-fix-do_package-failed-since-snort-2.9.7.0.patch
+++ /dev/null
@@ -1,33 +0,0 @@
1From 4335c4c61877c0b65ff4ec767e8ad3ad8c73c32d Mon Sep 17 00:00:00 2001
2From: Zhiquan Li <zhiquan.li@windriver.com>
3Date: Fri, 13 Nov 2015 17:40:24 +0800
4Subject: [PATCH] fix do_package failed since snort 2.9.7.0
5
6Remove redundant '/' as a workround for below error:
7/lib/rpm/bin/debugedit: canonicalization unexpectedly shrank by one character
8
9It'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
13Upstream-Status:Inappropriate [embedded specific]
14
15Signed-off-by: Zhiquan Li <zhiquan.li@windriver.com>
16
17---
18 src/snort.h | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
20
21diff --git a/src/snort.h b/src/snort.h
22index 8308e57..499d157 100644
23--- a/src/snort.h
24+++ b/src/snort.h
25@@ -39,7 +39,7 @@
26 #include "sfdaq.h"
27 #include "sf_types.h"
28 #include "sfutil/sflsq.h"
29-#include "sfutil//sfActionQueue.h"
30+#include "sfutil/sfActionQueue.h"
31 #include "profiler.h"
32 #include "rules.h"
33 #include "treenodes.h"
diff --git a/meta-networking/recipes-connectivity/snort/snort/disable-dap-address-space-id.patch b/meta-networking/recipes-connectivity/snort/snort/disable-dap-address-space-id.patch
deleted file mode 100644
index 6aa0b736f..000000000
--- a/meta-networking/recipes-connectivity/snort/snort/disable-dap-address-space-id.patch
+++ /dev/null
@@ -1,62 +0,0 @@
1From 5a53260a819e2873f58165e96852529719101c53 Mon Sep 17 00:00:00 2001
2From: Chunrong Guo <B40290@freescale.com>
3Date: Mon, 4 Nov 2013 10:39:56 +0800
4Subject: [PATCH] snort: add recipe
5
6Upstream-Status:Inappropriate [embedded specific]
7
8fix the below error:
9checking for dap address space id... configure:
10configure: error: cannot run test program while cross compiling
11
12Signed-off-by: Chunrong Guo <B40290@freescale.com>
13
14---
15 configure.in | 34 +++++++++++++++++-----------------
16 1 file changed, 17 insertions(+), 17 deletions(-)
17
18diff --git a/configure.in b/configure.in
19index 6fe5d68..e7636ce 100644
20--- a/configure.in
21+++ b/configure.in
22@@ -698,23 +698,23 @@ if test "x$ac_cv_func_daq_dp_add_dc" = "xyes"; then
23
24 fi
25
26-AC_MSG_CHECKING([for daq address space ID])
27-AC_RUN_IFELSE(
28-[AC_LANG_PROGRAM(
29-[[
30-#include <daq.h>
31-]],
32-[[
33- DAQ_PktHdr_t hdr;
34- hdr.address_space_id = 0;
35-]])],
36-[have_daq_address_space_id="yes"],
37-[have_daq_address_space_id="no"])
38-AC_MSG_RESULT($have_daq_address_space_id)
39-if test "x$have_daq_address_space_id" = "xyes"; then
40- AC_DEFINE([HAVE_DAQ_ADDRESS_SPACE_ID],[1],
41- [DAQ version supports address space ID in header.])
42-fi
43+#AC_MSG_CHECKING([for daq address space ID])
44+#AC_RUN_IFELSE(
45+#[AC_LANG_PROGRAM(
46+#[[
47+##include <daq.h>
48+#]],
49+#[[
50+# DAQ_PktHdr_t hdr;
51+# hdr.address_space_id = 0;
52+#]])],
53+have_daq_address_space_id="yes"
54+#[have_daq_address_space_id="no"])
55+#AC_MSG_RESULT($have_daq_address_space_id)
56+#if test "x$have_daq_address_space_id" = "xyes"; then
57+# AC_DEFINE([HAVE_DAQ_ADDRESS_SPACE_ID],[1],
58+# [DAQ version supports address space ID in header.])
59+#fi
60
61 AC_MSG_CHECKING([for daq flow ID])
62 AC_RUN_IFELSE(
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
deleted file mode 100644
index 04df37c94..000000000
--- a/meta-networking/recipes-connectivity/snort/snort/disable-daq-flow-id.patch
+++ /dev/null
@@ -1,60 +0,0 @@
1From 5aa42a3137c657b5eddd4608343aa1854bd7cd27 Mon Sep 17 00:00:00 2001
2From: Zhiquan Li <zhiquan.li@windriver.com>
3Date: Mon, 16 Nov 2015 10:23:00 +0800
4Subject: [PATCH] snort: 2.9.6.0 -> 2.9.7.5
5
6Upstream-Status:Inappropriate [embedded specific]
7
8fix the below error:
9checking for daq flow ID... configure:
10configure: error: cannot run test program while cross compiling
11
12---
13 configure.in | 34 +++++++++++++++++-----------------
14 1 file changed, 17 insertions(+), 17 deletions(-)
15
16diff --git a/configure.in b/configure.in
17index e7636ce..2fbd298 100644
18--- a/configure.in
19+++ b/configure.in
20@@ -716,23 +716,23 @@ have_daq_address_space_id="yes"
21 # [DAQ version supports address space ID in header.])
22 #fi
23
24-AC_MSG_CHECKING([for daq flow ID])
25-AC_RUN_IFELSE(
26-[AC_LANG_PROGRAM(
27-[[
28-#include <daq.h>
29-]],
30-[[
31- DAQ_PktHdr_t hdr;
32- hdr.flow_id = 0;
33-]])],
34-[have_daq_flow_id="yes"],
35-[have_daq_flow_id="no"])
36-AC_MSG_RESULT($have_daq_flow_id)
37-if test "x$have_daq_flow_id" = "xyes"; then
38- AC_DEFINE([HAVE_DAQ_FLOW_ID],[1],
39- [DAQ version supports flow ID in header.])
40-fi
41+#AC_MSG_CHECKING([for daq flow ID])
42+#AC_RUN_IFELSE(
43+#[AC_LANG_PROGRAM(
44+#[[
45+##include <daq.h>
46+#]],
47+#[[
48+# DAQ_PktHdr_t hdr;
49+# hdr.flow_id = 0;
50+#]])],
51+have_daq_flow_id="yes"
52+#[have_daq_flow_id="no"])
53+#AC_MSG_RESULT($have_daq_flow_id)
54+#if test "x$have_daq_flow_id" = "xyes"; then
55+# AC_DEFINE([HAVE_DAQ_FLOW_ID],[1],
56+# [DAQ version supports flow ID in header.])
57+#fi
58
59 AC_MSG_CHECKING([for DAQ_VERDICT_RETRY])
60 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
deleted file mode 100644
index 15958a72d..000000000
--- a/meta-networking/recipes-connectivity/snort/snort/disable-daq-verdict-retry.patch
+++ /dev/null
@@ -1,60 +0,0 @@
1From b916443d43f2e1eeacfbed0033274a0270ef634d Mon Sep 17 00:00:00 2001
2From: Zhiquan Li <zhiquan.li@windriver.com>
3Date: Mon, 16 Nov 2015 10:23:00 +0800
4Subject: [PATCH] snort: 2.9.6.0 -> 2.9.7.5
5
6Upstream-Status:Inappropriate [embedded specific]
7
8fix the below error:
9checking for DAQ_VERDICT_RETRY... configure:
10configure: error: cannot run test program while cross compiling
11
12---
13 configure.in | 34 +++++++++++++++++-----------------
14 1 file changed, 17 insertions(+), 17 deletions(-)
15
16diff --git a/configure.in b/configure.in
17index 2fbd298..62573a8 100644
18--- a/configure.in
19+++ b/configure.in
20@@ -734,23 +734,23 @@ have_daq_flow_id="yes"
21 # [DAQ version supports flow ID in header.])
22 #fi
23
24-AC_MSG_CHECKING([for DAQ_VERDICT_RETRY])
25-AC_RUN_IFELSE(
26-[AC_LANG_PROGRAM(
27-[[
28-#include <daq.h>
29-]],
30-[[
31- DAQ_Verdict verdict;
32- verdict = DAQ_VERDICT_RETRY;
33-]])],
34-[have_daq_verdict_retry="yes"],
35-[have_daq_verdict_retry="no"])
36-AC_MSG_RESULT($have_daq_verdict_retry)
37-if test "x$have_daq_verdict_retry" = "xyes"; then
38- AC_DEFINE([HAVE_DAQ_VERDICT_RETRY],[1],
39- [DAQ version supports DAQ_VERDICT_RETRY in DAQ_Verdict.])
40-fi
41+#AC_MSG_CHECKING([for DAQ_VERDICT_RETRY])
42+#AC_RUN_IFELSE(
43+#[AC_LANG_PROGRAM(
44+#[[
45+##include <daq.h>
46+#]],
47+#[[
48+# DAQ_Verdict verdict;
49+# verdict = DAQ_VERDICT_RETRY;
50+#]])],
51+have_daq_verdict_retry="yes"
52+#[have_daq_verdict_retry="no"])
53+#AC_MSG_RESULT($have_daq_verdict_retry)
54+#if test "x$have_daq_verdict_retry" = "xyes"; then
55+# AC_DEFINE([HAVE_DAQ_VERDICT_RETRY],[1],
56+# [DAQ version supports DAQ_VERDICT_RETRY in DAQ_Verdict.])
57+#fi
58
59 # any sparc platform has to have this one defined.
60 AC_MSG_CHECKING(for sparc)
diff --git a/meta-networking/recipes-connectivity/snort/snort/disable-inaddr-none.patch b/meta-networking/recipes-connectivity/snort/snort/disable-inaddr-none.patch
deleted file mode 100644
index 79e9f076b..000000000
--- a/meta-networking/recipes-connectivity/snort/snort/disable-inaddr-none.patch
+++ /dev/null
@@ -1,85 +0,0 @@
1From a1fdbced4166cb0f35d23b63a59312d86860485a Mon Sep 17 00:00:00 2001
2From: Chunrong Guo <B40290@freescale.com>
3Date: Mon, 4 Nov 2013 10:39:56 +0800
4Subject: [PATCH] snort: add recipe
5
6Upstream-Status: Inappropriate [embedded specific]
7
8fix the below error:
9checking for INADDR_NONE... configure:
10configure: error: cannot run test program while cross compiling
11
12Signed-off-by: Chunrong Guo <B40290@freescale.com>
13
14---
15 configure.in | 50 ++++++++++++++++----------------------------------
16 1 file changed, 16 insertions(+), 34 deletions(-)
17
18diff --git a/configure.in b/configure.in
19index 20d15eb..6fe5d68 100644
20--- a/configure.in
21+++ b/configure.in
22@@ -274,25 +274,7 @@ AC_CHECK_TYPES([int8_t,int16_t,int32_t,int64_t])
23 AC_CHECK_TYPES([boolean])
24
25 # In case INADDR_NONE is not defined (like on Solaris)
26-have_inaddr_none="no"
27-AC_MSG_CHECKING([for INADDR_NONE])
28-AC_RUN_IFELSE(
29-[AC_LANG_PROGRAM(
30-[[
31-#include <sys/types.h>
32-#include <netinet/in.h>
33-#include <arpa/inet.h>
34-]],
35-[[
36- if (inet_addr("10,5,2") == INADDR_NONE);
37- return 0;
38-]])],
39-[have_inaddr_none="yes"],
40-[have_inaddr_none="no"])
41-AC_MSG_RESULT($have_inaddr_none)
42-if test "x$have_inaddr_none" = "xno"; then
43- AC_DEFINE([INADDR_NONE],[-1],[For INADDR_NONE definition])
44-fi
45+have_inaddr_none="yes"
46
47 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
48 #include <stdio.h>
49@@ -421,21 +403,21 @@ if test "x$LPCAP" = "xno"; then
50 fi
51 fi
52
53-AC_MSG_CHECKING([for pcap_lex_destroy])
54-AC_RUN_IFELSE(
55-[AC_LANG_PROGRAM(
56-[[
57-#include <pcap.h>
58-]],
59-[[
60- pcap_lex_destroy();
61-]])],
62-[have_pcap_lex_destroy="yes"],
63-[have_pcap_lex_destroy="no"])
64-AC_MSG_RESULT($have_pcap_lex_destroy)
65-if test "x$have_pcap_lex_destroy" = "xyes"; then
66- AC_DEFINE([HAVE_PCAP_LEX_DESTROY],[1],[Can cleanup lex buffer stack created by pcap bpf filter])
67-fi
68+#AC_MSG_CHECKING([for pcap_lex_destroy])
69+#AC_RUN_IFELSE(
70+#[AC_LANG_PROGRAM(
71+#[[
72+##include <pcap.h>
73+#]],
74+#[[
75+# pcap_lex_destroy();
76+#]])],
77+have_pcap_lex_destroy="yes"
78+#[have_pcap_lex_destroy="no"])
79+#AC_MSG_RESULT($have_pcap_lex_destroy)
80+#if test "x$have_pcap_lex_destroy" = "xyes"; then
81+# AC_DEFINE([HAVE_PCAP_LEX_DESTROY],[1],[Can cleanup lex buffer stack created by pcap bpf filter])
82+#fi
83
84 AC_MSG_CHECKING([for pcap_lib_version])
85 AC_LINK_IFELSE(
diff --git a/meta-networking/recipes-connectivity/snort/snort/disable-run-test-program-while-cross-compiling.patch b/meta-networking/recipes-connectivity/snort/snort/disable-run-test-program-while-cross-compiling.patch
new file mode 100644
index 000000000..037962fb6
--- /dev/null
+++ b/meta-networking/recipes-connectivity/snort/snort/disable-run-test-program-while-cross-compiling.patch
@@ -0,0 +1,254 @@
1From dc390837bc7adc205bb955d0922040a7e365d8dd Mon Sep 17 00:00:00 2001
2From: Yi Zhao <yi.zhao@windriver.com>
3Date: Mon, 23 Jul 2018 13:54:07 +0800
4Subject: [PATCH] Disable run test program while cross compiling
5
6fix configure error:
7configure: error: cannot run test program while cross compiling
8
9Upstream-Status:Inappropriate [embedded specific]
10
11Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
12---
13 configure.in | 148 +++++------------------------------------------------------
14 1 file changed, 12 insertions(+), 136 deletions(-)
15
16diff --git a/configure.in b/configure.in
17index 4b3a5db..a6c5498 100644
18--- a/configure.in
19+++ b/configure.in
20@@ -284,19 +284,7 @@ AC_CHECK_TYPES([boolean])
21 # In case INADDR_NONE is not defined (like on Solaris)
22 have_inaddr_none="no"
23 AC_MSG_CHECKING([for INADDR_NONE])
24-AC_RUN_IFELSE(
25-[AC_LANG_PROGRAM(
26-[[
27-#include <sys/types.h>
28-#include <netinet/in.h>
29-#include <arpa/inet.h>
30-]],
31-[[
32- if (inet_addr("10,5,2") == INADDR_NONE);
33- return 0;
34-]])],
35-[have_inaddr_none="yes"],
36-[have_inaddr_none="no"])
37+have_inaddr_none="yes"
38 AC_MSG_RESULT($have_inaddr_none)
39 if test "x$have_inaddr_none" = "xno"; then
40 AC_DEFINE([INADDR_NONE],[-1],[For INADDR_NONE definition])
41@@ -429,16 +417,7 @@ if test "x$LPCAP" = "xno"; then
42 fi
43
44 AC_MSG_CHECKING([for pcap_lex_destroy])
45-AC_RUN_IFELSE(
46-[AC_LANG_PROGRAM(
47-[[
48-#include <pcap.h>
49-]],
50-[[
51- pcap_lex_destroy();
52-]])],
53-[have_pcap_lex_destroy="yes"],
54-[have_pcap_lex_destroy="no"])
55+have_pcap_lex_destroy="yes"
56 AC_MSG_RESULT($have_pcap_lex_destroy)
57 if test "x$have_pcap_lex_destroy" = "xyes"; then
58 AC_DEFINE([HAVE_PCAP_LEX_DESTROY],[1],[Can cleanup lex buffer stack created by pcap bpf filter])
59@@ -716,17 +695,7 @@ fi
60 AC_CHECK_FUNCS([daq_hup_apply] [daq_acquire_with_meta] [daq_dp_add_dc])
61
62 AC_MSG_CHECKING([for daq real addresses])
63-AC_RUN_IFELSE(
64-[AC_LANG_PROGRAM(
65-[[
66-#include <daq.h>
67-]],
68-[[
69- DAQ_PktHdr_t hdr;
70- hdr.n_real_dPort = 0;
71-]])],
72-[have_daq_real_addresses="yes"],
73-[have_daq_real_addresses="no"])
74+have_daq_real_addresses="no"
75 AC_MSG_RESULT($have_daq_real_addresses)
76 if test "x$have_daq_real_addresses" = "xyes"; then
77 AC_DEFINE([HAVE_DAQ_REAL_ADDRESSES],[1],
78@@ -754,17 +723,7 @@ if test "x$ac_cv_func_daq_dp_add_dc" = "xyes"; then
79 fi
80
81 AC_MSG_CHECKING([for daq address space ID])
82-AC_RUN_IFELSE(
83-[AC_LANG_PROGRAM(
84-[[
85-#include <daq.h>
86-]],
87-[[
88- DAQ_PktHdr_t hdr;
89- hdr.address_space_id = 0;
90-]])],
91-[have_daq_address_space_id="yes"],
92-[have_daq_address_space_id="no"])
93+have_daq_address_space_id="yes"
94 AC_MSG_RESULT($have_daq_address_space_id)
95 if test "x$have_daq_address_space_id" = "xyes"; then
96 AC_DEFINE([HAVE_DAQ_ADDRESS_SPACE_ID],[1],
97@@ -772,17 +731,7 @@ if test "x$have_daq_address_space_id" = "xyes"; then
98 fi
99
100 AC_MSG_CHECKING([for daq flow ID])
101-AC_RUN_IFELSE(
102-[AC_LANG_PROGRAM(
103-[[
104-#include <daq.h>
105-]],
106-[[
107- DAQ_PktHdr_t hdr;
108- hdr.flow_id = 0;
109-]])],
110-[have_daq_flow_id="yes"],
111-[have_daq_flow_id="no"])
112+have_daq_flow_id="yes"
113 AC_MSG_RESULT($have_daq_flow_id)
114 if test "x$have_daq_flow_id" = "xyes"; then
115 AC_DEFINE([HAVE_DAQ_FLOW_ID],[1],
116@@ -790,19 +739,7 @@ if test "x$have_daq_flow_id" = "xyes"; then
117 fi
118
119 AC_MSG_CHECKING([for daq extended flow modifiers])
120-AC_RUN_IFELSE(
121-[AC_LANG_PROGRAM(
122-[[
123-#include <daq.h>
124-]],
125-[[
126- DAQ_ModFlow_t mod;
127- mod.type = 0;
128- mod.length = 0;
129- mod.value = NULL;
130-]])],
131-[have_daq_ext_modflow="yes"],
132-[have_daq_ext_modflow="no"])
133+have_daq_ext_modflow="no"
134 AC_MSG_RESULT($have_daq_ext_modflow)
135 if test "x$have_daq_ext_modflow" = "xyes"; then
136 CCONFIGFLAGS="${CCONFIGFLAGS} -DHAVE_DAQ_EXT_MODFLOW"
137@@ -811,19 +748,7 @@ if test "x$have_daq_ext_modflow" = "xyes"; then
138 fi
139
140 AC_MSG_CHECKING([for daq query flow])
141-AC_RUN_IFELSE(
142-[AC_LANG_PROGRAM(
143-[[
144-#include <daq.h>
145-]],
146-[[
147- DAQ_QueryFlow_t mod;
148- mod.type = 0;
149- mod.length = 0;
150- mod.value = NULL;
151-]])],
152-[have_daq_queryflow="yes"],
153-[have_daq_queryflow="no"])
154+have_daq_queryflow="no"
155 AC_MSG_RESULT($have_daq_queryflow)
156 if test "x$have_daq_queryflow" = "xyes"; then
157 CCONFIGFLAGS="${CCONFIGFLAGS} -DHAVE_DAQ_QUERYFLOW"
158@@ -832,16 +757,7 @@ if test "x$have_daq_queryflow" = "xyes"; then
159 fi
160
161 AC_MSG_CHECKING([for daq data channel flags])
162-AC_RUN_IFELSE(
163-[AC_LANG_PROGRAM(
164-[[
165-#include <daq.h>
166-]],
167-[[
168- DAQ_Data_Channel_Params_t params;
169-]])],
170-[have_daq_data_channel_flags="yes"],
171-[have_daq_data_channel_flags="no"])
172+have_daq_data_channel_flags="no"
173 AC_MSG_RESULT($have_daq_data_channel_flags)
174 if test "x$have_daq_data_channel_flags" = "xyes"; then
175 CCONFIGFLAGS="${CCONFIGFLAGS} -DHAVE_DAQ_DATA_CHANNEL_PARAMS"
176@@ -850,17 +766,7 @@ if test "x$have_daq_data_channel_flags" = "xyes"; then
177 fi
178
179 AC_MSG_CHECKING([for separate IP versions on pinhole endpoints])
180-AC_RUN_IFELSE(
181-[AC_LANG_PROGRAM(
182-[[
183-#include <daq.h>
184-]],
185-[[
186- DAQ_DP_key_t dpKey;
187- dpKey.src_af = 0;
188-]])],
189-[have_daq_data_channel_separate_ip_versions="yes"],
190-[have_daq_data_channel_separate_ip_versions="no"])
191+have_daq_data_channel_separate_ip_versions="no"
192 AC_MSG_RESULT($have_daq_data_channel_separate_ip_versions)
193 if test "x$have_daq_data_channel_separate_ip_versions" = "xyes"; then
194 CCONFIGFLAGS="${CCONFIGFLAGS} -DHAVE_DAQ_DATA_CHANNEL_SEPARATE_IP_VERSIONS"
195@@ -869,17 +775,7 @@ if test "x$have_daq_data_channel_separate_ip_versions" = "xyes"; then
196 fi
197
198 AC_MSG_CHECKING([for DAQ_VERDICT_RETRY])
199-AC_RUN_IFELSE(
200-[AC_LANG_PROGRAM(
201-[[
202-#include <daq.h>
203-]],
204-[[
205- DAQ_Verdict verdict;
206- verdict = DAQ_VERDICT_RETRY;
207-]])],
208-[have_daq_verdict_retry="yes"],
209-[have_daq_verdict_retry="no"])
210+have_daq_verdict_retry="yes"
211 AC_MSG_RESULT($have_daq_verdict_retry)
212 if test "x$have_daq_verdict_retry" = "xyes"; then
213 AC_DEFINE([HAVE_DAQ_VERDICT_RETRY],[1],
214@@ -887,17 +783,7 @@ if test "x$have_daq_verdict_retry" = "xyes"; then
215 fi
216
217 AC_MSG_CHECKING([for daq packet trace])
218-AC_RUN_IFELSE(
219-[AC_LANG_PROGRAM(
220-[[
221-#include <daq.h>
222-]],
223-[[
224- DAQ_PktHdr_t hdr;
225- hdr.flags = DAQ_PKT_FLAG_TRACE_ENABLED;
226-]])],
227-[have_daq_packet_trace="yes"],
228-[have_daq_packet_trace="no"])
229+have_daq_packet_trace="yes"
230 AC_MSG_RESULT($have_daq_packet_trace)
231 if test "x$have_daq_packet_trace" = "xyes"; then
232 AC_DEFINE([HAVE_DAQ_PKT_TRACE],[1],
233@@ -907,17 +793,7 @@ else
234 fi
235
236 AC_MSG_CHECKING([for daq verdict reason])
237-AC_RUN_IFELSE(
238-[AC_LANG_PROGRAM(
239-[[
240-#include <daq.h>
241-]],
242-[[
243- DAQ_ModFlow_t fl;
244- fl.type = DAQ_MODFLOW_TYPE_VER_REASON;
245-]])],
246-[have_daq_verdict_reason="yes"],
247-[have_daq_verdict_reason="no"])
248+have_daq_verdict_reason="yes"
249 AC_MSG_RESULT($have_daq_verdict_reason)
250 if test "x$have_daq_verdict_reason" = "xyes"; then
251 AC_DEFINE([HAVE_DAQ_VERDICT_REASON],[1],
252--
2532.7.4
254
diff --git a/meta-networking/recipes-connectivity/snort/snort_2.9.7.5.bb b/meta-networking/recipes-connectivity/snort/snort_2.9.11.1.bb
index 24b91b95f..fdf41bfbd 100644
--- a/meta-networking/recipes-connectivity/snort/snort_2.9.7.5.bb
+++ b/meta-networking/recipes-connectivity/snort/snort_2.9.11.1.bb
@@ -6,19 +6,15 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=78fa8ef966b48fbf9095e13cc92377c5"
6 6
7DEPENDS = "xz libpcap libpcre daq libdnet util-linux daq-native libtirpc" 7DEPENDS = "xz libpcap libpcre daq libdnet util-linux daq-native libtirpc"
8 8
9SRC_URI = " ${GENTOO_MIRROR}/${BP}.tar.gz;name=tarball \ 9SRC_URI = "https://www.snort.org/downloads/snort/${BP}.tar.gz \
10 file://snort.init \ 10 file://snort.init \
11 file://disable-inaddr-none.patch \
12 file://disable-dap-address-space-id.patch \
13 file://disable-daq-flow-id.patch \
14 file://disable-daq-verdict-retry.patch \
15 file://0001-libpcap-search-sysroot-for-headers.patch \ 11 file://0001-libpcap-search-sysroot-for-headers.patch \
16 file://0001-fix-do_package-failed-since-snort-2.9.7.0.patch \
17 file://fix-host-contamination-when-enable-static-daq.patch \ 12 file://fix-host-contamination-when-enable-static-daq.patch \
13 file://disable-run-test-program-while-cross-compiling.patch \
18" 14"
19 15
20SRC_URI[tarball.md5sum] = "fd271788c0f8876be87a858a9142f202" 16SRC_URI[md5sum] = "378e3938b2b5c8e358f942d0ffce18cc"
21SRC_URI[tarball.sha256sum] = "ad03f11b5301b16642199a86aa90388eaa53f5003f83b0c5595745a490047be1" 17SRC_URI[sha256sum] = "9f6b3aeac5a109f55504bd370564ac431cb1773507929dc461626898f33f46cd"
22 18
23UPSTREAM_CHECK_URI = "https://www.snort.org/downloads" 19UPSTREAM_CHECK_URI = "https://www.snort.org/downloads"
24UPSTREAM_CHECK_REGEX = "snort-(?P<pver>\d+(\.\d+)+)\.tar" 20UPSTREAM_CHECK_REGEX = "snort-(?P<pver>\d+(\.\d+)+)\.tar"