diff options
-rw-r--r-- | meta-networking/recipes-connectivity/snort/snort_2.9.7.5.bb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/meta-networking/recipes-connectivity/snort/snort_2.9.7.5.bb b/meta-networking/recipes-connectivity/snort/snort_2.9.7.5.bb index e189b0f56d..2034b85fb5 100644 --- a/meta-networking/recipes-connectivity/snort/snort_2.9.7.5.bb +++ b/meta-networking/recipes-connectivity/snort/snort_2.9.7.5.bb | |||
@@ -58,6 +58,17 @@ do_install_append() { | |||
58 | for i in map config conf dtd; do | 58 | for i in map config conf dtd; do |
59 | cp ${S}/etc/*.$i ${D}${sysconfdir}/snort/ | 59 | cp ${S}/etc/*.$i ${D}${sysconfdir}/snort/ |
60 | done | 60 | done |
61 | |||
62 | # fix the hardcoded path and lib name | ||
63 | # comment out the rules that are not provided | ||
64 | sed -i -e 's#/usr/local/lib#${libdir}#' \ | ||
65 | -e 's#\.\./\(.*rules\)#${sysconfdir}/snort/\1#' \ | ||
66 | -e 's#\(libsf_engine.so\)#\1.0#' \ | ||
67 | -e 's/^\(include $RULE_PATH\)/#\1/' \ | ||
68 | -e 's/^\(dynamicdetection\)/#\1/' \ | ||
69 | -e '/preprocessor reputation/,/blacklist/ s/^/#/' \ | ||
70 | ${D}${sysconfdir}/snort/snort.conf | ||
71 | |||
61 | cp ${S}/preproc_rules/*.rules ${D}${sysconfdir}/snort/preproc_rules/ | 72 | cp ${S}/preproc_rules/*.rules ${D}${sysconfdir}/snort/preproc_rules/ |
62 | install -m 755 ${WORKDIR}/snort.init ${D}${sysconfdir}/init.d/snort | 73 | install -m 755 ${WORKDIR}/snort.init ${D}${sysconfdir}/init.d/snort |
63 | mkdir -p ${D}${localstatedir}/log/snort | 74 | mkdir -p ${D}${localstatedir}/log/snort |