diff options
author | Yi Zhao <yi.zhao@windriver.com> | 2019-08-09 15:07:31 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-08-11 08:58:05 -0700 |
commit | 493aa5b8967f632912acc5d9becf97e50f93cbd1 (patch) | |
tree | 983f1f5a6b43570c4b517d903ff3abe03c7179ab | |
parent | 58c865e46d1431ea6aad1ab24452f9bb3992f1b0 (diff) | |
download | meta-openembedded-493aa5b8967f632912acc5d9becf97e50f93cbd1.tar.gz |
snort: upgrade 2.9.14 -> 2.9.14.1
Add volatile conf to create log directory.
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-networking/recipes-connectivity/snort/snort/volatiles.99_snort | 2 | ||||
-rw-r--r-- | meta-networking/recipes-connectivity/snort/snort_2.9.14.1.bb (renamed from meta-networking/recipes-connectivity/snort/snort_2.9.14.bb) | 16 |
2 files changed, 14 insertions, 4 deletions
diff --git a/meta-networking/recipes-connectivity/snort/snort/volatiles.99_snort b/meta-networking/recipes-connectivity/snort/snort/volatiles.99_snort new file mode 100644 index 000000000..acf5f61ab --- /dev/null +++ b/meta-networking/recipes-connectivity/snort/snort/volatiles.99_snort | |||
@@ -0,0 +1,2 @@ | |||
1 | # <type> <owner> <group> <mode> <path> <linksource> | ||
2 | d root root 0755 /var/log/snort none | ||
diff --git a/meta-networking/recipes-connectivity/snort/snort_2.9.14.bb b/meta-networking/recipes-connectivity/snort/snort_2.9.14.1.bb index 6ead49bb6..892fe4d4c 100644 --- a/meta-networking/recipes-connectivity/snort/snort_2.9.14.bb +++ b/meta-networking/recipes-connectivity/snort/snort_2.9.14.1.bb | |||
@@ -8,6 +8,7 @@ DEPENDS = "xz libpcap libpcre daq libdnet util-linux daq-native libtirpc bison-n | |||
8 | 8 | ||
9 | SRC_URI = "https://www.snort.org/downloads/archive/snort/${BP}.tar.gz \ | 9 | SRC_URI = "https://www.snort.org/downloads/archive/snort/${BP}.tar.gz \ |
10 | file://snort.init \ | 10 | file://snort.init \ |
11 | file://volatiles.99_snort \ | ||
11 | file://0001-libpcap-search-sysroot-for-headers.patch \ | 12 | file://0001-libpcap-search-sysroot-for-headers.patch \ |
12 | file://fix-host-contamination-when-enable-static-daq.patch \ | 13 | file://fix-host-contamination-when-enable-static-daq.patch \ |
13 | file://disable-run-test-program-while-cross-compiling.patch \ | 14 | file://disable-run-test-program-while-cross-compiling.patch \ |
@@ -15,8 +16,8 @@ SRC_URI = "https://www.snort.org/downloads/archive/snort/${BP}.tar.gz \ | |||
15 | file://0001-chdeck-for-gettid-API-during-configure.patch \ | 16 | file://0001-chdeck-for-gettid-API-during-configure.patch \ |
16 | " | 17 | " |
17 | 18 | ||
18 | SRC_URI[md5sum] = "d1689c7ccaaa7bfcfa83b5bff6b8f9b8" | 19 | SRC_URI[md5sum] = "009254a9797ec93321c5936b99dcd6c8" |
19 | SRC_URI[sha256sum] = "c0306db9ce64f45cc7c64c9afc70abe9689daa860020345ec3ba099928b7464b" | 20 | SRC_URI[sha256sum] = "2472989da3aace000d1ea5931ece68f8e5cc0c511e272d65182113a2481e822d" |
20 | 21 | ||
21 | UPSTREAM_CHECK_URI = "https://www.snort.org/downloads" | 22 | UPSTREAM_CHECK_URI = "https://www.snort.org/downloads" |
22 | UPSTREAM_CHECK_REGEX = "snort-(?P<pver>\d+(\.\d+)+)\.tar" | 23 | UPSTREAM_CHECK_REGEX = "snort-(?P<pver>\d+(\.\d+)+)\.tar" |
@@ -72,12 +73,19 @@ do_install_append() { | |||
72 | 73 | ||
73 | cp ${S}/preproc_rules/*.rules ${D}${sysconfdir}/snort/preproc_rules/ | 74 | cp ${S}/preproc_rules/*.rules ${D}${sysconfdir}/snort/preproc_rules/ |
74 | install -m 755 ${WORKDIR}/snort.init ${D}${sysconfdir}/init.d/snort | 75 | install -m 755 ${WORKDIR}/snort.init ${D}${sysconfdir}/init.d/snort |
75 | mkdir -p ${D}${localstatedir}/log/snort | 76 | |
76 | install -d ${D}/var/log/snort | 77 | install -d ${D}${sysconfdir}/default/volatiles |
78 | install -m 0644 ${WORKDIR}/volatiles.99_snort ${D}${sysconfdir}/default/volatiles/99_snort | ||
77 | 79 | ||
78 | sed -i -e 's|-fdebug-prefix-map[^ ]*||g; s|-fmacro-prefix-map[^ ]*||g; s|${STAGING_DIR_TARGET}||g' ${D}${libdir}/pkgconfig/*.pc | 80 | sed -i -e 's|-fdebug-prefix-map[^ ]*||g; s|-fmacro-prefix-map[^ ]*||g; s|${STAGING_DIR_TARGET}||g' ${D}${libdir}/pkgconfig/*.pc |
79 | } | 81 | } |
80 | 82 | ||
83 | pkg_postinst_${PN}() { | ||
84 | if [ -z "$D" ] && [ -e ${sysconfdir}/init.d/populate-volatile.sh ]; then | ||
85 | ${sysconfdir}/init.d/populate-volatile.sh update | ||
86 | fi | ||
87 | } | ||
88 | |||
81 | FILES_${PN} += " \ | 89 | FILES_${PN} += " \ |
82 | ${libdir}/snort_dynamicengine/*.so.* \ | 90 | ${libdir}/snort_dynamicengine/*.so.* \ |
83 | ${libdir}/snort_dynamicpreprocessor/*.so.* \ | 91 | ${libdir}/snort_dynamicpreprocessor/*.so.* \ |