mirror of
https://git.yoctoproject.org/meta-security
synced 2026-01-11 15:00:34 +00:00
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>
This commit is contained in:
committed by
Armin Kuster
parent
fcceba2208
commit
3becd114a2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user