59 Commits

Author SHA1 Message Date
landry
2b44435f7e Add proper error and cancellable handling to UpClient constructor
Backport https://cgit.freedesktop.org/upower/patch/?id=932a6a39e35754be571e1274aec4730fd42dba13
from https://bugs.freedesktop.org/show_bug.cgi?id=95350

First part of a larger fix for xfsettingsd crashes when systemwide dbus
isn't running.

ok/testing edd@
2016-09-01 10:11:47 +00:00
jasper
a00f3ab0cd add link to upstream bz 2016-08-29 08:40:38 +00:00
jasper
1560e48f17 Remove pointless upperbound, SENSOR_MAX_TYPES has no meaning here and we
break from the loop anyway when needed (when ENOENT is returned). This makes
it in line with other sensor walkers.

ok landry@ (MAINTAINER)
2016-05-04 11:11:55 +00:00
landry
e65a3f6048 Updqte to upower 0.99.4
https://lists.freedesktop.org/archives/devkit-devel/2016-February/001751.html

ok ajacoutot@
2016-04-26 12:37:43 +00:00
naddy
ce859edcb4 garbage collect CONFIGURE_SHARED 2016-03-11 20:28:21 +00:00
ajacoutot
5ab3b99c91 Consistency: rcctl enable is the most used idiom within the ports tree.
Also since we can pass it several daemons now, simplify enabling:
- before
rcctl enable foo
rcctl enable bar
rcctl enable bla
- after
rcctl enable foo bar bla
2015-10-24 09:18:12 +00:00
ajacoutot
7dc0772564 Update to upower-0.99.3.
ok landry@ (maintainer)
2015-05-30 07:26:09 +00:00
ajacoutot
760d8cd39e dbus_daemon -> messagebus 2015-04-04 09:36:37 +00:00
ajacoutot
11a7989584 These need to RUN_DEPENDS on x11/dbus,-suid now. 2015-04-04 09:30:30 +00:00
ajacoutot
aa988913b0 Bump after the recent changes in packaging dbus and dconf. 2015-04-04 09:20:59 +00:00
landry
e6fff4da4b Add a patch to improve error handling when the systemwide dbus is not
running. Applications using libupower-glib should "gracefully" handle that
situation now...
2015-04-03 12:08:10 +00:00
ajacoutot
9bcb9af268 space 2015-04-02 19:21:24 +00:00
landry
e4d1a944d4 Mention that systemwide dbus daemon needs to be running for proper
upower behaviour. Use rcctl commands while here...
2015-04-02 19:18:30 +00:00
ajacoutot
6f0354f67f Fix crash on uninitialized variant with new GLib. 2015-03-27 16:03:33 +00:00
landry
bd26f5cb1e Bugfix update to upower 0.99.2.
See http://lists.freedesktop.org/archives/devkit-devel/2014-December/001653.html
for the list of changes (lots of memleaks fixed, update display device
when battery is removed, etc..)
xfce4-power-manager seems happy with it, upower -d reports correct
values, and gnome-power-statistics still display a nice graph.

Reminded by ajacoutot@
2014-12-19 23:50:27 +00:00
ajacoutot
372cd2bc49 --disable-gtk-doc is handled by the infrastructure now. 2014-09-13 16:36:53 +00:00
landry
50cc7917e3 Update to upower 0.99.1.
Remove patch merged upstream, and now useless dep on polkit.
ok ajacoutot@
2014-09-02 19:23:33 +00:00
landry
e5f93f12b7 Add EnergyFullDesign and Capacity properties, getting them via the new
acpibat sensor reporting the 'design capacity' of the battery. Fixes a
wrong notification about having a broken battery in KDE4.

From Fabian Raetz, thanks!
2014-05-23 19:21:06 +00:00
jasper
1ab83c3f46 committed upstream 2014-04-23 09:55:18 +00:00
jasper
67685dc7e1 submitted upstream 2014-04-20 18:20:43 +00:00
jasper
9b52f0eddd add a way to recognize the lid (wether it's present, open/closed). thanks to
landry for finding the "right" spot to hook it up.

ok landry@ (MAINTAINER)
2014-04-20 18:03:23 +00:00
jasper
6e9eb5c43e - update to upower-0.99.0
there will be some fallout due to major API changes, but they will be dealt with
today as the offenders (gnome-related) will be updated.

ok landry@ (MAINTAINER), aja@
2014-03-27 07:59:35 +00:00
landry
0fdccd8ce6 Straightforward update to upower 0.9.23, mostly integrating our patches
before giving us the middle finger with the next release relying on
logind for hibernate/suspend code, thus deliberately breaking perfectly
working portable code, see
http://lists.freedesktop.org/archives/devkit-devel/2013-October/001519.html
2013-10-18 16:43:50 +00:00
ajacoutot
9af689ecc8 Update to upower-0.9.22.
ok landry@ (maintainer)
2013-10-12 08:10:13 +00:00
landry
97d1e9945a Assorted fixes on top of jasper's:
- use --enable-deprecated instead of passing -DENABLE_DEPRECATED via the
  configure env, and add a comment explaining that it is about
deprecated featureset (the linux implem now uses logind APIs for
suspend/hibernate calls), nothing related to the G*DEPRECATED macros.
From ajacoutot@, also prodded by giovanni@ a while ago.
- backport upstream 7933b0e55234fca86809dad1dee53f0d8e2b96ec,
  g_type_init() is deprecated with glib 2.36.
- use g_thread_try_new instead of deprecated g_thread_create (prodded by
  ajacoutot@ too)
- include config.h in up-backend.h to reach ENABLE_DEPRECATED #define
The two last patches reported upstream in bug #70071
2013-10-03 13:42:16 +00:00
jasper
af1c7f2649 add link to upstream bz 2013-10-03 11:03:41 +00:00
jasper
dff9873332 Two fixes for the OpenBSD-backend:
- Recognize a battery not being present (and reset various metrics accordingly)
- Recognize a fully charged battery

as discussed with and OK landry@ (MAINTAINER), aja@
2013-10-03 10:52:59 +00:00
ajacoutot
d25c7c0665 Update to upower-0.9.21.
ok landry@ (maintainer)
2013-08-11 14:11:38 +00:00
ajacoutot
6126547b01 Drop uneeded patches. 2013-06-01 19:19:16 +00:00
giovanni
19f346a418 Enable deprecated code, newer upower relies on newer interfaces
(logind, systemd or something else), will be discussed upstream later.
This lets suspend from xfce menu work again.
ok landry@
2013-04-29 13:34:51 +00:00
ajacoutot
37cbe50d44 Remove /var/db/upower/history-* at @extraunexec time.
ok landry@ (maintainer)
2013-04-06 08:48:50 +00:00
ajacoutot
4629408c6c polkit(8) mostly always requires consolekit; unfortunately the dependency
cannot be added to polkit itself since it would create a cyclic dep; so we
add it to ports depending on polkit.

ok landry@ (maintainer)
2013-03-30 14:53:53 +00:00
ajacoutot
dab4fa84a4 Update to upower-0.9.20.
ok landry@ (maintainer)
2013-03-29 12:41:26 +00:00
ajacoutot
7504dd69fa g_thread_init is deprecated and will be removed in the next glib2 version
which I am currently working on.
While here, regen WANTLIB and merge PLISTs.

ok landry@ (maintainer)
2013-03-27 07:23:45 +00:00
ajacoutot
58f1a6f9f6 USE_LIBTOOL=Yes is the default now. 2013-03-21 08:45:11 +00:00
espie
eae66e4a7b PERMIT_* / REGRESS->TEST sweep 2013-03-11 11:35:43 +00:00
ajacoutot
ff52f74e3c docbook-xsl already comes with libxslt. 2012-09-27 17:26:05 +00:00
ajacoutot
ef5cb32a0f Stupid autohell is stupid...
The situation is this: even when we --disable-gtk-doc, if gtk-doc is
actually installed at configure stage, tools like gtkdoc-rebase will be
picked up and run during the install target. That is bad because the
gtk-doc package may have been removed by then, especially during dpb(1)
bulks (we explicitely disable support for it so why should it stay...).

So for now, let's add the following env to configure whenever we use
--disable-gtk-doc, until a bettersolution is found...
CONFIGURE_ENV +=ac_cv_path_GTKDOC_CHECK="" \
		ac_cv_path_GTKDOC_REBASE="" \
		ac_cv_path_GTKDOC_MKPDF=""
2012-09-21 14:48:05 +00:00
ajacoutot
d564010b05 Sync comment; no pkg change. 2012-09-10 08:08:49 +00:00
ajacoutot
af213defe9 Remove --as-needed and -pthread patches.
ok landry@ (maintainer)
2012-09-04 09:06:12 +00:00
ajacoutot
d6c732de39 Update to upower-0.9.18.
ok landry@ (maintainer)
2012-08-21 17:27:13 +00:00
landry
1fc510c2f5 Update to upower 0.9.17
Note that now by default, upowerd will run apm -C when running
on battery and apm -A when on AC, this can be disabled by setting
RunPowersaveCommand to false in etc/UPower/UPower.conf.

ok ajacoutot@
2012-06-27 06:39:50 +00:00
ajacoutot
e64ff1fab0 Revert previous and add textproc/intltool MODULE. 2012-03-03 17:30:17 +00:00
espie
258c06240c fix build 2012-03-03 17:09:14 +00:00
landry
65af6840c5 Update to upower 0.9.15 :
- remove history dir patches merged upstream
- fix deps wrt gettext module, update plist accordingly
- fix rate value, was wrong since last commit to acpibat.c
ok ajacoutot@
2012-01-03 21:50:06 +00:00
ajacoutot
8ca4dae4c2 Don't pass --as-needed to unbreak upower(1). 2012-01-02 15:13:19 +00:00
ajacoutot
1c5a3c5c35 Minor update to upower-0.9.14. 2011-10-16 06:29:30 +00:00
ajacoutot
a5e3542d11 Set DATADIRNAME in a consistent way now that glib-gettext.m4 has been
fixed.
2011-10-03 06:42:45 +00:00
ajacoutot
1a7e50f497 Bugfix update to upower-0.9.13.
ok landry@ (maintainer)
2011-09-08 17:57:40 +00:00
dcoppa
d565673e24 Make upower behave like apmd (check for minutes_left to be > 0, not >= 0)
While here, reword comment a little bit.

OK ajacoutot@
2011-07-08 08:16:09 +00:00