merged

On 9/10/20 6:53 AM, Charlie Davies wrote:
> 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 <[email protected]>
> ---
>  recipes-scanners/clamav/clamav_0.101.5.bb | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> 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
>
> 

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#50664): https://lists.yoctoproject.org/g/yocto/message/50664
Mute This Topic: https://lists.yoctoproject.org/mt/76756181/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to