diff options
author | Zhiquan Li <zhiquan.li@windriver.com> | 2015-11-16 10:23:00 +0800 |
---|---|---|
committer | Joe MacDonald <joe_macdonald@mentor.com> | 2015-11-30 13:00:15 -0500 |
commit | 49fa307d479376ce8404d24c6d6d7142dcd941fb (patch) | |
tree | 20d1d22ac899e8af1b621e5793e834d440399aee /meta-networking/recipes-connectivity/snort | |
parent | 20b63d32bce7e09a72e945313717702201b6484d (diff) | |
download | meta-openembedded-49fa307d479376ce8404d24c6d6d7142dcd941fb.tar.gz |
snort: 2.9.6.0 -> 2.9.7.5
Upgrade snort from 2.9.6.0 to 2.9.7.5, as its dependency upgrade daq from
2.0.2 to 2.0.6, and accordingly update the patches:
* Add 2 new patches for snort to solve the cross compile issues
* Discard 2 snort patches since it is not needed
* Refresh the patch for daq new version
* Remove redundant '/' to getting round the rpm debugedit bug:
canonicalization unexpectedly shrank character
Signed-off-by: Zhiquan Li <zhiquan.li@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Diffstat (limited to 'meta-networking/recipes-connectivity/snort')
-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 |
6 files changed, 150 insertions, 311 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 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 | ||