diff options
Diffstat (limited to 'meta-networking/recipes-connectivity/snort/snort_2.9.6.0.bb')
-rw-r--r-- | meta-networking/recipes-connectivity/snort/snort_2.9.6.0.bb | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/meta-networking/recipes-connectivity/snort/snort_2.9.6.0.bb b/meta-networking/recipes-connectivity/snort/snort_2.9.6.0.bb new file mode 100644 index 000000000..aba285071 --- /dev/null +++ b/meta-networking/recipes-connectivity/snort/snort_2.9.6.0.bb | |||
@@ -0,0 +1,73 @@ | |||
1 | DESCRIPTION = "snort - a free lightweight network intrusion detection system for UNIX and Windows." | ||
2 | HOMEPAGE = "http://www.snort.org/" | ||
3 | LICENSE = "GPL-2.0" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=78fa8ef966b48fbf9095e13cc92377c5" | ||
5 | |||
6 | DEPENDS = "libpcap libpcre daq libdnet" | ||
7 | |||
8 | |||
9 | SRC_URI = " ${GENTOO_MIRROR}/${BP}.tar.gz;name=tarball \ | ||
10 | file://snort.init \ | ||
11 | file://disable-inaddr-none.patch \ | ||
12 | file://disable-dap-address-space-id.patch \ | ||
13 | file://0001-libpcap-search-sysroot-for-headers.patch \ | ||
14 | " | ||
15 | |||
16 | SRC_URI[tarball.md5sum] = "18111f6de3989ca89add36077a7c2659" | ||
17 | SRC_URI[tarball.sha256sum] = "3cc6c8a9b52f4c863a5736a73b4012aff340b50b5e002771b04d4877f47cd19e" | ||
18 | |||
19 | inherit autotools gettext update-rc.d | ||
20 | |||
21 | INITSCRIPT_NAME = "snort" | ||
22 | INITSCRIPT_PARAMS = "defaults" | ||
23 | |||
24 | EXTRA_OECONF = " \ | ||
25 | --enable-gre \ | ||
26 | --enable-linux-smp-stats \ | ||
27 | --enable-reload \ | ||
28 | --enable-reload-error-restart \ | ||
29 | --enable-targetbased \ | ||
30 | --disable-static-daq \ | ||
31 | --with-dnet-includes=${STAGING_INCDIR} \ | ||
32 | --with-dnet-libraries=${STAGING_LIBDIR} \ | ||
33 | " | ||
34 | |||
35 | do_install_append() { | ||
36 | install -d ${D}/${sysconfdir}/snort/rules | ||
37 | install -d ${D}/${sysconfdir}/snort/preproc_rules | ||
38 | install -d ${D}${sysconfdir}/init.d | ||
39 | for i in map config conf dtd; do | ||
40 | cp ${S}/etc/*.$i ${D}/${sysconfdir}/snort/ | ||
41 | done | ||
42 | cp ${S}/preproc_rules/*.rules ${D}/${sysconfdir}/snort/preproc_rules/ | ||
43 | install -m 755 ${WORKDIR}/snort.init ${D}/${sysconfdir}/init.d/snort | ||
44 | mkdir -p ${D}/${localstatedir}/log/snort | ||
45 | install -d ${D}/var/log/snort | ||
46 | } | ||
47 | |||
48 | FILES_${PN} += " \ | ||
49 | ${libdir}/snort_dynamicengine/*.so.* \ | ||
50 | ${libdir}/snort_dynamicpreprocessor/*.so.* \ | ||
51 | ${libdir}/snort_dynamicrules/*.so.* \ | ||
52 | " | ||
53 | FILES_${PN}-dbg += " \ | ||
54 | ${libdir}/snort_dynamicengine/.debug \ | ||
55 | ${libdir}/snort_dynamicpreprocessor/.debug \ | ||
56 | ${libdir}/snort_dynamicrules/.debug \ | ||
57 | " | ||
58 | FILES_${PN}-staticdev += " \ | ||
59 | ${libdir}/snort_dynamicengine/*.a \ | ||
60 | ${libdir}/snort_dynamicpreprocessor/*.a \ | ||
61 | ${libdir}/snort_dynamicrules/*.a \ | ||
62 | ${libdir}/snort/dynamic_preproc/*.a \ | ||
63 | ${libdir}/snort/dynamic_output/*.a \ | ||
64 | " | ||
65 | FILES_${PN}-dev += " \ | ||
66 | ${libdir}/snort_dynamicengine/*.la \ | ||
67 | ${libdir}/snort_dynamicpreprocessor/*.la \ | ||
68 | ${libdir}/snort_dynamicrules/*.la \ | ||
69 | ${libdir}/snort_dynamicengine/*.so \ | ||
70 | ${libdir}/snort_dynamicpreprocessor/*.so \ | ||
71 | ${libdir}/snort_dynamicrules/*.so \ | ||
72 | ${prefix}/src/snort_dynamicsrc \ | ||
73 | " | ||