mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-04 14:39:54 +00:00
upower: add systemd support
* inherit systemd * Add PACKAGECONFIG for systemd and control it based on DISTRO_FEATURES Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
committed by
Martin Jansa
parent
11178d122c
commit
0a5c689b68
@@ -8,13 +8,17 @@ SRC_URI = "http://upower.freedesktop.org/releases/${BPN}-${PV}.tar.xz"
|
||||
SRC_URI[md5sum] = "78800e1ac7f92b24aabdf433e38f75d2"
|
||||
SRC_URI[sha256sum] = "9ca325a6ccef505529b268ebbbd9becd0ce65a65f6ac7ee31e2e5b17648037b0"
|
||||
|
||||
inherit autotools pkgconfig gettext gobject-introspection
|
||||
inherit autotools pkgconfig gettext gobject-introspection systemd
|
||||
|
||||
PACKAGECONFIG ??= ""
|
||||
PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}"
|
||||
PACKAGECONFIG[idevice] = "--with-idevice,--without-idevice,libimobiledevice libplist"
|
||||
PACKAGECONFIG[systemd] = "--with-systemdutildir=${systemd_unitdir} --with-systemdsystemunitdir=${systemd_system_unitdir}, \
|
||||
--without-systemdutildir --without-systemdsystemunitdir,systemd"
|
||||
|
||||
EXTRA_OECONF = " --with-backend=linux"
|
||||
|
||||
SYSTEMD_SERVICE_${PN} = "upower.service"
|
||||
|
||||
do_configure_prepend() {
|
||||
sed -i -e s:-nonet:\:g ${S}/doc/man/Makefile.am
|
||||
sed -i -e 's: doc : :g' ${S}/Makefile.am
|
||||
|
||||
Reference in New Issue
Block a user