diff options
| -rw-r--r-- | recipes-scanners/clamav/clamav_0.104.0.bb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/recipes-scanners/clamav/clamav_0.104.0.bb b/recipes-scanners/clamav/clamav_0.104.0.bb index 0d3a678..25123dc 100644 --- a/recipes-scanners/clamav/clamav_0.104.0.bb +++ b/recipes-scanners/clamav/clamav_0.104.0.bb | |||
| @@ -54,7 +54,7 @@ export OECMAKE_C_FLAGS += " -I${STAGING_INCDIR} -L ${RECIPE_SYSROOT}${nonarch_li | |||
| 54 | 54 | ||
| 55 | do_install:append () { | 55 | do_install:append () { |
| 56 | install -d ${D}/${sysconfdir} | 56 | install -d ${D}/${sysconfdir} |
| 57 | install -d ${D}/${localstatedir}/lib/clamav | 57 | install -d -o ${CLAMAV_UID} -g ${CLAMAV_GID} ${D}/${localstatedir}/lib/clamav |
| 58 | install -d ${D}${sysconfdir}/clamav ${D}${sysconfdir}/default/volatiles | 58 | install -d ${D}${sysconfdir}/clamav ${D}${sysconfdir}/default/volatiles |
| 59 | 59 | ||
| 60 | install -m 644 ${WORKDIR}/clamd.conf ${D}/${prefix}/${sysconfdir} | 60 | install -m 644 ${WORKDIR}/clamd.conf ${D}/${prefix}/${sysconfdir} |
| @@ -83,7 +83,6 @@ pkg_postinst:${PN} () { | |||
| 83 | elif [ -e ${sysconfdir}/init.d/populate-volatile.sh ]; then | 83 | elif [ -e ${sysconfdir}/init.d/populate-volatile.sh ]; then |
| 84 | ${sysconfdir}/init.d/populate-volatile.sh update | 84 | ${sysconfdir}/init.d/populate-volatile.sh update |
| 85 | fi | 85 | fi |
| 86 | chown -R ${CLAMAV_UID}:${CLAMAV_GID} ${localstatedir}/lib/clamav | ||
| 87 | fi | 86 | fi |
| 88 | } | 87 | } |
| 89 | 88 | ||
| @@ -149,5 +148,7 @@ SYSTEMD_PACKAGES = "${PN}-daemon ${PN}-freshclam" | |||
| 149 | SYSTEMD_SERVICE:${PN}-daemon = "clamav-daemon.service" | 148 | SYSTEMD_SERVICE:${PN}-daemon = "clamav-daemon.service" |
| 150 | SYSTEMD_SERVICE:${PN}-freshclam = "clamav-freshclam.service" | 149 | SYSTEMD_SERVICE:${PN}-freshclam = "clamav-freshclam.service" |
| 151 | 150 | ||
| 152 | RDEPENDS:${PN} = "openssl ncurses-libncurses libxml2 libbz2 ncurses-libtinfo curl libpcre2 clamav-freshclam clamav-libclamav" | 151 | RDEPENDS:${PN} = "openssl ncurses-libncurses libxml2 libbz2 ncurses-libtinfo curl libpcre2 clamav-libclamav" |
| 153 | RDEPENDS:${PN}-daemon = "clamav" | 152 | RRECOMMENDS:${PN} = "clamav-freshclam" |
| 153 | RDEPENDS:${PN}-freshclam = "clamav" | ||
| 154 | RDEPENDS:${PN}-daemon = "clamav clamav-freshclam" | ||
