diff options
| author | Changqing Li <changqing.li@windriver.com> | 2024-05-28 13:44:06 +0800 |
|---|---|---|
| committer | Armin Kuster <akuster808@gmail.com> | 2024-06-17 08:25:25 -0400 |
| commit | ceb47a8a39c4cec612db63fab573124960f52a8d (patch) | |
| tree | 13ec8838f74f2318000f1433f8e7167b6ea41e40 /recipes-ids | |
| parent | 651767d0283e25e303ecfa64eb6d2940dfa58001 (diff) | |
| download | meta-security-ceb47a8a39c4cec612db63fab573124960f52a8d.tar.gz | |
recipes: WORKDIR -> UNPACKDIR transition
* WORKDIR -> UNPACKDIR transition
* Switch away from S = WORKDIR
Signed-off-by: Changqing Li <changqing.li@windriver.com>
[Fixed up the smack changes due to prior patch]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'recipes-ids')
| -rw-r--r-- | recipes-ids/samhain/samhain-server.bb | 4 | ||||
| -rw-r--r-- | recipes-ids/samhain/samhain.inc | 14 |
2 files changed, 9 insertions, 9 deletions
diff --git a/recipes-ids/samhain/samhain-server.bb b/recipes-ids/samhain/samhain-server.bb index 8bae2d2..030ec2b 100644 --- a/recipes-ids/samhain/samhain-server.bb +++ b/recipes-ids/samhain/samhain-server.bb | |||
| @@ -16,11 +16,11 @@ TARGET_CC_ARCH += "${LDFLAGS}" | |||
| 16 | do_install:append() { | 16 | do_install:append() { |
| 17 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | 17 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then |
| 18 | install -d ${D}${sysconfdir}/tmpfiles.d | 18 | install -d ${D}${sysconfdir}/tmpfiles.d |
| 19 | install -m 0644 ${WORKDIR}/samhain-server-volatiles.conf \ | 19 | install -m 0644 ${UNPACKDIR}/samhain-server-volatiles.conf \ |
| 20 | ${D}${sysconfdir}/tmpfiles.d/samhain-server.conf | 20 | ${D}${sysconfdir}/tmpfiles.d/samhain-server.conf |
| 21 | else | 21 | else |
| 22 | install -d ${D}${sysconfdir}/default/volatiles | 22 | install -d ${D}${sysconfdir}/default/volatiles |
| 23 | install -m 0644 ${WORKDIR}/samhain-server-volatiles \ | 23 | install -m 0644 ${UNPACKDIR}/samhain-server-volatiles \ |
| 24 | ${D}${sysconfdir}/default/volatiles/samhain-server | 24 | ${D}${sysconfdir}/default/volatiles/samhain-server |
| 25 | fi | 25 | fi |
| 26 | 26 | ||
diff --git a/recipes-ids/samhain/samhain.inc b/recipes-ids/samhain/samhain.inc index f5bea1d..61ec0da 100644 --- a/recipes-ids/samhain/samhain.inc +++ b/recipes-ids/samhain/samhain.inc | |||
| @@ -64,8 +64,8 @@ EXTRA_OEMAKE:append:aarch64 = " CPPFLAGS+=-DCONFIG_ARCH_AARCH64=1" | |||
| 64 | EXTRA_OEMAKE:append:mips64 = " CPPFLAGS+=-DCONFIG_ARCH_MIPS64=1" | 64 | EXTRA_OEMAKE:append:mips64 = " CPPFLAGS+=-DCONFIG_ARCH_MIPS64=1" |
| 65 | 65 | ||
| 66 | do_unpack_samhain() { | 66 | do_unpack_samhain() { |
| 67 | cd ${WORKDIR} | 67 | cd ${UNPACKDIR} |
| 68 | tar -xzvf samhain-${PV}.tar.gz | 68 | tar -xzvf samhain-${PV}.tar.gz -C ${WORKDIR} |
| 69 | } | 69 | } |
| 70 | 70 | ||
| 71 | python do_unpack:append() { | 71 | python do_unpack:append() { |
| @@ -129,19 +129,19 @@ do_compile:prepend:libc-musl () { | |||
| 129 | do_install:append () { | 129 | do_install:append () { |
| 130 | oe_runmake install DESTDIR='${D}' INSTALL=install-boot | 130 | oe_runmake install DESTDIR='${D}' INSTALL=install-boot |
| 131 | 131 | ||
| 132 | install -D -m 755 ${WORKDIR}/${INITSCRIPT_NAME}.init \ | 132 | install -D -m 755 ${UNPACKDIR}/${INITSCRIPT_NAME}.init \ |
| 133 | ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME} | 133 | ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME} |
| 134 | 134 | ||
| 135 | install -D -m 755 ${WORKDIR}/${INITSCRIPT_NAME}.default \ | 135 | install -D -m 755 ${UNPACKDIR}/${INITSCRIPT_NAME}.default \ |
| 136 | ${D}${sysconfdir}/default/${INITSCRIPT_NAME} | 136 | ${D}${sysconfdir}/default/${INITSCRIPT_NAME} |
| 137 | 137 | ||
| 138 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then | 138 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then |
| 139 | if [ "${SAMHAIN_MODE}" = "no" ]; then | 139 | if [ "${SAMHAIN_MODE}" = "no" ]; then |
| 140 | install -D -m 0644 ${WORKDIR}/samhain.service ${D}/${systemd_system_unitdir}/samhain.service | 140 | install -D -m 0644 ${UNPACKDIR}/samhain.service ${D}/${systemd_system_unitdir}/samhain.service |
| 141 | else | 141 | else |
| 142 | install -D -m 0644 ${WORKDIR}/samhain.service ${D}/${systemd_system_unitdir}/${BPN}.service | 142 | install -D -m 0644 ${UNPACKDIR}/samhain.service ${D}/${systemd_system_unitdir}/${BPN}.service |
| 143 | fi | 143 | fi |
| 144 | install -D -m 0755 ${WORKDIR}/${BPN}.init ${D}/${libexecdir}/${BPN} | 144 | install -D -m 0755 ${UNPACKDIR}/${BPN}.init ${D}/${libexecdir}/${BPN} |
| 145 | sed -i -e 's,@LIBDIR@,${libexecdir},' \ | 145 | sed -i -e 's,@LIBDIR@,${libexecdir},' \ |
| 146 | -e 's,@SAMHAIN_HELPER@,${BPN},' \ | 146 | -e 's,@SAMHAIN_HELPER@,${BPN},' \ |
| 147 | -e 's,@MODE_NAME@,${MODE_NAME},' \ | 147 | -e 's,@MODE_NAME@,${MODE_NAME},' \ |
