summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCharlie Davies <charles.davies@whitetree.xyz>2020-09-10 14:53:15 +0100
committerArmin Kuster <akuster808@gmail.com>2020-09-12 10:18:00 -0700
commit31ee54056ba5a79ae3521fe3b0ed99dd4737ea86 (patch)
treeac019a196eada25628b894184f46ff410ae5081c
parentef4bfb5b71e617f3bb53001a4fd32e202e74200e (diff)
downloadmeta-security-31ee54056ba5a79ae3521fe3b0ed99dd4737ea86.tar.gz
clamav: add INSTALL_CLAMAV_CVD flag to do_install
Recipe provides INSTALL_CLAMAV_CVD flag to bypass clamav cvd db creation. During do_install this flag should be used to conditionally skip install of cvd db if needed. Signed-off-by: Charlie Davies <charles.davies@whitetree.xyz> Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--recipes-scanners/clamav/clamav_0.101.5.bb4
1 files changed, 3 insertions, 1 deletions
diff --git a/recipes-scanners/clamav/clamav_0.101.5.bb b/recipes-scanners/clamav/clamav_0.101.5.bb
index 2ea2c9b..770186a 100644
--- a/recipes-scanners/clamav/clamav_0.101.5.bb
+++ b/recipes-scanners/clamav/clamav_0.101.5.bb
@@ -89,7 +89,9 @@ do_install_append_class-target () {
89 install -m 0644 ${WORKDIR}/volatiles.03_clamav ${D}${sysconfdir}/default/volatiles/volatiles.03_clamav 89 install -m 0644 ${WORKDIR}/volatiles.03_clamav ${D}${sysconfdir}/default/volatiles/volatiles.03_clamav
90 sed -i -e 's#${STAGING_DIR_HOST}##g' ${D}${libdir}/pkgconfig/libclamav.pc 90 sed -i -e 's#${STAGING_DIR_HOST}##g' ${D}${libdir}/pkgconfig/libclamav.pc
91 rm ${D}/${libdir}/libclamav.so 91 rm ${D}/${libdir}/libclamav.so
92 install -m 666 ${S}/clamav_db/* ${D}/${localstatedir}/lib/clamav/. 92 if [ "${INSTALL_CLAMAV_CVD}" = "1" ]; then
93 install -m 666 ${S}/clamav_db/* ${D}/${localstatedir}/lib/clamav/.
94 fi
93 if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)};then 95 if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)};then
94 install -D -m 0644 ${WORKDIR}/clamav.service ${D}${systemd_unitdir}/system/clamav.service 96 install -D -m 0644 ${WORKDIR}/clamav.service ${D}${systemd_unitdir}/system/clamav.service
95 install -d ${D}${sysconfdir}/tmpfiles.d 97 install -d ${D}${sysconfdir}/tmpfiles.d