Commit graph

131 commits

Author SHA1 Message Date
Richard Hughes
8f088fa5d7 trivial: post release version bump 2016-02-16 08:48:00 +00:00
Arnaud Quette
7371415beb Fix build regression
The removal of dbus-glib and libdbus build dependencies has introduced
a build regression on upower, which fails to link with gobject

Signed-off-by: Richard Hughes <richard@hughsie.com>
2015-08-10 11:06:30 +01:00
Cosimo Cecchi
c108a8e8a4 Share generated code between daemon and library
Since we use the same GDBus code in libupower-glib and the daemon,
auto-generate a private library that can be used by both.
2015-07-29 13:38:13 +01:00
Cosimo Cecchi
b549d8928b build: remove dependency on dbus-glib and libdbus
Nothing depends on it any more.
2015-07-29 13:37:11 +01:00
Eric Koegel
77239cc447 bsd: Add critical action support for *BSD
This patch adds support for using ConsoleKit2's DBUS API to
implement the critical action for FreeBSD and OpenBSD. It does so
by creating a common backend file both can use to implement the
API calls.

https://bugs.freedesktop.org/show_bug.cgi?id=85242
2015-07-07 17:10:38 +02:00
Richard Hughes
95e8a2a316 trivial: post release version bump 2015-05-28 10:22:05 +01:00
Bastien Nocera
aa902f41e5 build: Fix libimobiledevice msg in configure 2015-04-02 16:07:16 +02:00
Richard Hughes
3bade56d1f trivial: post release version bump 2014-12-18 09:33:09 +00:00
Richard Hughes
42fd6fd490 Released UPower 0.99.2 2014-12-18 09:32:27 +00:00
Eric Koegel
081c35a36c Bump GLib min req to 2.34
UPower uses g_clear_pointer several places in the code, but is
available starting in 2.34. Update UPowers minimum version to
match.
https://bugs.freedesktop.org/show_bug.cgi?id=83850

Signed-off-by: Richard Hughes <richard@hughsie.com>
2014-09-16 10:31:51 +01:00
Richard Hughes
0b50cef90c trivial: post release version bump 2014-08-18 13:10:03 +01:00
Eric Koegel
9a2b263309 Remove polkit dependency
With the removal of the suspend/hibernate code, there's no longer
a need for upower to depend on polkit. This patch removes the old
polkit code.

Signed-off-by: Richard Hughes <richard@hughsie.com>
2014-07-14 19:34:46 +01:00
Bastien Nocera
5ed25a7e5f all: Remove IsDocked property
Removes the deprecated (for not very long) property, before we do a 1.0
release.

https://bugs.freedesktop.org/show_bug.cgi?id=78380
2014-05-07 11:01:27 +02:00
Richard Hughes
e96f5349f9 trivial: post release version bump 2013-10-29 12:52:47 +00:00
Benedikt Morbach
a30ad0beae build: Fix --without-systemdunitdir / --without-systemdutildir
would take the with_*=no as a value and try to install to a "no" directory

https://bugs.freedesktop.org/show_bug.cgi?id=62060
2013-10-21 10:29:48 +02:00
Bastien Nocera
5f830e74a7 build: And bump soname 2013-10-17 01:21:27 +02:00
Bastien Nocera
16556b9377 build: Bump version to 0.99.0 2013-10-17 01:20:54 +02:00
Bastien Nocera
ac1708e86e daemon: Require newer GLib
And remove ifdef's.
2013-10-14 11:06:53 +02:00
Bastien Nocera
760d294a34 lib: Build the new D-Bus glue 2013-10-14 10:42:55 +02:00
Bastien Nocera
d10cc97cbb Remove QoS interface
It was added for some workloads, but ill-suited and never really
got traction. Using cgroups to manage the resources of particular
services (using systemd), or something separate like rtkit is
a better bet.
2013-10-14 10:42:55 +02:00
Martin Pitt
ee93745870 trivial: post release version bump 2013-10-08 17:40:18 +02:00
Richard Hughes
aa1656f6ed trivial: post release version bump 2013-07-26 15:53:41 +01:00
Richard Hughes
1bcacb296d Released UPower 0.9.21 2013-07-26 15:52:42 +01:00
Tom Gundersen
04faa0e143 build: detect udev rules dir
Udev rules may live in either /lib/udev/rules.d or /usr/lib/udev/rules.d depending on the distro.
Remove the heuristic for deciding the dir, use pkgconfig to detect the location and allow it to be
set manually.

v2: fix specifying --with-udevrulesdir

Signed-off-by: Richard Hughes <richard@hughsie.com>
2013-05-07 14:15:26 +01:00
Richard Hughes
efa97d515f Use PIE to better secure installed tools and also use full RELRO in the daemon 2013-05-07 14:07:31 +01:00
Martin Pitt
1540b08f9c Drop --enable-systemd and linking to libsystemd-daemon
logind is now being detected at runtime (see previous commit ff39d23), so we do
not need to link against libsystemd-daemon any more. Drop --enable-systemd
configure option as well.
2013-03-21 07:16:56 +01:00
Richard Hughes
830c5c5a4e trivial: post release version bump 2013-03-18 16:28:32 +00:00
Richard Hughes
372c2f8d29 Add a --enable-deprecated configure argument
This is turned off by default. If this is not set, then any calls to Suspend(),
SuspendAllowed(), Hibernate() or HibernateAllowed() will fail with an error.
The error mesage tells the user what new method to port to in logind.

I'm expecting to set --enable-deprecated for Fedora 17 and 18, but turn it off
for Fedora 19, so other distributions probably want to follow suit to find out
what other stuff needs to be ported to the new APIs early. GNOME should already
be fine, but KDE will need some solid porting as I understand it.

See http://lists.freedesktop.org/archives/devkit-devel/2013-January/001339.html
for more information on future plans and for rationale.
2013-02-12 11:08:35 +00:00
Richard Hughes
7cc34d457e trivial: Remove unused configure arguments 2013-02-12 10:24:30 +00:00
Richard Hughes
e9b28d2abd Raise the hard PolKit dep to 0.97 2013-02-12 10:22:30 +00:00
Richard Hughes
b188a49a9c Never use -WError when building 2013-01-09 10:28:48 +00:00
Richard Hughes
8fe90336de trivial: post release version bump 2013-01-02 09:35:51 +00:00
Richard Hughes
cc52c15b24 trivial: post release version bump 2012-08-08 13:04:33 +01:00
Matthias Clasen
44189f8129 Use systemd for suspend and hibernate
When running under systemd, call into systemd for suspend and
hibernate instead of pm-utils. To capture resume events, install
a small script that gets executed by systemd after resume and
sends a dbus signal back to upower.

To make this work, the upower backends gain a new signal, ::resuming,
that they can optionally emit to signal that a resume happened.
Backends opt in to this by returning TRUE from up_backend_emits_resuming().
In this case, upower doesn't assume the sleep command to block until
resume, but instead waits for the ::resuming signal from the backend.

The only backend that uses this mechanism is the linux backend when
built with systemd support.

Signed-off-by: Richard Hughes <richard@hughsie.com>
2012-07-11 18:11:39 +01:00
Richard Hughes
3f6cf3ef94 trivial: post release version bump 2012-06-25 11:18:15 +01:00
Richard Hughes
616d6d6b96 trivial: post release version bump 2012-04-30 09:45:39 +01:00
Richard Hughes
3d99929440 Released UPower 0.9.16 2012-04-30 09:43:34 +01:00
Benedikt Morbach
07a6c353a2 Install a systemd service file if systemd is used
This makes dbus defer starting upowerd to systemd instead of doing it itself
and thus puts the daemon under proper systemd supervision.

Signed-off-by: Richard Hughes <richard@hughsie.com>
2012-01-17 11:08:18 +00:00
Richard Hughes
3db50b0338 trivial: post release version bump 2011-12-05 09:50:44 +00:00
Landry Breuil
60e5e29188 Add --with-historydir to specify where we want the history files to be stored
Signed-off-by: Richard Hughes <richard@hughsie.com>
2011-10-04 14:53:46 +01:00
Richard Hughes
5b46a00a32 trivial: post release version bump 2011-10-03 11:19:56 +01:00
Pino Toscano
626c087b48 Fix the kFreeBSD detection
Signed-off-by: Richard Hughes <richard@hughsie.com>
2011-09-08 15:35:14 +01:00
Richard Hughes
0e0333a6c8 trivial: post release version bump 2011-09-05 13:53:25 +01:00
Richard Hughes
bc7ffea5de trivial: fix up a trivial typo in the last commit
Thanks to Emilio López for spotting it!
2011-09-02 09:46:29 +01:00
Diego Elio Pettenò
c08c35f762 build: don't rely on files' presence to define the default backend.
Files might not be there, or in the case of cross-compilation, they most
definitely won't be there (and if they are, they are not the ones you
should be looking for). Instead use the autoconf-defined $host variable to
identify for what system we're building for.

Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
Signed-off-by: Richard Hughes <richard@hughsie.com>
2011-09-01 12:21:45 +01:00
Javier Jardón
75894ebb2e Use upstream gettext instead the glib one 2011-07-19 12:16:30 +01:00
Javier Jardón
5bf494a9d3 configure.ac: Modernize autotools config
Require automake 1.11 as Its needed to generate xz tarballs
Remove unneded macros
2011-07-19 11:57:48 +01:00
Richard Hughes
37bc9a6f8b trivial: post release version bump 2011-07-04 16:47:16 +01:00
Richard Hughes
1f05a6e9b0 Switch to using .xz tarballs 2011-07-04 16:46:00 +01:00
Landry Breuil
9d40aa4a2d Add AC_PROG_LIBTOOL as advised by autotools 2011-05-31 11:06:31 +01:00