diff options
author | 2020-08-02 20:18:06 +0100 | |
---|---|---|
committer | 2020-08-04 10:41:00 -0700 | |
commit | 3becd114a2888c87d8a9de4332fdb929e37fd1dc (patch) | |
tree | 15cfd2fe572466175885b3416eac622d15f0295a | |
parent | fcceba2208fa7cf63d5841a6a1a3ff743b4cb35d (diff) | |
download | meta-security-3becd114a2888c87d8a9de4332fdb929e37fd1dc.tar.gz meta-security-3becd114a2888c87d8a9de4332fdb929e37fd1dc.tar.bz2 meta-security-3becd114a2888c87d8a9de4332fdb929e37fd1dc.zip |
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.bb | 4 |
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 () { install -m 0644 ${WORKDIR}/volatiles.03_clamav ${D}${sysconfdir}/default/volatiles/volatiles.03_clamav sed -i -e 's#${STAGING_DIR_HOST}##g' ${D}${libdir}/pkgconfig/libclamav.pc rm ${D}/${libdir}/libclamav.so - install -m 666 ${S}/clamav_db/* ${D}/${localstatedir}/lib/clamav/. + if [ "${INSTALL_CLAMAV_CVD}" = "1" ]; then + install -m 666 ${S}/clamav_db/* ${D}/${localstatedir}/lib/clamav/. + fi if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)};then install -D -m 0644 ${WORKDIR}/clamav.service ${D}${systemd_unitdir}/system/clamav.service install -d ${D}${sysconfdir}/tmpfiles.d |