From: Landry Breuil Subject: [update] upower 1.90.5 To: ports@openbsd.org Date: Tue, 10 Sep 2024 13:42:32 +0200 hi, small untested update, it now LDEPs on polkit because there's a new feature allowing interaction with the 'battery charging start and end limit', and thus there's 'org.freedesktop.UPower.enable-charging-limit' which needs auth. i havent looked at all at the code from https://gitlab.freedesktop.org/upower/upower/-/merge_requests/208 but i guess its only implemented for linux - but with some code maybe it could be hooked up to hw.battery.chargestart/stop sysctls ? i've also noticed that upower doesnt properly support multiple batteries, i might work on that someday. Landry ? patch-src_up-device-battery_c ? patch-src_up-device_c ? upower-0.99.11-libupower-glib.so.2.1 ? upower-0.99.13-libupower-glib.so.2.1 ? upower-0.99.7-libupower-glib.so.2.1 ? upower-0.99.9-libupower-glib.so.2.1 ? upower-1.90.wip.diff ? upower-1.90.wip2.diff ? upower-1.90.wip3.diff Index: Makefile =================================================================== RCS file: /cvs/ports/sysutils/upower/Makefile,v diff -u -r1.73 Makefile --- Makefile 13 Apr 2024 09:25:38 -0000 1.73 +++ Makefile 10 Sep 2024 11:37:41 -0000 @@ -2,7 +2,7 @@ COMMENT = userland power management interface -V = v1.90.4 +V = v1.90.5 DISTNAME = upower-${V} PKGNAME = upower-${V:S/v//} @@ -18,7 +18,7 @@ PERMIT_PACKAGE= Yes # uses unveil() -WANTLIB += c gio-2.0 glib-2.0 gobject-2.0 m +WANTLIB += c gio-2.0 glib-2.0 gobject-2.0 m polkit-gobject-1 MODULES = devel/meson CONFIGURE_ARGS =-Dintrospection=enabled \ @@ -32,7 +32,8 @@ # gtk-doc is disabled because otherwise xsltproc fetches from net CONFIGURE_ARGS +=-Dgtk-doc=false -LIB_DEPENDS = devel/glib2 +LIB_DEPENDS = devel/glib2 \ + sysutils/polkit BUILD_DEPENDS = devel/gettext,-tools \ devel/gobject-introspection \ textproc/docbook-xsl \ Index: distinfo =================================================================== RCS file: /cvs/ports/sysutils/upower/distinfo,v diff -u -r1.25 distinfo --- distinfo 13 Apr 2024 09:25:38 -0000 1.25 +++ distinfo 10 Sep 2024 11:37:41 -0000 @@ -1,2 +1,2 @@ -SHA256 (upower-v1.90.4.tar.gz) = zRlN0ni9jQWLRyjv0dCpHN8Bc3jwJbVYvrb2CoavR4E= -SIZE (upower-v1.90.4.tar.gz) = 181952 +SHA256 (upower-v1.90.5.tar.gz) = kmlWGDJa7wnyyUGSxxRE5VUUypgZV3sSgFn28DhH2UQ= +SIZE (upower-v1.90.5.tar.gz) = 190801 Index: pkg/PLIST =================================================================== RCS file: /cvs/ports/sysutils/upower/pkg/PLIST,v diff -u -r1.18 PLIST --- pkg/PLIST 13 Apr 2024 09:25:38 -0000 1.18 +++ pkg/PLIST 10 Sep 2024 11:37:41 -0000 @@ -34,4 +34,7 @@ share/locale/it/LC_MESSAGES/upower.mo share/locale/pl/LC_MESSAGES/upower.mo share/locale/sv/LC_MESSAGES/upower.mo +share/polkit-1/ +share/polkit-1/actions/ +share/polkit-1/actions/org.freedesktop.upower.policy @sample /var/db/upower/