The UPower package provides an interface to enumerating power devices, listening to device events and querying history and statistics. Any application or service on the system can access the org.freedesktop.UPower service via the system message bus.
This package is known to build and work properly using an LFS-9.1 platform.
Download (HTTP): https://gitlab.freedesktop.org/upower/upower/uploads/93cfe7c8d66ed486001c4f3f55399b7a/upower-0.99.11.tar.xz
Download MD5 sum: abe6acb617f11f2e8dbd9846fcf86e24
Download size: 424 KB
Estimated disk space required: 11 MB (add 3MB for tssts)
Estimated build time: 0.1 SBU (add 0.1 SBU for tests)
dbus-glib-0.110, libgudev-233, libusb-1.0.23, and Polkit-0.116
GTK-Doc-1.32, PyGObject-3.34.0, dbusmock-0.19, and umockdev (for part of the testsuite).
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/upower
Enable the following options in the kernel configuration and recompile the kernel if necessary:
General Setup --->
[*] Namespaces support ---> [CONFIG_NAMESPACES]
[*] User namespace [CONFIG_USER_NS]
Install UPower by running the following commands:
./configure --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --enable-deprecated \ --disable-static && make
To test the results, issue: make check. Some checks may not pass due to missing files. Test suite should be run from a local GUI session started with dbus-launch.
Now, as the root
user:
make install
--enable-deprecated
: This
switch enables deprecated functionality which is still needed by
some applications.
--disable-static
: This
switch prevents installation of static versions of the libraries.
--enable-gtk-doc
: Use this parameter if
GTK-Doc is installed and you wish
to rebuild and install the API documentation.
Last updated on 2020-02-17 12:12:55 -0800