debian/0000775000000000000000000000000012255371705007177 5ustar debian/upower.install0000664000000000000000000000025712231666525012115 0ustar usr/bin/upower usr/lib/upower/upowerd usr/share/dbus-1/ usr/share/polkit-1/ usr/share/locale/ usr/share/man/ etc/dbus-1/system.d/ etc/UPower/UPower.conf var/lib/ lib/systemd/ debian/gir1.2-upowerglib-1.0.install0000664000000000000000000000004512231666525014242 0ustar usr/lib/*/girepository-1.0/ usr/lib/ debian/upower.docs0000664000000000000000000000001512231666525011367 0ustar AUTHORS NEWS debian/tests/0000775000000000000000000000000012231666525010342 5ustar debian/tests/upstream-system0000775000000000000000000000016712231666525013456 0ustar #!/bin/sh set -e # succeeding test must not write anything to stderr, as per DEP-8 src/linux/integration-test -v 2>&1 debian/tests/build0000775000000000000000000000150412231666525011367 0ustar #!/bin/sh # autopkgtest check: Build and run a program against libupower-glib, to verify # that the headers and pkg-config file are installed correctly # (C) 2013 Canonical Ltd. # Author: Martin Pitt set -e WORKDIR=$(mktemp -d) trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM cd $WORKDIR cat < libupowertest.c #include #include int main() { UpClient *client = up_client_new (); g_assert_cmpint (strlen (up_client_get_daemon_version (client)), >, 4); /* note, this is marked as deprecated upstream */ up_client_get_can_suspend (client); return 0; } EOF gcc -o libupowertest libupowertest.c `pkg-config --cflags --libs upower-glib` -Wall -Werror echo "build: OK" [ -x libupowertest ] env G_DEBUG="fatal-warnings fatal-criticals" ./libupowertest echo "run: OK" debian/tests/control0000664000000000000000000000021312231666525011741 0ustar Tests: upstream-system Depends: @, python3, python3-gi, gir1.2-glib-2.0 Tests: build Depends: libupower-glib-dev, build-essential, upower debian/copyright0000664000000000000000000000167212231666525011141 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: upower Upstream-Contact: Richard Hughes Source: http://upower.freedesktop.org/releases/ Files: * Copyright: 2008 David Zeuthen 2008 Richard Hughes License: GPL-2+ The full text of the GPL is distributed as in /usr/share/common-licenses/GPL-2 on Debian systems. Files: doc/* Copyright: 2008 David Zeuthen 2008 Richard Hughes License: GFDL-1.1+ Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License (GFDL), Version 1.1 or any later version published by the Free Software Foundation with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. . The full text of the GFDL is distributed as in /usr/share/common-licenses/GFDL on Debian systems. debian/TODO0000664000000000000000000000020612231666525007666 0ustar - Enable introspection? - clean up /var/lib/DeviceKit-power on upgrade (if the transition is not done because of preexisting files) debian/libupower-glib1.symbols0000664000000000000000000000655212231666525013626 0ustar libupower-glib.so.1 libupower-glib1 #MINVER# up_client_about_to_sleep_sync@Base 0.9.1 up_client_enumerate_devices_sync@Base 0.9.0 up_client_get_can_hibernate@Base 0.9.0 up_client_get_can_suspend@Base 0.9.0 up_client_get_daemon_version@Base 0.9.0 up_client_get_devices@Base 0.9.0 up_client_get_is_docked@Base 0.9.8 up_client_get_lid_force_sleep@Base 0.9.9 up_client_get_lid_is_closed@Base 0.9.0 up_client_get_lid_is_present@Base 0.9.2 up_client_get_on_battery@Base 0.9.0 up_client_get_on_low_battery@Base 0.9.0 up_client_get_properties_sync@Base 0.9.0 up_client_get_type@Base 0.9.0 up_client_hibernate_sync@Base 0.9.0 up_client_new@Base 0.9.0 up_client_suspend_sync@Base 0.9.0 up_device_get_history_sync@Base 0.9.0 up_device_get_object_path@Base 0.9.0 up_device_get_statistics_sync@Base 0.9.0 up_device_get_type@Base 0.9.0 up_device_kind_from_string@Base 0.9.0 up_device_kind_to_string@Base 0.9.0 up_device_new@Base 0.9.0 up_device_refresh_sync@Base 0.9.0 up_device_set_object_path_sync@Base 0.9.0 up_device_state_from_string@Base 0.9.0 up_device_state_to_string@Base 0.9.0 up_device_technology_from_string@Base 0.9.0 up_device_technology_to_string@Base 0.9.0 up_device_to_text@Base 0.9.0 up_history_item_get_state@Base 0.9.0 up_history_item_get_time@Base 0.9.0 up_history_item_get_type@Base 0.9.0 up_history_item_get_value@Base 0.9.0 up_history_item_new@Base 0.9.0 up_history_item_set_from_string@Base 0.9.2 up_history_item_set_state@Base 0.9.0 up_history_item_set_time@Base 0.9.0 up_history_item_set_time_to_present@Base 0.9.2 up_history_item_set_value@Base 0.9.0 up_history_item_to_string@Base 0.9.2 up_qos_item_get_cmdline@Base 0.9.0 up_qos_item_get_cookie@Base 0.9.0 up_qos_item_get_kind@Base 0.9.0 up_qos_item_get_persistent@Base 0.9.0 up_qos_item_get_pid@Base 0.9.0 up_qos_item_get_sender@Base 0.9.0 up_qos_item_get_timespec@Base 0.9.0 up_qos_item_get_type@Base 0.9.0 up_qos_item_get_uid@Base 0.9.0 up_qos_item_get_value@Base 0.9.0 up_qos_item_new@Base 0.9.0 up_qos_item_set_cmdline@Base 0.9.0 up_qos_item_set_cookie@Base 0.9.0 up_qos_item_set_kind@Base 0.9.0 up_qos_item_set_persistent@Base 0.9.0 up_qos_item_set_pid@Base 0.9.0 up_qos_item_set_sender@Base 0.9.0 up_qos_item_set_timespec@Base 0.9.0 up_qos_item_set_uid@Base 0.9.0 up_qos_item_set_value@Base 0.9.0 up_qos_kind_from_string@Base 0.9.0 up_qos_kind_to_string@Base 0.9.0 up_sleep_kind_from_string@Base 0.9.11 up_sleep_kind_to_string@Base 0.9.11 up_stats_item_get_accuracy@Base 0.9.0 up_stats_item_get_type@Base 0.9.0 up_stats_item_get_value@Base 0.9.0 up_stats_item_new@Base 0.9.0 up_stats_item_set_accuracy@Base 0.9.0 up_stats_item_set_value@Base 0.9.0 up_wakeup_item_get_cmdline@Base 0.9.0 up_wakeup_item_get_details@Base 0.9.0 up_wakeup_item_get_id@Base 0.9.0 up_wakeup_item_get_is_userspace@Base 0.9.0 up_wakeup_item_get_old@Base 0.9.0 up_wakeup_item_get_type@Base 0.9.0 up_wakeup_item_get_value@Base 0.9.0 up_wakeup_item_new@Base 0.9.0 up_wakeup_item_set_cmdline@Base 0.9.0 up_wakeup_item_set_details@Base 0.9.0 up_wakeup_item_set_id@Base 0.9.0 up_wakeup_item_set_is_userspace@Base 0.9.0 up_wakeup_item_set_old@Base 0.9.0 up_wakeup_item_set_value@Base 0.9.0 up_wakeups_get_data_sync@Base 0.9.1 up_wakeups_get_has_capability@Base 0.9.1 up_wakeups_get_properties_sync@Base 0.9.1 up_wakeups_get_total_sync@Base 0.9.1 up_wakeups_get_type@Base 0.9.1 up_wakeups_new@Base 0.9.1 debian/upower-doc.install0000664000000000000000000000003012231666525012645 0ustar usr/share/gtk-doc/html/ debian/source/0000775000000000000000000000000012231666525010500 5ustar debian/source/format0000664000000000000000000000001412231666525011706 0ustar 3.0 (quilt) debian/changelog0000664000000000000000000006145412255371705011063 0ustar upower (0.9.23-2ubuntu1) trusty; urgency=medium * ppc64el-support.patch: patch m4/libtool.m4 and regenerate configure. -- Adam Conrad Sat, 21 Dec 2013 13:01:42 -0700 upower (0.9.23-2) unstable; urgency=low * Drop hardcoded binary glib dependency, it's already being generated automatically from the versioned build depends. * Add 00git_clamp_percentage.patch: Clamp percentage for overfull batteries, to avoid showing 0% on some fully charged battery models. Fixes regression from 0.9.22. (LP: #1240673) -- Martin Pitt Wed, 23 Oct 2013 08:31:44 +0200 upower (0.9.23-1) unstable; urgency=low * New upstream bug fix release. * Force libglib2.0-0 to be at least 2.36 to avoid running against earlier glib versions which still required g_type_init(). (Closes: #722612) -- Martin Pitt Sun, 20 Oct 2013 17:11:30 +0200 upower (0.9.22-1) unstable; urgency=low * New upstream release. * Drop 00git_updates.patch, included in new release. -- Martin Pitt Tue, 08 Oct 2013 18:26:25 +0200 upower (0.9.21-3) unstable; urgency=low * Add 00git_updates.patch to update to today's upstream git: - Fix batteries which report capacity, but not energy/charge - Add temperature property for batteries - Fix warning in up_device_supply_get_design_voltage - Make GetHistory() array order consistent -- Martin Pitt Thu, 29 Aug 2013 11:34:28 +0200 upower (0.9.21-2) unstable; urgency=low [ Martin Pitt ] * debian/rules: Run dh_install with --fail-missing to avoid forgetting about some scripts. * debian/rules: Explicitly set systemd util dir, to avoid build-depending on systemd. * debian/upower.install: Install notify-upower.sh. (LP: #1196752) [ Michael Biebl ] * debian/patches/always_use_pm-utils_backend.patch: Always use the pm-utils backend, even if logind is running. The availability of logind does not necessarily imply, that systemd is running (in a recent enough version), which is required for a successful suspend/hibernate. (Closes: #718458, LP: #1196752) -- Michael Biebl Sat, 03 Aug 2013 00:56:44 +0200 upower (0.9.21-1) unstable; urgency=low * New upstream release. * Add udev build dependency, so that configure can determine the udev directory. * Add alternative systemd dependency instead of just hard-depending on pm-utils. With logind, upower defers suspend to logind instead of calling pm-*, this allows us to not install pm-utils with systemd. -- Martin Pitt Mon, 29 Jul 2013 07:37:19 +0200 upower (0.9.20-2) unstable; urgency=low * Upload to unstable. * Use gir addon instead of calling dh_girepository manually. * Build for multiarch. * Use dpkg-buildflags support provided by dh with debhelper compat level 9. * Explicitly set libexecdir to /usr/lib/upower so the upowerd binary is installed into the proper location. -- Michael Biebl Mon, 03 Jun 2013 05:45:23 +0200 upower (0.9.20-1) experimental; urgency=low * New upstream release. * Bump libpolkit-gobject-1-dev build dependency as per upstream configure.ac. * Build with --enable-deprecated, we are not ready yet to drop suspend/hibernate functionality. * Bump Standards-Version to 3.9.4. No changes necessary. * Add "build" autopkgtest to compile/link/run a simple program against libupower-glib. * Drop unnecessary "needs-root" restriction from upstream-system autopkgtest. * Add no_deprecation_define.patch: Do not require applications to define UPOWER_ENABLE_DEPRECATED to access suspend/resume functionality. We are not ready to do that yet in Debian. -- Martin Pitt Tue, 19 Mar 2013 19:19:51 +0100 upower (0.9.19-1) experimental; urgency=low * New upstream release. -- Martin Pitt Thu, 03 Jan 2013 10:38:45 +0100 upower (0.9.17-1) unstable; urgency=low * New upstream bug fix release. * Drop 00git_powersupply_property.patch, upstream now. * debian/control: Add XS-Testsuite: header as per current DEP-8 spec. * debian/tests/control: Depend on @, to also include our gir package and other packages we might have forgotten. * debian/tests/control: Drop undefined "no-build-needed" feature. -- Martin Pitt Mon, 25 Jun 2012 17:38:27 +0200 upower (0.9.16-3) unstable; urgency=low * Add 00git_powersupply_property.patch: Fix wrong PowerSupply property for devices without a scope sysfs attribute. Also committed to upstream git. (LP: #1012578) -- Martin Pitt Thu, 14 Jun 2012 13:30:00 +0200 upower (0.9.16-2) unstable; urgency=low * Fix changelog. The one uploaded in 0.9.16-1 was incomplete due to a missing merge. -- Michael Biebl Mon, 30 Apr 2012 21:31:28 +0200 upower (0.9.16-1) unstable; urgency=low * New upstream release. * Drop explicit Build-Depends on gir1.2-glib-2.0. * Use the systemd service file that is shipped upstream now. -- Michael Biebl Mon, 30 Apr 2012 21:26:09 +0200 upower (0.9.15-3) unstable; urgency=low * debian/tests/control: Add missing python3 and python3-gi test dependencies. * Add 00git_fix_libusb_crash.patch: Fix crash in up_device_csr_finalize(). Patch also committed to upstream git. (LP: #972300) * debian/copyright: Update to copyright 1.0 format and fix upstream URL. * debian/control: Update Standards-Version to 3.9.3. -- Martin Pitt Tue, 03 Apr 2012 12:41:14 +0200 upower (0.9.15-2) unstable; urgency=low * debian/control: Change section of gir1.2-upowerglib-1.0 to introspection. * Install systemd service file for upowerd. -- Michael Biebl Sat, 11 Feb 2012 17:06:06 +0100 upower (0.9.15-1) unstable; urgency=low * New upstream release. * debian/control: Fix the versioned Build-Depends on dpkg-dev. The buildflags.mk snippet was added in version 1.16.1, not 1.6.1. -- Michael Biebl Mon, 05 Dec 2011 11:04:18 +0100 upower (0.9.14-3) unstable; urgency=low [ Michael Biebl ] * debian/control: Add Build-Depends on libglib2.0-doc for proper cross-references in the gtk-doc API documentation. * Enable default hardening options from dpkg-buildflags. - Use buildflags.mk snippet in debian/rules. - Add Build-Depends on dpkg-dev (>= 1.6.1). [ Martin Pitt ] * debian/tests/upstream-system: Just redirect integration-test's stderr to stdout, this is easier to test and still fulfills DEP-8. -- Michael Biebl Sat, 12 Nov 2011 05:23:20 +0100 upower (0.9.14-2) unstable; urgency=low * Add debian/tests/control and debian/tests/upstream-system: DEP-8/autopkgtest control file for running the upstream tests. -- Martin Pitt Mon, 07 Nov 2011 10:59:32 +0100 upower (0.9.14-1) unstable; urgency=low * New upstream release. - Fix kFreeBSD detection. - Fix linux up_backend_supports_sleep_state() return code. (Closes: #639754) -- Michael Biebl Mon, 03 Oct 2011 17:10:46 +0200 upower (0.9.13-1) unstable; urgency=low * New upstream release. - Modernize build system. - Update for the g_unix_signal_add_full() ABI break of glib 2.29.90. - Hardcode wacom battery devices as not power-supply devices. * debian/control: Add missing libdbus-1-dev dependency to libupower-glib-dev, the pkg-config file requires it. (LP: #829840) -- Martin Pitt Thu, 08 Sep 2011 12:59:57 +0200 upower (0.9.12-1) unstable; urgency=low * New upstream release: - Fix estimation rate for batteries that do not provide this data. (LP: #629258) * debian/copyright: Fix headers. * debian/watch: Look for *.xz tarballs, upstream only publishes these now. Repack our tarball as tar.bz2. -- Martin Pitt Thu, 07 Jul 2011 13:06:06 +0200 upower (0.9.11-1) unstable; urgency=low * New upstream bug fix release. * debian/rules: Call dpkg-gensymbols in -c4 mode, to ensure that our symbols files are up to date. * debian/libupower-glib1.symbols: Add new symbols from this version. -- Martin Pitt Thu, 26 May 2011 16:27:43 +0200 upower (0.9.10-1) unstable; urgency=low * New upstream release: - Fix "unknown" battery status guessing to not be recursive. (LP: #384304) * debian/control: Drop obsolete devicekit-power-* Conflicts/Replaces. -- Martin Pitt Thu, 05 May 2011 14:31:17 +0200 upower (0.9.9-4) unstable; urgency=low * debian/control: Make pm-utils dependency [linux-any]. -- Michael Biebl Tue, 12 Apr 2011 13:10:19 +0200 upower (0.9.9-3) unstable; urgency=low * debian/control - Add Depends on gir1.2-upowerglib-1.0 (= ${binary:Version}) to libupower-glib-dev according to the new GObject introspection policy. - Bump pm-utils from Recommends to Depends to avoid accidental removals leading to unexpected behaviour. (Closes: #619774) - Bump Standards-Version to 3.9.2. No further changes. -- Michael Biebl Sun, 10 Apr 2011 20:29:56 +0200 upower (0.9.9-2) unstable; urgency=low * Upload to unstable. -- Michael Biebl Wed, 23 Mar 2011 13:00:59 +0100 upower (0.9.9-1) experimental; urgency=low * New upstream release. - Fix bitmap check in the input code. (Closes: #616474) - Add an option for polling dock devices in UPower.conf, defaulting to false. (Closes: #613745) * debian/control - Bump Build-Depend on libgudev-1.0-dev to (>= 147). * debian/libupower-glib1.symbols - Add new up_client_get_lid_force_sleep symbol. -- Michael Biebl Mon, 21 Mar 2011 11:46:20 +0100 upower (0.9.8-3) experimental; urgency=low [ Frédéric Péters ] * Enable gobject introspection support. (Closes: #614795) - Add Build-Depends on libgirepository1.0-dev (>= 0.9.12), gobject-introspection (>= 0.9.12-4~) and gir1.2-glib-2.0. - Add package gir1.2-upowerglib-1.0 containing the typelib file. - Install gir file in libupower-glib-dev.install. - Call dh_girepository for libupower-glib1 in debian/rules. [ Michael Biebl ] * Bump debhelper compatibility level to 8 and update build dependency on debhelper accordingly. -- Michael Biebl Wed, 23 Feb 2011 17:46:34 +0100 upower (0.9.8-2) unstable; urgency=low * Upload to unstable. -- Michael Biebl Sun, 06 Feb 2011 14:39:45 +0100 upower (0.9.8-1) experimental; urgency=low * New upstream release. Changes since our previous git snapshot: - Add an "IsDocked" property. - Testsuite: Reduce race condition in history purging check. - Update the list of HID UPS devices - Fix links to git repository in HACKING - Support the power_now sysfs attribute to get time remaining on new kernels * debian/libupower-glib1.symbols: Add new symbol. -- Martin Pitt Fri, 07 Jan 2011 16:56:11 +0100 upower (0.9.7+git20101104-e38cdd-1) experimental; urgency=low * Upgrade to latest git head, up to commit e38cddbb8: - Fix compilation eror against Linux 2.6.36 - Check for and link against libplist. Fixes building with gcc 4.5. - Drop unnecessary check for polkit-backend. - Fix test suite to work as normal user, by using a temporary directory for the history files. * debian/control: Remove libpolkit-backend-1-dev build dependency again, this was only a workaround. * debian/rules: Move from cdbs to dh. Bump debhelper build dependency to >= 7.0.50~, as required for overriding targets. * debian/rules: Disable running the upstream tests during package build, as they need a running system D-BUS (which we don't have on the buildds). -- Martin Pitt Thu, 04 Nov 2010 23:57:46 -0400 upower (0.9.7-1) experimental; urgency=low * New upstream release. * Remove patches that have been merged upstream - debian/patches/00git_dont_poll_serial_port_if_no_wup_adaptor.patch - debian/patches/00git_fix_double_dbus_return.patch - debian/patches/00git_fix_missing_polkit_dbus_return.patch - debian/patches/00git_fix_missing_qos_dbus_return.patch - debian/patches/00git_initialize_polkit_gerror.patch * Add Build-Depends on libpolkit-backend-1-dev (required if building against the old PolicyKit API). * Switch to source format 3.0 (quilt) - Update debian/source/format - Drop quilt from Build-Depends. - Remove /usr/share/cdbs/1/rules/patchsys-quilt.mk include. -- Michael Biebl Thu, 04 Nov 2010 11:46:22 -0400 upower (0.9.5-5) unstable; urgency=low * debian/patches/00git_dont_poll_serial_port_if_no_wup_adaptor.patch - Do not continue to poll the serial port if there is no Watts Up Pro adaptor. Patch cherry-picked from upstream Git. (Closes: #586751) * Drop libdevkit-power-gobject library packages as all reverse dependencies have been updated to use the new API provided by libupower-glib. (Closes: #595083) -- Michael Biebl Sat, 23 Oct 2010 21:39:56 +0200 upower (0.9.5-4) unstable; urgency=low * Add 00git_initialize_polkit_gerror.patch: Ensure we've initialized errors when calling into PolicyKit. Patch cherrypicked from upstream git head. (LP: #648414) * 00git_fix_double_dbus_return.patch: Unfuzz to apply on top of previous patch; now it exactly matches the upstream commit. -- Martin Pitt Wed, 06 Oct 2010 11:40:25 +0200 upower (0.9.5-3) unstable; urgency=low * Add 00git_fix_double_dbus_return.patch, 00git_fix_missing_polkit_dbus_return.patch, 00git_fix_missing_qos_dbus_return.patch: Fix missing or duplicate D-BUS return values, which cause crashes. Patches cherrypicked from upstream git head. (LP: #614119) -- Martin Pitt Fri, 24 Sep 2010 18:04:17 +0200 upower (0.9.5-2) unstable; urgency=low * debian/control - Bump Standards-Version to 3.9.1. - Use architecture wildcards for the libgudev-1.0-dev, libkvm-dev and libusb-1.0-0-dev build dependencies. - Update Build-Depends according to configure.ac. * debian/upower.postinst - Query D-Bus to find out the correct pid of the process claiming org.freedesktop.UPower. This way we do not accidentally kill the wrong process when being installed in a chroot. (Closes: #594871) * debian/upower.prerm - Stop upowerd on remove. (Closes: #590017) -- Michael Biebl Wed, 22 Sep 2010 01:02:15 +0200 upower (0.9.5-1) unstable; urgency=low * New upstream release: - Dynamic testing for enough hibernate swap. (LP: #599352) - Port UPower to libusb1 to avoid unfixable crashes. (LP: #522827) * debian/rules: Build a PO template during package build, for translation systems. (LP: #538321) * debian/control: Switch libusb-dev build dependency to libusb-1.0-0-dev, and add libimobiledevice-dev to support the new backend. * debian/control: Bump Standards-Version to 3.9.0; no changes necessary. * Drop transitional devicekit-power-doc package. It's been in testing long enough, and we do not want to carry it into the squeeze release. -- Martin Pitt Mon, 12 Jul 2010 14:43:12 +0200 upower (0.9.4-2) unstable; urgency=low * debian/upower.install - Install UPower.conf config file to the correct path. (Closes: #583353) * debian/upower.{preinst,postinst} - Move the config file on upgrades without triggering a dpkg prompt. -- Michael Biebl Sat, 29 May 2010 19:26:19 +0200 upower (0.9.4-1) unstable; urgency=low * New upstream bug fix release. * Drop 00git-fix-notifications.patch, upstream now. -- Martin Pitt Wed, 12 May 2010 17:48:22 +0200 upower (0.9.3-2) unstable; urgency=low * Add 00git-fix-notifications.patch: Fix notifications for property changes such as "lid closed". Taken from upstream git head. (Closes: #580983) -- Martin Pitt Tue, 11 May 2010 16:39:28 +0200 upower (0.9.3-1) unstable; urgency=low * New upstream release. - Add a config file with SleepTimeout and AllowHibernateEncryptedSwap - Bug fixes. * debian/upower.install: Install the new conffile. * debian/control: Add missing ${misc:Depends} to quiesce lintian. * Add debian/source/format (1.0). -- Martin Pitt Sun, 09 May 2010 18:48:38 +0200 upower (0.9.2-1) unstable; urgency=low * New upstream release. - Convert the daemon to using objects from libupower-glib. - Get sleep capabilities, swap information and suspend and hibernate commands from the backend, rather than hardcoding Linux specifics. - Make dummy backend usable for architectures without a native backend. * debian/patches/01-dummy-backend.patch - Removed, merged upstream. * debian/patches/99-autoreconf.patch - Removed, no longer needed. * debian/libupower-glib1.symbols - Update for new API additions. * debian/upower.install - Install translations. -- Michael Biebl Wed, 07 Apr 2010 11:41:10 +0200 upower (0.9.1-2) unstable; urgency=low [ Michael Biebl ] * debian/control - Update Homepage field. [ Martin Pitt ] * debian/watch: Update for new upstream location. [ Michael Biebl ] * debian/patches/01-dummy-backend.patch - Fix the dummy backend to compile successfully and make it usable on GNU/Hurd which does not have a native backend (yet). Patch based on work by Pino Toscano, thanks! * debian/patches/99-autoreconf.patch - Run autoreconf as the patch above needed changes to the build system. * debian/control - Don't build depend on libgudev-1.0-dev on hurd-i386. - Don't build depend on libusb-dev on kfreebsd-* and hurd-i386. -- Michael Biebl Mon, 05 Apr 2010 00:21:22 +0200 upower (0.9.1-1) unstable; urgency=low [ Martin Pitt ] * New upstream release. Compared to our git snapshot, this just fixes the BSD backend to compile. * debian/upower.postinst: Restart the daemon if we stopped it, so that clients don't suddenly stop getting signals. * debian/control: Add udisks Conflicts/Replaces to devicekit-power, and an additional Conflicts: to libdevkit-gobject, so that devicekit-power gets properly cleaned up on upgrade. * debian/upower.postinst: Migrate DeviceKit-power history on upgrade. * Add debian/upower.postrm: Clean up /var/lib/upower on purge. (Closes: #571156) [ Michael Biebl ] * debian/control - Add dependency on dbus. - Make udev a linux-only dependency. - Add build dependency on libkvm-dev for kfreebsd-*. - Don't build depend on libgudev-1.0-dev for kfreebsd-*. * Install udev rules files conditionally on linux only. * debian/*.symbols - Bump symbol versions from previous git snapshot versions to 0.9.1. -- Martin Pitt Fri, 05 Mar 2010 11:07:33 +0100 upower (0.9.0+git20100216.b9bb78-2) unstable; urgency=low * Upload to unstable. -- Michael Biebl Tue, 23 Feb 2010 01:51:37 +0100 upower (0.9.0+git20100216.b9bb78-1) experimental; urgency=low * New upstream git snapshot: - Fix pkgconfig file to link against the correct library. - Fix pkgconfig file and include directory to agree on the path for libupower-glib include files. * debian/libupower-glib-dev.install: Update include path accordingly. -- Martin Pitt Sun, 21 Feb 2010 19:14:06 +0100 upower (0.9.0+git20100216.72bb2-1) experimental; urgency=low [ Martin Pitt ] * New upstream release, and updating to current git head: - Rename the project, library, and D-Bus interface to upower. - Bug fixes. - Translation updates. - Set client library's can_{suspend,hibernate} properties to False if suspend/hibernate is prohibited through PolicyKit. (LP: #432598) * Drop 01-lid-status-fallback.patch, 02-dkpclient-singleton.patch: Applied upstream. * debian/rules, debian/control: Add an epoch to the transitional devicekit-power-doc package, so that the upgrade will actually work. * debian/rules: Explicitly enable gtk-doc building, upstream configure disables that now. * Build libdevkit-power-gobject{1,-dev} packages, but mark them as obsolete. These are still necessary, until upowerd is fully ported to the new libupower-glib. [ Michael Biebl ] * debian/upower.install: Only install upower and upowerd, not the transitional symlinks. * debian/control: Bump Standards-Version to 3.8.4. No further changes. -- Martin Pitt Tue, 16 Feb 2010 10:10:47 +0100 devicekit-power (014-3) unstable; urgency=low * Add 02-dkpclient-singleton.patch: Make DkpClient a singleton to avoid some weird race conditions. Patch taken from upstream git. (Closes: #567021, LP: #425411) -- Martin Pitt Tue, 26 Jan 2010 20:26:03 +0100 devicekit-power (014-2) unstable; urgency=low * debian/patches/01-lid-status-fallback.patch - Use a fallback for the capability bit when checking the lid status. Patch pulled from upstream Git. (Closes: #555740) -- Michael Biebl Tue, 12 Jan 2010 09:51:53 +0100 devicekit-power (014-1) unstable; urgency=low * New upstream release. -- Martin Pitt Mon, 11 Jan 2010 09:33:33 +0100 devicekit-power (013-1) unstable; urgency=low * New upstream release. * Drop 01-fix-hibernate-has-encrypted-swap-check.patch, merged upstream. -- Michael Biebl Mon, 07 Dec 2009 11:39:29 +0100 devicekit-power (012-2) unstable; urgency=low * debian/patches/01-fix-hibernate-has-encrypted-swap-check.patch - Fix broken check if swap space is encrypted. (Closes: #551797) Thanks to Michael Ott for spotting this. -- Michael Biebl Wed, 21 Oct 2009 16:07:56 +0200 devicekit-power (012-1) unstable; urgency=low * New upstream release - Properly refresh update-time after AC changes. This avoids immediately suspending again when AC state changes during suspend. (LP: #425411) * debian/control - Add dependency on udev. * debian/devicekit-power.postinst - Use start-stop-daemon instead of kill+pidof to stop the running devkit-power-daemon process on upgrades. -- Michael Biebl Mon, 19 Oct 2009 17:13:24 +0200 devicekit-power (011-1) unstable; urgency=low [ Michael Biebl ] * New upstream release. * debian/control - Add Recommends on pm-utils and policykit-1. [ Martin Pitt ] * debian/control: This version changes the internal D-BUS API. Make library and daemon break each other for versions prior to 011, to avoid partial upgrades. -- Martin Pitt Tue, 06 Oct 2009 18:04:57 +0200 devicekit-power (010-2) unstable; urgency=low [ Martin Pitt ] * debian/control: Add missing libdevkit-power-gobject1 dependency to -dev. * Add debian/devicekit-power.postinst: Kill the old devkit-power-daemon on upgrade, to ensure that the new version will be used at the next occasion. [ Michael Biebl ] * debian/devicekit-power.{install,manpages}: Install manpages using the *.install file and drop redundant *.manpages file. * debian/libdevkit-power-gobject1.symbols: Add symbols file for improved shlibs dependencies. -- Michael Biebl Mon, 28 Sep 2009 16:59:43 +0200 devicekit-power (010-1) unstable; urgency=low [ Martin Pitt ] * New upstream release: - Port to PolicyKit 1 API. - Port from DeviceKit to gudev. - Bug fixes. * debian/control: - libpolkit-dbus-dev → libpolkit-gobject-1-dev build dependency. - libdevkit-gobject-dev → libgudev-1.0-dev build dependency. - Drop devicekit dependency. - Add Breaks to gnome-power-manager versions which aren't ported to new PolicyKit API yet. * Drop 0001-Add-a-notify-flag-to-set_lid_is_closed.patch, fixed upstream. [ Michael Biebl ] * Add debian/README.source which refers to the quilt documentation. * Bump Standards-Version to 3.8.3. * Upload to unstable. -- Michael Biebl Mon, 28 Sep 2009 06:58:20 +0200 devicekit-power (009-1) experimental; urgency=low * New upstream release. * debian/control: Add myself to uploaders (discussed with Michael). * debian/devicekit-power.install: Upstream installs udev rules into /lib/udev/rules.d now, update accordingly. * Add 0001-Add-a-notify-flag-to-set_lid_is_closed.patch: Properly fix the silencing of the coldplug lid event, so that the first real lid event actually works. Thanks to Loïc Minier! (fd.o #22574) -- Martin Pitt Mon, 06 Jul 2009 19:12:49 +0200 devicekit-power (008-1) experimental; urgency=low * New upstream release. * debian/copyright - Add Name, Maintainer and Source field as recommended by DEP-5. -- Michael Biebl Wed, 03 Jun 2009 13:47:15 +0200 devicekit-power (007-1) experimental; urgency=low * Initial release. (Closes: #521363) -- Michael Biebl Mon, 18 May 2009 08:50:24 +0200 debian/compat0000664000000000000000000000000212231666525010376 0ustar 9 debian/rules0000775000000000000000000000136612231666525010266 0ustar #!/usr/bin/make -f %: dh $@ --with gir override_dh_auto_configure: dh_auto_configure -- \ --enable-gtk-doc \ --enable-introspection \ --enable-deprecated \ --with-systemdutildir=/lib/systemd \ --with-systemdsystemunitdir=/lib/systemd/system \ --libexecdir=\$${prefix}/lib/upower override_dh_auto_build: dh_auto_build make -C po upower.pot override_dh_auto_test: # test suite needs system D-BUS and thus does not work on buildds override_dh_install: dh_install --fail-missing -Xrules.d -X.la # Only install udev rules on Linux architectures. The # directory doesn't even exist on e.g. GNU/kFreeBSD ifeq ($(DEB_HOST_ARCH_OS),linux) dh_install -pupower debian/tmp/lib/udev/rules.d/ endif override_dh_makeshlibs: dh_makeshlibs -- -c4 debian/control0000664000000000000000000000750012255371746010611 0ustar Source: upower Section: admin Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Utopia Maintenance Team Uploaders: Michael Biebl , Martin Pitt Build-Depends: debhelper (>= 9), autotools-dev, pkg-config, xsltproc, gtk-doc-tools, libglib2.0-doc, intltool (>= 0.40.0), libdbus-glib-1-dev (>= 0.76), libdbus-1-dev (>= 1.0), libglib2.0-dev (>= 2.36), libgudev-1.0-dev (>= 147) [linux-any], udev [linux-any], libkvm-dev [kfreebsd-any], libpolkit-gobject-1-dev (>= 0.97), libusb-1.0-0-dev (>= 1.0.0) [linux-any], libimobiledevice-dev (>= 0.9.7) [linux-any], libgirepository1.0-dev (>= 0.10.7-1~), gobject-introspection (>= 0.9.12-4~), Standards-Version: 3.9.4 Vcs-Git: git://git.debian.org/git/pkg-utopia/upower.git Vcs-Browser: http://git.debian.org/?p=pkg-utopia/upower.git;a=summary Homepage: http://upower.freedesktop.org/ XS-Testsuite: autopkgtest Package: upower Architecture: any Multi-Arch: foreign Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends}, udev [linux-any], dbus, pm-utils [linux-any] | systemd [linux-any] | systemd-services [linux-any] Recommends: policykit-1 Description: abstraction for power management upower provides an interface to enumerate power sources on the system and control system-wide power management. Any application can access the org.freedesktop.UPower service on the system message bus. Some operations (such as suspending the system) are restricted using PolicyKit. Package: upower-doc Architecture: all Section: doc Depends: ${misc:Depends} Suggests: devhelp Description: abstraction for power management - documentation upower provides an interface to enumerate power sources on the system and control system-wide power management. Any application can access the org.freedesktop.UPower service on the system message bus. Some operations (such as suspending the system) are restricted using PolicyKit. Package: libupower-glib1 Architecture: any Multi-Arch: same Section: libs Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends} Description: abstraction for power management - shared library upower provides an interface to enumerate power sources on the system and control system-wide power management. Any application can access the org.freedesktop.UPower service on the system message bus. Some operations (such as suspending the system) are restricted using PolicyKit. . This package contains the shared library to be used by applications. Package: libupower-glib-dev Architecture: any Section: libdevel Depends: ${shlibs:Depends}, ${misc:Depends}, libglib2.0-dev, libdbus-glib-1-dev (>= 0.76), libupower-glib1 (= ${binary:Version}), gir1.2-upowerglib-1.0 (= ${binary:Version}) Description: abstraction for power management - development files upower provides an interface to enumerate power sources on the system and control system-wide power management. Any application can access the org.freedesktop.UPower service on the system message bus. Some operations (such as suspending the system) are restricted using PolicyKit. . This package contains files that are needed to build applications. Package: gir1.2-upowerglib-1.0 Section: introspection Architecture: any Depends: ${gir:Depends}, ${shlibs:Depends}, ${misc:Depends} Description: GObject introspection data for upower upower provides an interface to enumerate power sources on the system and control system-wide power management. Any application can access the org.freedesktop.UPower service on the system message bus. Some operations (such as suspending the system) are restricted using PolicyKit. . This package contains introspection data for upower. . It can be used by packages using the GIRepository format to generate dynamic bindings. debian/upower.postinst0000664000000000000000000000256312231666525012334 0ustar #!/bin/sh set -e # Move a conffile without triggering a dpkg question mv_conffile() { local OLDCONFFILE="$1" local NEWCONFFILE="$2" [ -e "$OLDCONFFILE" ] || return 0 echo "Preserving user changes to $NEWCONFFILE ..." mv -f "$NEWCONFFILE" "$NEWCONFFILE".dpkg-new mv -f "$OLDCONFFILE" "$NEWCONFFILE" } get_pid() { [ -n "$1" ] || return 0 [ -S /var/run/dbus/system_bus_socket ] || return 0 dbus-send --system --dest=org.freedesktop.DBus --print-reply \ /org/freedesktop/DBus org.freedesktop.DBus.GetConnectionUnixProcessID \ string:$1 2>/dev/null | awk '/uint32/ {print $2}' } if [ "$1" = "configure" ]; then # migrate power history from DeviceKit-power if dpkg --compare-versions "$2" lt-nl "0.9.1-1" && [ -d /var/lib/DeviceKit-power/ ]; then if [ ! -d /var/lib/upower ] || rmdir /var/lib/upower 2>/dev/null; then echo "Migrating old DeviceKit-power history.." mv /var/lib/DeviceKit-power/ /var/lib/upower fi fi if dpkg --compare-versions "$2" lt "0.9.4-2"; then mv_conffile "/etc/UPower.conf" "/etc/UPower/UPower.conf" fi # restart upowerd if it was running before pid=$(get_pid org.freedesktop.UPower) if [ -n "$pid" ]; then kill $pid 2>/dev/null || true upower --version >/dev/null || true # will trigger through D-Bus activation fi fi #DEBHELPER# debian/libupower-glib-dev.install0000664000000000000000000000023312231666525014265 0ustar usr/lib/*/libupower-glib.so usr/lib/*/libupower-glib.a usr/lib/*/pkgconfig/upower-glib.pc usr/include/libupower-glib/ usr/share/gir-1.0/UPowerGlib-1.0.gir debian/upower.prerm0000664000000000000000000000067312231666525011576 0ustar #!/bin/sh set -e get_pid() { [ -n "$1" ] || return 0 [ -S /var/run/dbus/system_bus_socket ] || return 0 dbus-send --system --dest=org.freedesktop.DBus --print-reply \ /org/freedesktop/DBus org.freedesktop.DBus.GetConnectionUnixProcessID \ string:$1 2>/dev/null | awk '/uint32/ {print $2}' } if [ "$1" = "remove" ]; then kill $(get_pid org.freedesktop.UPower) 2>/dev/null || true fi #DEBHELPER# debian/libupower-glib1.install0000664000000000000000000000003612231666525013573 0ustar usr/lib/*/libupower-glib.so.* debian/upower.preinst0000664000000000000000000000116312231666525012130 0ustar #!/bin/sh set -e # Prepare to move a conffile without triggering a dpkg question prep_mv_conffile() { local PKGNAME="$1" local CONFFILE="$2" [ -e "$CONFFILE" ] || return 0 local md5sum="$(md5sum $CONFFILE | sed -e 's/ .*//')" local old_md5sum="$(dpkg-query -W -f='${Conffiles}' $PKGNAME | \ sed -n -e "\' $CONFFILE ' { s/ obsolete$//; s/.* //; p }")" if [ "$md5sum" = "$old_md5sum" ]; then rm -f "$CONFFILE" fi } case "$1" in install|upgrade) if dpkg --compare-versions "$2" lt "0.9.4-2"; then prep_mv_conffile upower "/etc/UPower.conf" fi esac #DEBHELPER# debian/upower.postrm0000664000000000000000000000013212231666525011763 0ustar #!/bin/sh set -e if [ "$1" = "purge" ]; then rm -rf /var/lib/upower fi #DEBHELPER# debian/watch0000664000000000000000000000011312231666525010224 0ustar version=3 http://upower.freedesktop.org/releases/upower-([0-9.]+)\.tar\.xz debian/gbp.conf0000664000000000000000000000006512231666525010620 0ustar [DEFAULT] pristine-tar = True debian-branch = master debian/patches/0000775000000000000000000000000012255371740010625 5ustar debian/patches/ppc64el-support.patch0000664000000000000000000000267412255371740014646 0ustar Description: patch m4/libtool.m4 and regenerate configure. Author: Adam Conrad --- upower-0.9.23.orig/configure +++ upower-0.9.23/configure @@ -7360,7 +7360,10 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux* x86_64-*linux*) LD="${LD-ld} -m elf_i386" ;; - ppc64-*linux*|powerpc64-*linux*) + powerpc64le-*) + LD="${LD-ld} -m elf32lppclinux" + ;; + powerpc64-*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) @@ -7379,7 +7382,10 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux* x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; - ppc*-*linux*|powerpc*-*linux*) + powerpcle-*) + LD="${LD-ld} -m elf64lppc" + ;; + powerpc-*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) --- upower-0.9.23.orig/m4/libtool.m4 +++ upower-0.9.23/m4/libtool.m4 @@ -1326,7 +1326,10 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux* x86_64-*linux*) LD="${LD-ld} -m elf_i386" ;; - ppc64-*linux*|powerpc64-*linux*) + powerpc64le-*) + LD="${LD-ld} -m elf32lppclinux" + ;; + powerpc64-*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) @@ -1345,7 +1348,10 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux* x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; - ppc*-*linux*|powerpc*-*linux*) + powerpcle-*) + LD="${LD-ld} -m elf64lppc" + ;; + powerpc-*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) debian/patches/no_deprecation_define.patch0000664000000000000000000000127312231666525016156 0ustar Description: Do not require applications to define UPOWER_ENABLE_DEPRECATED to access suspend/resume functionality. We are not ready to do that yet in Debian. Author: Martin Pitt Index: upower/libupower-glib/up-client.h =================================================================== --- upower.orig/libupower-glib/up-client.h 2013-03-19 19:09:40.572836704 +0100 +++ upower/libupower-glib/up-client.h 2013-03-19 19:09:36.840836523 +0100 @@ -23,6 +23,9 @@ #error "Only can be included directly." #endif +/* Debian specific: We are not ready yet to deprecate this by default */ +#define UPOWER_ENABLE_DEPRECATED + #ifndef __UP_CLIENT_H #define __UP_CLIENT_H debian/patches/00git_clamp_percentage.patch0000664000000000000000000000662112231666525016151 0ustar From 22da1a0bc5943b683189418d8b0f766e91b2bdbe Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Tue, 22 Oct 2013 08:02:51 +0000 Subject: linux: Clamp percentage for overfull batteries Some batteries report energy > energy_full and a percentage ("capacity" attribute) > 100%. Clamp these within 0 and 100% for both plausibility as well as to avoid setting an out-of-range property which would then become 0%. https://launchpad.net/bugs/1240673 --- Index: upower/src/linux/integration-test =================================================================== --- upower.orig/src/linux/integration-test 2013-10-23 08:25:31.257239725 +0200 +++ upower/src/linux/integration-test 2013-10-23 08:25:31.253239725 +0200 @@ -442,6 +442,39 @@ self.assertEqual(self.get_dbus_property('OnLowBattery'), False) self.stop_daemon() + def test_battery_overfull(self): + '''battery which reports a > 100% percentage for a full battery''' + + self.testbed.add_device('power_supply', 'BAT0', None, + ['type', 'Battery', + 'present', '1', + 'status', 'Full', + 'current_now', '1000', + 'charge_now', '11000000', + 'charge_full', '10000000', + 'charge_full_design', '11000000', + 'capacity', '110', + 'voltage_now', '12000000'], []) + + self.start_daemon() + devs = self.proxy.EnumerateDevices() + self.assertEqual(len(devs), 1) + bat0_up = devs[0] + + # should clamp percentage + self.assertEqual(self.get_dbus_dev_property(bat0_up, 'Percentage'), 100.0) + self.assertEqual(self.get_dbus_dev_property(bat0_up, 'IsPresent'), True) + self.assertEqual(self.get_dbus_dev_property(bat0_up, 'State'), + UP_DEVICE_STATE_FULLY_CHARGED) + self.assertEqual(self.get_dbus_dev_property(bat0_up, 'Energy'), 132.0) + # should adjust EnergyFull to reality, not what the battery claims + self.assertEqual(self.get_dbus_dev_property(bat0_up, 'EnergyFull'), 132.0) + self.assertEqual(self.get_dbus_dev_property(bat0_up, 'EnergyFullDesign'), 132.0) + self.assertEqual(self.get_dbus_dev_property(bat0_up, 'Voltage'), 12.0) + self.assertEqual(self.get_dbus_dev_property(bat0_up, 'PowerSupply'), True) + self.assertEqual(self.get_dbus_dev_property(bat0_up, 'Type'), 2) + self.stop_daemon() + def test_battery_temperature(self): '''battery which reports temperature''' Index: upower/src/linux/up-device-supply.c =================================================================== --- upower.orig/src/linux/up-device-supply.c 2013-10-23 08:25:31.257239725 +0200 +++ upower/src/linux/up-device-supply.c 2013-10-23 08:25:31.253239725 +0200 @@ -708,6 +708,10 @@ /* get a precise percentage */ if (sysfs_file_exists (native_path, "capacity")) { percentage = sysfs_get_double (native_path, "capacity"); + if (percentage < 0.0f) + percentage = 0.0f; + if (percentage > 100.0f) + percentage = 100.0f; /* for devices which provide capacity, but not {energy,charge}_now */ if (energy < 0.1f && energy_full > 0.0f) energy = energy_full * percentage / 100; debian/patches/always_use_pm-utils_backend.patch0000664000000000000000000000270512231666525017331 0ustar Description: Always use the pm-utils backend for now Redirecting the suspend / hibernate request to logind requires systemd to be running, as logind tries to start the suspend.target / hibernate.target via the D-Bus interface provided by systemd. The availability of logind does not necessarily imply that systemd is available since we made logind D-Bus activatable under sysvinit. Also, the systemd version currently in unstable (v44) is too old and doesn't provide that functionality yet. Ubuntu ships a very basic implementation of that D-Bus inferface in systemd-shim which can be run under sysvinit. But we don't have that package in Debian (yet). For now, it's the safest option to just continue using the old pm-utils backend always. Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=718493 diff --git a/src/linux/up-backend.c b/src/linux/up-backend.c index b9f75f5..595a1b2 100644 --- a/src/linux/up-backend.c +++ b/src/linux/up-backend.c @@ -51,7 +51,7 @@ #ifdef ENABLE_DEPRECATED -#define LOGIND_AVAILABLE() (access("/run/systemd/seats/", F_OK) >= 0) +#define LOGIND_AVAILABLE() (FALSE) #define SD_HIBERNATE_COMMAND "gdbus call --system --dest org.freedesktop.login1 --object-path /org/freedesktop/login1 --method org.freedesktop.login1.Manager.Hibernate 'true'" #define SD_SUSPEND_COMMAND "gdbus call --system --dest org.freedesktop.login1 --object-path /org/freedesktop/login1 --method org.freedesktop.login1.Manager.Suspend 'true'" debian/patches/series0000664000000000000000000000021512255371715012042 0ustar # Debian patches for upower 00git_clamp_percentage.patch no_deprecation_define.patch always_use_pm-utils_backend.patch ppc64el-support.patch