diff options
| -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 0000000000..acf5f61ab6 --- /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 6ead49bb61..892fe4d4cd 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.* \ |
