diff -u acpid-2.0.7/debian/acpid.install acpid-2.0.7/debian/acpid.install --- acpid-2.0.7/debian/acpid.install +++ acpid-2.0.7/debian/acpid.install @@ -1,5 +1,4 @@ -debian/powerbtn usr/share/doc/acpid/examples/ -debian/powerbtn.sh usr/share/doc/acpid/examples/ +debian/powerbtn etc/acpi/events/ debian/examples/default usr/share/doc/acpid/examples/ debian/examples/default.sh usr/share/doc/acpid/examples/ debian/examples/ac usr/share/doc/acpid/examples/ diff -u acpid-2.0.7/debian/control acpid-2.0.7/debian/control --- acpid-2.0.7/debian/control +++ acpid-2.0.7/debian/control @@ -1,11 +1,12 @@ Source: acpid Section: admin Priority: optional -Maintainer: Debian Acpi Team +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Debian Acpi Team Uploaders: Michael Meskes , Loic Minier Standards-Version: 3.9.1 -Build-Depends: debhelper (>= 5) +Build-Depends: debhelper (>= 7.3.15ubuntu2) Vcs-Git: git://git.debian.org/git/pkg-acpi/acpid.git Vcs-Browser: http://git.debian.org/?p=pkg-acpi/acpid.git Homepage: http://acpid.sourceforge.net/ @@ -16,7 +17,6 @@ ${misc:Depends}, lsb-base (>= 3.2-14), module-init-tools (>> 3.1-rel-2) -Recommends: acpi-support-base (>= 0.114-1) Description: Advanced Configuration and Power Interface event daemon Modern computers support the Advanced Configuration and Power Interface (ACPI) to allow intelligent power management on your system and to query battery and diff -u acpid-2.0.7/debian/rules acpid-2.0.7/debian/rules --- acpid-2.0.7/debian/rules +++ acpid-2.0.7/debian/rules @@ -19,6 +19,8 @@ dh_testroot dh_clean dh_installdirs + # Install powerbtn.sh script and make it executable + install -m 755 -D debian/powerbtn.sh debian/acpid/etc/acpi/powerbtn.sh binary: binary-arch binary-indep diff -u acpid-2.0.7/debian/acpid.preinst acpid-2.0.7/debian/acpid.preinst --- acpid-2.0.7/debian/acpid.preinst +++ acpid-2.0.7/debian/acpid.preinst @@ -16,26 +16,14 @@ echo "Saving as $CONFFILE.dpkg-bak ..." mv -f "$CONFFILE" "$CONFFILE".dpkg-bak else - if [ "$CONFFILE" = "/etc/acpi/events/powerbtn" -a -e /etc/acpi/powerbtn.sh.dpkg-bak ]; then - # we need some special logic for /etc/acpi/events/powerbtn because it might - # be kept because it was changed itself or because /etc/acpi/powerbtn.sh was changed - echo "Obsolete conffile $CONFFILE saved as $CONFFILE.dpkg-bak ..." - sed -e 's#/etc/acpi/powerbtn.sh#/etc/acpi/powerbtn.sh.dpkg-bak#' < "$CONFFILE" > "$CONFFILE".dpkg-bak - else - echo "Removing obsolete conffile $CONFFILE ..." - fi - rm -f "$CONFFILE" + echo "Removing obsolete conffile $CONFFILE ..." + rm -f "$CONFFILE" fi fi } - case "$1" in install|upgrade) - if dpkg --compare-versions "$2" lt 1.0.8-7; then - rm_conffile acpid /etc/logrotate.d/acpid - rm_conffile acpid /etc/acpi/powerbtn.sh - rm_conffile acpid /etc/acpi/events/powerbtn - fi + rm_conffile acpid /etc/logrotate.d/acpid ;; esac diff -u acpid-2.0.7/debian/powerbtn.sh acpid-2.0.7/debian/powerbtn.sh --- acpid-2.0.7/debian/powerbtn.sh +++ acpid-2.0.7/debian/powerbtn.sh @@ -3,6 +3,8 @@ # Initiates a shutdown when the power putton has been # pressed. +[ -r /usr/share/acpi-support/power-funcs ] && . /usr/share/acpi-support/power-funcs + # getXuser gets the X user belonging to the display in $displaynum. # If you want the foreground X user, use getXconsole! getXuser() { @@ -29,7 +31,7 @@ # handles suspend/resume requests, let them handle policy This is effectively # the same as 'acpi-support's '/usr/share/acpi-support/policy-funcs' file. -getXconsole +[ -r /usr/share/acpi-support/power-funcs ] && getXconsole PMS="gnome-power-manager kpowersave xfce4-power-manager" PMS="$PMS guidance-power-manager.py dalston-power-applet" diff -u acpid-2.0.7/debian/changelog acpid-2.0.7/debian/changelog --- acpid-2.0.7/debian/changelog +++ acpid-2.0.7/debian/changelog @@ -1,3 +1,31 @@ +acpid (1:2.0.7-1ubuntu1) natty; urgency=low + + * Merge from debian unstable (LP: #507778), remaining changes: + - Replace init script with Upstart job + + This does not load modules, unlike the init script, since these are + all loaded by ACPI:* modaliases now (and thus by udev) + - debian/control: Bump build-dependency on debhelper for Upstart-aware + dh_installinit + - debian/preinst, debian/acpid.install, debian/control, debian/rules: + continue installing /etc/acpi/events/powerbtn and /etc/acpi/powerbtn.sh, + deferring the migration to acpi-support-base; and drop the Recommends: + on acpi-support-base for the same reason. + - Source /usr/share/acpi-support/power-funcs in powerbtn.sh (LP: #508073) + - debian/powerbtn.sh: ensure that /usr/share/acpi-support/power-funcs + exists before sourcing it; note that acpid does not depend on + acpi-support (which is fine, as it brings in lots of X dependencies + not appropriate for servers); this fix will allow Ubuntu servers + (especially those in VMs) to run acpid and catch and handle power + button events again; LP: #570450 + * Dropped changes: + - New patch, missing-includes, to fix missing includes of sys/types.h and + sys/stat.h for umask() and stat() in acpid.c; fixes FTBFS: no longer + needed + - Update patch missing-includes to also fix the same missing includes in + sock.c; this is all fixed in 2.0.x versions of acpid: no longer needed + + -- Lorenzo De Liso Tue, 23 Nov 2010 20:26:47 +0100 + acpid (1:2.0.7-1) unstable; urgency=low * Imported Upstream version 2.0.7 @@ -86,6 +114,52 @@ -- Michael Meskes Mon, 21 Dec 2009 13:03:48 +0100 +acpid (1.0.10-5ubuntu4) maverick; urgency=low + + * Update patch missing-includes to also fix the same missing includes in + sock.c; this is all fixed in 2.0.x versions of acpid. + + -- Loïc Minier Sun, 27 Jun 2010 14:34:03 +0200 + +acpid (1.0.10-5ubuntu3) maverick; urgency=low + + * New patch, missing-includes, to fix missing includes of sys/types.h and + sys/stat.h for umask() and stat() in acpid.c; fixes FTBFS. + + -- Loïc Minier Sun, 27 Jun 2010 14:26:12 +0200 + +acpid (1.0.10-5ubuntu2.1) lucid-proposed; urgency=low + + * debian/powerbtn.sh: ensure that /usr/share/acpi-support/power-funcs + exists before sourcing it; note that acpid does not depend on + acpi-support (which is fine, as it brings in lots of X dependencies + not appropriate for servers); this fix will allow Ubuntu servers + (especially those in VMs) to run acpid and catch and handle power + button events again; LP: #570450 + + -- Dustin Kirkland Mon, 26 Apr 2010 17:25:02 -0500 + +acpid (1.0.10-5ubuntu2) lucid; urgency=low + + * Source /usr/share/acpi-support/power-funcs in powerbtn.sh (LP: #508073) + + -- Jonathan Thomas Fri, 15 Jan 2010 19:59:47 -0500 + +acpid (1.0.10-5ubuntu1) lucid; urgency=low + + * Merge from Debian testing. Remaining changes: + - Replace init script with Upstart job. + - This does not load modules, unlike the init script, since these are + all loaded by ACPI:* modaliases now (and thus by udev) + - debian/control: + - Bump build-dependency on debhelper for Upstart-aware dh_installinit + - debian/preinst, debian/acpid.install, debian/control, debian/rules: + continue installing /etc/acpi/events/powerbtn and /etc/acpi/powerbtn.sh, + deferring the migration to acpi-support-base; and drop the Recommends: + on acpi-support-base for the same reason. + + -- Steve Langasek Wed, 23 Dec 2009 00:32:09 +0000 + acpid (1.0.10-5) unstable; urgency=high * Correct permissions that were incorrectly set by very old acpid versions. @@ -93,6 +167,38 @@ -- Michael Meskes Tue, 15 Dec 2009 13:11:29 +0100 +acpid (1.0.10-4ubuntu1) lucid; urgency=low + + * Merge from Debian testing. Remaining changes: + - Replace init script with Upstart job. + - This does not load modules, unlike the init script, since these are + all loaded by ACPI:* modaliases now (and thus by udev) + - debian/control: + - Bump build-dependency on debhelper for Upstart-aware dh_installinit + * Dropped changes, integrated upstream: + - build with -D_GNU_SOURCE to make "struct ucred" available + - acpid.*, event.c, ud_socket.*: limit the number of non-root clients, + correctly close dead connections. + - Remove the logrotate file on upgrade + - Bump Standards-Version to 3.8.0 + - debian/powerbtn.sh: + - Update for KDE 4 + - Add dalston-power-applet to list of handlers for power + button events + - add xfce4-power-manager to the list of handlers as well. + * Dropped changes, superseded by upstart conversion: + - debian/acpid.init.d: add the 'status' action + - Replace "multiuser" deprecated init mode in debian/rules with manual + arguments. Adapt the corresponding change in LSB init script header + and runtime dependency in debian/control + - depend on sysv-rc + * debian/preinst, debian/acpid.install, debian/control, debian/rules: + continue installing /etc/acpi/events/powerbtn and /etc/acpi/powerbtn.sh, + deferring the migration to acpi-support-base; and drop the Recommends: + on acpi-support-base for the same reason. + + -- Steve Langasek Fri, 18 Dec 2009 07:44:04 +0000 + acpid (1.0.10-4) unstable; urgency=low * Updated netlink patch to version 6. @@ -339,6 +445,100 @@ -- Michael Meskes Fri, 20 Jun 2008 14:21:14 +0200 +acpid (1.0.6-9ubuntu8) karmic; urgency=low + + * debian/powerbtn.sh: add xfce4-power-manager to the list of handlers as + well. LP: #425155 + + -- Lionel Le Folgoc Wed, 23 Sep 2009 14:53:01 +0200 + +acpid (1.0.6-9ubuntu7) karmic; urgency=low + + * debian/powerbtn.sh: + - Add dalston-power-applet to list of handlers for power + button events (part of fix for LP: #432578). + + -- Gary Lasker Fri, 18 Sep 2009 12:25:33 -0400 + +acpid (1.0.6-9ubuntu6) karmic; urgency=low + + FFE LP: #427356. + + * Replace init script with Upstart job. + - This does not load modules, unlike the init script, since these are + all loaded by ACPI:* modaliases now (and thus by udev) + * debian/control: + - Bump build-dependency on debhelper for Upstart-aware dh_installinit + + -- Scott James Remnant Tue, 15 Sep 2009 03:34:49 +0100 + +acpid (1.0.6-9ubuntu5) karmic; urgency=low + + * Upload jaunty changes to karmic + + -- Jonathan Riddell Tue, 28 Apr 2009 11:07:28 +0100 + +acpid (1.0.6-9ubuntu4.9.04.3) jaunty-proposed; urgency=low + + * Update /etc/acpi/powerbtn.sh for KDE 4 + Closes LP: #368497 + + -- Jonathan Riddell Tue, 28 Apr 2009 11:01:13 +0100 + +acpid (1.0.6-9ubuntu4.9.04.2) jaunty-security; urgency=low + + * SECURITY UPDATE: denial of service via too many open files + - acpid.*, event.c, ud_socket.*: limit the number of non-root clients, + correctly close dead connections. + - CVE-2009-0798 + + -- Marc Deslauriers Wed, 22 Apr 2009 15:09:59 -0400 + +acpid (1.0.6-9ubuntu4) intrepid; urgency=low + + * Remove the logrotate file on upgrade, as the previous one that was + installed did a "kill -USR1" on the acpid process to cause it to reload + its logfiles. As the new acpid doesn't use a log file it doesn't catch + this signal, which means that once a week acpid is killed. As it doesn't + have a logfile the logrotate file is not needed, and so is no longer + installed, but as it was a conffile it is not removed on upgrades. + Thanks to Loic Minier for his help with the fix. (LP: #263888) + - ad81211857dabeb88538e0f90c922b7c787b34c5 in Debian's pkg-acpi git repo. + + -- James Westby Wed, 24 Sep 2008 15:19:14 +0100 + +acpid (1.0.6-9ubuntu3) intrepid; urgency=low + + * Replace "multiuser" deprecated init mode in debian/rules with manual + arguments. Adapt the corresponding change in LSB init script header and + runtime dependency in debian/control (LP: #254249) + + -- Didier Roche Wed, 13 Aug 2008 19:50:50 +0200 + +acpid (1.0.6-9ubuntu2) intrepid; urgency=low + + * debian/control + - Depend on lsb-base >= 3.2-14, providing status_of_proc() + - Bump Standards-Version to 3.8.0 + * debian/acpid.init.d + - Add the 'status' action (LP: #251681) + + -- Nathan Handler Thu, 24 Jul 2008 21:03:02 -0500 + +acpid (1.0.6-9ubuntu1) intrepid; urgency=low + + * Merge from debian unstable, remaining changes: + - init script starts earlier + - depend on sysv-rc + * removed ubuntu specific -G (lockfilegroup) options, it does + no longer apply because acpid now uses syslog by default + * disable debian update-rc.d call to make acpid run earlier on + upgrade, out packages already run early + * build with -D_GNU_SOURCE to make "struct ucred" available + (see also http://sourceware.org/bugzilla/show_bug.cgi?id=6545) + + -- Michael Vogt Mon, 02 Jun 2008 09:58:14 +0200 + acpid (1.0.6-9) unstable; urgency=low * Don't depend on sysv-rc; closes: #481912 only in patch2: unchanged: --- acpid-2.0.7.orig/debian/acpid.upstart +++ acpid-2.0.7/debian/acpid.upstart @@ -0,0 +1,14 @@ +# acpid - ACPI daemon +# +# The ACPI daemon provides a socket for other daemons to multiplex kernel +# ACPI events from, and a framework for reacting to those events. + +description "ACPI daemon" + +start on runlevel [2345] +stop on runlevel [!2345] + +expect fork +respawn + +exec acpid -c /etc/acpi/events -s /var/run/acpid.socket