Commit graph

141 commits

Author SHA1 Message Date
Martin Pitt
c742d55725 trivial: post release version bump 2019-09-03 08:51:06 +02:00
Martin Blanchard
d15e95f785 build: Migrate from intltool to gettext
https://gitlab.freedesktop.org/upower/upower/issues/89
2019-05-18 18:38:35 +02:00
Christian Kellner
8da188b303 Replace use of deprecated g_type_class_add_private
Use G_DEFINE_TYPE_WITH_CODE (..., G_PRIVATE_ADD (...)) instead of
the (deprecated since glib 2.58) function g_type_class_add_private
to add a private structure for a type.
Bump the minimal required version of glib to 2.38.0, the version
where G_PRIVATE_ADD was added.
2019-02-21 12:07:59 +01:00
Christian Kellner
2a9598372c trivial: post release version bump 2019-02-20 14:50:48 +01:00
Christian Kellner
215049e7b8 Released UPower 0.99.10 2019-02-20 14:40:19 +01:00
Bastien Nocera
59faabc3c2 0.99.9 2018-10-25 13:36:36 +02:00
Bastien Nocera
8913f60347 doc: Fix dist not working
automake's documentation says that it works depth-first, but it doesn't
actually go depth first when dist'ing a directory. So our .ref.xml files
aren't generated when we try to get them added to the dist.

Fix this with a big hammer by moving the generation to the current
directory, rather than spending any more time working with automake.
Can't wait for the meson port.
2018-10-25 13:12:35 +02:00
Richard Hughes
cc37137637 trivial: post release version bump 2017-11-28 11:16:37 +00:00
Richard Hughes
b69b262230 trivial: post release version bump 2017-09-11 16:15:13 +01:00
Richard Hughes
02b117f5ad trivial: post release version bump 2017-07-24 13:24:17 +01:00
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