mirror of
https://git.yoctoproject.org/meta-security
synced 2026-01-11 15:00:34 +00:00
recipes-*: convert WORKDIR->UNPACKDIR
Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
@@ -12,7 +12,7 @@ SRC_URI[sha256sum] = "d72f4ee7325816bb8dbfcf31eb104207b9fe58a2493c2a875373746a71
|
||||
|
||||
#UPSTREAM_CHECK = "https://downloads.cisofy.com/lynis"
|
||||
|
||||
S = "${WORKDIR}/${BPN}"
|
||||
S = "${UNPACKDIR}/${BPN}"
|
||||
|
||||
inherit autotools-brokensep
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ SRC_URI = "git://github.com/OpenSCAP/openscap.git;branch=maint-1.3;protocol=http
|
||||
file://0001-CMakeLists.txt-fix-installation-directory-for-system.patch \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
S = "${UNPACKDIR}/git"
|
||||
|
||||
inherit cmake pkgconfig python3native python3targetconfig perlnative systemd
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ SRC_URI = "git://github.com/ComplianceAsCode/content.git;branch=stable;protocol=
|
||||
|
||||
DEPENDS = "openscap-native python3-pyyaml-native python3-jinja2-native libxml2-native expat-native coreutils-native"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
S = "${UNPACKDIR}/git"
|
||||
B = "${S}/build"
|
||||
|
||||
inherit cmake pkgconfig python3native python3targetconfig ptest
|
||||
@@ -54,7 +54,7 @@ do_install_ptest() {
|
||||
do
|
||||
sed -e 's#${HOSTTOOLS_DIR}/##g' \
|
||||
-e 's#${RECIPE_SYSROOT_NATIVE}##g' \
|
||||
-e 's#${WORKDIR}#${PTEST_PATH}#g' \
|
||||
-e 's#${UNPACKDIR}#${PTEST_PATH}#g' \
|
||||
-e 's#/.*/xmllint#/usr/bin/xmllint#g' \
|
||||
-e 's#/.*/oscap#/usr/bin/oscap#g' \
|
||||
-e 's#/python3-native##g' \
|
||||
|
||||
@@ -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 () {
|
||||
|
||||
@@ -13,7 +13,7 @@ SRC_URI = "git://github.com/lkrg-org/lkrg.git;protocol=https;branch=main"
|
||||
|
||||
SRCREV = "5dc5cfea1f4dc8febdd5274d99e277c17df06acc"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
S = "${UNPACKDIR}/git"
|
||||
|
||||
inherit module kernel-module-split
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ SRC_URI = " \
|
||||
"
|
||||
|
||||
SRCREV = "e69cb5047946818e6a9df326851483bb075a5cfe"
|
||||
S = "${WORKDIR}/git"
|
||||
S = "${UNPACKDIR}/git"
|
||||
|
||||
PARALLEL_MAKE = ""
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ SRC_URI = "http://osdn.dl.sourceforge.jp/tomoyo/49693/${BPN}-${PV}-${DS}.tar.gz"
|
||||
|
||||
SRC_URI[sha256sum] = "7900126cf2dd8706c42c2c1ef7a37fd8b50f1505abd7d9c3d653dc390fb4d620"
|
||||
|
||||
S = "${WORKDIR}/${BPN}"
|
||||
S = "${UNPACKDIR}/${BPN}"
|
||||
|
||||
inherit features_check
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ SRC_URI = "http://www.cpan.org/authors/id/S/SM/SMUELLER/lib-${PV}.tar.gz"
|
||||
SRC_URI[md5sum] = "8607ac4e0d9d43585ec28312f52df67c"
|
||||
SRC_URI[sha256sum] = "72f63db9220098e834d7a38231626bd0c9b802c1ec54a628e2df35f3818e5a00"
|
||||
|
||||
S = "${WORKDIR}/lib-${PV}"
|
||||
S = "${UNPACKDIR}/lib-${PV}"
|
||||
|
||||
EXTRA_CPANFLAGS = "EXPATLIBPATH=${STAGING_LIBDIR} EXPATINCPATH=${STAGING_INCDIR}"
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ SRC_URI = "http://sourceforge.net/projects/whisker/files/libwhisker/${PV}/libwhi
|
||||
SRC_URI[md5sum] = "7cc1718dddde8f9a439d5622ae2f37eb"
|
||||
SRC_URI[sha256sum] = "f45a1cf2ad2637b29dd1b13d7221ea12e3923ea09d107ced446400f19070a42f"
|
||||
|
||||
S = "${WORKDIR}/libwhisker2-2.5"
|
||||
S = "${UNPACKDIR}/libwhisker2-2.5"
|
||||
|
||||
inherit cpan-base
|
||||
|
||||
|
||||
@@ -60,9 +60,9 @@ do_install () {
|
||||
install -d ${D}/var/lib/arpwatch
|
||||
|
||||
oe_runmake install DESTDIR=${D}
|
||||
install -m 644 ${WORKDIR}/arpwatch.conf ${D}${sysconfdir}
|
||||
install -m 655 ${WORKDIR}/arpwatch_init ${D}${sysconfdir}/init.d/arpwatch
|
||||
install -m 644 ${WORKDIR}/arpwatch.default ${D}${sysconfdir}/default
|
||||
install -m 644 ${UNPACKDIR}/arpwatch.conf ${D}${sysconfdir}
|
||||
install -m 655 ${UNPACKDIR}/arpwatch_init ${D}${sysconfdir}/init.d/arpwatch
|
||||
install -m 644 ${UNPACKDIR}/arpwatch.default ${D}${sysconfdir}/default
|
||||
}
|
||||
|
||||
INITSCRIPT_NAME = "arpwatch"
|
||||
|
||||
@@ -10,7 +10,7 @@ SRC_URI = "http://sourceforge.net/projects/buck-security/files/buck-security/buc
|
||||
SRC_URI[md5sum] = "611a3e9bb7ed8a8270aa15216c321c53"
|
||||
SRC_URI[sha256sum] = "c533c6631ec3554dd8d39d2d1c3ed44badbbf50810ebb75469c74639fa294b01"
|
||||
|
||||
S = "${WORKDIR}/${BPN}_${PV}"
|
||||
S = "${UNPACKDIR}/${BPN}_${PV}"
|
||||
|
||||
do_configure[noexec] = "1"
|
||||
do_compile[noexec] = "1"
|
||||
|
||||
@@ -9,7 +9,7 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=879b2147c754bc040c29e9c3b84da836"
|
||||
SRCREV = "2753ebb89fcdc96433ae8a4c4e5a49214a845be2"
|
||||
SRC_URI = "git://github.com/slimm609/checksec.sh;branch=main;protocol=https"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
S = "${UNPACKDIR}/git"
|
||||
|
||||
do_install() {
|
||||
install -d ${D}${bindir}
|
||||
|
||||
@@ -21,7 +21,7 @@ SRC_URI = "git://github.com/Cisco-Talos/clamav;branch=rel/0.104;protocol=https \
|
||||
file://headers_fixup.patch \
|
||||
file://oe_cmake_fixup.patch \
|
||||
"
|
||||
S = "${WORKDIR}/git"
|
||||
S = "${UNPACKDIR}/git"
|
||||
|
||||
LEAD_SONAME = "libclamav.so"
|
||||
SO_VER = "9.6.0"
|
||||
@@ -58,9 +58,9 @@ do_install:append () {
|
||||
install -d -o ${PN} -g ${CLAMAV_GID} ${D}/${localstatedir}/lib/clamav
|
||||
install -d ${D}${sysconfdir}/clamav ${D}${sysconfdir}/default/volatiles
|
||||
|
||||
install -m 644 ${WORKDIR}/clamd.conf ${D}/${prefix}/${sysconfdir}
|
||||
install -m 644 ${WORKDIR}/freshclam.conf ${D}/${prefix}/${sysconfdir}
|
||||
install -m 0644 ${WORKDIR}/volatiles.03_clamav ${D}${sysconfdir}/default/volatiles/03_clamav
|
||||
install -m 644 ${UNPACKDIR}/clamd.conf ${D}/${prefix}/${sysconfdir}
|
||||
install -m 644 ${UNPACKDIR}/freshclam.conf ${D}/${prefix}/${sysconfdir}
|
||||
install -m 0644 ${UNPACKDIR}/volatiles.03_clamav ${D}${sysconfdir}/default/volatiles/03_clamav
|
||||
sed -i -e 's#${STAGING_DIR_HOST}##g' ${D}${libdir}/pkgconfig/libclamav.pc
|
||||
rm ${D}/${libdir}/libclamav.so
|
||||
if [ "${INSTALL_CLAMAV_CVD}" = "1" ]; then
|
||||
@@ -71,7 +71,7 @@ do_install:append () {
|
||||
|
||||
if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)};then
|
||||
install -d ${D}${sysconfdir}/tmpfiles.d
|
||||
install -m 0644 ${WORKDIR}/tmpfiles.clamav ${D}${sysconfdir}/tmpfiles.d/clamav.conf
|
||||
install -m 0644 ${UNPACKDIR}/tmpfiles.clamav ${D}${sysconfdir}/tmpfiles.d/clamav.conf
|
||||
fi
|
||||
oe_multilib_header clamav-types.h
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ SRC_URI = "git://github.com/netblue30/firejail.git;protocol=https;branch=master
|
||||
|
||||
DEPENDS = "libseccomp"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
S = "${UNPACKDIR}/git"
|
||||
|
||||
inherit autotools-brokensep pkgconfig bash-completion features_check
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ DEPENDS = "virtual/kernel nasm-native"
|
||||
SRC_URI = "git://github.com/chipsec/chipsec.git;branch=main;protocol=https"
|
||||
SRCREV = "d8c2a606bf440c32196c6289a7a458f3ae3107cc"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
S = "${UNPACKDIR}/git"
|
||||
|
||||
inherit module setuptools3
|
||||
|
||||
|
||||
@@ -20,12 +20,12 @@ inherit go goarch features_check
|
||||
|
||||
REQUIRED_DISTRO_FEATURES = "pam"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
S = "${UNPACKDIR}/git"
|
||||
|
||||
do_compile() {
|
||||
export GOARCH=${TARGET_GOARCH}
|
||||
export GOROOT="${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/go"
|
||||
export GOPATH="${WORKDIR}/git"
|
||||
export GOPATH="${UNPACKDIR}/git"
|
||||
|
||||
# Pass the needed cflags/ldflags so that cgo
|
||||
# can find the needed headers files and libraries
|
||||
|
||||
@@ -12,7 +12,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
|
||||
SRCREV = "7c80c73c084ce9ea49a03b814dac7a82fd7b4c23"
|
||||
SRC_URI = "git://github.com/google/fscryptctl.git;branch=master;protocol=https"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
S = "${UNPACKDIR}/git"
|
||||
|
||||
do_compile:prepend() {
|
||||
sed -i 's/fscryptctl\.1//g' ${S}/Makefile
|
||||
|
||||
@@ -10,7 +10,7 @@ inherit meson pkgconfig
|
||||
|
||||
DEPENDS += "openssl"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
S = "${UNPACKDIR}/git"
|
||||
SRC_URI = "git://github.com/google/glome.git;branch=master;protocol=https"
|
||||
SRCREV = "48d28f82bd51ae4bccc84fbbee93c375b026596b"
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ SRCREV = "962f353aac6cfc7b804547319db40f8b804f0b6c"
|
||||
|
||||
DEPENDS = "libpam"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
S = "${UNPACKDIR}/git"
|
||||
|
||||
inherit autotools features_check
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ SRC_URI = "http://prdownloads.sourceforge.net/isic/${BPN}-${PV}.tgz \
|
||||
SRC_URI[md5sum] = "29f70c9bde9aa9128b8f7e66a315f9a4"
|
||||
SRC_URI[sha256sum] = "e033c53e03e26a4c72b723e2a5a1c433ee70eb4d23a1ba0d7d7e14ee1a80429d"
|
||||
|
||||
S="${WORKDIR}/${BPN}-${PV}"
|
||||
S="${UNPACKDIR}/${BPN}-${PV}"
|
||||
|
||||
inherit autotools-brokensep
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ include krill-crates.inc
|
||||
UPSTREAM_CHECK_URI = "https://github.com/NLnetLabs/${BPN}/releases"
|
||||
UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
S = "${UNPACKDIR}/git"
|
||||
CARGO_SRC_DIR = ""
|
||||
|
||||
inherit pkgconfig useradd systemd cargo cargo-update-recipe-crates
|
||||
|
||||
@@ -20,7 +20,7 @@ EXTRA_OECONF = "--disable-pthreads --with-ssl-dir=${STAGING_LIBDIR}"
|
||||
CFLAGS += "-fcommon"
|
||||
LDFLAGS:append:libc-musl = " -lexecinfo"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
S = "${UNPACKDIR}/git"
|
||||
|
||||
PACKAGES = "${PN} ${PN}-dbg ${PN}-dev"
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ HOMEPAGE = "http://mhash.sourceforge.net/"
|
||||
LICENSE = "LGPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=3bf50002aefd002f49e7bb854063f7e7"
|
||||
|
||||
S = "${WORKDIR}/mhash-${PV}"
|
||||
S = "${UNPACKDIR}/mhash-${PV}"
|
||||
|
||||
SECTION = "libs"
|
||||
|
||||
|
||||
@@ -11,6 +11,6 @@ SRC_URI = "git://github.com/kyz/libmspack.git;branch=master;protocol=https"
|
||||
|
||||
inherit autotools
|
||||
|
||||
S = "${WORKDIR}/git/${BPN}"
|
||||
S = "${UNPACKDIR}/git/${BPN}"
|
||||
|
||||
inherit autotools
|
||||
|
||||
@@ -13,6 +13,6 @@ DEPENDS = "openssl zlib"
|
||||
|
||||
inherit autotools-brokensep
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
S = "${UNPACKDIR}/git"
|
||||
|
||||
INSANE_SKIP:${PN} = "already-stripped"
|
||||
|
||||
Reference in New Issue
Block a user