diff options
| author | Armin Kuster <akuster808@gmail.com> | 2021-07-29 16:31:12 -0700 |
|---|---|---|
| committer | Armin Kuster <akuster808@gmail.com> | 2021-08-01 08:47:08 -0700 |
| commit | 11a67b861af74d59ccfd609d6d943e966ccff731 (patch) | |
| tree | ce619cf42798050439a4c04ed471ed293f17ede4 /recipes-ids/samhain | |
| parent | d3a484abf81fc196389480df89cf5c82d13e6381 (diff) | |
| download | meta-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.bb | 4 | ||||
| -rw-r--r-- | recipes-ids/samhain/samhain-server.bb | 6 | ||||
| -rw-r--r-- | recipes-ids/samhain/samhain-standalone.bb | 8 | ||||
| -rw-r--r-- | recipes-ids/samhain/samhain.inc | 20 |
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 | ||
| 11 | RDEPENDS_${PN} = "acl zlib attr bash" | 11 | RDEPENDS:${PN} = "acl zlib attr bash" |
| 12 | RCONFLICTS_${PN} = "samhain-standalone" | 12 | RCONFLICTS:${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 | ||
| 11 | TARGET_CC_ARCH += "${LDFLAGS}" | 11 | TARGET_CC_ARCH += "${LDFLAGS}" |
| 12 | 12 | ||
| 13 | do_install_append() { | 13 | do_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 | ||
| 28 | RDEPENDS_${PN} += "gmp bash perl" | 28 | RDEPENDS:${PN} += "gmp bash perl" |
| 29 | RCONFLICTS_${PN} = "samhain-standalone" | 29 | RCONFLICTS:${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 | ||
| 7 | PROVIDES += "samhain" | 7 | PROVIDES += "samhain" |
| 8 | 8 | ||
| 9 | SYSTEMD_SERVICE_${PN} = "samhain.service" | 9 | SYSTEMD_SERVICE:${PN} = "samhain.service" |
| 10 | 10 | ||
| 11 | inherit ptest | 11 | inherit ptest |
| 12 | 12 | ||
| @@ -18,7 +18,7 @@ do_compile() { | |||
| 18 | oe_runmake "$@" | 18 | oe_runmake "$@" |
| 19 | } | 19 | } |
| 20 | 20 | ||
| 21 | do_install_append() { | 21 | do_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 | ||
| 30 | RPROVIDES_${PN} += "samhain" | 30 | RPROVIDES:${PN} += "samhain" |
| 31 | RCONFLICTS_${PN} = "samhain-client samhain-server" | 31 | RCONFLICTS:${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}" | |||
| 37 | INITSCRIPT_PARAMS ?= "defaults" | 37 | INITSCRIPT_PARAMS ?= "defaults" |
| 38 | 38 | ||
| 39 | SYSTEMD_PACKAGES = "${PN}" | 39 | SYSTEMD_PACKAGES = "${PN}" |
| 40 | SYSTEMD_SERVICE_${PN} = "${INITSCRIPT_NAME}.service" | 40 | SYSTEMD_SERVICE:${PN} = "${INITSCRIPT_NAME}.service" |
| 41 | SYSTEMD_AUTO_ENABLE = "disable" | 41 | SYSTEMD_AUTO_ENABLE = "disable" |
| 42 | 42 | ||
| 43 | # mode mapping: | 43 | # mode mapping: |
| @@ -67,23 +67,23 @@ PACKAGECONFIG[acl] = " --enable-posix-acl , --disable-posix-acl, acl" | |||
| 67 | PACKAGECONFIG[audit] = "ac_cv_header_auparse_h=yes,ac_cv_header_auparse_h=no,audit" | 67 | PACKAGECONFIG[audit] = "ac_cv_header_auparse_h=yes,ac_cv_header_auparse_h=no,audit" |
| 68 | PACKAGECONFIG[ps] = "--with-ps-path=${base_bindir}/ps,,,procps" | 68 | PACKAGECONFIG[ps] = "--with-ps-path=${base_bindir}/ps,,,procps" |
| 69 | 69 | ||
| 70 | EXTRA_OEMAKE_append_aarch64 = " CPPFLAGS+=-DCONFIG_ARCH_AARCH64=1" | 70 | EXTRA_OEMAKE:append:aarch64 = " CPPFLAGS+=-DCONFIG_ARCH_AARCH64=1" |
| 71 | EXTRA_OEMAKE_append_mips64 = " CPPFLAGS+=-DCONFIG_ARCH_MIPS64=1" | 71 | EXTRA_OEMAKE:append:mips64 = " CPPFLAGS+=-DCONFIG_ARCH_MIPS64=1" |
| 72 | 72 | ||
| 73 | do_unpack_samhain() { | 73 | do_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 | ||
| 78 | python do_unpack_append() { | 78 | python 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 | ||
| 82 | do_configure_prepend_arm() { | 82 | do_configure:prepend:arm() { |
| 83 | export sh_cv___va_copy=yes | 83 | export sh_cv___va_copy=yes |
| 84 | } | 84 | } |
| 85 | 85 | ||
| 86 | do_configure_prepend_aarch64() { | 86 | do_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" |
| 94 | do_configure_prepend () { | 94 | do_configure:prepend () { |
| 95 | cat << EOF > ${S}/config-site.${BP} | 95 | cat << EOF > ${S}/config-site.${BP} |
| 96 | ssp_cv_lib=no | 96 | ssp_cv_lib=no |
| 97 | sh_cv_va_copy=yes | 97 | sh_cv_va_copy=yes |
| @@ -124,13 +124,13 @@ do_configure () { | |||
| 124 | ${EXTRA_OECONF} | 124 | ${EXTRA_OECONF} |
| 125 | } | 125 | } |
| 126 | 126 | ||
| 127 | do_compile_prepend_libc-musl () { | 127 | do_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. |
| 133 | do_install_append () { | 133 | do_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 | ||
| 168 | FILES_${PN} += "${systemd_system_unitdir}" | 168 | FILES:${PN} += "${systemd_system_unitdir}" |
