summaryrefslogtreecommitdiffstats
path: root/recipes-ids/samhain
diff options
context:
space:
mode:
authorArmin Kuster <akuster808@gmail.com>2021-07-29 16:31:12 -0700
committerArmin Kuster <akuster808@gmail.com>2021-08-01 08:47:08 -0700
commit11a67b861af74d59ccfd609d6d943e966ccff731 (patch)
treece619cf42798050439a4c04ed471ed293f17ede4 /recipes-ids/samhain
parentd3a484abf81fc196389480df89cf5c82d13e6381 (diff)
downloadmeta-security-11a67b861af74d59ccfd609d6d943e966ccff731.tar.gz
meta-security: Convert to new override syntax
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'recipes-ids/samhain')
-rw-r--r--recipes-ids/samhain/samhain-client.bb4
-rw-r--r--recipes-ids/samhain/samhain-server.bb6
-rw-r--r--recipes-ids/samhain/samhain-standalone.bb8
-rw-r--r--recipes-ids/samhain/samhain.inc20
4 files changed, 19 insertions, 19 deletions
diff --git a/recipes-ids/samhain/samhain-client.bb b/recipes-ids/samhain/samhain-client.bb
index 0f53a8c..2b99e20 100644
--- a/recipes-ids/samhain/samhain-client.bb
+++ b/recipes-ids/samhain/samhain-client.bb
@@ -8,5 +8,5 @@ EXTRA_OECONF += " \
8 --with-port=${SAMHAIN_PORT} \ 8 --with-port=${SAMHAIN_PORT} \
9 " 9 "
10 10
11RDEPENDS_${PN} = "acl zlib attr bash" 11RDEPENDS:${PN} = "acl zlib attr bash"
12RCONFLICTS_${PN} = "samhain-standalone" 12RCONFLICTS:${PN} = "samhain-standalone"
diff --git a/recipes-ids/samhain/samhain-server.bb b/recipes-ids/samhain/samhain-server.bb
index e7a3aa6..51bce07 100644
--- a/recipes-ids/samhain/samhain-server.bb
+++ b/recipes-ids/samhain/samhain-server.bb
@@ -10,7 +10,7 @@ SRC_URI += "file://samhain-server-volatiles \
10 10
11TARGET_CC_ARCH += "${LDFLAGS}" 11TARGET_CC_ARCH += "${LDFLAGS}"
12 12
13do_install_append() { 13do_install:append() {
14 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then 14 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
15 install -d ${D}${sysconfdir}/tmpfiles.d 15 install -d ${D}${sysconfdir}/tmpfiles.d
16 install -m 0644 ${WORKDIR}/samhain-server-volatiles.conf \ 16 install -m 0644 ${WORKDIR}/samhain-server-volatiles.conf \
@@ -25,5 +25,5 @@ do_install_append() {
25 init/samhain.startLSB ${D}/var/lib/samhain 25 init/samhain.startLSB ${D}/var/lib/samhain
26} 26}
27 27
28RDEPENDS_${PN} += "gmp bash perl" 28RDEPENDS:${PN} += "gmp bash perl"
29RCONFLICTS_${PN} = "samhain-standalone" 29RCONFLICTS:${PN} = "samhain-standalone"
diff --git a/recipes-ids/samhain/samhain-standalone.bb b/recipes-ids/samhain/samhain-standalone.bb
index 4fed9e9..445cb99 100644
--- a/recipes-ids/samhain/samhain-standalone.bb
+++ b/recipes-ids/samhain/samhain-standalone.bb
@@ -6,7 +6,7 @@ SRC_URI += "file://samhain-not-run-ptest-on-host.patch \
6 6
7PROVIDES += "samhain" 7PROVIDES += "samhain"
8 8
9SYSTEMD_SERVICE_${PN} = "samhain.service" 9SYSTEMD_SERVICE:${PN} = "samhain.service"
10 10
11inherit ptest 11inherit ptest
12 12
@@ -18,7 +18,7 @@ do_compile() {
18 oe_runmake "$@" 18 oe_runmake "$@"
19} 19}
20 20
21do_install_append() { 21do_install:append() {
22 ln -sf ${INITSCRIPT_NAME} ${D}${sysconfdir}/init.d/samhain 22 ln -sf ${INITSCRIPT_NAME} ${D}${sysconfdir}/init.d/samhain
23} 23}
24 24
@@ -27,5 +27,5 @@ do_install_ptest() {
27 install ${S}/cutest ${D}${PTEST_PATH} 27 install ${S}/cutest ${D}${PTEST_PATH}
28} 28}
29 29
30RPROVIDES_${PN} += "samhain" 30RPROVIDES:${PN} += "samhain"
31RCONFLICTS_${PN} = "samhain-client samhain-server" 31RCONFLICTS:${PN} = "samhain-client samhain-server"
diff --git a/recipes-ids/samhain/samhain.inc b/recipes-ids/samhain/samhain.inc
index 0148e46..97f5f2d 100644
--- a/recipes-ids/samhain/samhain.inc
+++ b/recipes-ids/samhain/samhain.inc
@@ -37,7 +37,7 @@ INITSCRIPT_NAME = "${BPN}"
37INITSCRIPT_PARAMS ?= "defaults" 37INITSCRIPT_PARAMS ?= "defaults"
38 38
39SYSTEMD_PACKAGES = "${PN}" 39SYSTEMD_PACKAGES = "${PN}"
40SYSTEMD_SERVICE_${PN} = "${INITSCRIPT_NAME}.service" 40SYSTEMD_SERVICE:${PN} = "${INITSCRIPT_NAME}.service"
41SYSTEMD_AUTO_ENABLE = "disable" 41SYSTEMD_AUTO_ENABLE = "disable"
42 42
43# mode mapping: 43# mode mapping:
@@ -67,23 +67,23 @@ PACKAGECONFIG[acl] = " --enable-posix-acl , --disable-posix-acl, acl"
67PACKAGECONFIG[audit] = "ac_cv_header_auparse_h=yes,ac_cv_header_auparse_h=no,audit" 67PACKAGECONFIG[audit] = "ac_cv_header_auparse_h=yes,ac_cv_header_auparse_h=no,audit"
68PACKAGECONFIG[ps] = "--with-ps-path=${base_bindir}/ps,,,procps" 68PACKAGECONFIG[ps] = "--with-ps-path=${base_bindir}/ps,,,procps"
69 69
70EXTRA_OEMAKE_append_aarch64 = " CPPFLAGS+=-DCONFIG_ARCH_AARCH64=1" 70EXTRA_OEMAKE:append:aarch64 = " CPPFLAGS+=-DCONFIG_ARCH_AARCH64=1"
71EXTRA_OEMAKE_append_mips64 = " CPPFLAGS+=-DCONFIG_ARCH_MIPS64=1" 71EXTRA_OEMAKE:append:mips64 = " CPPFLAGS+=-DCONFIG_ARCH_MIPS64=1"
72 72
73do_unpack_samhain() { 73do_unpack_samhain() {
74 cd ${WORKDIR} 74 cd ${WORKDIR}
75 tar -xzvf samhain-${PV}.tar.gz 75 tar -xzvf samhain-${PV}.tar.gz
76} 76}
77 77
78python do_unpack_append() { 78python do_unpack:append() {
79 bb.build.exec_func('do_unpack_samhain', d) 79 bb.build.exec_func('do_unpack_samhain', d)
80} 80}
81 81
82do_configure_prepend_arm() { 82do_configure:prepend:arm() {
83 export sh_cv___va_copy=yes 83 export sh_cv___va_copy=yes
84} 84}
85 85
86do_configure_prepend_aarch64() { 86do_configure:prepend:aarch64() {
87 export sh_cv___va_copy=yes 87 export sh_cv___va_copy=yes
88} 88}
89 89
@@ -91,7 +91,7 @@ do_configure_prepend_aarch64() {
91# use the prefix --oldincludedir=/usr/include which is not 91# use the prefix --oldincludedir=/usr/include which is not
92# recognized by Samhain's configure script and would invariably 92# recognized by Samhain's configure script and would invariably
93# throw back the error "unrecognized option: --oldincludedir=/usr/include" 93# throw back the error "unrecognized option: --oldincludedir=/usr/include"
94do_configure_prepend () { 94do_configure:prepend () {
95 cat << EOF > ${S}/config-site.${BP} 95 cat << EOF > ${S}/config-site.${BP}
96ssp_cv_lib=no 96ssp_cv_lib=no
97sh_cv_va_copy=yes 97sh_cv_va_copy=yes
@@ -124,13 +124,13 @@ do_configure () {
124 ${EXTRA_OECONF} 124 ${EXTRA_OECONF}
125} 125}
126 126
127do_compile_prepend_libc-musl () { 127do_compile:prepend:libc-musl () {
128 sed -i 's/^#define HAVE_MALLOC_H.*//' ${B}/config.h 128 sed -i 's/^#define HAVE_MALLOC_H.*//' ${B}/config.h
129} 129}
130 130
131# Install the init script, it's default file, and the extraneous 131# Install the init script, it's default file, and the extraneous
132# documentation. 132# documentation.
133do_install_append () { 133do_install:append () {
134 oe_runmake install DESTDIR='${D}' INSTALL=install-boot 134 oe_runmake install DESTDIR='${D}' INSTALL=install-boot
135 135
136 install -D -m 755 ${WORKDIR}/${INITSCRIPT_NAME}.init \ 136 install -D -m 755 ${WORKDIR}/${INITSCRIPT_NAME}.init \
@@ -165,4 +165,4 @@ do_install_append () {
165 rm -rf ${D}${localstatedir}/log 165 rm -rf ${D}${localstatedir}/log
166} 166}
167 167
168FILES_${PN} += "${systemd_system_unitdir}" 168FILES:${PN} += "${systemd_system_unitdir}"