source: npl/system/acpid/acpid_2.0.10-1ubuntu3.diff @ c9755c3

perl-5.22
Last change on this file since c9755c3 was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 70.3 KB
RevLine 
[c5c522c]1--- acpid-2.0.10.orig/event.c
2+++ acpid-2.0.10/event.c
3@@ -641,6 +641,7 @@
4                if (acpid_debug && logevents) {
5                        fprintf(stdout, "BEGIN HANDLER MESSAGES\n");
6                }
7+               umask(0077);
8                execl("/bin/sh", "/bin/sh", "-c", action, NULL);
9                /* should not get here */
10                acpid_log(LOG_ERR, "execl(): %s", strerror(errno));
11--- acpid-2.0.10.orig/Makefile
12+++ acpid-2.0.10/Makefile
13@@ -31,7 +31,7 @@
14 
15 DOCS = COPYING Changelog README TESTPLAN TODO
16 
17-CFLAGS = -W -Wall -Werror -Wundef -Wshadow -D_GNU_SOURCE $(OPT) \
18+CFLAGS = -W -Wall -Werror -Wno-error=sign-compare -Wundef -Wshadow -D_GNU_SOURCE $(OPT) \
19        -fno-strict-aliasing -g $(DEFS)
20 DEFS = -DVERSION="\"$(VERSION)\""
21 
22--- acpid-2.0.10.orig/debian/changelog
23+++ acpid-2.0.10/debian/changelog
24@@ -0,0 +1,1426 @@
25+acpid (1:2.0.10-1ubuntu3) precise; urgency=low
26+
27+  * SECURITY UPDATE: Arbitrary code execution in the power button handling
28+    script (LP: #893821)
29+    - debian/powerbtn.sh: Ensure that the DBUS_SESSION_BUS_ADDRESS environment
30+      variable is only read from a process owned by the user that will be
31+      evaluating the variable.
32+    - CVE-2011-2777
33+  * SECURITY UPDATE: Unprivileged users may be able to write to directories
34+    and read files created by event handler scripts
35+    - event.c: Set a restrictive umask of 0077 before running an event handler
36+      script. Based on upstream patch.
37+    - CVE-2011-4578
38+
39+ -- Tyler Hicks <tyhicks@canonical.com>  Wed, 07 Dec 2011 16:33:35 -0600
40+
41+acpid (1:2.0.10-1ubuntu2) oneiric; urgency=low
42+
43+  * ./debian/powerbtn.sh: gnome-power-manager is no more, check for
44+    gnome-settings-daemon now. This fixes immediate shutdown when the power
45+    button is pressed. (LP: #837266)
46+
47+ -- Martin Pitt <martin.pitt@ubuntu.com>  Tue, 30 Aug 2011 12:07:43 +0200
48+
49+acpid (1:2.0.10-1ubuntu1) oneiric; urgency=low
50+
51+  * Merge with Debian; remaining changes:
52+    - see 1:2.0.9-1ubuntu1 changelog.
53+
54+ -- Matthias Klose <doko@ubuntu.com>  Fri, 20 May 2011 15:03:02 +0200
55+
56+acpid (1:2.0.10-1) unstable; urgency=low
57+
58+  * Imported Upstream version 2.0.10
59+  * Bumped Standards-Version to 3.9.2, no changes needed.
60+
61+ -- Michael Meskes <meskes@debian.org>  Thu, 19 May 2011 15:51:12 +0200
62+
63+acpid (1:2.0.9-1ubuntu1) oneiric; urgency=low
64+
65+  * Merge from debian unstable (LP: #776687), remaining changes:
66+    - Replace init script with Upstart job
67+      + This does not load modules, unlike the init script, since these are
68+        all loaded by ACPI:* modaliases now (and thus by udev)
69+    - debian/control: Bump build-dependency on debhelper for Upstart-aware
70+      dh_installinit
71+    - debian/preinst, debian/acpid.install, debian/control, debian/rules:
72+      continue installing /etc/acpi/events/powerbtn and /etc/acpi/powerbtn.sh,
73+      deferring the migration to acpi-support-base; and drop the Recommends:
74+      on acpi-support-base for the same reason.
75+    - Source /usr/share/acpi-support/power-funcs in powerbtn.sh
76+    - debian/powerbtn.sh: ensure that /usr/share/acpi-support/power-funcs
77+      exists before sourcing it; note that acpid does not depend on
78+      acpi-support (which is fine, as it brings in lots of X dependencies
79+      not appropriate for servers); this fix will allow Ubuntu servers
80+      (especially those in VMs) to run acpid and catch and handle power
81+      button events again.
82+    - Fix build error with GCC-4.5, build with -Wno-error=sign-compare.
83+
84+ -- Lorenzo De Liso <blackz@ubuntu.com>  Tue, 03 May 2011 22:20:47 +0200
85+
86+acpid (1:2.0.9-1) unstable; urgency=low
87+
88+  * Imported Upstream version 2.0.9
89+
90+ -- Michael Meskes <meskes@debian.org>  Sun, 17 Apr 2011 16:33:17 +0200
91+
92+acpid (1:2.0.8-4) unstable; urgency=low
93+
94+  * Updated homepage filed to point to new URL. (Closes: #618537)
95+  * Removed all code handling /etc/init.d/hal which does not exist anymore in
96+    newer versions. (Closes: #618905)
97+
98+ -- Michael Meskes <meskes@debian.org>  Fri, 25 Mar 2011 15:28:00 +0100
99+
100+acpid (1:2.0.8-3) unstable; urgency=low
101+
102+  * Allow build flags to be customized by setting DEB_BUILD_OPTIONS in the
103+    build-time environment. Thanks to Jonathan Nieder <jrnieder@gmail.com>
104+  * Remove variable that is not used in kacpimon.
105+    Thanks to Jonathan Nieder <jrnieder@gmail.com> (Closes: #616306)
106+
107+ -- Michael Meskes <meskes@debian.org>  Fri, 11 Mar 2011 12:16:31 +0100
108+
109+acpid (1:2.0.8-2) unstable; urgency=low
110+
111+  * Make both sides of the comparison signed so the package builds again.
112+    (Closes: #616194)
113+
114+ -- Michael Meskes <meskes@debian.org>  Thu, 03 Mar 2011 12:14:12 +0100
115+
116+acpid (1:2.0.8-1) unstable; urgency=low
117+
118+  * Imported Upstream version 2.0.8
119+
120+ -- Michael Meskes <meskes@debian.org>  Wed, 16 Feb 2011 09:25:51 +0100
121+
122+acpid (1:2.0.7-1ubuntu2) natty; urgency=low
123+
124+  * Fix build error with GCC-4.5, build with -Wno-error=sign-compare.
125+
126+ -- Matthias Klose <doko@ubuntu.com>  Fri, 07 Jan 2011 14:00:59 +0100
127+
128+acpid (1:2.0.7-1ubuntu1) natty; urgency=low
129+
130+  * Merge from debian unstable (LP: #507778), remaining changes:
131+    - Replace init script with Upstart job
132+      + This does not load modules, unlike the init script, since these are
133+        all loaded by ACPI:* modaliases now (and thus by udev)
134+    - debian/control: Bump build-dependency on debhelper for Upstart-aware
135+      dh_installinit
136+    - debian/preinst, debian/acpid.install, debian/control, debian/rules:
137+      continue installing /etc/acpi/events/powerbtn and /etc/acpi/powerbtn.sh,
138+      deferring the migration to acpi-support-base; and drop the Recommends:
139+      on acpi-support-base for the same reason.
140+    - Source /usr/share/acpi-support/power-funcs in powerbtn.sh (LP: #508073)
141+    - debian/powerbtn.sh: ensure that /usr/share/acpi-support/power-funcs
142+      exists before sourcing it; note that acpid does not depend on
143+      acpi-support (which is fine, as it brings in lots of X dependencies
144+      not appropriate for servers); this fix will allow Ubuntu servers
145+      (especially those in VMs) to run acpid and catch and handle power
146+      button events again; LP: #570450
147+  * Dropped changes:
148+    - New patch, missing-includes, to fix missing includes of sys/types.h and
149+      sys/stat.h for umask() and stat() in acpid.c; fixes FTBFS: no longer
150+      needed
151+    - Update patch missing-includes to also fix the same missing includes in
152+      sock.c; this is all fixed in 2.0.x versions of acpid: no longer needed
153+
154+ -- Lorenzo De Liso <blackz@ubuntu.com>  Tue, 23 Nov 2010 20:26:47 +0100
155+
156+acpid (1:2.0.7-1) unstable; urgency=low
157+
158+  * Imported Upstream version 2.0.7
159+
160+ -- Michael Meskes <meskes@debian.org>  Tue, 16 Nov 2010 08:47:57 +0100
161+
162+acpid (1:2.0.6-2) unstable; urgency=low
163+
164+  * Added prepatch from 2.0.7 to remove superfluous logging. (Closes:
165+    #598198)
166+  * Added prepatch from 2.0.7 to add support for more buttons. (Closes:
167+    #600564) - thanks to Stanislav Maslovski
168+    <stanislav.maslovski@gmail.com>
169+  * Bumped Standards-Version to 3.9.1, no changes needed.
170+
171+ -- Michael Meskes <meskes@debian.org>  Sun, 14 Nov 2010 15:14:38 +0100
172+
173+acpid (1:2.0.6-1) unstable; urgency=low
174+
175+  * Imported Upstream version 2.0.6
176+
177+ -- Michael Meskes <meskes@debian.org>  Fri, 18 Jun 2010 11:07:01 +0200
178+
179+acpid (1:2.0.5-1) unstable; urgency=low
180+
181+  * Imported Upstream version 2.0.5
182+
183+ -- Michael Meskes <meskes@debian.org>  Sun, 16 May 2010 11:24:54 +0200
184+
185+acpid (1:2.0.4-1) unstable; urgency=low
186+
187+  * New Upstream version 2.0.4
188+  * Added source format file.
189+
190+ -- Michael Meskes <meskes@debian.org>  Thu, 22 Apr 2010 09:44:05 +0200
191+
192+acpid (1:2.0.3-1) unstable; urgency=low
193+
194+  * New Upstream version 2.0.3
195+
196+ -- Michael Meskes <meskes@debian.org>  Wed, 17 Mar 2010 10:05:04 +0100
197+
198+acpid (1:2.0.2-1) unstable; urgency=low
199+
200+  * New upstream version.
201+  * Bumped Standards-Version to 3.8.4, no changes needed.
202+
203+ -- Michael Meskes <meskes@debian.org>  Mon, 15 Feb 2010 16:25:13 +0100
204+
205+acpid (1:2.0.1-2) unstable; urgency=low
206+
207+  * Acpid does work on non-i386/amd64 archs but not on non-linux
208+    systems.
209+  * Prevent breakage of Xserver resulting from a may connection number
210+    that was set too low. (Closes: #565908) - thanks to Willi Mann
211+    <willi@wm1.at>
212+  * Extended kacpimon description to explain the package a little bit
213+    better.
214+  * Escape unescaped dashes in manpage.
215+
216+ -- Michael Meskes <meskes@debian.org>  Sun, 24 Jan 2010 14:30:56 +0100
217+
218+acpid (1:2.0.1-1) unstable; urgency=low
219+
220+  * Imported Upstream version 2.0.1
221+  * Removed patch system which is no longer needed because upstream included
222+    all our patches.
223+  * Install kacpimon manpage.
224+
225+ -- Michael Meskes <meskes@debian.org>  Sat, 16 Jan 2010 11:35:14 +0100
226+
227+acpid (1:2.0.0-2) unstable; urgency=low
228+
229+  * Put kacpimon back into the right section and priority.
230+  * Make loading of all modules work with modules.dep files with
231+    relative paths. (Closes: #563915)
232+  * Do not include /etc/default/rcS in init script because it is not needed.
233+
234+ -- Michael Meskes <meskes@debian.org>  Fri, 08 Jan 2010 09:16:54 +0100
235+
236+acpid (1:2.0.0-1) unstable; urgency=low
237+
238+  * New Upstream version from new source tree that already incorporates the
239+    netlink patch..
240+  * Build kacpimon from the new source tree too.
241+
242+ -- Michael Meskes <meskes@debian.org>  Mon, 21 Dec 2009 13:03:48 +0100
243+
244+acpid (1.0.10-5ubuntu4) maverick; urgency=low
245+
246+  * Update patch missing-includes to also fix the same missing includes in
247+    sock.c; this is all fixed in 2.0.x versions of acpid.
248+
249+ -- Loïc Minier <loic.minier@ubuntu.com>  Sun, 27 Jun 2010 14:34:03 +0200
250+
251+acpid (1.0.10-5ubuntu3) maverick; urgency=low
252+
253+  * New patch, missing-includes, to fix missing includes of sys/types.h and
254+    sys/stat.h for umask() and stat() in acpid.c; fixes FTBFS.
255+
256+ -- Loïc Minier <loic.minier@ubuntu.com>  Sun, 27 Jun 2010 14:26:12 +0200
257+
258+acpid (1.0.10-5ubuntu2.1) lucid-proposed; urgency=low
259+
260+  * debian/powerbtn.sh: ensure that /usr/share/acpi-support/power-funcs
261+    exists before sourcing it; note that acpid does not depend on
262+    acpi-support (which is fine, as it brings in lots of X dependencies
263+    not appropriate for servers); this fix will allow Ubuntu servers
264+    (especially those in VMs) to run acpid and catch and handle power
265+    button events again; LP: #570450
266+
267+ -- Dustin Kirkland <kirkland@ubuntu.com>  Mon, 26 Apr 2010 17:25:02 -0500
268+
269+acpid (1.0.10-5ubuntu2) lucid; urgency=low
270+
271+  * Source /usr/share/acpi-support/power-funcs in powerbtn.sh (LP: #508073)
272+
273+ -- Jonathan Thomas <echidnaman@kubuntu.org>  Fri, 15 Jan 2010 19:59:47 -0500
274+
275+acpid (1.0.10-5ubuntu1) lucid; urgency=low
276+
277+  * Merge from Debian testing.  Remaining changes:
278+    - Replace init script with Upstart job.
279+      - This does not load modules, unlike the init script, since these are
280+        all loaded by ACPI:* modaliases now (and thus by udev)
281+    - debian/control:
282+      - Bump build-dependency on debhelper for Upstart-aware dh_installinit
283+    - debian/preinst, debian/acpid.install, debian/control, debian/rules:
284+      continue installing /etc/acpi/events/powerbtn and /etc/acpi/powerbtn.sh,
285+      deferring the migration to acpi-support-base; and drop the Recommends:
286+      on acpi-support-base for the same reason.
287+
288+ -- Steve Langasek <steve.langasek@ubuntu.com>  Wed, 23 Dec 2009 00:32:09 +0000
289+
290+acpid (1.0.10-5) unstable; urgency=high
291+
292+  * Correct permissions that were incorrectly set by very old acpid versions.
293+    This fixes CVE-2009-4235. (Closes: #560771)
294+
295+ -- Michael Meskes <meskes@debian.org>  Tue, 15 Dec 2009 13:11:29 +0100
296+
297+acpid (1.0.10-4ubuntu1) lucid; urgency=low
298+
299+  * Merge from Debian testing.  Remaining changes:
300+    - Replace init script with Upstart job.
301+      - This does not load modules, unlike the init script, since these are
302+        all loaded by ACPI:* modaliases now (and thus by udev)
303+    - debian/control:
304+      - Bump build-dependency on debhelper for Upstart-aware dh_installinit
305+  * Dropped changes, integrated upstream:
306+    - build with -D_GNU_SOURCE to make "struct ucred" available
307+    - acpid.*, event.c, ud_socket.*: limit the number of non-root clients,
308+      correctly close dead connections.
309+    - Remove the logrotate file on upgrade
310+    - Bump Standards-Version to 3.8.0
311+    - debian/powerbtn.sh:
312+      - Update for KDE 4
313+      - Add dalston-power-applet to list of handlers for power
314+        button events
315+      - add xfce4-power-manager to the list of handlers as well.
316+  * Dropped changes, superseded by upstart conversion:
317+    - debian/acpid.init.d: add the 'status' action
318+    - Replace "multiuser" deprecated init mode in debian/rules with manual
319+      arguments. Adapt the corresponding change in LSB init script header
320+      and runtime dependency in debian/control
321+    - depend on sysv-rc
322+  * debian/preinst, debian/acpid.install, debian/control, debian/rules:
323+    continue installing /etc/acpi/events/powerbtn and /etc/acpi/powerbtn.sh,
324+    deferring the migration to acpi-support-base; and drop the Recommends:
325+    on acpi-support-base for the same reason.
326+
327+ -- Steve Langasek <steve.langasek@ubuntu.com>  Fri, 18 Dec 2009 07:44:04 +0000
328+
329+acpid (1.0.10-4) unstable; urgency=low
330+
331+  * Updated netlink patch to version 6.
332+
333+ -- Michael Meskes <meskes@debian.org>  Tue, 17 Nov 2009 14:50:01 +0100
334+
335+acpid (1.0.10-3) unstable; urgency=low
336+
337+  * Made acpid recommend correct version of acpi-support-base.
338+  * Added missing input defines for Thinkpads. (Closes: #521280) -
339+    thanks to Harald Braumann <harry@unheit.net>
340+  * Fixed package description. (Closes: #549948) - thanks to Justin B
341+    Rye <jbr@edlug.org.uk>
342+  * Clarify some wording. - thanks to Thiemo Nagel
343+    <thiemo.nagel@ph.tum.de>
344+  * Bumped Standards-Version to 3.8.3, no changes needed.
345+  * Fix some lintian warnings.
346+  * Updated list of power managers. (Closes: #547326)
347+  * Stopping for single user mode could be done by sendsigs as well.
348+  * Updated to netlink patch to version 1.0.10-netlink5. (Closes:
349+    #522756)
350+
351+ -- Michael Meskes <meskes@debian.org>  Mon, 09 Nov 2009 14:46:15 +0100
352+
353+acpid (1.0.10-2) unstable; urgency=low
354+
355+  * Updated netlink patch to version 1.0.10-netlink2.
356+  * Added patch to make acpid compile with gcc 4.4, closes: #526665
357+
358+ -- Michael Meskes <meskes@debian.org>  Mon, 04 May 2009 14:41:24 +0200
359+
360+acpid (1.0.10-1) unstable; urgency=high
361+
362+  * New upstream version fixing CVE-2009-0798.
363+  * Removed fixfd patch which was applied upstream.
364+  * Made example powerbtn.sh script work with kde4, closes: #526000
365+
366+ -- Michael Meskes <meskes@debian.org>  Tue, 28 Apr 2009 09:24:25 +0200
367+
368+acpid (1.0.8-8) unstable; urgency=low
369+
370+  * Fixed netlink patch to not expect long option --netlink to carry an
371+    argument, closes: #524223
372+  * Do not remove /etc/acpi/ config at each upgrade, closes: #524528
373+
374+ -- Michael Meskes <meskes@debian.org>  Mon, 20 Apr 2009 14:04:32 +0200
375+
376+acpid (1.0.8-7) unstable; urgency=low
377+
378+  * Fixed ioctl call to use correct buffer size, closes: #521512
379+  * Do not print error message for missing event file unless we are in debug
380+    mode, closes: #521666
381+  * Bumped Standards-Version to 3.8.1, no changes needed.
382+
383+ -- Michael Meskes <meskes@debian.org>  Sun, 29 Mar 2009 17:13:02 +0200
384+
385+acpid (1.0.8-6) unstable; urgency=low
386+
387+  * Start acpid even if /proc/acpi/event doesn't exist, closes: #516079
388+  * Recommend acpi-support-base so a script handling power button pressing is
389+    installed.
390+  * If the power button script had been changed, not only rename it but also
391+    keep a changed events file to not lose functionality, closes: #516083
392+
393+ -- Michael Meskes <meskes@debian.org>  Thu, 19 Feb 2009 10:03:40 +0100
394+
395+acpid (1.0.8-5) unstable; urgency=low
396+
397+  * Reverted redirection patch, it broke debug mode.
398+
399+ -- Michael Meskes <meskes@debian.org>  Thu, 19 Feb 2009 09:44:59 +0100
400+
401+acpid (1.0.8-4) unstable; urgency=low
402+
403+  * Added patch to correctly redirect stdin/stdout/stderr to /dev/null.
404+  * Added patch by Ted Felix <ted@tedfelix.com> adding netlink support to
405+    acpid, closes: #462467, #515773
406+
407+ -- Michael Meskes <meskes@debian.org>  Wed, 18 Feb 2009 12:05:51 +0100
408+
409+acpid (1.0.8-3) unstable; urgency=low
410+
411+  * Only conditionally restart hal on purge, closes: #515650
412+  * Remove the remaining scriptlets in /etc/acpi. All files are still available
413+    and installed as examples under /usr/share/doc/acpid/examples but not under
414+    /etc/acpi anymore.
415+  * Fixed GPL version information in copyright file.
416+
417+ -- Michael Meskes <meskes@debian.org>  Tue, 17 Feb 2009 11:10:42 +0100
418+
419+acpid (1.0.8-2) unstable; urgency=low
420+
421+  [ Loic Minier ]
422+  * Add git-buildpackage config debian/gbp.conf.
423+
424+  [ Michael Meskes ]
425+  * Added patch by Harald Braumann <harry@unheit.net> to correctly open
426+    /dev/null, closes: #483805
427+  * Removed old syslog patch as upstream has the same/similar functionality
428+    nowadays, closes: #496574
429+  * Made powerbtn.sh script fall back to shutdown if dbus fails, closes: #492756
430+  * Restart hal in case of acpid removal, closes: #505663
431+
432+ -- Michael Meskes <meskes@debian.org>  Wed, 11 Feb 2009 16:53:06 +0100
433+
434+acpid (1.0.8-1) unstable; urgency=low
435+
436+  [ Loic Minier ]
437+  * Comment out OPTIONS in the acpid defaults file as -c /etc/acpi/events is
438+    the default anyway; this paves the way to a future removal of this file.
439+  * Test for /proc/acpi/event instead of /proc/acpi in init script;
440+    see Debian #440870.
441+  * Document rationale for hal restart in postinst.
442+
443+  [ Michael Meskes ]
444+  * New upstream version.
445+  * Moved our patches to debian/patches and added support for quilt.
446+
447+ -- Michael Meskes <meskes@debian.org>  Wed, 12 Nov 2008 14:29:15 +0100
448+
449+acpid (1.0.6-16) unstable; urgency=low
450+
451+  [ Loic Minier ]
452+  * Reword hints in /etc/default/acpid; suggested by Julien Blache.
453+  * Drop bogus space in modules.dep causing modules without dependencies to
454+    not be loaded for MODULES="all".
455+  * Check for read permissions on the defaults file before attempting to
456+    source it.
457+  * Don't load any module (MODULES default to empty string) when the default
458+    file doesn't exist or doesn't specify MODULES.
459+  * Ignore the result of load_modules.
460+  * Unset MODPROBE_OPTIONS to work around a bug in initramfs which leaks this
461+    env var Launchpad #291619 and a bug in modprobe --all --quiet which
462+    doesn't load all modules and exits with non-zero exit status
463+    Debian.org #504088; thanks Derrick Karpo and Julien Blache;
464+    closes: #502704.
465+
466+  [ Michael Meskes ]
467+  * Make sure there is no link created in runlevel 0 and 6 to stop acpid.
468+  * Remove old links in runlevel 0 and 6, closes: #502613.
469+  * Comment out MODULES setting in default file, so no module is loaded per
470+    default.
471+
472+ -- Loic Minier <lool@dooz.org>  Sun, 02 Nov 2008 10:28:14 +0100
473+
474+acpid (1.0.6-15) unstable; urgency=low
475+
476+  [ Michael Meskes ]
477+  * Fixed check for /proc/modules to not throw an error
478+    closes: #502881, #502704
479+
480+  [ Loic Minier ]
481+  * Fix above fix.  :-P
482+
483+ -- Michael Meskes <meskes@debian.org>  Tue, 21 Oct 2008 12:55:00 +0200
484+
485+acpid (1.0.6-14) unstable; urgency=low
486+
487+  [ Loic Minier ]
488+  * Merge support for the "status" action in the acpid init script from the
489+    Ubuntu package; depend on lsb-base >= 3.2-14.
490+  * Don't stop acpid in runlevels 0 and 6; from Ubuntu, closes:#495544
491+  * Fix support for Ubuntu kernels, stop guessing distro but always try to use
492+    the ubuntu/acpi module dir if present; this allows using Ubuntu kernels on
493+    Ubuntu, removes references to Ubuntu from a number of places, and makes
494+    the script simpler to maintain and more efficient; also matches the
495+    current Ubuntu script.
496+  * Cleanup rules; drop DH_VERBOSE.
497+  * Wrap build-deps and deps in control to get cleaner diffs.
498+  * Add myself to uploaders.
499+  * Drop obsolete information from README.Debian.
500+  * Cleanup the awful init script.
501+    - Drop support for *.o kernel module files; .ko is used since 2.5 kernels.
502+    - Greatly simplify computing the list of available acpi modules by parsing
503+      modules.dep(5) instead of running find and sh multiple times.
504+    - Rename debian/acpid.init.d to debian/acpid.init to match debhelper's
505+      documented name (debhelper does pick up .init.d as well, but this is
506+      undocumented); this also avoid confusing vim which believe it's a D
507+      file.
508+    - Don't disable printk when loading ACPI modules; this is not only
509+      fragile, broken, and intrusive, it's also out of the realm of acpid to
510+      do.  This snippet:
511+          [ "$VERBOSE" = "no" ] && echo "0 0 0 0" > /proc/sys/kernel/printk
512+      can be moved to a more sensible place if it makes sense during boot, but
513+      I doubt anybody wants that.
514+    - Fix support for kernels without dynamic module loading; closes: #500659.
515+  * Use Vcs-* instead of XS-Vcs-* and fix URLs to point at the new git repos;
516+    closes: #501305.
517+  * Remove obsolete conffile /etc/logrotate.d/acpid in preinst; thanks to
518+    James Westby and Ubuntu; LP: #263888. It's interesting to note that this
519+    caused the new acpid to die once per week when logrotation kicked in.
520+    Closes: #487815, #491058, #495686
521+  * Pass -s to dh_* commands in binary-arch.
522+  * Resume shipping /etc/acpi/powerbtn.sh and /etc/acpi/events/powerbtn in
523+    acpid.  They are also installed in the examples for people who symlink to
524+    the examples.  Please note that powerbtn.sh disables itself when it
525+    detects a running power management daemon such as gnome-power-manager or
526+    kpowersave.
527+  * Add -D_GNU_SOURCE in Makefile's CFLAGS to fix build with newer libc6 (such
528+    as 2.8+20080809-1 in experimental or 2.8~20080505-0ubuntu7in Ubuntu
529+    intrepid) in making "struct ucred" available; see
530+    http://sourceware.org/bugzilla/show_bug.cgi?id=6545.
531+
532+  [ Michael Meskes ]
533+  * Fixed path to hal pidfile, closes: #440870
534+
535+ -- Loic Minier <lool@dooz.org>  Mon, 13 Oct 2008 19:12:28 +0200
536+
537+acpid (1.0.6-13) unstable; urgency=low
538+
539+  * Check for distribution during build time, closes: #499825, #500003
540+
541+ -- Michael Meskes <meskes@debian.org>  Wed, 24 Sep 2008 12:26:45 +0200
542+
543+acpid (1.0.6-12) unstable; urgency=low
544+
545+  * Check for Ubuntu/Debian in apt sources list instead of /etc/issue,
546+    closes: #499825, #499854
547+
548+ -- Michael Meskes <meskes@debian.org>  Tue, 23 Sep 2008 10:38:38 +0200
549+
550+acpid (1.0.6-11) unstable; urgency=low
551+
552+  * Changed maintainer to Debian Acpi Team.
553+  * Do not call lsb-release on startup, closes: #491388
554+
555+ -- Michael Meskes <meskes@debian.org>  Wed, 27 Aug 2008 13:49:56 +0200
556+
557+acpid (1.0.6-10) unstable; urgency=low
558+
559+  * Removed Ubuntu version information.
560+  * Back to only including some modules on default. Using all modules creates
561+    strange error messages and even backtraces on some machines. ALL option
562+    remains listed but commented out, closes: #484354
563+  * Add video to list of modules, closes: #459237
564+  * Made package lintian clean.
565+  * In Debian do not load Ubuntu modules from Ubuntu directory. I do not see
566+    any package providing this directory.
567+  * Do only install powerbutton scripts as example,
568+    closes: #481903, #484306, #253423
569+  * Fixed watch file.
570+  * Clarified specification of acpid options, closes: #486788
571+  * Bumped Standards-Version to 3.8.0
572+
573+ -- Michael Meskes <meskes@debian.org>  Fri, 20 Jun 2008 14:21:14 +0200
574+
575+acpid (1.0.6-9ubuntu8) karmic; urgency=low
576+
577+  * debian/powerbtn.sh: add xfce4-power-manager to the list of handlers as
578+    well. LP: #425155
579+
580+ -- Lionel Le Folgoc <mrpouit@ubuntu.com>  Wed, 23 Sep 2009 14:53:01 +0200
581+
582+acpid (1.0.6-9ubuntu7) karmic; urgency=low
583+
584+  * debian/powerbtn.sh:
585+    - Add dalston-power-applet to list of handlers for power
586+      button events (part of fix for LP: #432578).
587+
588+ -- Gary Lasker <gary.lasker@canonical.com>  Fri, 18 Sep 2009 12:25:33 -0400
589+
590+acpid (1.0.6-9ubuntu6) karmic; urgency=low
591+
592+  FFE LP: #427356.
593+
594+  * Replace init script with Upstart job.
595+    - This does not load modules, unlike the init script, since these are
596+      all loaded by ACPI:* modaliases now (and thus by udev)
597+  * debian/control:
598+    - Bump build-dependency on debhelper for Upstart-aware dh_installinit
599+
600+ -- Scott James Remnant <scott@ubuntu.com>  Tue, 15 Sep 2009 03:34:49 +0100
601+
602+acpid (1.0.6-9ubuntu5) karmic; urgency=low
603+
604+  * Upload jaunty changes to karmic
605+
606+ -- Jonathan Riddell <jriddell@ubuntu.com>  Tue, 28 Apr 2009 11:07:28 +0100
607+
608+acpid (1.0.6-9ubuntu4.9.04.3) jaunty-proposed; urgency=low
609+
610+  * Update /etc/acpi/powerbtn.sh for KDE 4
611+    Closes LP: #368497
612+
613+ -- Jonathan Riddell <jriddell@ubuntu.com>  Tue, 28 Apr 2009 11:01:13 +0100
614+
615+acpid (1.0.6-9ubuntu4.9.04.2) jaunty-security; urgency=low
616+
617+  * SECURITY UPDATE: denial of service via too many open files
618+    - acpid.*, event.c, ud_socket.*: limit the number of non-root clients,
619+      correctly close dead connections.
620+    - CVE-2009-0798
621+
622+ -- Marc Deslauriers <marc.deslauriers@ubuntu.com>  Wed, 22 Apr 2009 15:09:59 -0400
623+
624+acpid (1.0.6-9ubuntu4) intrepid; urgency=low
625+
626+  * Remove the logrotate file on upgrade, as the previous one that was
627+    installed did a "kill -USR1" on the acpid process to cause it to reload
628+    its logfiles. As the new acpid doesn't use a log file it doesn't catch
629+    this signal, which means that once a week acpid is killed. As it doesn't
630+    have a logfile the logrotate file is not needed, and so is no longer
631+    installed, but as it was a conffile it is not removed on upgrades.
632+    Thanks to Loic Minier for his help with the fix.  (LP: #263888)
633+    - ad81211857dabeb88538e0f90c922b7c787b34c5 in Debian's pkg-acpi git repo.
634+
635+ -- James Westby <james.westby@canonical.com>  Wed, 24 Sep 2008 15:19:14 +0100
636+
637+acpid (1.0.6-9ubuntu3) intrepid; urgency=low
638+
639+  * Replace "multiuser" deprecated init mode in debian/rules with manual
640+    arguments. Adapt the corresponding change in LSB init script header and
641+    runtime dependency in debian/control (LP: #254249)
642+
643+ -- Didier Roche <didrocks@ubuntu-fr.org>  Wed, 13 Aug 2008 19:50:50 +0200
644+
645+acpid (1.0.6-9ubuntu2) intrepid; urgency=low
646+
647+  * debian/control
648+    - Depend on lsb-base >= 3.2-14, providing status_of_proc()
649+    - Bump Standards-Version to 3.8.0
650+  * debian/acpid.init.d
651+    - Add the 'status' action (LP: #251681)
652+
653+ -- Nathan Handler <nhandler@ubuntu.com>  Thu, 24 Jul 2008 21:03:02 -0500
654+
655+acpid (1.0.6-9ubuntu1) intrepid; urgency=low
656+
657+  * Merge from debian unstable, remaining changes:
658+    - init script starts earlier
659+    - depend on sysv-rc
660+  * removed ubuntu specific -G (lockfilegroup) options, it does
661+    no longer apply because acpid now uses syslog by default
662+  * disable debian update-rc.d call to make acpid run earlier on
663+    upgrade, out packages already run early
664+  * build with -D_GNU_SOURCE to make "struct ucred" available
665+    (see also http://sourceware.org/bugzilla/show_bug.cgi?id=6545)
666+
667+ -- Michael Vogt <michael.vogt@ubuntu.com>  Mon, 02 Jun 2008 09:58:14 +0200
668+
669+acpid (1.0.6-9) unstable; urgency=low
670+
671+  * Don't depend on sysv-rc; closes: #481912
672+
673+ -- Anibal Monsalve Salazar <anibal@debian.org>  Fri, 23 May 2008 13:50:49 +1000
674+
675+acpid (1.0.6-8) unstable; urgency=low
676+
677+  * Update watch file
678+
679+ -- Anibal Monsalve Salazar <anibal@debian.org>  Mon, 19 May 2008 19:31:31 +1000
680+
681+acpid (1.0.6-7) unstable; urgency=low
682+
683+  * Fix dash syntax error in acpid.init.d; closes: #481824
684+
685+ -- Anibal Monsalve Salazar <anibal@debian.org>  Mon, 19 May 2008 11:54:32 +1000
686+
687+acpid (1.0.6-6) unstable; urgency=low
688+
689+  * New maintainer; closes: #481580
690+  * Merge Ubuntu changes
691+    - Use MODULES="all"; closes: #449076
692+    - Disable printk; closes: #449078
693+    - Loading modules from the ubuntu directory; closes: #449080
694+  * Limit syslog messages to >= NOTICE to avoid spamming unless in debug mode;
695+    patch by Loic Minier; closes: #447200
696+  * Include "--oknodo" in init script start action;
697+    patch by Daniel Hahler; closes: #475785
698+  * Don't fail during installation; closes: #447339
699+  * Don't delete conffiles in /etc; closes: #444666
700+  * Provide power button support; closes: #444676
701+  * Fix typo in acpid.8; closes: #444065
702+  * Fix "restart/start fails"; closes: #481327, #479517
703+  * Fix "tar error messages on upgrade"; closes: #447099, #451220
704+  * Fix "init script start/stop priorities not updated on upgrades";
705+    closes: #462185
706+  * Fix the following lintian issues:
707+    W: acpid source: debian-rules-ignores-make-clean-error line 18
708+
709+ -- Anibal Monsalve Salazar <anibal@debian.org>  Sat, 17 May 2008 09:54:17 +1000
710+
711+acpid (1.0.6-5.1) unstable; urgency=low
712+
713+  * Non-maintainer upload.
714+  * Correct dependency information provided in init.d script (Closes: #459493).
715+
716+ -- Petter Reinholdtsen <pere@debian.org>  Tue,  4 Mar 2008 13:53:46 +0100
717+
718+acpid (1.0.6-5) unstable; urgency=low
719+
720+  * New mantainer. (Closes: #455197)
721+  * debian/control:
722+    - Bump Standards-Version: 3.7.3.
723+    - Build-depends debhelper >=5.
724+    - Added Homepage header.
725+  * debian/watch, added.
726+
727+ -- Jose Carlos Medeiros <debian@psabs.com.br>  Tue, 15 Jan 2008 18:02:33 -0200
728+
729+acpid (1.0.6-4) unstable; urgency=medium
730+
731+  * Add lost directory /etc/acpi/events to package again. (Closes: #444667)
732+  * Improve the last NEWS.Debian entry to be more explicit.
733+
734+ -- Torsten Werner <twerner@debian.org>  Tue, 09 Oct 2007 07:44:46 +0200
735+
736+acpid (1.0.6-3) unstable; urgency=low
737+
738+  * Stop and start hal in postinst. (Closes: #352512, #380520, #440870)
739+  * Start acpid earlier when booting. (Closes: #320094)
740+  * Fix call to 'dpkg --compare-versions' in postinst.
741+
742+ -- Torsten Werner <twerner@debian.org>  Mon, 24 Sep 2007 07:41:16 +0200
743+
744+acpid (1.0.6-2) unstable; urgency=low
745+
746+  * Remove old logs and logrotate conffile.
747+    (Closes: #178894, #360170, #443385)
748+  * Add debian/NEWS with an explanation of the change.
749+  * Revert any changes to acpid.c corresponding to the old log mechanism.
750+    (Closes: #388048)
751+  * Remove the old powerbtn scripts and provide them as examples.
752+    (Closes: #285779, #354445, #386026, #400409, #401414, #417306, #422463, #425291, #427938)
753+  * Add option -P to shutdown in powerbtn.sh. (Closes: #365972)
754+
755+ -- Torsten Werner <twerner@debian.org>  Sun, 23 Sep 2007 16:15:42 +0200
756+
757+acpid (1.0.6-1) unstable; urgency=low
758+
759+  * New upstream release (Closes: #442383)
760+  * Change Maintainer field to myself as requested by the former maintainer.
761+  * Add XS-Vcs-* headers.
762+  * Install upstream's Changelog file.
763+
764+ -- Torsten Werner <twerner@debian.org>  Tue, 18 Sep 2007 16:48:54 +0200
765+
766+acpid (1.0.4-7.1) unstable; urgency=low
767+
768+  * Non-maintainer upload.
769+  * Fixed typo in init script (Closes: #413729).
770+
771+ -- Nico Golde <nion@debian.org>  Thu, 29 Mar 2007 23:22:37 +0200
772+
773+acpid (1.0.4-7) unstable; urgency=low
774+
775+  * Fixed typo in manual page (Closes: #404680)
776+  * Updated README (Closes: #360167)
777+  * Include lsb compliant logging (Closes: #384687)
778+  * Fixed logrotate/cron error if acpid is not running (Closes: #388038)
779+  * Removed powerbutton scripts - these are contained in other packages
780+    (Closes: #354445, #285779)
781+  * Added lsb compliant init script styles (Closes: #383591)
782+
783+ -- Cajus Pollmeier <cajus@debian.org>  Mon,  5 Mar 2007 09:33:07 +0100
784+
785+acpid (1.0.4-6) unstable; urgency=low
786+
787+  * Fixed powerptn.sh to respect shutdown changes (Closes: #365972)
788+
789+ -- Cajus Pollmeier <cajus@debian.org>  Thu,  4 May 2006 08:47:06 +0200
790+
791+acpid (1.0.4-5ubuntu9) hardy; urgency=low
792+
793+  [ Daniel Hahler ]
794+  * debian/acpid.postinst: Stop and start hal, if present.
795+    This allows acpid to take /proc/acpi/event and hal will ignore this kernel
796+    interface, when acpid is installed. (LP: #63450)
797+  * debian/acpid.init.d: Add "--oknodo" to the start-stop-daemon call in
798+    "start". The action must not fail, if acpid is already running.
799
800+  [ Michael Vogt ]
801+  * debian/acpid.postinst: do not restart hal on dapper upgrades
802+    (hal may hang forever because of a incompatible dbus)
803+  * only restart if hal is actually running
804+
805+ -- Michael Vogt <michael.vogt@ubuntu.com>  Wed, 16 Apr 2008 16:12:12 +0200
806+
807+acpid (1.0.4-5ubuntu8) gutsy; urgency=low
808+
809+  * Fix the broken Maintainer lines in debian/control.
810+
811+ -- Adam Conrad <adconrad@ubuntu.com>  Wed, 15 Aug 2007 23:47:42 +1000
812+
813+acpid (1.0.4-5ubuntu7) gutsy; urgency=low
814+
815+  * Build package for lpia.
816+  * Set Ubuntu maintainer address.
817+
818+ -- Matthias Klose <doko@ubuntu.com>  Fri, 10 Aug 2007 21:43:04 +0000
819+
820+acpid (1.0.4-5ubuntu6) feisty; urgency=low
821+
822+  * Load drivers from ubuntu directory as well as kernel acpi directory
823+
824+ -- Matthew Garrett <mjg59@srcf.ucam.org>  Sat, 10 Mar 2007 15:04:34 +0000
825+
826+acpid (1.0.4-5ubuntu5) feisty; urgency=low
827+
828+  * KubuntuFeistyLaptop spec: change debian/powerbtn.sh for KDE sessions:
829+    * single KDE session: issue KDE logout dialog for user to decide
830+    * multiple KDE sessions: send shutdown request to all KDE sessions
831+      (this is the same behaviour as before)
832+
833+ -- Luka Renko <lure@ubuntu.com>  Thu,  8 Feb 2007 10:28:09 +0100
834+
835+acpid (1.0.4-5ubuntu4) edgy; urgency=low
836+
837+  * Call modprobe with -b to allow user blacklisting.  Ubuntu: #49017
838+
839+ -- Scott James Remnant <scott@ubuntu.com>  Thu, 14 Sep 2006 15:13:52 +0100
840+
841+acpid (1.0.4-5ubuntu3) edgy; urgency=low
842+
843+  * Add forgotten versioned-dependency on sysv-rc to get new update-rc.d
844+    behaviour.  Go me.
845+
846+ -- Scott James Remnant <scott@ubuntu.com>  Fri, 21 Jul 2006 01:22:57 +0100
847+
848+acpid (1.0.4-5ubuntu2) edgy; urgency=low
849+
850+  * Remove stop links from rc0 and rc6
851+
852+ -- Scott James Remnant <scott@ubuntu.com>  Thu, 20 Jul 2006 23:14:18 +0100
853+
854+acpid (1.0.4-5ubuntu1) edgy; urgency=low
855+
856+  * Merge from debian unstable, remaining changes:
857+    - Lock file and groups,
858+    - LSB init script,
859+    - init script level change,
860+    - load all modules by default,
861+    - Power button handling changes.
862+
863+ -- Scott James Remnant <scott@ubuntu.com>  Tue, 11 Jul 2006 17:50:13 +0100
864+
865+acpid (1.0.4-5) unstable; urgency=low
866+
867+  * Fixed problem with logrotate and Xorg where the /proc/acpi/events gets
868+    locked by Xorg.
869+
870+ -- Cajus Pollmeier <cajus@debian.org>  Sun, 15 Jan 2006 22:23:05 +0100
871+
872+acpid (1.0.4-4) unstable; urgency=low
873+
874+  Changes by Michael Biebl:
875+  * Adapted scripts in /etc/acpi/ to let powersaved process the acpi event if
876+    it is running.
877+  * Updated standards version to 3.6.2.
878+  * Cleaned up debian/rules, make use of dh_* tools. Created the necessary
879+    acpid.* files.
880+  * Cleaned up debian/*, removed unused and unnecessary files.
881+  * Fixed package to make lintian/linda happy.
882+
883+  Changes by Cajus Pollmeier:
884+  * Removed debconf integration (Closes: #336725, #336726, #333759, #331512)
885+  * Fixed typo in acpi_listen manpage (Closes: #342743)
886+
887+ -- Cajus Pollmeier <cajus@debian.org>  Sat, 14 Jan 2006 11:52:33 +0100
888+
889+acpid (1.0.4-3) unstable; urgency=low
890+
891+  * Added russian debconf translations (Closes: #324084)
892+  * Added portuguese debconf translations (Closes: #329872)
893+  * Included alternative dependency to debconf-2.0
894+
895+ -- Cajus Pollmeier <cajus@debian.org>  Thu, 29 Sep 2005 11:08:25 +0200
896+
897+acpid (1.0.4-2) unstable; urgency=low
898+
899+  * Added logrotate control file (Closes: #306235)
900+  * Added vietnamese debconf translations (Closes: #307598)
901+  * Added basque debconf translations (Closes: #296865)
902+  * Added italian debconf translations (Closes: #288224)
903+  * Fixed amd64 specific type problem (Closes: #315070)
904+  * Re-fixed amd64 specific type problem (Closes: #285063)
905+  * Fixed copyright file by adding one missing original
906+    author (Closes: #290053)
907+
908+ -- Cajus Pollmeier <cajus@debian.org>  Sat,  9 Jul 2005 12:39:49 +0200
909+
910+acpid (1.0.4-1ubuntu11) dapper; urgency=low
911+
912+  * Fix /etc/acpi/powerbtn.sh so that it doesn't bork if 'pidof' returns
913+    multiple results.  This stops the machine displaying the logout
914+    dialogue and then immediately shutting down anyway.
915+    (Closes: Ubuntu #46319)
916+
917+ -- Paul Sladen <ubuntu@paul.sladen.org>  Sat, 27 May 2006 15:54:53 +0100
918+
919+acpid (1.0.4-1ubuntu10) dapper; urgency=low
920+
921+  * Add support to set the group of the log file when acpid starts.
922+    By default this will set it to the adm group.
923+
924+ -- Daniel Silverstone <daniel.silverstone@ubuntu.com>  Wed, 15 Feb 2006 14:04:49 +0000
925+
926+acpid (1.0.4-1ubuntu9) dapper; urgency=low
927+
928+  * Check for gnome-power-manager rather than PowerManager. The name changed
929+    between dapper and breezy and without this, we would unconditionally shut
930+    the system down on a powerbutton event.
931+  * Also check for kded/klaptopdaemon and kpowersave for KDE options on the
932+    same policy management.
933+  * Closes: malone #31407
934+
935+ -- Daniel Silverstone <daniel.silverstone@ubuntu.com>  Wed, 15 Feb 2006 11:41:20 +0000
936+
937+acpid (1.0.4-1ubuntu8) breezy; urgency=low
938+
939+  * Shorten and simplify init script messages
940+
941+ -- Matt Zimmerman <mdz@ubuntu.com>  Thu, 15 Sep 2005 11:30:54 -0700
942+
943+acpid (1.0.4-1ubuntu7) breezy; urgency=low
944+
945+  * If power-manager is running, don't trigger the power button event
946+    ourselves
947+
948+ -- Matthew Garrett <mjg59@srcf.ucam.org>  Tue, 30 Aug 2005 18:33:22 +0100
949+
950+acpid (1.0.4-1ubuntu6) breezy; urgency=low
951+
952+  * Start acpid before dbus is started - hal needs acpid to be running
953+    already
954+
955+ -- Matthew Garrett <mjg59@srcf.ucam.org>  Tue, 30 Aug 2005 17:10:48 +0100
956+
957+acpid (1.0.4-1ubuntu5) breezy; urgency=low
958+
959+  * Interact with the new locking model in acpi-support
960+  * Fix gcc-4.0 compile error
961+
962+ -- Matthew Garrett <mjg59@srcf.ucam.org>  Mon, 22 Aug 2005 22:12:52 +0100
963+
964+acpid (1.0.4-1ubuntu4) hoary; urgency=low
965+
966+  * Turn off kernel printks if we're not verbose during module loading
967+
968+ -- Thom May <thom@ubuntu.com>  Wed,  2 Mar 2005 17:45:36 +0000
969+
970+acpid (1.0.4-1ubuntu3) hoary; urgency=low
971+
972+  * Check for the presence of a lockfile, and don't process events if it's
973+    there (Ubuntu: #6026)
974+
975+ -- Thom May <thom@ubuntu.com>  Tue,  1 Feb 2005 12:27:44 +0000
976+
977+acpid (1.0.4-1ubuntu2) hoary; urgency=low
978+
979+  * Use the new -Q argument to modprobe, add depend on the correct
980+    module-init-tools
981+  * Default back to trying to autoload everything (Ubuntu #4077)
982+
983+ -- Thom May <thom@planetarytramp.net>  Fri, 14 Jan 2005 13:48:24 +0000
984+
985+acpid (1.0.4-1ubuntu1) hoary; urgency=low
986+
987+  * Resynchronise with Debian, resolved minor merging conflict.
988+
989+ -- Martin Pitt <martin.pitt@canonical.com>  Thu, 11 Nov 2004 10:38:26 +0100
990+
991+acpid (1.0.4-1) unstable; urgency=low
992+
993+  * New upstream release
994+  * I'm dropping support for older, acpi broken kernels now. Time to
995+    clean up.
996+
997+ -- Cajus Pollmeier <cajus@debian.org>  Mon,  1 Nov 2004 11:49:33 +0100
998+
999+acpid (1.0.3-21ubuntu1) hoary; urgency=low
1000+
1001+  * Resynchronise with Debian.
1002+
1003+ -- Scott James Remnant <scott@canonical.com>  Wed, 27 Oct 2004 12:05:00 +0100
1004+
1005+acpid (1.0.3-21) unstable; urgency=low
1006+
1007+  *  Fixed dcop problem for shutdown (Closes:#274339)
1008+
1009+ -- Cajus Pollmeier <cajus@debian.org>  Fri,  1 Oct 2004 11:10:24 +0200
1010+
1011+acpid (1.0.3-20) unstable; urgency=high
1012+
1013+  * Added detection for non files in run-parts code (Closes:#268203)
1014+
1015+ -- Cajus Pollmeier <cajus@debian.org>  Mon, 30 Aug 2004 19:51:41 +0200
1016+
1017+acpid (1.0.3-19ubuntu12) warty; urgency=low
1018+
1019+  * Disable loading the platform specific acpi modules. (Warty #1451)
1020+
1021+ -- Thom May <thom@canonical.com>  Wed,  6 Oct 2004 14:18:58 +0100
1022+
1023+acpid (1.0.3-19ubuntu11) warty; urgency=low
1024+
1025+  * use xargs -r so we don't fail in the case of no acpi modules (Warty #1466)
1026+
1027+ -- Thom May <thom@planetarytramp.net>  Mon, 20 Sep 2004 12:36:52 +0100
1028+
1029+acpid (1.0.3-19ubuntu10) warty; urgency=low
1030+
1031+  * Added versioned depend on lsb-base
1032+
1033+ -- Nathaniel McCallum <npmccallum@canonical.com>  Fri,  3 Sep 2004 14:45:49 -0400
1034+
1035+acpid (1.0.3-19ubuntu9) warty; urgency=low
1036+
1037+  * log_warning_msg for failed modules, don't bomb out tho. (Warty 983, 991)
1038+
1039+ -- Thom May <thom@planetarytramp.net>  Fri,  3 Sep 2004 17:08:34 +0100
1040+
1041+acpid (1.0.3-19ubuntu8) warty; urgency=low
1042+
1043+  * If a module is already loaded, log_success_msg rather than log_warning_msg
1044+
1045+ -- Matt Zimmerman <mdz@alcor.net>  Thu,  2 Sep 2004 16:06:16 -0700
1046+
1047+acpid (1.0.3-19ubuntu7) warty; urgency=low
1048+
1049+  * debian/init: pretty initscript
1050+
1051+ -- Nathaniel McCallum <npmccallum@canonical.com>  Thu,  2 Sep 2004 15:06:13 -0400
1052+
1053+acpid (1.0.3-19ubuntu6) warty; urgency=low
1054+
1055+  * install initrd script
1056+
1057+ -- Thom May <thom@planetarytramp.net>  Fri, 27 Aug 2004 17:14:00 +0100
1058+
1059+acpid (1.0.3-19ubuntu5) warty; urgency=low
1060+
1061+  * Revert -4, since that causes the acpid socket to be reaped
1062+
1063+ -- Thom May <thom@planetarytramp.net>  Tue, 24 Aug 2004 10:34:05 +0100
1064+
1065+acpid (1.0.3-19ubuntu4) warty; urgency=low
1066+
1067+  * Ensure acpid starts as early as possible, so we don't melt Scott's laptop
1068+
1069+ -- Thom May <thom@planetarytramp.net>  Thu, 19 Aug 2004 14:04:55 +0100
1070+
1071+acpid (1.0.3-19ubuntu3) warty; urgency=low
1072+
1073+  * Load all modules
1074+
1075+ -- Thom May <thom@planetarytramp.net>  Wed, 18 Aug 2004 14:11:45 +0100
1076+
1077+acpid (1.0.3-19ubuntu2) warty; urgency=low
1078+
1079+  * Get rid of FTBFS errors.
1080+
1081+ -- LaMont Jones <lamont@mmjgroup.com>  Sat, 31 Jul 2004 04:49:10 +0000
1082+
1083+acpid (1.0.3-19ubuntu1) warty; urgency=low
1084+
1085+  * Disable superfluous debconf note when acpi support is not present
1086+    (Warty Bug#289)
1087+
1088+ -- Matt Zimmerman <mdz@alcor.net>  Tue, 27 Jul 2004 13:26:05 -0700
1089+
1090+acpid (1.0.3-19) unstable; urgency=low
1091+
1092+  * Update dutch translations (Closes:#250719)
1093+  * Added turkish translations (Closes:#252933)
1094+
1095+ -- Cajus Pollmeier <cajus@debian.org>  Fri, 28 May 2004 19:41:16 +0200
1096+
1097+acpid (1.0.3-18) unstable; urgency=low
1098+
1099+  * Fixed manpage to contain hint to runparts stylish naming convention
1100+    in /etc/acpid/events (Closes:#250066)
1101+
1102+ -- Cajus Pollmeier <cajus@debian.org>  Sat, 22 May 2004 10:33:13 +0200
1103+
1104+acpid (1.0.3-17) unstable; urgency=low
1105+
1106+  * Added amd64 to list of supported architectures (Closes:#249055)
1107+
1108+ -- Cajus Pollmeier <cajus@debian.org>  Fri, 14 May 2004 21:22:53 +0200
1109+
1110+acpid (1.0.3-16) unstable; urgency=low
1111+
1112+  * Added czech po-debconf translation (Closes:#247377)
1113+  * Modified init scripts start-stop daemon call to retry stopping
1114+    acpid after two seconds (Closes:#247130)
1115+  * Modified init script to check for ACPI presence in kernel
1116+    _before_ doing any actions (Closes:#247490)
1117+
1118+ -- Cajus Pollmeier <cajus@debian.org>  Fri,  7 May 2004 22:27:40 +0200
1119+
1120+acpid (1.0.3-15) unstable; urgency=low
1121+
1122+  * Fixed powerbutton script which did a shutdown when a
1123+    KDE user was logged in. Now it skips the shutdown,
1124+    because kdm will do it for us.
1125+
1126+ -- Cajus Pollmeier <cajus@debian.org>  Fri, 23 Apr 2004 18:06:16 +0200
1127+
1128+acpid (1.0.3-14) unstable; urgency=low
1129+
1130+  * Fixed postrm script to clean some lost config files. (Closes: #242273)
1131+
1132+ -- Cajus Pollmeier <cajus@debian.org>  Thu,  8 Apr 2004 11:04:05 +0200
1133+
1134+acpid (1.0.3-13) unstable; urgency=low
1135+
1136+  * Removed support for configuring list of modules with debconf. I can't
1137+    spend hours in fullfilling all wishes currently. Don't think anyone really
1138+    needs this feature - and if: This is more an issue for a tool that detects
1139+    hardware than one for the daemon itself. Implicitly closes: #241367.
1140+  * Updated init script to skip loading of modules that are not present in
1141+    system, but are configured in defaults file.
1142+
1143+ -- Cajus Pollmeier <cajus@debian.org>  Thu,  1 Apr 2004 06:56:27 +0200
1144+
1145+acpid (1.0.3-12) unstable; urgency=low
1146+
1147+  * Fixed possible problem in config script when installing for the
1148+    first time (Closes:#241012)
1149+
1150+ -- Cajus Pollmeier <cajus@debian.org>  Tue, 30 Mar 2004 13:06:01 +0200
1151+
1152+acpid (1.0.3-11) unstable; urgency=low
1153+
1154+  * Included danish translations (Closes:#240044)
1155+
1156+ -- Cajus Pollmeier <cajus@debian.org>  Thu, 25 Mar 2004 19:52:46 +0100
1157+
1158+acpid (1.0.3-10) unstable; urgency=low
1159+
1160+  * Avoided overwriting of manual changes in defaults file (Closes:#239635)
1161+  * Replaced init call by normal shutdown with more informative
1162+    message (Closes:#239583)
1163+  * Included upstream changelog (Closes:#235530)
1164+
1165+ -- Cajus Pollmeier <cajus@debian.org>  Tue, 23 Mar 2004 21:33:31 +0100
1166+
1167+acpid (1.0.3-9) unstable; urgency=low
1168+
1169+  * Made acpid close all used filehandles (Closes:#239350)
1170+
1171+ -- Cajus Pollmeier <cajus@debian.org>  Mon, 22 Mar 2004 14:56:57 +0100
1172+
1173+acpid (1.0.3-8) unstable; urgency=low
1174+
1175+  * Fixed clean target of debian/rules to call dh_clean (Closes:#239239)
1176+
1177+ -- Cajus Pollmeier <cajus@debian.org>  Mon, 22 Mar 2004 11:14:36 +0100
1178+
1179+acpid (1.0.3-7) unstable; urgency=low
1180+
1181+  * Added dutch po-debconf translation (Closes:#237816)
1182+  * Added greek po-debconf translation (Closes:#237847)
1183+
1184+ -- Cajus Pollmeier <cajus@debian.org>  Sun, 21 Mar 2004 11:40:48 +0100
1185+
1186+acpid (1.0.3-6) unstable; urgency=low
1187+
1188+  * Modified start script to have the 2.6 module loading
1189+    style (Closes:#236703)
1190+
1191+ -- Cajus Pollmeier <cajus@debian.org>  Fri, 12 Mar 2004 16:34:42 +0100
1192+
1193+acpid (1.0.3-5) unstable; urgency=low
1194+
1195+  * Changed description to a coffee cooking variant (Closes:#237199)
1196+
1197+ -- Cajus Pollmeier <cajus@debian.org>  Wed, 10 Mar 2004 20:51:52 +0100
1198+
1199+acpid (1.0.3-4) unstable; urgency=low
1200+
1201+  * Fixed typo in template, that made it in again. (Closes:#236005)
1202+  * Included French translations, thanks to Clement Stenac. (Closes:#236375)
1203+
1204+ -- Cajus Pollmeier <cajus@debian.org>  Thu,  4 Mar 2004 07:55:24 +0100
1205+
1206+acpid (1.0.3-3) unstable; urgency=low
1207+
1208+  * Included Japanese translations, thanks to Hideki Yamane. (Closes:#235320)
1209+  * Included Brazilian Portuguese translations, thanks to
1210+    Andre Luis Lopes (Closes:#235462)
1211+  * Workaround for non working postinst configure installed. (Closes:#234270)
1212+
1213+ -- Cajus Pollmeier <cajus@debian.org>  Sun, 29 Feb 2004 11:26:06 +0100
1214+
1215+acpid (1.0.3-2) unstable; urgency=low
1216+
1217+  * Added a sleep between stop and start in the init-scripts restart
1218+    condition. This should fix the logrotate problem. (Closes:#234283)
1219+
1220+ -- Cajus Pollmeier <cajus@debian.org>  Wed, 25 Feb 2004 13:15:53 +0100
1221+
1222+acpid (1.0.3-1) unstable; urgency=high
1223+
1224+  * New upstream release
1225+
1226+ -- Cajus Pollmeier <cajus@debian.org>  Wed, 25 Feb 2004 10:08:34 +0100
1227+
1228+acpid (1.0.2-12) unstable; urgency=low
1229+
1230+  * Added missing true condition in postinstall script (Closes: #234274)
1231+
1232+ -- Cajus Pollmeier <cajus@debian.org>  Mon, 23 Feb 2004 10:08:19 +0100
1233+
1234+acpid (1.0.2-11) unstable; urgency=high
1235+
1236+  * Switched to invoke-rc.d in prerm script. (Closes: #234161)
1237+  * Removed a - for some users - confusing message from debconf
1238+    templates. (Closes: #234179)
1239+
1240+ -- Cajus Pollmeier <cajus@debian.org>  Sun, 22 Feb 2004 10:29:11 +0100
1241+
1242+acpid (1.0.2-10) unstable; urgency=low
1243+
1244+  * Fix typo in events file - powerbtn/powerbtn.sh (Closes:#233248)
1245+  * Doing workaround in rules to remove setgid bits. Can't upload new
1246+    orig.tar.gz. (Closes: #233628)
1247+  * Changed the standard 'all' into a list of most common modules
1248+
1249+ -- Cajus Pollmeier <cajus@debian.org>  Tue, 17 Feb 2004 20:28:42 +0100
1250+
1251+acpid (1.0.2-9) unstable; urgency=high
1252+
1253+  * Yes, yes. I commented out this line, because I've acpi in
1254+    built into my kernel. Enabled it again. (Closes: #232400)
1255+  * Fixed some lintian related issues.
1256+
1257+ -- Cajus Pollmeier <cajus@debian.org>  Sun, 15 Feb 2004 09:23:31 +0100
1258+
1259+acpid (1.0.2-8) unstable; urgency=low
1260+
1261+  * Finetuning in init script for automatic module loading (Closes: #232400)
1262+  * Added debconf script to help user, made 'load all modules' the
1263+    default.
1264+  * Unmasked signals so that processes started from acpid can receive
1265+    TERM signals. (Closes: #206525)
1266+  * Added changes from CVS. New upstream release is comming soon.
1267+
1268+ -- Cajus Pollmeier <cajus@debian.org>  Thu, 12 Feb 2004 18:58:29 +0100
1269+
1270+acpid (1.0.2-7) unstable; urgency=low
1271+
1272+  * Renamed acpid socket. gnome-applet seems to have a compiled
1273+    in default for /var/run/acpid.socket. (Closes: #217932)
1274+
1275+ -- Cajus Pollmeier <cajus@debian.org>  Fri, 31 Oct 2003 21:15:17 +0100
1276+
1277+acpid (1.0.2-6) unstable; urgency=low
1278+
1279+  * Fixed module loader in init script. Credits go to Tim Wright.
1280+
1281+ -- Cajus Pollmeier <cajus@debian.org>  Wed, 22 Oct 2003 20:48:17 +0200
1282+
1283+acpid (1.0.2-5) unstable; urgency=low
1284+
1285+  * Ok. Removing socket support was no good idea. Obviously there
1286+    are some programms that depend on it. Notice, that the socket
1287+    is on a non standard location currently. (Closes: #207926)
1288+
1289+ -- Cajus Pollmeier <cajus@debian.org>  Thu,  9 Oct 2003 07:10:51 +0200
1290+
1291+acpid (1.0.2-4) unstable; urgency=low
1292+
1293+  * Removed socket support for Debian. I currently don't see any use
1294+    in it.
1295+  * Changed postrm to clean only config files (Closes: #202858)
1296+  * Added acpid to logrotate.d (Closes: #200705)
1297+
1298+ -- Cajus Pollmeier <cajus@debian.org>  Fri,  5 Sep 2003 16:51:43 +0200
1299+
1300+acpid (1.0.2-3) unstable; urgency=low
1301+
1302+  * Make --purge remove /etc/acpi directory (Closes: #197981)
1303+
1304+ -- Cajus Pollmeier <cajus@debian.org>  Thu, 19 Jun 2003 08:43:48 +0200
1305+
1306+acpid (1.0.2-2) unstable; urgency=low
1307+
1308+  * Fixed module loading for kernel 2.5. Modules now have .ko as extension
1309+    so that the former .o method wouldn't work (Closes: #193709)
1310+
1311+ -- Cajus Pollmeier <cajus@debian.org>  Sun, 18 May 2003 12:06:04 +0200
1312+
1313+acpid (1.0.2-1) unstable; urgency=low
1314+
1315+  * New upstream release
1316+
1317+ -- Cajus Pollmeier <cajus@debian.org>  Wed, 14 May 2003 07:39:25 +0200
1318+
1319+acpid (1.0.1-8) unstable; urgency=low
1320+
1321+  * Fixed automatic module loading script regex (Closes: #192711)
1322+
1323+ -- Cajus Pollmeier <cajus@debian.org>  Sat, 10 May 2003 10:27:14 +0200
1324+
1325+acpid (1.0.1-7) unstable; urgency=low
1326+
1327+  * Changed poweroff script to be dcop aware (Closes: #187493)
1328+  * Made title line in control file to make it more meaningly (Closes: #181774)
1329+
1330+ -- Cajus Pollmeier <cajus@debian.org>  Fri,  4 Apr 2003 19:56:34 +0200
1331+
1332+acpid (1.0.1-6) unstable; urgency=low
1333+
1334+  * load modules even when acpi.o is not compiled in kernel (Closes: #173173)
1335+  * updated standards-version
1336+
1337+ -- Cajus Pollmeier <cajus@debian.org>  Mon, 30 Dec 2002 13:58:26 +0100
1338+
1339+acpid (1.0.1-5) unstable; urgency=low
1340+
1341+  * added modules autoloading in startup script, see /etc/default/acpid (Closes: #173173)
1342+
1343+ -- Cajus Pollmeier <cajus@debian.org>  Sun, 29 Dec 2002 19:51:32 +0100
1344+
1345+acpid (1.0.1-4) unstable; urgency=high
1346+
1347+  * removed double freed pointer in event.c (Closes: #153288)
1348+
1349+ -- Cajus Pollmeier <cajus@debian.org>  Tue, 20 Aug 2002 08:05:31 +0100
1350+
1351+acpid (1.0.1-3) unstable; urgency=high
1352+
1353+  * forgot do close ia64 bug (Closes: #141101)
1354+  * made run-parts stylish /etc/acpi/events (Closes: #141350)
1355+  * renamed samples to examples and added joeys examples (Closes: #141351)
1356+
1357+ -- Cajus Pollmeier <C.Pollmeier@gmx.net>  Sat,  6 Apr 2002 10:21:15 +0100
1358+
1359+acpid (1.0.1-2) unstable; urgency=high
1360+
1361+  * Added ia64 for build
1362+
1363+ -- Cajus Pollmeier <C.Pollmeier@gmx.net>  Fri,  5 Apr 2002 08:34:01 +0100
1364+
1365+acpid (1.0.1-1) unstable; urgency=high
1366+
1367+  * new upstream release
1368+  * Fixed event handling to fit the new specs - again
1369+
1370+ -- Cajus Pollmeier <C.Pollmeier@gmx.net>  Sat,  9 Mar 2002 12:10:51 +0100
1371+
1372+acpid (1.0.0-4) unstable; urgency=high
1373+
1374+  * Changed priority to optional (Closes: #135578)
1375+  * Fixed event handling to fit the new specs
1376+
1377+ -- Cajus Pollmeier <C.Pollmeier@gmx.net>  Sat,  9 Mar 2002 12:10:51 +0100
1378+
1379+acpid (1.0.0-3) unstable; urgency=high
1380+
1381+  * Removed incompatibility message
1382+  * Closed bugs that should have been fixed with 1.0.0-2 (Closes: #130934, #127451)
1383+  * Fixed event handling with kernels patched with acpi-devel code
1384+  * Added reload option to the initscript (Closes: #129425)
1385+
1386+ -- Cajus Pollmeier <C.Pollmeier@gmx.net>  Fri,  1 Mar 2002 15:13:06 +0100
1387+
1388+acpid (1.0.0-2) unstable; urgency=low
1389+
1390+  * Fixed logfile not beeing truncated
1391+  * Changed line width of short description to less than 60 characters
1392+  * Close bugs not related to this upstream release (Closes: #67465, #108796, #63956, #109559, #110698, #107047)
1393+
1394+ -- Cajus Pollmeier <C.Pollmeier@gmx.net>  Thu,  1 Nov 2001 13:30:16 +0100
1395+
1396+acpid (1.0.0-1) unstable; urgency=low
1397+
1398+  * New upstream release
1399+  * Fixed read_line to work with unpatched 2.4.x kernels.
1400+
1401+ -- Cajus Pollmeier <C.Pollmeier@gmx.net>  Mon, 10 Aug 2001 12:12:41 +0200
1402+
1403+acpid (0.2001051000-1) unstable; urgency=low
1404+
1405+  * New upstream release (Closes: #97277, #104266)
1406+  * New maintainer
1407+  * 'acpictl' is no longer in the acpid package. (Closes: #79498)
1408+  * 'acpid' doesn't need build-depends anymore (Closes: #105751)
1409+
1410+ -- Robert van der Meulen <rvdm@debian.org>  Mon, 25 Jun 2001 16:01:12 +0200
1411+
1412+acpid (0.2000071100-1) unstable; urgency=low
1413+
1414+  * New upstream release
1415+
1416+ -- Wichert Akkerman <wakkerma@debian.org>  Wed, 12 Jul 2000 20:57:07 -0400
1417+
1418+acpid (0.2000052200-1) unstable; urgency=low
1419+
1420+  * New upstream release
1421+
1422+ -- Wichert Akkerman <wakkerma@debian.org>  Tue, 23 May 2000 13:41:51 +0200
1423+
1424+acpid (0.2000042500-1) unstable; urgency=low
1425+
1426+  * New upstream release
1427+  * Fix a typo in the init-script
1428+  * upstream changed the buildsystem again, updated debian/rules accordingly
1429+  * Stop via executable, not pid-file (which doesn't exist)
1430+
1431+ -- Wichert Akkerman <wakkerma@debian.org>  Mon,  1 May 2000 23:00:46 +0200
1432+
1433+acpid (0.20000317-2) unstable; urgency=low
1434+
1435+  * Create /usr/doc compatibility symlinks
1436+
1437+ -- Wichert Akkerman <wakkerma@debian.org>  Fri,  7 Apr 2000 14:26:31 +0200
1438+
1439+acpid (0.20000317-1) experimental; urgency=low
1440+
1441+  * New snapshot
1442+
1443+ -- Wichert Akkerman <wakkerma@debian.org>  Mon,  3 Apr 2000 00:50:17 +0200
1444+
1445+acpid (0.20000316-1) experimental; urgency=low
1446+
1447+  * Initial release
1448+
1449+ -- Wichert Akkerman <wakkerma@debian.org>  Thu, 16 Mar 2000 12:24:51 +0100
1450+
1451--- acpid-2.0.10.orig/debian/acpid.dirs
1452+++ acpid-2.0.10/debian/acpid.dirs
1453@@ -0,0 +1 @@
1454+/etc/acpi/events
1455--- acpid-2.0.10.orig/debian/acpid.postrm
1456+++ acpid-2.0.10/debian/acpid.postrm
1457@@ -0,0 +1,9 @@
1458+#!/bin/sh
1459+
1460+set -e
1461+
1462+if [ "$1" = purge ]; then
1463+       rm -f /var/backups/acpid-cruft.tar.gz
1464+fi
1465+
1466+#DEBHELPER#
1467--- acpid-2.0.10.orig/debian/acpid.preinst
1468+++ acpid-2.0.10/debian/acpid.preinst
1469@@ -0,0 +1,29 @@
1470+#!/bin/sh
1471+
1472+set -e
1473+
1474+#DEBHELPER#
1475+
1476+# Remove a no-longer used conffile
1477+rm_conffile() {
1478+    PKGNAME="$1"
1479+    CONFFILE="$2"
1480+    if [ -e "$CONFFILE" ]; then
1481+        md5sum="`md5sum \"$CONFFILE\" | sed -e \"s/ .*//\"`"
1482+        old_md5sum="`dpkg-query -W -f='${Conffiles}' $PKGNAME | sed -n -e \"\\\\' $CONFFILE '{s/ obsolete$//;s/.* //p}\"`"
1483+        if [ "$md5sum" != "$old_md5sum" ]; then
1484+            echo "Obsolete conffile $CONFFILE has been modified by you."
1485+            echo "Saving as $CONFFILE.dpkg-bak ..."
1486+            mv -f "$CONFFILE" "$CONFFILE".dpkg-bak
1487+        else
1488+            echo "Removing obsolete conffile $CONFFILE ..."
1489+            rm -f "$CONFFILE"
1490+        fi
1491+    fi
1492+}
1493+
1494+case "$1" in
1495+  install|upgrade)
1496+    rm_conffile acpid /etc/logrotate.d/acpid
1497+  ;;
1498+esac
1499--- acpid-2.0.10.orig/debian/control
1500+++ acpid-2.0.10/debian/control
1501@@ -0,0 +1,42 @@
1502+Source: acpid
1503+Section: admin
1504+Priority: optional
1505+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
1506+XSBC-Original-Maintainer: Debian Acpi Team <pkg-acpi-devel@lists.alioth.debian.org>
1507+Uploaders: Michael Meskes <meskes@debian.org>,
1508+           Loic Minier <lool@dooz.org>
1509+Standards-Version: 3.9.2
1510+Build-Depends: debhelper (>= 7.3.15ubuntu2), dpkg-dev (>= 1.15.7)
1511+Vcs-Git: git://git.debian.org/git/pkg-acpi/acpid.git
1512+Vcs-Browser: http://git.debian.org/?p=pkg-acpi/acpid.git
1513+Homepage: http://www.tedfelix.com/linux/acpid-netlink.html
1514+
1515+Package: acpid
1516+Architecture: linux-any
1517+Depends: ${shlibs:Depends},
1518+         ${misc:Depends},
1519+         lsb-base (>= 3.2-14),
1520+         module-init-tools (>> 3.1-rel-2)
1521+Description: Advanced Configuration and Power Interface event daemon
1522+ Modern computers support the Advanced Configuration and Power Interface (ACPI)
1523+ to allow intelligent power management on your system and to query battery and
1524+ configuration status.
1525+ .
1526+ ACPID is a completely flexible, totally extensible daemon for delivering
1527+ ACPI events. It listens on netlink interface (or on the deprecated file
1528+ /proc/acpi/event), and when an event occurs, executes programs to handle the
1529+ event. The programs it executes are configured through a set of configuration
1530+ files, which can be dropped into place by packages or by the admin.
1531+
1532+Package: kacpimon
1533+Section: utils
1534+Priority: extra
1535+Architecture: linux-any
1536+Depends: ${shlibs:Depends}, ${misc:Depends}
1537+Description: Kernel ACPI Event Monitor
1538+ Modern computers support the Advanced Configuration and Power Interface (ACPI)
1539+ to allow intelligent power management on your system and to query battery and
1540+ configuration status.
1541+ .
1542+ kacpimon is a small tool that monitors kernel ACPI and keyboard events from
1543+ multiple interfaces and reports them to the console.
1544--- acpid-2.0.10.orig/debian/compat
1545+++ acpid-2.0.10/debian/compat
1546@@ -0,0 +1 @@
1547+5
1548--- acpid-2.0.10.orig/debian/acpid.default
1549+++ acpid-2.0.10/debian/acpid.default
1550@@ -0,0 +1,11 @@
1551+# Options to pass to acpid
1552+#
1553+# OPTIONS are appended to the acpid command-line
1554+#OPTIONS=""
1555+
1556+# Linux kernel modules to load before starting acpid
1557+#
1558+# MODULES is a space seperated list of modules to load, or "all" to load all
1559+# acpi drivers, or commented out to load no module
1560+#MODULES="battery ac processor button fan thermal video"
1561+#MODULES="all"
1562--- acpid-2.0.10.orig/debian/copyright
1563+++ acpid-2.0.10/debian/copyright
1564@@ -0,0 +1,19 @@
1565+This is the Debian GNU/Linux prepackaged version of acpid.
1566+It was packaged by Cajus Pollmeier <cajus@debian.org>
1567+from sources obtained from http://acpid.sourceforge.net.
1568+
1569+Later on it was taken over by Michael Meskes <meskes@debian.org> who switched
1570+the package to the latest sources from http://www.tedfelix.com.
1571+
1572+Copyright:
1573+
1574+Copyright (C) 2000 Andrew Henroid
1575+              2004 Tim Hockin (thockin@hockin.org)
1576+              2008-2011 Ted Felix (www.tedfelix.com)
1577+
1578+License:
1579+
1580+acpid is distributed under the terms of the GNU General Public License,
1581+version 2 or later. On Debian GNU/Linux system you can find a copy of this
1582+license in `/usr/share/common-licenses/GPL-2'.
1583+
1584--- acpid-2.0.10.orig/debian/acpid.manpages
1585+++ acpid-2.0.10/debian/acpid.manpages
1586@@ -0,0 +1,2 @@
1587+acpid.8
1588+acpi_listen.8
1589--- acpid-2.0.10.orig/debian/acpid.init
1590+++ acpid-2.0.10/debian/acpid.init
1591@@ -0,0 +1,81 @@
1592+#!/bin/sh
1593+### BEGIN INIT INFO
1594+# Provides:          acpid
1595+# Required-Start:    $remote_fs $syslog
1596+# Required-Stop:     $remote_fs $syslog
1597+# X-Start-Before:    kdm gdm xdm
1598+# X-Stop-After:      kdm gdm xdm
1599+# Default-Start:     2 3 4 5
1600+# Default-Stop:     
1601+# Short-Description: Start the Advanced Configuration and Power Interface daemon
1602+# Description:       Provide a socket for X11, hald and others to multiplex
1603+#                    kernel ACPI events.
1604+### END INIT INFO
1605+
1606+set -e
1607+
1608+ACPID="/usr/sbin/acpid"
1609+DEFAULTS="/etc/default/acpid"
1610+
1611+# Check for daemon presence
1612+[ -x "$ACPID" ] || exit 0
1613+
1614+OPTIONS=""
1615+MODULES=""
1616+# Include acpid defaults if available
1617+[ -r "$DEFAULTS" ] && . "$DEFAULTS"
1618+
1619+# Get lsb functions
1620+. /lib/lsb/init-functions
1621+
1622+# As the name says. If the kernel supports modules, it'll try to load
1623+# the ones listed in "MODULES".
1624+load_modules() {
1625+    [ -f /proc/modules ] || return 0
1626+    if [ "$MODULES" = "all" ]; then
1627+        MODULES="$(sed -rn 's#^(/lib/modules/[^/]+/)?kernel/(drivers|ubuntu)/acpi/([^/]+/)*(.*)\.ko:.*#\4#p' "/lib/modules/$(uname -r)/modules.dep")"
1628+    fi
1629+
1630+    if [ -z "$MODULES" ]; then
1631+        return
1632+    fi
1633+
1634+    log_begin_msg "Loading ACPI kernel modules..."
1635+    # work around a bug in initramfs which leaks this env var Launchpad #291619
1636+    # and a bug in modprobe --all --quiet which doesn't load all modules and
1637+    # exits with non-zero exit status Debian #504088
1638+    unset MODPROBE_OPTIONS
1639+    modprobe --all --use-blacklist $MODULES 2>/dev/null
1640+    log_end_msg $?
1641+}
1642+
1643+case "$1" in
1644+  start)
1645+    load_modules || true
1646+    log_begin_msg "Starting ACPI services..."
1647+    start-stop-daemon --start --quiet --oknodo --exec "$ACPID" -- $OPTIONS
1648+    log_end_msg $?
1649+    ;;
1650+  stop)
1651+    log_begin_msg "Stopping ACPI services..."
1652+    start-stop-daemon --stop --quiet --oknodo --retry 2 --exec "$ACPID"
1653+    log_end_msg $?
1654+    ;;
1655+  restart)
1656+    $0 stop
1657+    sleep 1
1658+    $0 start
1659+    ;;
1660+  reload|force-reload)
1661+    log_begin_msg "Reloading ACPI services..."
1662+    start-stop-daemon --stop --signal 1 --exec "$ACPID"
1663+    log_end_msg $?
1664+    ;;
1665+  status)
1666+    status_of_proc "$ACPID" acpid
1667+    ;;
1668+  *)
1669+    log_success_msg "Usage: /etc/init.d/acpid {start|stop|restart|reload|force-reload|status}"
1670+    exit 1
1671+esac
1672+
1673--- acpid-2.0.10.orig/debian/acpid.postinst
1674+++ acpid-2.0.10/debian/acpid.postinst
1675@@ -0,0 +1,24 @@
1676+#!/bin/sh
1677+
1678+set -e
1679+
1680+# Remove old init.d links
1681+if dpkg --compare-versions "$2" lt-nl "1.0.10-3"; then
1682+       rm -f /etc/rc1.d/K??acpid
1683+fi
1684+
1685+if dpkg --compare-versions "$2" lt-nl "1.0.6-16"; then
1686+       rm -f /etc/rc[06].d/K??acpid
1687+fi
1688+
1689+if dpkg --compare-versions "$2" lt "1.0.6-6"; then
1690+       rm -f /etc/rc1.d/K20acpid /etc/rc[2-5].d/S20acpid
1691+fi
1692+
1693+# Fix very old permission problem
1694+if dpkg --compare-versions "$2" lt-nl "1.0.10-5"; then
1695+       [ -f /var/log/acpid ] && chmod 640 /var/log/acpid*
1696+fi
1697+
1698+#DEBHELPER#
1699+
1700--- acpid-2.0.10.orig/debian/acpid.docs
1701+++ acpid-2.0.10/debian/acpid.docs
1702@@ -0,0 +1 @@
1703+README
1704--- acpid-2.0.10.orig/debian/gbp.conf
1705+++ acpid-2.0.10/debian/gbp.conf
1706@@ -0,0 +1,6 @@
1707+[DEFAULT]
1708+upstream-branch = upstream
1709+debian-branch = master
1710+upstream-tag = upstream/%(version)s
1711+debian-tag = debian/%(version)s
1712+pristine-tar = True
1713--- acpid-2.0.10.orig/debian/acpid.upstart
1714+++ acpid-2.0.10/debian/acpid.upstart
1715@@ -0,0 +1,14 @@
1716+# acpid - ACPI daemon
1717+#
1718+# The ACPI daemon provides a socket for other daemons to multiplex kernel
1719+# ACPI events from, and a framework for reacting to those events.
1720+
1721+description    "ACPI daemon"
1722+
1723+start on runlevel [2345]
1724+stop on runlevel [!2345]
1725+
1726+expect fork
1727+respawn
1728+
1729+exec acpid -c /etc/acpi/events -s /var/run/acpid.socket
1730--- acpid-2.0.10.orig/debian/powerbtn
1731+++ acpid-2.0.10/debian/powerbtn
1732@@ -0,0 +1,13 @@
1733+# /etc/acpi/events/powerbtn
1734+# This is called when the user presses the power button and calls
1735+# /etc/acpi/powerbtn.sh for further processing.
1736+
1737+# Optionally you can specify the placeholder %e. It will pass
1738+# through the whole kernel event message to the program you've
1739+# specified.
1740+
1741+# We need to react on "button power.*" and "button/power.*" because
1742+# of kernel changes.
1743+
1744+event=button[ /]power
1745+action=/etc/acpi/powerbtn.sh
1746--- acpid-2.0.10.orig/debian/kacpimon.install
1747+++ acpid-2.0.10/debian/kacpimon.install
1748@@ -0,0 +1 @@
1749+kacpimon/kacpimon      /usr/sbin
1750--- acpid-2.0.10.orig/debian/acpid.install
1751+++ acpid-2.0.10/debian/acpid.install
1752@@ -0,0 +1,7 @@
1753+debian/powerbtn                        etc/acpi/events/
1754+debian/examples/default                usr/share/doc/acpid/examples/
1755+debian/examples/default.sh     usr/share/doc/acpid/examples/
1756+debian/examples/ac             usr/share/doc/acpid/examples/
1757+debian/examples/ac.sh          usr/share/doc/acpid/examples/
1758+acpi_listen                    usr/bin
1759+acpid                          usr/sbin
1760--- acpid-2.0.10.orig/debian/powerbtn.sh
1761+++ acpid-2.0.10/debian/powerbtn.sh
1762@@ -0,0 +1,53 @@
1763+#!/bin/sh
1764+# /etc/acpi/powerbtn.sh
1765+# Initiates a shutdown when the power putton has been
1766+# pressed.
1767+
1768+[ -r /usr/share/acpi-support/power-funcs ] && . /usr/share/acpi-support/power-funcs
1769+
1770+# getXuser gets the X user belonging to the display in $displaynum.
1771+# If you want the foreground X user, use getXconsole!
1772+getXuser() {
1773+        user=`pinky -fw | awk '{ if ($2 == ":'$displaynum'" || $(NF) == ":'$displaynum'" ) { print $1; exit; } }'`
1774+        if [ x"$user" = x"" ]; then
1775+                startx=`pgrep -n startx`
1776+                if [ x"$startx" != x"" ]; then
1777+                        user=`ps -o user --no-headers $startx`
1778+                fi
1779+        fi
1780+        if [ x"$user" != x"" ]; then
1781+                userhome=`getent passwd $user | cut -d: -f6`
1782+                export XAUTHORITY=$userhome/.Xauthority
1783+        else
1784+                export XAUTHORITY=""
1785+        fi
1786+        export XUSER=$user
1787+}
1788+
1789+# Skip if we just in the middle of resuming.
1790+test -f /var/lock/acpisleep && exit 0
1791+
1792+# If the current X console user is running a power management daemon that
1793+# handles suspend/resume requests, let them handle policy This is effectively
1794+# the same as 'acpi-support's '/usr/share/acpi-support/policy-funcs' file.
1795+
1796+[ -r /usr/share/acpi-support/power-funcs ] && getXconsole
1797+PMS="gnome-settings-daemon kpowersave xfce4-power-manager"
1798+PMS="$PMS guidance-power-manager.py dalston-power-applet"
1799+
1800+if pidof x $PMS > /dev/null; then
1801+        exit
1802+elif test "$XUSER" != "" && pidof dcopserver > /dev/null && test -x /usr/bin/dcop && /usr/bin/dcop --user $XUSER kded kded loadedModules | grep -q klaptopdaemon; then
1803+        exit
1804+elif test "$XUSER" != "" && test -x /usr/bin/qdbus; then
1805+        kded4pid=$(pgrep -n -u $XUSER kded4)
1806+        if test "$kded4pid" != ""; then
1807+                dbusaddr=$(su - $XUSER -c "grep -z DBUS_SESSION_BUS_ADDRESS /proc/$kded4pid/environ")
1808+                if test "$dbusaddr" != "" && su - $XUSER -c "export $dbusaddr; qdbus org.kde.kded" | grep -q powerdevil; then
1809+                        exit
1810+                fi
1811+        fi
1812+fi
1813+
1814+# If all else failed, just initiate a plain shutdown.
1815+/sbin/shutdown -h now "Power button pressed"
1816--- acpid-2.0.10.orig/debian/kacpimon.manpages
1817+++ acpid-2.0.10/debian/kacpimon.manpages
1818@@ -0,0 +1 @@
1819+kacpimon/kacpimon.8
1820--- acpid-2.0.10.orig/debian/rules
1821+++ acpid-2.0.10/debian/rules
1822@@ -0,0 +1,50 @@
1823+#!/usr/bin/make -f
1824+
1825+cflags := -W -Wall -Werror -Wundef -Wshadow -D_GNU_SOURCE \
1826+       $(shell dpkg-buildflags --get CFLAGS) \
1827+       -fno-strict-aliasing
1828+build:
1829+       dh_testdir
1830+       chmod g-s -R *
1831+       $(MAKE) CFLAGS='$(cflags) $$(DEFS)'
1832+       $(MAKE) man
1833+       (cd kacpimon; $(MAKE) CFLAGS='$(cflags) $$(DEFS)')
1834+
1835+clean:
1836+       dh_testdir
1837+       dh_testroot
1838+       [ ! -f Makefile ] || $(MAKE) clean
1839+       (cd kacpimon; $(MAKE) clean)
1840+       dh_clean
1841+
1842+install: build
1843+       dh_testdir
1844+       dh_testroot
1845+       dh_clean
1846+       dh_installdirs
1847+       # Install powerbtn.sh script and make it executable
1848+       install -m 755 -D debian/powerbtn.sh debian/acpid/etc/acpi/powerbtn.sh
1849+
1850+binary: binary-arch binary-indep
1851+
1852+binary-indep:
1853+
1854+binary-arch: build install
1855+       dh_testdir
1856+       dh_testroot
1857+       dh_installchangelogs -s Changelog
1858+       dh_installdocs -s
1859+       dh_installinit -s -- start 12 2 3 4 5 .
1860+       dh_install -s
1861+       dh_installman -s
1862+       dh_link -s
1863+       dh_strip -s
1864+       dh_compress -s
1865+       dh_fixperms -s
1866+       dh_installdeb -s
1867+       dh_shlibdeps -s
1868+       dh_gencontrol -s
1869+       dh_md5sums -s
1870+       dh_builddeb -s
1871+
1872+.PHONY: build clean binary-indep binary-arch binary install
1873--- acpid-2.0.10.orig/debian/README.debian
1874+++ acpid-2.0.10/debian/README.debian
1875@@ -0,0 +1,34 @@
1876+acpid for Debian
1877+================
1878+
1879+The acpid daemon can handle user defined events. Place event files under
1880+/etc/acpi/events.
1881+
1882+If an event occurs, acpid recurses through the event files in order to
1883+see if the regex defined after "event" matches. If they do, action is
1884+executed.
1885+
1886+An example with /etc/acpi/events/powerbtn to handle presses on the power
1887+button.
1888+
1889+new style:
1890+    event=button/power .*
1891+    action=/etc/acpi/powerbtn.sh
1892+
1893+old style:
1894+    event=button power.*
1895+    action=/etc/acpi/powerbtn.sh
1896+
1897+to handle both styles:
1898+    event=button[ /]power
1899+    action=/etc/acpi/powerbtn.sh
1900+
1901+Your script will get the complete event string (as reported by
1902+/proc/acpid/events), if you use %e as a parameter of your script.
1903+You may want to split this by calling set $*. $1 then holds the
1904+event group, $2 takes the event and $3 and $4 take the values as
1905+reported by the kernel.
1906+
1907+When using acpid with modules, you can use /etc/default/acpid in order
1908+to specify Linux kernel modules to be loaded at startup.
1909+
1910--- acpid-2.0.10.orig/debian/watch
1911+++ acpid-2.0.10/debian/watch
1912@@ -0,0 +1,3 @@
1913+version=3
1914+http://www.tedfelix.com/linux/acpid-netlink.html acpid-(.*).tar.gz
1915+#http://sf.net/acpid/acpid-(\d\.\d\.\d.*)\.tar\.gz
1916--- acpid-2.0.10.orig/debian/source/format
1917+++ acpid-2.0.10/debian/source/format
1918@@ -0,0 +1 @@
1919+1.0
1920--- acpid-2.0.10.orig/debian/examples/ac.sh
1921+++ acpid-2.0.10/debian/examples/ac.sh
1922@@ -0,0 +1,39 @@
1923+#!/bin/sh
1924+# /etc/acpid/ac.sh
1925+# Detect loss of AC power and regaining of AC power, and take action
1926+# appropriatly.
1927+
1928+# On my laptop anyway, this script doesn't not get different parameters for
1929+# loss of power and regained power. So, I have to use a separate program to
1930+# tell what the adapter status is.
1931+
1932+# This uses the spicctrl program for probing the sonypi device.
1933+BACKLIGHT=$(spicctrl -B)
1934+
1935+if on_ac_power; then
1936+        # Now on AC power.
1937+
1938+        # Tell longrun to go crazy.
1939+        longrun -f performance
1940+        longrun -s 0 100
1941+
1942+        # Turn up the backlight unless it's up far enough.
1943+        if [ "$BACKLIGHT" -lt 108 ]; then
1944+                spicctrl -b 108
1945+        fi
1946+else
1947+        # Now off AC power.
1948+
1949+        # Tell longrun to be a miser.
1950+        longrun -f economy
1951+        longrun -s 0 50 # adjust to suite..
1952+
1953+        # Don't allow the screen to be too bright, but don't turn the
1954+        # backlight _up_ on removal, and don't turn it all the way down, as
1955+        # that is unusable on my laptop in most conditions. Adjust to
1956+        # taste.
1957+        if [ "$BACKLIGHT" -gt 68 ]; then
1958+                spicctrl -b 68
1959+        fi
1960+fi
1961+
1962--- acpid-2.0.10.orig/debian/examples/default
1963+++ acpid-2.0.10/debian/examples/default
1964@@ -0,0 +1,18 @@
1965+# This is the ACPID default configuration, it takes all
1966+# events and passes them to /etc/acpi/default.sh for further
1967+# processing.
1968+
1969+# event keeps a regular expression matching the event. To get
1970+# power events only, just use something like "event=button power.*"
1971+# to catch it.
1972+# action keeps the command to be executed after an event occurs
1973+# In case of the power event above, your entry may look this way:
1974+#event=button power.*
1975+#action=/sbin/init 0
1976+
1977+# Optionally you can specify the placeholder %e. It will pass
1978+# through the whole kernel event message to the program you've
1979+# specified.
1980+
1981+event=.*
1982+action=/etc/acpi/default.sh %e
1983--- acpid-2.0.10.orig/debian/examples/default.sh
1984+++ acpid-2.0.10/debian/examples/default.sh
1985@@ -0,0 +1,32 @@
1986+#!/bin/sh
1987+# Default acpi script that takes an entry for all actions
1988+
1989+set $*
1990+
1991+# Take care about the way events are reported
1992+ev_type=`echo "$1" | cut -d/ -f1`
1993+if [ "$ev_type" = "$1" ]; then
1994+       event="$2";
1995+else
1996+       event=`echo "$1" | cut -d/ -f2`
1997+fi
1998+
1999+
2000+case "$ev_type" in
2001+    button)
2002+        case "$event" in
2003+            power)
2004+                logger "acpid: received a shutdown request"
2005+                /sbin/init 0
2006+               break
2007+                ;;
2008+             *)
2009+                logger "acpid: action $2 is not defined"
2010+                ;;
2011+        esac
2012+    ;;
2013+
2014+    *)
2015+        logger "ACPI group $1 / action $2 is not defined"
2016+        ;;
2017+esac
2018--- acpid-2.0.10.orig/debian/examples/ac
2019+++ acpid-2.0.10/debian/examples/ac
2020@@ -0,0 +1,11 @@
2021+# /etc/acpid/events/ac
2022+# This detects changes to AC power status, and passes them to
2023+# /etc/acpi/ac.sh for further processing.
2024+
2025+# Optionally you can specify the placeholder %e. It will pass
2026+# through the whole kernel event message to the program you've
2027+# specified.
2028+
2029+event=ac_adapter
2030+action=/etc/acpi/ac.sh
2031+
2032--- acpid-2.0.10.orig/kacpimon/makefile
2033+++ acpid-2.0.10/kacpimon/makefile
2034@@ -8,7 +8,7 @@
2035 # release build
2036 #CFLAGS = -O2 -Wall -Wextra -Wundef -Wshadow -Werror
2037 # hybrid build, optimized, but with debugging symbols (Debian-style)
2038-CFLAGS = -g -O2 -Wall -Wextra -Wundef -Wshadow -Werror
2039+CFLAGS = -g -O2 -Wall -Wextra -Wundef -Wshadow -Werror -Wno-error=sign-compare
2040 
2041 objects := $(sources:.c=.o)
2042 
Note: See TracBrowser for help on using the repository browser.