mirror of
https://git.yoctoproject.org/meta-security
synced 2026-07-16 03:47:21 +00:00
recipes-*: convert WORKDIR->UNPACKDIR
Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
@@ -35,7 +35,7 @@ do_install[nostamp] = "1"
|
||||
do_install:append () {
|
||||
install -d ${D}${libdir}/${PN}/logs
|
||||
install -d ${D}${sysconfdir}
|
||||
install ${WORKDIR}/aide.conf ${D}${sysconfdir}/
|
||||
install ${UNPACKDIR}/aide.conf ${D}${sysconfdir}/
|
||||
|
||||
for dir in ${AIDE_INCLUDE_DIRS}; do
|
||||
echo "${dir} NORMAL" >> ${D}${sysconfdir}/aide.conf
|
||||
@@ -50,7 +50,7 @@ do_install:class-native () {
|
||||
install -d ${STAGING_AIDE_DIR}/lib/logs
|
||||
|
||||
install ${B}/aide ${STAGING_AIDE_DIR}/bin
|
||||
install ${WORKDIR}/aide.conf ${STAGING_AIDE_DIR}/
|
||||
install ${UNPACKDIR}/aide.conf ${STAGING_AIDE_DIR}/
|
||||
|
||||
sed -i -s "s:\@\@define DBDIR.*:\@\@define DBDIR ${STAGING_AIDE_DIR}/lib:" ${STAGING_AIDE_DIR}/aide.conf
|
||||
sed -i -e "s:\@\@define LOGDIR.*:\@\@define LOGDIR ${STAGING_AIDE_DIR}/lib/logs:" ${STAGING_AIDE_DIR}/aide.conf
|
||||
|
||||
@@ -12,7 +12,7 @@ GO_IMPORT = "import"
|
||||
|
||||
inherit go
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
S = "${UNPACKDIR}/git"
|
||||
|
||||
do_compile() {
|
||||
export GOARCH="${TARGET_GOARCH}"
|
||||
|
||||
@@ -15,7 +15,7 @@ UPSTREAM_CHECK_COMMITS = "1"
|
||||
|
||||
inherit autotools-brokensep useradd
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
S = "${UNPACKDIR}/git"
|
||||
|
||||
|
||||
OSSEC_DIR="/var/ossec"
|
||||
|
||||
@@ -26,7 +26,7 @@ SRC_URI[sha256sum] = "ae6ee8eff3cb111b7fc14a57bcc258443dd0bcf1bfacfdf229935ed053
|
||||
UPSTREAM_CHECK_URI = "https://www.la-samhna.de/samhain/archive.html"
|
||||
UPSTREAM_CHECK_REGEX = "samhain_signed-(?P<pver>(\d+(\.\d+)+))\.tar"
|
||||
|
||||
S = "${WORKDIR}/samhain-${PV}"
|
||||
S = "${UNPACKDIR}/samhain-${PV}"
|
||||
|
||||
inherit autotools-brokensep update-rc.d pkgconfig systemd
|
||||
|
||||
@@ -65,7 +65,7 @@ EXTRA_OEMAKE:append:mips64 = " CPPFLAGS+=-DCONFIG_ARCH_MIPS64=1"
|
||||
|
||||
do_unpack_samhain() {
|
||||
cd ${UNPACKDIR}
|
||||
tar -xzvf samhain-${PV}.tar.gz -C ${WORKDIR}
|
||||
tar -xzvf samhain-${PV}.tar.gz -C ${UNPACKDIR}
|
||||
}
|
||||
|
||||
python do_unpack:append() {
|
||||
|
||||
@@ -13,9 +13,9 @@ inherit autotools-brokensep pkgconfig
|
||||
|
||||
CFLAGS += "-D_DEFAULT_SOURCE"
|
||||
|
||||
#S = "${WORKDIR}/suricata-${VER}/${BPN}"
|
||||
#S = "${UNPACKDIR}/suricata-${VER}/${BPN}"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
S = "${UNPACKDIR}/git"
|
||||
|
||||
do_configure () {
|
||||
cd ${S}
|
||||
|
||||
@@ -96,7 +96,7 @@ do_install () {
|
||||
|
||||
if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
|
||||
install -d ${D}${sysconfdir}/tmpfiles.d
|
||||
install -m 0644 ${WORKDIR}/tmpfiles.suricata ${D}${sysconfdir}/tmpfiles.d/suricata.conf
|
||||
install -m 0644 ${UNPACKDIR}/tmpfiles.suricata ${D}${sysconfdir}/tmpfiles.d/suricata.conf
|
||||
|
||||
install -d ${D}${systemd_unitdir}/system
|
||||
sed -e s:/etc:${sysconfdir}:g \
|
||||
@@ -105,7 +105,7 @@ do_install () {
|
||||
-e s:/usr/bin:${bindir}:g \
|
||||
-e s:/bin/kill:${base_bindir}/kill:g \
|
||||
-e s:/usr/lib:${libdir}:g \
|
||||
${WORKDIR}/suricata.service > ${D}${systemd_unitdir}/system/suricata.service
|
||||
${UNPACKDIR}/suricata.service > ${D}${systemd_unitdir}/system/suricata.service
|
||||
fi
|
||||
|
||||
# Remove /var/run as it is created on startup
|
||||
|
||||
@@ -19,7 +19,7 @@ SRC_URI = "\
|
||||
file://run-ptest \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
S = "${UNPACKDIR}/git"
|
||||
|
||||
inherit autotools-brokensep update-rc.d ptest
|
||||
|
||||
@@ -43,11 +43,11 @@ do_install () {
|
||||
install -m 0755 ${S}/bin/* ${D}${sbindir}
|
||||
install -m 0644 ${S}/lib/* ${D}${base_libdir}
|
||||
install -m 0644 ${S}/lib/* ${D}${localstatedir}/lib/${PN}
|
||||
install -m 0755 ${WORKDIR}/tripwire.cron ${D}${sysconfdir}
|
||||
install -m 0755 ${WORKDIR}/tripwire.sh ${D}${sysconfdir}/init.d/tripwire
|
||||
install -m 0755 ${WORKDIR}/twinstall.sh ${D}${sysconfdir}/${PN}
|
||||
install -m 0644 ${WORKDIR}/twpol-yocto.txt ${D}${sysconfdir}/${PN}/twpol.txt
|
||||
install -m 0644 ${WORKDIR}/twcfg.txt ${D}${sysconfdir}/${PN}
|
||||
install -m 0755 ${UNPACKDIR}/tripwire.cron ${D}${sysconfdir}
|
||||
install -m 0755 ${UNPACKDIR}/tripwire.sh ${D}${sysconfdir}/init.d/tripwire
|
||||
install -m 0755 ${UNPACKDIR}/twinstall.sh ${D}${sysconfdir}/${PN}
|
||||
install -m 0644 ${UNPACKDIR}/twpol-yocto.txt ${D}${sysconfdir}/${PN}/twpol.txt
|
||||
install -m 0644 ${UNPACKDIR}/twcfg.txt ${D}${sysconfdir}/${PN}
|
||||
|
||||
install -m 0644 ${S}/man/man4/* ${D}${mandir}/man4
|
||||
install -m 0644 ${S}/man/man5/* ${D}${mandir}/man5
|
||||
@@ -57,7 +57,7 @@ do_install () {
|
||||
install -m 0644 ${S}/policy/*txt ${D}${docdir}/${BPN}
|
||||
install -m 0644 ${S}/COPYING ${D}${docdir}/${BPN}
|
||||
install -m 0644 ${S}/TRADEMARK ${D}${docdir}/${BPN}
|
||||
install -m 0644 ${WORKDIR}/tripwire.txt ${D}${docdir}/${BPN}
|
||||
install -m 0644 ${UNPACKDIR}/tripwire.txt ${D}${docdir}/${BPN}
|
||||
}
|
||||
|
||||
do_install_ptest:append () {
|
||||
|
||||
Reference in New Issue
Block a user