usbguard: package simplification

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Anu Deepthika, Nandipati 2022-03-29 01:18:27 +05:30 committed by Khem Raj
parent 65f6fe9eac
commit 144a7fff1e

View File

@ -44,19 +44,12 @@ PACKAGECONFIG[systemd] = "--enable-systemd,--disable-systemd,systemd"
SYSTEMD_PACKAGES = "${PN}"
SYSTEMD_SERVICE:${PN} = "usbguard.service"
SYSTEMD_PACKAGES += "${@bb.utils.contains('PACKAGECONFIG', 'dbus', '${PN}-dbus', '', d)}"
SYSTEMD_SERVICE:${PN}-dbus = "usbguard-dbus.service"
PACKAGES =+ "${PN}-dbus"
SYSTEMD_SERVICE:${PN} = "usbguard.service ${@bb.utils.contains('PACKAGECONFIG', 'dbus', 'usbguard-dbus.service', '', d)}"
FILES:${PN} += "\
${systemd_unitdir}/system/usbguard.service \
${systemd_unitdir}/system/usbguard-dbus.service \
${datadir}/polkit-1 \
${datadir}/polkit-1/actions \
${datadir}/dbus-1 \
${nonarch_libdir}/tmpfiles.d \
"