diff options
Diffstat (limited to 'recipes-security/suricata/suricata_4.0.0.bb')
-rw-r--r-- | recipes-security/suricata/suricata_4.0.0.bb | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/recipes-security/suricata/suricata_4.0.0.bb b/recipes-security/suricata/suricata_4.0.0.bb index 7ab3077..91136bf 100644 --- a/recipes-security/suricata/suricata_4.0.0.bb +++ b/recipes-security/suricata/suricata_4.0.0.bb | |||
@@ -7,9 +7,10 @@ LIC_FILES_CHKSUM = "file://LICENSE;beginline=1;endline=2;md5=c70d8d3310941dcdfcd | |||
7 | SRC_URI += " \ | 7 | SRC_URI += " \ |
8 | file://volatiles.03_suricata \ | 8 | file://volatiles.03_suricata \ |
9 | file://suricata.yaml \ | 9 | file://suricata.yaml \ |
10 | file://suricata.service \ | ||
10 | " | 11 | " |
11 | 12 | ||
12 | inherit autotools-brokensep pkgconfig python-dir | 13 | inherit autotools-brokensep pkgconfig python-dir systemd |
13 | 14 | ||
14 | CFLAGS += "-D_DEFAULT_SOURCE" | 15 | CFLAGS += "-D_DEFAULT_SOURCE" |
15 | 16 | ||
@@ -45,6 +46,16 @@ do_install_append () { | |||
45 | install -m 644 reference.config ${D}${sysconfdir}/suricata | 46 | install -m 644 reference.config ${D}${sysconfdir}/suricata |
46 | install -m 644 ${WORKDIR}/suricata.yaml ${D}${sysconfdir}/suricata | 47 | install -m 644 ${WORKDIR}/suricata.yaml ${D}${sysconfdir}/suricata |
47 | install -m 0644 ${WORKDIR}/volatiles.03_suricata ${D}${sysconfdir}/default/volatiles/volatiles.03_suricata | 48 | install -m 0644 ${WORKDIR}/volatiles.03_suricata ${D}${sysconfdir}/default/volatiles/volatiles.03_suricata |
49 | |||
50 | install -d ${D}${systemd_unitdir}/system | ||
51 | sed -e s:/etc:${sysconfdir}:g \ | ||
52 | -e s:/var/run:/run:g \ | ||
53 | -e s:/var:${localstatedir}:g \ | ||
54 | -e s:/usr/bin:${bindir}:g \ | ||
55 | -e s:/bin/kill:${base_bindir}/kill:g \ | ||
56 | -e s:/usr/lib:${libdir}:g \ | ||
57 | ${WORKDIR}/suricata.service > ${D}${systemd_unitdir}/system/suricata.service | ||
58 | |||
48 | } | 59 | } |
49 | 60 | ||
50 | pkg_postinst_ontarget_${PN} () { | 61 | pkg_postinst_ontarget_${PN} () { |
@@ -53,8 +64,10 @@ if [ -e /etc/init.d/populate-volatile.sh ] ; then | |||
53 | fi | 64 | fi |
54 | } | 65 | } |
55 | 66 | ||
67 | SYSTEMD_PACKAGES = "${PN}" | ||
68 | |||
56 | PACKAGES =+ "${PN}-python" | 69 | PACKAGES =+ "${PN}-python" |
57 | FILES_${PN} += "${logdir}/suricata" | 70 | FILES_${PN} += "${logdir}/suricata ${systemd_unitdir}" |
58 | FILES_${PN}-python = "${bindir}/suricatasc ${PYTHON_SITEPACKAGES_DIR}" | 71 | FILES_${PN}-python = "${bindir}/suricatasc ${PYTHON_SITEPACKAGES_DIR}" |
59 | 72 | ||
60 | CONFFILES_${PN} = "${sysconfdir}/suricata/suricata.yaml" | 73 | CONFFILES_${PN} = "${sysconfdir}/suricata/suricata.yaml" |