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