mirror of
https://git.yoctoproject.org/meta-security
synced 2026-05-07 04:58:47 +00:00
clamav: Add missing clamav.service file to SRC_URI
This solves the below error when systemd is used as init manager,
-- snip --
ERROR: clamav-0.99.2-r0 do_package: SYSTEMD_SERVICE_clamav value clamav.service does not exist
ERROR: clamav-0.99.2-r0 do_package: Function failed: systemd_populate_packages
-- snip --
Other issue:
* Ship /lib/systemd/system/clamav-freshclam.service into ${PN}-freshclam
package, to solve below warning:
-- snip --
[10240] WARNING: QA Issue: clamav: Files/directories were installed but not shipped in any package:
/lib/systemd/system/clamav-freshclam.service
-- snip --
Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
committed by
Armin Kuster
parent
7ac11e2274
commit
58c23b4787
@@ -14,6 +14,7 @@ SRC_URI = "git://github.com/vrtadmin/clamav-devel;branch=rel/0.99 \
|
||||
file://clamd.conf \
|
||||
file://freshclam.conf \
|
||||
file://volatiles.03_clamav \
|
||||
file://${BPN}.service \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
@@ -23,7 +24,7 @@ SO_VER = "7.1.1"
|
||||
|
||||
EXTRANATIVEPATH += "chrpath-native"
|
||||
|
||||
inherit autotools-brokensep pkgconfig useradd systemd
|
||||
inherit autotools-brokensep pkgconfig useradd systemd
|
||||
|
||||
UID = "clamav"
|
||||
GID = "clamav"
|
||||
@@ -87,6 +88,9 @@ do_install_append() {
|
||||
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
|
||||
if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)};then
|
||||
install -D -m 0644 ${WORKDIR}/clamav.service ${D}${systemd_unitdir}/system/clamav.service
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst_${PN} () {
|
||||
@@ -123,7 +127,8 @@ FILES_${PN}-freshclam = "${bindir}/freshclam \
|
||||
${sysconfdir}/clamav ${sysconfdir}/default/volatiles \
|
||||
${localstatedir}/lib/clamav \
|
||||
${docdir}/${PN}-freshclam ${mandir}/man1/freshclam.* \
|
||||
${mandir}/man5/freshclam.conf.*"
|
||||
${mandir}/man5/freshclam.conf.* \
|
||||
${systemd_unitdir}/system/clamav-freshclam.service"
|
||||
|
||||
FILES_${PN}-dev = " ${bindir}/clamav-config ${libdir}/*.la \
|
||||
${libdir}/pkgconfig/*.pc \
|
||||
|
||||
Reference in New Issue
Block a user