- Proper formatting and indenting
- Tell aclocal that we use m4/ as macro directory and the final dist
tarball actually contains the m4/ directory.
- Run intltoolize before aclocal, so aclocal does not append intltool.m4
to aclocal.m4
Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
Use the BACKEND_TYPE_LINUX automake conditional to include the rules
directory. This way we don't need to specify DIST_SUBDIRS and can get
rid of UDEV_RULES.
Less redundandcy, less chance to miss a directory in the dist tarball.
Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
Currently, the dummy backend is mostly used to run the unit tests.
We want to make it usable though on architectures, like GNU/Hurd, which
dont't have a native backend yet.
Compile two different flavours of the dummy backend: one with the TEST
code enabled and which is used by up_self_test, and one without the TEST
code, used by upowerd when the dummy backend is selected.
Patch is based on work by Pino Toscano.
Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
The backends [linux/freebsd/dummy] no longer require
libdevkit-power-gobject, so
- remove -I$(top_srcdir)/devkit-power-gobject from the include path
- don't link the backends against libdevkit-power-gobject but upowerd
(which unfortunately still needs it).
Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
Install libupower-glib include files into libupower-glib/ (where upower.h
expects them to be), not upower-glib. Now the library is consistently named
"libupower-glib" everywhere.
Also fix the Libs line in the pkgconfig file: link against -lupower-glib, not
-lupower.
Check for PK privileges in UpClient's can_{suspend,hibernate} properties, so
that clients like gnome-session or gnome-power-manager hide the related actions
if the admin or OEM disabled suspend/hibernate through a PolicyKit .pkla file
like
$ cat /etc/polkit-1/localauthority/50-local.d/disable-suspend.pkla
[Disable suspend]
Identity=unix-user:*
Action=org.freedesktop.upower.suspend
ResultActive=no
ResultAny=no
https://bugs.freedesktop.org/show_bug.cgi?id=26473