diff options
| -rw-r--r-- | meta-oe/recipes-support/upower/power-profiles-daemon_0.30.bb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/upower/power-profiles-daemon_0.30.bb b/meta-oe/recipes-support/upower/power-profiles-daemon_0.30.bb new file mode 100644 index 0000000000..cc56e2ea8a --- /dev/null +++ b/meta-oe/recipes-support/upower/power-profiles-daemon_0.30.bb | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | SUMMARY = "Makes power profiles handling available over D-Bus" | ||
| 2 | HOMEPAGE = "https://gitlab.freedesktop.org/upower/power-profile-daemon" | ||
| 3 | LICENSE = "GPL-3.0-only" | ||
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" | ||
| 5 | |||
| 6 | DEPENDS = " \ | ||
| 7 | glib-2.0 \ | ||
| 8 | polkit \ | ||
| 9 | upower \ | ||
| 10 | libgudev \ | ||
| 11 | " | ||
| 12 | |||
| 13 | inherit meson pkgconfig systemd features_check | ||
| 14 | |||
| 15 | REQUIRED_DISTRO_FEATURES = "polkit" | ||
| 16 | |||
| 17 | EXTRA_OEMESON = "-Dtests=false" | ||
| 18 | |||
| 19 | SRCREV = "5b4994c8a91290481bef87a5bae95391d0ec677f" | ||
| 20 | SRC_URI = "git://gitlab.freedesktop.org/upower/power-profiles-daemon;branch=main;protocol=https" | ||
| 21 | S = "${WORKDIR}/git" | ||
| 22 | |||
| 23 | do_install:append() { | ||
| 24 | install -d ${D}${sysconfdir}/tmpfiles.d | ||
| 25 | echo "d ${localstatedir}/lib/power-profiles-daemon 700 root root - -" > ${D}${sysconfdir}/tmpfiles.d/power-profiles-daemon.conf | ||
| 26 | sed -i -e 's|After=multi-user.target |After=|g' ${D}${systemd_system_unitdir}/power-profiles-daemon.service | ||
| 27 | } | ||
| 28 | |||
| 29 | FILES:${PN} += "${sysconfdir}/tmpfiles.d ${datadir}/dbus-1 ${datadir}/polkit-1 ${systemd_system_unitdir}" | ||
