--- apmd-3.2.2.orig/apmd.c +++ apmd-3.2.2/apmd.c @@ -343,7 +343,7 @@ /* parent */ int status, retval; ssize_t len; - time_t time_limit; + time_t countdown; if (pid < 0) { /* Couldn't fork */ @@ -356,8 +356,9 @@ /* Capture the child's output, if any, but only until it terminates */ close(fds[1]); fcntl(fds[0], F_SETFL, O_RDONLY|O_NONBLOCK); - time_limit = time(0) + proxy_timeout; + countdown = proxy_timeout; do { + countdown -= 1; while ((len = read(fds[0], line, sizeof(line)-1)) > 0) { line[len] = 0; APMD_SYSLOG(LOG_INFO, "+ %s", line); @@ -372,16 +373,16 @@ goto proxy_done; } - sleep(1); + while (sleep(1) > 0) ; } while ( - (time(0) < time_limit) + (countdown >= 0) || (proxy_timeout < 0) ); APMD_SYSLOG(LOG_NOTICE, "Proxy has been running more than %d seconds; killing it", proxy_timeout); kill(pid, SIGTERM); - time_limit = time(0) + 5; + countdown = 5; do { retval = waitpid(pid, &status, WNOHANG); if (retval == pid) @@ -392,9 +393,9 @@ goto proxy_done; } - sleep(1); + while (sleep(1) > 0) ; - } while (time(0) < time_limit); + } while (countdown >= 0); kill(pid, SIGKILL); status = __W_EXITCODE(0, SIGKILL); --- apmd-3.2.2.orig/apm.h +++ apmd-3.2.2/apm.h @@ -20,6 +20,13 @@ * $Id: apm.h,v 1.7 1999/07/05 22:31:11 apenwarr Exp $ * */ +#ifndef _APM_H +#define _APM_H 1 + +#ifndef __KERNEL_STRICT_NAMES +#define __KERNEL_STRICT_NAMES +#endif + #include #include @@ -93,3 +100,5 @@ #else #define apm_reject(fd) (-EINVAL) #endif + +#endif --- apmd-3.2.2.orig/apm.c +++ apmd-3.2.2/apm.c @@ -219,12 +219,13 @@ } } - +#if 0 if (!(i.apm_flags & APM_32_BIT_SUPPORT)) { fprintf(stderr, "32-bit APM interface not supported\n"); exit(1); } +#endif if (verbose && (i.apm_flags & 0x10)) printf("APM BIOS Power Management is currently disabled\n"); --- apmd-3.2.2.orig/Makefile +++ apmd-3.2.2/Makefile @@ -43,7 +43,7 @@ CC=gcc CFLAGS=-O -g -XTRACFLAGS=-Wall -pipe -I. -I/usr/src/linux/include \ +XTRACFLAGS=-Wall -pipe -I. -I/usr/src/linux/include -I/usr/X11R6/include \ -I/usr/src/linux-2.2/include -I /usr/src/linux-2.0/include \ -DVERSION=\"$(VERSION)\" \ -DDEFAULT_PROXY_NAME=\"$(PROXY_DIR)/apmd_proxy\" --- apmd-3.2.2.orig/debian/copyright +++ apmd-3.2.2/debian/copyright @@ -0,0 +1,48 @@ +Copyright 1996-2004, Rik Faith, Avery Pennarun, Chris Hanson, Thomas Hood. +All rights reserved. + +Apmd was originally packaged by Dirk Eddelbuettel. It is was maintained +by Chris Hanson and Thomas Hood. + +The apmd home page is: http://alumnit.ca/~apenwarr/apmd/ + +License for the APM Library +~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + The APM Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The APM Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the APM Library; if not, write to the Free + Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + 02110-1301, USA. + +The complete text of the GNU Lesser General Public License can be found +in /usr/share/common-licenses/LGPL-2.1 on most Debian systems. + +License for everything other than the APM Library, including executables +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 dated June, 1991. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + 02110-1301, USA. + +The complete text of the GNU General Public License can be found in +/usr/share/common-licenses/GPL-2 on most Debian systems. --- apmd-3.2.2.orig/debian/apmd_proxy +++ apmd-3.2.2/debian/apmd_proxy @@ -0,0 +1,91 @@ +#!/bin/sh +# +# apmd_proxy - program dispatcher for APM daemon +# +# Written by Craig Markwardt (craigm@lheamail.gsfc.nasa.gov) 21 May 1999 +# Modified for Debian by Avery Pennarun +# +# This shell script is called by the APM daemon (apmd) when a power +# management event occurs. Its first and second arguments describe the +# event. For example, apmd will call "apmd_proxy suspend system" just +# before the system is suspended. +# +# Here are the possible arguments: +# +# start - APM daemon has started +# stop - APM daemon is shutting down +# suspend critical - APM system indicates critical suspend (++) +# suspend system - APM system has requested suspend mode +# suspend user - User has requested suspend mode +# standby system - APM system has requested standby mode +# standby user - User has requested standby mode +# resume suspend - System has resumed from suspend mode +# resume standby - System has resumed from standby mode +# resume critical - System has resumed from critical suspend +# change battery - APM system reported low battery +# change power - APM system reported AC/battery change +# change time - APM system reported time change (*) +# change capability - APM system reported config. change (+) +# +# (*) - APM daemon may be configured to not call these sequences +# (+) - Available if APM kernel supports it. +# (++) - "suspend critical" is never passed to apmd from the kernel, +# so we will never see it here. Scripts that process "resume +# critical" events need to take this into account. +# +# It is the proxy script's responsibility to examine the APM status +# (via /proc/apm) or other status and to take appropriate actions. +# For example, the script might unmount network drives before the +# machine is suspended. +# +# In Debian, the usual way of adding functionality to the proxy is to +# add a script to /etc/apm/event.d. This script will be called by +# apmd_proxy (via run-parts) with the same arguments. +# +# If it is important that a certain set of script be run in a certain +# order on suspend and in a different order on resume, then put all +# the scripts in /etc/apm/scripts.d instead of /etc/apm/event.d and +# symlink to these from /etc/apm/suspend.d, /etc/apm/resume.d and +# /etc/apm/other.d using names whose lexicographical order is the same +# as the desired order of execution. +# +# If the kernel's APM driver supports it, apmd_proxy can return a non-zero +# exit status on suspend and standby events, indicating that the suspend +# or standby event should be rejected. +# +# ******************************************************************* + +set -e + +# The following doesn't yet work, because current kernels (up to at least +# 2.4.20) do not support rejection of APM events. Supporting this would +# require substantial modifications to the APM driver. We will re-enable +# this feature if the driver is ever modified. -- cph@debian.org +# +#SUSPEND_ON_AC=false +#[ -r /etc/apm/apmd_proxy.conf ] && . /etc/apm/apmd_proxy.conf +# +#if [ "${SUSPEND_ON_AC}" = "false" -a "${2}" = "system" ] \ +# && on_ac_power >/dev/null; then +# # Reject system suspends and standbys if we are on AC power +# exit 1 # Reject (NOTE kernel support must be enabled) +#fi + +if [ "${1}" = "suspend" -o "${1}" = "standby" ]; then + run-parts --arg="${1}" --arg="${2}" /etc/apm/event.d + if [ -d /etc/apm/suspend.d ]; then + run-parts --arg="${1}" --arg="${2}" /etc/apm/suspend.d + fi +elif [ "${1}" = "resume" ]; then + if [ -d /etc/apm/resume.d ]; then + run-parts --arg="${1}" --arg="${2}" /etc/apm/resume.d + fi + run-parts --arg="${1}" --arg="${2}" /etc/apm/event.d +else + run-parts --arg="${1}" --arg="${2}" /etc/apm/event.d + if [ -d /etc/apm/other.d ]; then + run-parts --arg="${1}" --arg="${2}" /etc/apm/other.d + fi +fi + +exit 0 --- apmd-3.2.2.orig/debian/apmd.preinst +++ apmd-3.2.2/debian/apmd.preinst @@ -0,0 +1,33 @@ +#!/bin/sh + +set -e + +# Prepare to remove a no-longer used conffile +prep_rm_conffile() +{ + PKGNAME="$1" + CONFFILE="$2" + + if [ -e "$CONFFILE" ]; then + md5sum="$( md5sum $CONFFILE | sed -e 's/ .*//' )" + old_md5sum="$( dpkg-query -W -f='${Conffiles}' $PKGNAME | sed -n -e "\' $CONFFILE ' { s/ obsolete$//; s/.* //; p }" )" + if [ "$md5sum" != "$old_md5sum" ]; then + echo "Obsolete conffile $CONFFILE has been modified by you, renaming to .dpkg-bak" + mv -f "$CONFFILE" "$CONFFILE".dpkg-bak + else + mv -f "$CONFFILE" "$CONFFILE".dpkg-obsolete + fi + fi +} + +case "$1" in + install|upgrade) + # Upgrade from intrepid + if dpkg --compare-versions "$2" lt "3.2.2-12ubuntu2"; then + prep_rm_conffile apmd /etc/apm/scripts.d/hwclock + fi + ;; +esac + +#DEBHELPER# +exit 0 --- apmd-3.2.2.orig/debian/xapm.files +++ apmd-3.2.2/debian/xapm.files @@ -0,0 +1 @@ +usr/bin/xapm --- apmd-3.2.2.orig/debian/libapm-dev.dirs +++ apmd-3.2.2/debian/libapm-dev.dirs @@ -0,0 +1,2 @@ +usr/lib +usr/include --- apmd-3.2.2.orig/debian/changelog +++ apmd-3.2.2/debian/changelog @@ -0,0 +1,1061 @@ +apmd (3.2.2-14build1) quantal; urgency=low + + * Rebuild for new armel compiler default of ARMv5t. + + -- Colin Watson Mon, 01 Oct 2012 16:43:05 +0100 + +apmd (3.2.2-14) unstable; urgency=low + + * Fix package descripton + Closes: 525732 + * Fix MODPROBE_OPTIONS + Closes: 537397 + * Fix out-of-date-standards-version + * Fix copyright-refers-to-symlink-license + + -- Anibal Monsalve Salazar Sat, 18 Jul 2009 11:32:08 +1000 + +apmd (3.2.2-13) unstable; urgency=low + + * Merge from Ubuntu + - Relocate init script to start at S10 and stop at S21 to match + acpid, to which it's functionally equivalent. + - debian/hwclock: Remove, the kernel saves and restores the system + clock across a suspend/resume cycle. + - debian/rules: Do not install + - debian/apmd.preinst: Remove on upgrade + - debian/apmd.postinst: Remove obsolete copy, and remove symlinks + - debian/apmd.postrm: Restore if upgrade fails + * Standards-Version is 3.8.1 + * debhelper compatibility is 7 + * Run dh_prep instead of dh_clean -k + * libapm-dev depends on ${misc:Depends} + + -- Anibal Monsalve Salazar Fri, 22 May 2009 15:38:37 +1000 + +apmd (3.2.2-12ubuntu3) jaunty; urgency=low + + * Relocate init script to start at S10 and stop at S21 to match acpid, to + which it's functionally equivalent. + + -- Scott James Remnant Fri, 27 Feb 2009 00:49:43 +0000 + +apmd (3.2.2-12ubuntu2) jaunty; urgency=low + + * debian/hwclock: Remove, the kernel saves and restores the system clock + across a suspend/resume cycle. + * debian/rules: Do not install + * debian/apmd.preinst: Remove on upgrade + * debian/apmd.postinst: Remove obsolete copy, and remove symlinks + * debian/apmd.postrm: Restore if upgrade fails + + -- Scott James Remnant Wed, 18 Feb 2009 16:21:24 +0000 + +apmd (3.2.2-12ubuntu1) jaunty; urgency=low + + * Merge from Debian unstable, remaining changes: + - update dh_installinit + * update according to 'update-rc.d "multiuser" is deprecated' + + -- Michael Vogt Mon, 17 Nov 2008 10:54:51 +0100 + +apmd (3.2.2-12) unstable; urgency=low + + * Define _APM_H in apm.h; closes: #434040 + patch by Larry Doolittle + + -- Anibal Monsalve Salazar Thu, 30 Oct 2008 21:20:28 +1100 + +apmd (3.2.2-11) unstable; urgency=low + + * apmd: don't depend on sysv-rc; closes: #475432 + * libapm1: don't depend on powermgmt-base; closes: #413188 + * Add homepage control header; closes: #471884 + * Ignore "Standing by now" messages by logcheck; closes: #388576 + Patch by Mark Wardle + * Update debian/copyright + * Standards-Version is 3.8.0 + + -- Anibal Monsalve Salazar Fri, 17 Oct 2008 18:20:41 +1100 + +apmd (3.2.2-10ubuntu1) intrepid; urgency=low + + * Merge with Debian; remaining changes: + - Call dh_installinit with `multiuser'. + + -- Matthias Klose Thu, 19 Jun 2008 11:10:23 -0400 + +apmd (3.2.2-10) unstable; urgency=low + + * update-rc.d does not accept the multiuser command line argument. + Closes: #474653 + + -- Anibal Monsalve Salazar Mon, 07 Apr 2008 17:59:35 +1000 + +apmd (3.2.2-9) unstable; urgency=low + + * NMU acknowledgement. Closes: #388819, #405519, #405861 + * Merge with Ubuntu. Closes: #406316 + * Upstream homepage is not available + * Fixed the following lintian issues: + - apmd source: debian-rules-ignores-make-clean-error line 35 + - apmd source: substvar-source-version-is-deprecated libapm-dev + - apmd source: out-of-date-standards-version 3.7.2 (current is 3.7.3) + - xapm: maintainer-script-empty postinst + - xapm: maintainer-script-empty preinst + - xapm: maintainer-script-empty postrm + - xapm: maintainer-script-empty prerm + - libapm1: maintainer-script-empty preinst + - libapm1: maintainer-script-empty prerm + - libapm-dev: maintainer-script-empty postinst + - libapm-dev: maintainer-script-empty preinst + - libapm-dev: maintainer-script-empty postrm + - libapm-dev: maintainer-script-empty prerm + + -- Anibal Monsalve Salazar Sun, 06 Apr 2008 19:14:16 +1000 + +apmd (3.2.2-8.1ubuntu1) gutsy; urgency=low + + * Merge with Debian; remaining changes: + - Remove stop links from rc0 and rc6. + + -- Matthias Klose Wed, 23 May 2007 13:02:28 +0200 + +apmd (3.2.2-8.1) unstable; urgency=low + + * Non-maintainer upload to fix pending l10n and debconf issues. + * Remove the now compeltely useless debconf note which deals with upgrade + from pre-sarge versions. Closes: #388819 + * This also makes translations pointless. Closes: #405519, #405861 + + -- Christian Perrier Sun, 25 Feb 2007 11:09:17 +0100 + +apmd (3.2.2-8ubuntu2) feisty; urgency=low + + * Rebuild for changes in the amd64 toolchain. + * Set Ubuntu maintainer address. + + -- Matthias Klose Mon, 5 Mar 2007 01:13:07 +0000 + +apmd (3.2.2-8ubuntu1) feisty; urgency=low + + * Merge from Debian unstable, remaining changes: + - remove stop links from rc0 and rc6 + + -- Scott James Remnant Mon, 27 Nov 2006 14:21:52 +0000 + +apmd (3.2.2-8) unstable; urgency=low + + * Removed the debconf templates apmd/overwrite-config-file and + apmd/suspend-on-ac from its templates file. Closes: #376052. + * Fixed bug present when apm_read() returns with the + APM_32_BIT_SUPPORT flag unset. Closes: #222635. + Patch by Thomas Hood . + * Fixed half broken build-depends; removed libxaw-dev which cannot + be satisfied. + + -- Anibal Monsalve Salazar Fri, 21 Jul 2006 22:36:45 +1000 + +apmd (3.2.2-7ubuntu3) edgy; urgency=low + + * Add forgotten versioned-dependency on sysv-rc to get new update-rc.d + behaviour. Go me. + + -- Scott James Remnant Fri, 21 Jul 2006 01:19:45 +0100 + +apmd (3.2.2-7ubuntu2) edgy; urgency=low + + * Correct call to dh_installinit. + + -- Scott James Remnant Fri, 21 Jul 2006 00:56:11 +0100 + +apmd (3.2.2-7ubuntu1) edgy; urgency=low + + * Remove stop links from rc0 and rc6 + + -- Scott James Remnant Thu, 20 Jul 2006 22:18:37 +0100 + +apmd (3.2.2-7) unstable; urgency=low + + * Synchronise with Ubuntu. + - Added versioned depend on lsb-base + - debian/apmd.init: pretty initscript + + -- Anibal Monsalve Salazar Mon, 10 Jul 2006 16:21:24 +1000 + +apmd (3.2.2-6ubuntu1) edgy; urgency=low + + * Merge from Debian unstable. + + -- Michael Vogt Fri, 30 Jun 2006 21:30:11 +0200 + +apmd (3.2.2-6) unstable; urgency=low + + * Set Standards-Version to 3.7.2. + * Set debian/compat to 5. + * Fixed "mention user probably wants newer scheme", + closes: #321868. + * New Italian debconf translation, closes: #360347. + Patch by Luca Monducci . + * Fixed maintainer-script-calls-init-script-directly. + * Fixed "purging fails", closes: #351329. + + -- Anibal Monsalve Salazar Sun, 25 Jun 2006 19:32:20 +1000 + +apmd (3.2.2-5) unstable; urgency=low + + * New maintainer, closes: #348468. + * Remove /etc/apm/suspend.d/99hwclock and /etc/apm/resume.d/00hwclock + symlinks on purge. Patch by Colin Watson . + * Fix X header locations patch by LaMont Jones . + + -- Anibal Monsalve Salazar Mon, 30 Jan 2006 22:11:07 +1100 + +apmd (3.2.2-4) unstable; urgency=low + + * Add "| debconf-2.0" to dependencies of apmd. + (closes: Bug#331742) + * Don't rename config files in preinst. + (closes: Bug#313341) + * New translations. + (closes: Bug#313054, Bug#333069, Bug#341557) + * Bump standards-version (no changes). + * Update FSF address. + + -- Chris Hanson Tue, 3 Jan 2006 02:02:54 -0500 + +apmd (3.2.2-3ubuntu2) breezy; urgency=low + + * fix X header locations + + -- LaMont Jones Mon, 23 May 2005 15:28:00 -0600 + +apmd (3.2.2-3ubuntu1) breezy; urgency=low + + * Resynchronise with Debian. + + -- Jeff Bailey Wed, 20 Apr 2005 12:08:54 -0400 + +apmd (3.2.2-3) unstable; urgency=low + + * Remove hwclock symlinks from /etc/apm/. (closes: Bug#297498) + * New it translation. (closes: Bug#279178) + * New cs translation. (closes: Bug#291574) + * Change dependency from "xlibs-dev" to "libx11-dev". + + -- Chris Hanson Tue, 1 Mar 2005 12:59:52 -0500 + +apmd (3.2.2-2ubuntu5) hoary; urgency=low + + * Remove /etc/apm/suspend.d/99hwclock and /etc/apm/resume.d/00hwclock + symlinks on purge. + + -- Colin Watson Tue, 1 Mar 2005 02:47:55 +0000 + +apmd (3.2.2-2ubuntu4) hoary; urgency=low + + * use -Q argument to modprobe to be weally, weally quiet (Ubuntu: #5851) + + -- Thom May Mon, 31 Jan 2005 15:08:09 +0000 + +apmd (3.2.2-2ubuntu3) hoary; urgency=low + + * Load the apm module in init script. + + -- Thom May Mon, 6 Dec 2004 12:55:10 +0100 + +apmd (3.2.2-2ubuntu2) warty; urgency=low + + * Added versioned depend on lsb-base + + -- Nathaniel McCallum Fri, 3 Sep 2004 14:47:15 -0400 + +apmd (3.2.2-2ubuntu1) warty; urgency=low + + * debian/apmd.init: pretty initscript + + -- Nathaniel McCallum Thu, 2 Sep 2004 16:23:52 -0400 + +apmd (3.2.2-2) unstable; urgency=low + + * New German translation. (closes: Bug#250292) + * New Turkish translation. (closes: Bug#252935) + + -- Chris Hanson Mon, 7 Jun 2004 09:32:51 -0400 + +apmd (3.2.2-1) unstable; urgency=low + + * New upstream version incorporates all changes (outside of "debian" + directory) as of 3.2.1-4. + * debian/rules: Remove trailing slash from PROXY_DIR. + * debian/control: Remove "Recent". (closes: Bug#239698) + * Simplify logcheck rules. (closes: Bug#234710) + * New Dutch translation. (closes: Bug#243327) + * Change implementation of --proxy-timout as suggested by Blaise + Gassend. (closes: Bug#244267) + + -- Chris Hanson Fri, 30 Apr 2004 00:44:40 -0400 + +apmd (3.2.1-4) unstable; urgency=high + + * No changes. Resubmit to get buildd's to rebuild, since last version + failed to build on some arches due to phase problem with xfree86. + + -- Chris Hanson Mon, 23 Feb 2004 16:12:29 -0500 + +apmd (3.2.1-3) unstable; urgency=high + + * Urgency high because last two versions were kept out of testing + because buildd's (m68k and hppa) never tried to build them, and no one + bothered to answer when I asked for help. Feh. + * Danish debconf translation. (Claus Hindsgaul) (closes: Bug#233101) + * Update Peter Englmaier's e-mail address. (closes: Bug#232443) + + -- Chris Hanson Thu, 19 Feb 2004 20:52:10 -0500 + +apmd (3.2.1-2) unstable; urgency=low + + * Eliminate use of GCC extension for variadic macros. + (closes: Bug#230228) + * Fix problem with negative hour in apmsleep. (closes: Bug#230917) + + -- Chris Hanson Tue, 3 Feb 2004 14:03:53 -0500 + +apmd (3.2.1-1) unstable; urgency=low + + * Thomas Hood : + + - New upstream + - apm.1: Add reference to apmd(8) for description of APM states. + (closes: Bug#207653) + - Rename "debian/00hwclock" to "debian/hwclock". + - Update "README.Debian". + - Update and correct "debian/copyright". + - debian/rules: + - Bump libapm.1 shlibs dependency up to ">= 3.2.0-7". + - Rename "00hwclock" to "hwclock". + - Eliminate apmsleep.fr.1 linking/unlinking. + - Install documentation as renamed. + + * Chris Hanson : + + - Update pt_BR debconf translation. (closes: Bug#227352) + + -- Chris Hanson Tue, 20 Jan 2004 15:09:55 -0500 + +apmd (3.2.0-8) unstable; urgency=low + + * Fix problem with code that creates symlinks for apm script. + * Standards version 3.6.1 (no changes). + + -- Chris Hanson Sun, 26 Oct 2003 00:21:24 -0400 + +apmd (3.2.0-7) unstable; urgency=low + + * Add ja translation. (closes: Bug#209348) + * Use new-style apmd scripts for hwclock. + * Run "suspend.d" scripts for standby events too. Run "resume.d" + scripts for any resume event, not just resume from suspend. + * Add note to apmd_proxy explaining that "suspend critical" events are + never seen by apmd. + * Change ordering of script execution so that "event.d" scripts are run + before "suspend.d" scripts, but after "resume.d" scripts. + * Changes from Thomas Hood: (closes: Bug#210839) + - apmlib.c, apm.c, apmsleep.c: + - Use open() instead of apm_open() + - Open /dev/apm_bios O_WRONLY instead of O_RDWR + - apmd.c: + - Use open() instead of apm_open() + Do this even though apmd opens /dev/apm_bios O_RDWR because + the apm_open() function violates a "must" in Debian policy 10.6 + when it does a mknod if /dev/apm_bios does not exist. + + -- Chris Hanson Sat, 18 Oct 2003 01:56:18 -0400 + +apmd (3.2.0-6) unstable; urgency=low + + * In apmsleep, don't include ; it drags in a lot of + kernel-dependent stuff. Instead include which is simple + and harmless. (closes: Bug#205343, Bug#207592) + * Use dh_installlogcheck. (closes: Bug#206854) + * Use po_debconf for translations. (closes: Bug#205779) + * Add fr translation. (closes: Bug#206437) + + -- Chris Hanson Wed, 3 Sep 2003 15:39:50 -0400 + +apmd (3.2.0-5) unstable; urgency=low + + * Eliminate dependence on 2.2 kernel headers. (closes: Bug#205221) + + -- Chris Hanson Wed, 13 Aug 2003 21:38:07 -0400 + +apmd (3.2.0-4) unstable; urgency=low + + * Patch /etc/init.d/apmd so that it returns non-zero exit code when + necessary. (closes: Bug#188636) + * Update standards version to 3.6.0 (no changes). + * Fix libtool warnings in Makefile. + + -- Chris Hanson Mon, 11 Aug 2003 21:39:15 -0400 + +apmd (3.2.0-3) unstable; urgency=low + + * Update wording in apmd_proxy and apmd_proxy.conf as suggested by + Thomas Hood. (closes: Bug#183482) + * Update standards version to 3.5.9: in restart, don't make start + dependent on successful stop, as per policy. + * Change section of libapm-dev to libdevel. + + -- Chris Hanson Fri, 4 Apr 2003 22:32:52 -0500 + +apmd (3.2.0-2) unstable; urgency=low + + * Update logcheck support to match "suspending now" message. + * In apmsleep.c, change type of variable c in main() to int. This was + incorrectly declared as char. (closes: Bug#181230) + * Add note to README.Debian making it explicitly OK for other packages + to add files to "/etc/apm". + * Add note to "apmd_proxy.conf" that SUSPEND_ON_AC doesn't work, as + suggested by Thomas Hood. + * Tweak sources to eliminate GCC 3.2 warnings. + + -- Chris Hanson Sun, 2 Mar 2003 23:22:23 -0500 + +apmd (3.2.0-1) unstable; urgency=low + + * New upstream release. + * Large cleanup from Thomas Hood. + * Fix reference to apmd_proxy in apmd(8). (closes: Bug#175451) + * Fix bug in apmsleep. (closes: Bug#176674) + * Depend on debconf (>= 1.2.9). + + -- Chris Hanson Thu, 16 Jan 2003 17:43:36 -0500 + +apmd (3.1.0-7) unstable; urgency=low + + * Instant replay, this time with changes saved to CVS: + * Thomas Hood's fixes to reporting of low-battery events. + (closes: Bug#169075) + * Bump to standards version 3.5.8. (No changes.) + + -- Chris Hanson Thu, 28 Nov 2002 10:27:12 -0500 + +apmd (3.1.0-6) unstable; urgency=low + + * Fix typo in debian/rules. (closes: Bug#169076) + * Thomas Hood's fixes to reporting of low-battery events. + (closes: Bug#169075) + * Bump to standards version 3.5.8. (No changes.) + + -- Chris Hanson Sat, 23 Nov 2002 21:28:12 -0500 + +apmd (3.1.0-5) unstable; urgency=low + + * Don't needlessly inform about moved config files. + (closes: Bug#168734) + + -- Chris Hanson Mon, 11 Nov 2002 23:31:05 -0500 + +apmd (3.1.0-4) unstable; urgency=low + + * Add "--proxy-timeout 30" to default apmd options. + (closes: Bug#168446) + + -- Chris Hanson Sun, 10 Nov 2002 22:34:40 -0500 + +apmd (3.1.0-3) unstable; urgency=low + + * Add logcheck rule to ignore "Battery: absent" messages. + (closes: Bug#168169) + * Fix typo in apmd(8) man page. (closes: Bug#168167) + + -- Chris Hanson Thu, 7 Nov 2002 11:29:46 -0500 + +apmd (3.1.0-2) unstable; urgency=low + + * Add support for logcheck. + + -- Chris Hanson Thu, 31 Oct 2002 23:38:08 -0500 + +apmd (3.1.0-1) unstable; urgency=low + + * New upstream version. Thanks to Thomas Hood for doing all the fixes + on this version, and of course for all the work he's been doing on + this package for the last year. + * Work around problem with broken BIOS reporting LOW BATTERY at 70% + full. (closes: Bug#160520) + * Move APMD shell variable binding to /etc/default/apmd. + (closes: Bug#162904) + * Rename source control files for apmd package to have "apmd." prefix. + + -- Chris Hanson Thu, 31 Oct 2002 13:16:48 -0500 + +apmd (3.0.2-6) unstable; urgency=low + + * Fix typo in apmd(8) man page. (closes: Bug#158304) + * Fix typo: missing T option in call to getopt_long(). + (closes: Bug#162176) + * Update to standards-version 3.5.7 (add support for noopt in + DEB_BUILD_OPTIONS). + + -- Chris Hanson Tue, 24 Sep 2002 11:54:19 -0400 + +apmd (3.0.2-5) unstable; urgency=low + + * Add explicit statement about status of "-i" and "-n" options in the + apm(1) man page. (closes: Bug#156440) + + -- Chris Hanson Mon, 12 Aug 2002 13:35:10 -0400 + +apmd (3.0.2-4) unstable; urgency=low + + * Use ${misc:Depends} in debian/control. + + -- Chris Hanson Tue, 18 Jun 2002 21:59:13 -0400 + +apmd (3.0.2-3) unstable; urgency=low + + * build-depends debhelper (>= 4.0.0). + * Use debian/compat rather than DH_COMPAT. + + -- Chris Hanson Sat, 18 May 2002 23:40:56 -0400 + +apmd (3.0.2-2) unstable; urgency=low + + * Add Spanish debconf template. (closes: Bug#147358) + * Use DH_COMPAT=4. + + -- Chris Hanson Sat, 18 May 2002 23:15:57 -0400 + +apmd (3.0.2-1.21) unstable; urgency=low + + * New maintainer; no other changes. + + -- Chris Hanson Thu, 2 May 2002 23:03:07 -0400 + +apmd (3.0.2-1.20) unstable; urgency=low + + * NMU with permission of maintainer. + * Apply patch to xapm from Jork Loeser to implement "-percentauto" + option. This feature causes xapm to show time remaining while on + battery power, and battery percentage while on AC. + (closes: Bug#142996) + + -- Chris Hanson Thu, 2 May 2002 16:08:20 -0400 + +apmd (3.0.2-1.19) unstable; urgency=medium + + * NMU with permission of maintainer. + * In apmd.postinst, move source of confmodule closer to start of script. + * Fix grammatical error in xapm package description. + (closes: Bug#140807) + * Add pt_BR translation to debian/templates. (closes: Bug#141532) + * Disable rejection of AC suspend events, since the kernel and apmlib + don't yet support this. (closes: Bug#141038) + + -- Chris Hanson Mon, 8 Apr 2002 11:24:03 -0400 + +apmd (3.0.2-1.18) unstable; urgency=low + + * NMU with permission of maintainer. + * Remove on_ac_power, apm_exists, and /etc/modutils/apmd from apmd, and + introduce dependency on new powermgmt-base package that now provides + them. + * Make libapm1 depend on powermgmt-base also, since calls to that + library potentially need the modutils support. + * Change apm_exists() to autoload APM module if needed, and remove the + corresponding hack from apmd. + + -- Chris Hanson Wed, 13 Mar 2002 10:11:49 -0500 + +apmd (3.0.2-1.17) unstable; urgency=low + + * NMU with permission of maintainer. + * Remove conflict with acpid. (closes: Bug#137402) + + -- Chris Hanson Fri, 8 Mar 2002 23:41:15 -0500 + +apmd (3.0.2-1.16) unstable; urgency=low + + * NMU with permission of maintainer. + * Rewrite introductory paragraph in "apmd_proxy.conf". This should have + been done in -1.10, but was overlooked. (closes: Bug#136552) + * From Thomas Hood: add a couple of tweaks to apmd(8) man page. + * Move on_ac_power back to /usr/bin and restore its man page. + Add "Conflicts: acpid" as a way to avoid extending on_ac_power to deal + with ACPI; if that's desired the acpid package should provide its own + version of on_ac_power. + * Move "/etc/apm/event.d/20hdparm" from the apmd package to the hdparm + package. (closes: Bug#134103) + + -- Chris Hanson Thu, 7 Mar 2002 23:14:15 -0500 + +apmd (3.0.2-1.15) unstable; urgency=low + + * NMU with permission of maintainer. + * Make libapm-dev depend on libapm1. (closes: Bug#136143) + + -- Chris Hanson Thu, 28 Feb 2002 01:26:20 -0500 + +apmd (3.0.2-1.14) unstable; urgency=medium + + * NMU with permission of maintainer. + * Rewrite by Thomas Hood to simplify logic of apmd. + + -- Chris Hanson Thu, 28 Feb 2002 00:10:57 -0500 + +apmd (3.0.2-1.13) unstable; urgency=medium + + * NMU with permission of maintainer. + * Add "Conflicts:" dependencies to xapm, apmlib1, and apmlib-dev + packages so that they will force update or elimination of older + versions of apmd. (closes: Bug#135539, Bug#135891) + * Add minimum version dependency to libapm1 to reflect that the + apm.h file whas changed. + + -- Chris Hanson Tue, 26 Feb 2002 17:08:48 -0500 + +apmd (3.0.2-1.12) unstable; urgency=low + + * NMU with permission of maintainer. + * Remove explicit PATH from "/etc/apm/event.d/20hdparm"; we must inherit + the path from apmd_proxy so that on_ac_power is found. + (closes: Bug#135879) + + -- Chris Hanson Tue, 26 Feb 2002 13:35:49 -0500 + +apmd (3.0.2-1.11) unstable; urgency=medium + + * NMU with permission of maintainer. + * Change priority to optional, since other optional packages depend on + libapm1. (closes: Bug#135578) + * Add build-depends on libtool. (closes: Bug#135394, Bug#135642) + * Add patches from Thomas Hood to fix problems with badly-formed battery + status log messages, and to make all of the log messages clearer and + more self-consistent. These patches additionally clean up the program + logic used to track charging states. (closes: Bug#59961, Bug#134877) + * Move on_ac_power to /usr/lib/apmd and remove its man page. + (closes: Bug#101773) + * In init.d script, do nothing if kernel has no APM support. (This is + done by introducing a new program /usr/lib/apmd/apm_exists.) + Additionally, don't ever return non-zero exit code from start command; + this causes install/upgrade to fail. (closes: Bug#135601, Bug#135665) + + -- Chris Hanson Mon, 25 Feb 2002 14:07:00 -0500 + +apmd (3.0.2-1.10) unstable; urgency=low + + * NMU with permission of maintainer. + * Remove entries in "debian/conffiles"; they're not needed in debconf V3 + compatibility mode. (closes: Bug#134783) + * Remove "Suggests: util-linux"; it's an essential package. + * Change debconf interface to explicitly ask for permission to overwrite + configuration files, rather than trying to guess. + * Use debhelper to manage init script. + * Stop daemon on reconfigure; it is started afterwards in the postinst. + If we don't do this, an error message is generated in the postinst. + + -- Chris Hanson Sat, 23 Feb 2002 21:27:08 -0500 + +apmd (3.0.2-1.9) unstable; urgency=low + + * NMU with permission of maintainer. + * Build libapm as shared library, and create new package libapm1 to hold + this library. (closes: Bug#100027) + + -- Chris Hanson Sat, 16 Feb 2002 23:11:03 -0500 + +apmd (3.0.2-1.8) unstable; urgency=low + + * NMU with permission of maintainer. + * Change section of xapm to x11 and libapm-dev to devel. I should have + gotten this right the first time. + + -- Chris Hanson Sat, 16 Feb 2002 16:20:07 -0500 + +apmd (3.0.2-1.7) unstable; urgency=low + + * NMU with permission of maintainer. + * Fix a minor bug in apmd_proxy timeout logic from previous version. + + -- Chris Hanson Fri, 15 Feb 2002 21:38:19 -0500 + +apmd (3.0.2-1.6) unstable; urgency=low + + * NMU with permission of maintainer. + * Change "/etc/init.d/apmd" to return a non-zero result code when an + error occurs. + * Add code to kill apmd_proxy if it runs for too long. Add command-line + option to apmd to set the timeout value. (closes: Bug#124368) + * Add code to xapm to handle WM_DELETE_WINDOW cleanly. + (closes: Bug#82800) + * Split xapm into its own package. (closes: Bug#35675, Bug#78337) + * Split libapm into its own package. Partially addresses Bug#100027, + but since it's still not shared, I'm leaving the bug open. + + -- Chris Hanson Fri, 15 Feb 2002 14:38:09 -0500 + +apmd (3.0.2-1.5) unstable; urgency=low + + * NMU with permission of maintainer. + * Fix problem with French translation of apmsleep(1) manpage. It was + being installed in one place by "make install" and in another by + "dh_installmanpages". Neither was the correct place, because the file + name in the source was wrong. This is kludged around in the + debian/rules file. (closes: Bug#121329) + * Provide event arguments to all scripts. (closes: Bug#133994) + * If kernel driver rejects subsequently rejects a suspend event, run the + proxy script with a resume event to clean up. (closes: Bug#125612) + * Problem with color-bar options appears to have been fixed long ago by + recompilation with newer version of X libs. (closes: Bug#85449) + * Change "apmd_call_proxy" debug log message to show both arguments to + the proxy. + + -- Chris Hanson Fri, 15 Feb 2002 00:07:31 -0500 + +apmd (3.0.2-1.4) unstable; urgency=medium + + * NMU with permission of maintainer. Nearly all of these bug fixes were + submitted by others; see the individual bug reports for details. + * Close bugs fixed in 3.0.2-1.3. (closes: Bug#132911, Bug#132960, + Bug#133034) + * Change build-depends to use "libxaw7-dev | libxaw-dev" rather than + just "libxaw-dev". (closes: Bug#131388) + * Add "Suggests: util-linux". (closes: Bug#121769) + * Remove misplaced ".TP" in "apm.1". (closes: Bug#129627) + * Rebuild package from clean sources. (closes: Bug#124191) + * Update package description to have more accurate statement of kernel's + APM support. Remove mention of tailf. (closes: Bug#71182, Bug#98292, + Bug#124215) + * Generalize support for running event scripts. + (closes: Bug#96676, Bug#99769, Bug#124375) + * Change apm_suspend() in apmlib to return errno on failure. + (closes: Bug#125610) + * Update manpage for apm(1) to match code. Add text explaining that + --ignore and --noignore options are usually disabled. + (closes: Bug#67414, Bug#129402, Bug#132242) + * In debconf template for apmd/hdparm-spindown, change "timeout" to + "timeout code" to clarify that this isn't in an ordinary time unit. + (closes: Bug#121337) + * In "apmd.c", move test for pid<0 result from fork() so that it occurs + in correct place. (closes: Bug#124366) + * Add support for auto-loading the apm module. + (closes: Bug#112019, Bug#116235) + + -- Chris Hanson Thu, 14 Feb 2002 01:36:27 -0500 + +apmd (3.0.2-1.3) unstable; urgency=low + + * NMU to fix the previous broken NMU. Bug#132911 indicates that there + is a problem with the way that the -1.2 binary was compiled. Several + users have reported -1.2 as being unusable; recompilation appears to + fix the problem. + + -- Chris Hanson Sat, 9 Feb 2002 23:52:49 -0500 + +apmd (3.0.2-1.2) unstable; urgency=low + + * NMU to fix the previous broken NMU. + * Fix the CFLAGS hack in debian/rules so it actually works when more + than one /usr/src/kernel-headers-2.2* is installed. (closes: #131415) + + -- Andrew Suffield Mon, 4 Feb 2002 21:09:42 +0000 + +apmd (3.0.2-1.1) unstable; urgency=low + + * NMU to fix a couple of (related) serious-severity bugs holding up the + freeze. + * debian/control, debian/rules: + - Build-Dep on kernel-headers-2.2, hack CFLAGS to include it. + (closes: #123163, #112678) + - I have NFI what to do with #130129. + + -- Daniel Stone Mon, 28 Jan 2002 22:49:55 +1100 + +apmd (3.0.2-1) unstable; urgency=low + + * Change the way apmd_proxy is spawned, to prevent lockups when it runs + subprocesses like pump or xlock. (closes: Bug#98604) + * Getting rid of tailf (closes: Bug#83314, Bug#113153) + * French version of apmsleep.1 (closes: Bug#118783) + * Mark README as outdated and install README.transfer (closes: Bug#115705) + * Don't use dh_installxaw (closes: Bug#120227) + * apm.1 typo (closes: Bug#111897) + * apmd.8 typos (closes: Bug#113806, Bug#117909) + * Add configuration file "/etc/apm/apmd_proxy.conf" and debconf support. + * Change "/etc/apm/apmd_proxy" to allow it to conditionally accept + system-generated suspend and standby events. (closes: Bug#67410, + Bug#75421, Bug#82805) + * Change "/etc/apm/apmd_proxy" to use run-parts, now that run-parts + supports passing arguments to the called scripts. (closes: Bug#83109, + Bug#71539) + * Change "/etc/apm/event.d/00hwclock" to call "/etc/init.d/hwclock.sh". + (closes: Bug#94990) + * Change "/etc/apm/event.d/00hwclock" to distinguish between resume from + suspend and resume from standby. + * Add "/etc/apm/event.d/20hdparm" to tune the hard drive when running on + battery power. Add "Suggests: hdparm" to support this feature. + * Don't rebuild upstream ChangeLog in debian/rules; this wipes the old + ChangeLog and then fails. (closes: Bug#119114) + * Change debian/rules to define "DH_COMPAT=2", and to generate md5sums. + * Update standards-version to 3.5.6. + * Add necessary build-depends line to debian/control. (closes: Bug#119595) + * Update filenames in debian/copyright. + * Most of these patches are from Chris Hanson but you + should still blame me if it doesn't work. Thanks, Chris, and sorry for + the delay in getting this out! + + -- Avery Pennarun Sun, 25 Nov 2001 23:05:45 -0500 + +apmd (3.0.1-1) unstable; urgency=low + + * Various changes from upstream. Builds from source on the newest libc. + * Fixes bugs #59960, 67414, 70127, 76708, 79816, 82801, 82803, 94988, + 54952. + + -- Avery Pennarun Fri, 11 May 2001 16:35:34 -0400 + +apmd (3.0final-2) frozen unstable; urgency=low + + * New debhelper and some changes to manpage paths. Should fix bug#55219, + bug#55746, bug#59879, bug#59959. + + -- Avery Pennarun Thu, 18 May 2000 00:12:42 -0400 + +apmd (3.0final-1) unstable; urgency=low + + * Rebuilt for potato with new debhelper. Since there haven't been any + new bugs in a long time, finally released 3.0final. + + * Architecture: any instead of i386, since other arches are now + implementing the same API, even if APM isn't exactly the same. + Fixes bug#51205. + + * Man page corrected; fixes bug#47701. + + * Close all file descriptors after fork(), so secure-attention-key (SAK) + won't kill us; fixes bug#37188. + + * Use xaw-wrappers for xapm; fixes bug#42750. + + * Store the hardware clock on suspend; fixes bug#42976. + + -- Avery Pennarun Thu, 6 Jan 2000 21:40:57 -0500 + +apmd (3.0beta9-2) unstable; urgency=low + + * Oops! My debian apmd_proxy scripts were all screwed up. I accidentally + installed the Red Hat one! Fixes bug#42686, bug#42228 + + * Close fd 0, 1, and 2 upon fork(). Fixed bug#37188. + + -- Avery Pennarun Mon, 9 Aug 1999 18:38:39 -0400 + +apmd (3.0beta9-1) unstable; urgency=low + + * Bug fixes and improvements as we approach the 3.0final release. + + -- Avery Pennarun Mon, 2 Aug 1999 16:19:49 -0400 + +apmd (3.0beta8-1) unstable; urgency=low + + * Various bug fixes and improvements. In particular, this is supposed + to eliminate excessive log messages, although I personally never saw + them anyway. + + -- Avery Pennarun Tue, 15 Jun 1999 20:25:12 -0400 + +apmd (3.0beta7-1) unstable; urgency=low + + * apmd: totally new apmd_proxy stuff from Craig Markwardt. Now you can + handle pretty much _any_ APM event by adding scripts to + /etc/apm/event.d. + + * Hopefully we didn't lose anyone else's fixes... let me know if you + find a new bug! + + -- Avery Pennarun Sat, 5 Jun 1999 18:05:12 -0400 + +apmd (3.0beta6-1) unstable; urgency=low + + * apmd: new options for now-on-wall-power and now-on-battery events. + + * xapm: support for strangeness in the IBM ThinkPad 770X. Set + IBM_THINKPAD to 1 in xapm.c if you want this enabled. + Also, we show a P or B in xapm to indicate wall or battery power. + + -- Avery Pennarun Mon, 5 Apr 1999 00:59:55 -0400 + +apmd (3.0beta5-1) frozen unstable; urgency=high + + * We should be using fork(), not vfork() -- one-character change. Fixes + problems with 2.2.0 kernels. + + -- Avery Pennarun Sun, 24 Jan 1999 00:29:24 -0500 + +apmd (3.0beta4-1) frozen unstable; urgency=low + + * I (upstream maintainer) relabeled the version number because the + changes are useful beyond just Debian. + + * Distribution should have been "frozen unstable", not "frozen". Oops. + + -- Avery Pennarun Sun, 8 Nov 1998 15:34:14 -0500 + +apmd (3.0beta3-3) frozen; urgency=low + + * /etc/init.d/apmd should not assume $GMT will be either -u or blank. + Fixes bug#28731. + + * /etc/init.d/apmd still contained some references to /etc/apm-suspend.d + and apm-resume.d; these should have been /etc/apm/suspend.d and + resume.d. Oops. Fixes bug#27539. + + * Fixed some typos in the man pages. + + -- Avery Pennarun Sat, 7 Nov 1998 20:06:03 -0500 + +apmd (3.0beta3-2) unstable; urgency=low + + * Renamed /etc/apm-suspend.d and /etc/apm-resume.d to /etc/apm/suspend.d + and resume.d, to reduce /etc clutter. + + -- Avery Pennarun Mon, 14 Sep 1998 14:27:03 -0400 + +apmd (3.0beta3-1) unstable; urgency=low + + * New upstream version cleans up a few things and improves Thinkpad + support. + + -- Avery Pennarun Sat, 12 Sep 1998 14:34:11 -0400 + +apmd (3.0beta2-1) unstable; urgency=low + + * New upstream version fixes some minor bugs with pre_suspend and + post_resume commands. + + -- Avery Pennarun Sun, 6 Sep 1998 01:21:14 -0400 + +apmd (3.0beta1-1) unstable; urgency=low + + * I am now the official upstream maintainer for the APM package. + * Integrated Rik Faith's latest fixes and a few others that have + been floating around. + * Added support for /etc/apm-suspend.d and /etc/apm-resume.d directories, + containing scripts that should run whenever the system enters or leaves + suspend mode. + + -- Avery Pennarun Sun, 6 Sep 1998 01:21:14 -0400 + +apmd (2.4-12) frozen unstable; urgency=low + + * New package maintainer. + * Changed call from "clock -s" to use hwclock and obtain $GMT setting + from /etc/default/rcS. (Fixes bug#23008) + + -- Avery Pennarun Wed, 10 Jun 1998 16:25:40 -0400 + +apmd (2.4-11) frozen unstable; urgency=low + + * Added the four binaries apm, apmd, tailf and xapm back into the + package. Thanks to Jim Jensen for pointing out that + this debhelper conversion wasn't quite complete. + + -- Dirk Eddelbuettel Thu, 14 May 1998 20:49:41 -0400 + +apmd (2.4-10) frozen unstable; urgency=low + + * Added missing 'zero' elements at last position of the longopts[] array + so that apm(1) no longer segfaults on unknown arguments (fixes #4593) + * Changed Description: in debian/control (lintian) + * Removed blurb about 'needs 1.3.x kernels' in debian/control + * Converted debian/rules to debhelper + * Upgraded to Debian Policy 2.4.1 + + -- Dirk Eddelbuettel Mon, 11 May 1998 22:57:02 -0400 + +apmd (2.4-9) unstable; urgency=low + + * Added the missing ';;' to /etc/init.d/apmd (fixes #18529) + + -- Dirk Eddelbuettel Mon, 23 Feb 1998 19:09:10 -0500 + +apmd (2.4-8) unstable; urgency=low + + * Upgraded to Debian Policy 2.4.0.0 (lintian, fixes #16775) + * Added force-reload and restart targets to /etc/init.d/apmd (lintian) + + -- Dirk Eddelbuettel Fri, 20 Feb 1998 21:16:34 -0500 + +apmd (2.4-7) unstable; urgency=low + + * Compiled with GNU libc2 aka libc6 + * Now ships the unmodified upstream source as apmd_2.4.orig.tar.gz + * Added variable for apmd options to /etc/init.d/apmd. + + -- Dirk Eddelbuettel Sat, 1 Nov 1997 16:20:59 -0500 + +apmd (2.4-6) unstable; urgency=low + + * Changed Description: to stress the fact that APM support has to be + enabled in the kernel in order to use this (fixes bug #10260) + * Added warning to postinst if no /proc/apm found (fixes bug #10260) + * Added test for /proc/apm to /etc/init.d/apmd + * Changed /etc/init.d/apmd console message slightly + + -- Dirk Eddelbuettel Sat, 21 Jun 1997 16:49:44 -0400 + +apmd (2.4-5) unstable; urgency=low + + * Applied patch by Jim Van Zandt to suppress + unwanted debugging output on virtual consoles + + -- Dirk Eddelbuettel Sat, 8 Feb 1997 23:08:16 -0500 + +apmd (2.4-4) frozen unstable; urgency=low + + * Really changed /etc/init.d/apmd to test for apmd binary (fixes bug #5526) + + -- Dirk Eddelbuettel Fri, 29 Nov 1996 20:59:14 -0500 + +apmd (2.4-3) frozen unstable; urgency=low + + * Changed /etc/init.d/apmd to test for /usr/sbin/apmd (fixes bug #5526) + + -- Dirk Eddelbuettel Sun, 24 Nov 1996 17:49:13 -0500 + +apmd (2.4-2) unstable; urgency=low + + * Changed the prerm script (fixes bug#4489) + * Changed Architecture: to i386 as an APM compliant BIOS is needed + + * Converted package management files to new Debian-1.2 style + * Compresses manual pages with gzip -9v + * Changed maintainer email address to + + -- Dirk Eddelbuettel Sat, 14 Sep 1996 15:18:55 -0400 + +Wed Aug 7 20:53:17 1996 Dirk Eddelbuettel + * debian.rules: install xapm.1x, not xapm.1 +Fri May 17 21:15:17 1996 Dirk Eddelbuettel + * apmd-2.4-1 release + * debian.rules: use /usr/doc/examples and not /usr/doc/example + (fixes bug#3029) +Tue May 7 00:19:20 1996 Dirk Eddelbuettel + * apmd-2.4-0 release + * new upstream version apmd-2.4 with support for --suspend and + --standby which requires kernel 1.3.98 or higher. +Sat Apr 13 12:26:16 1996 Dirk Eddelbuettel + * apmd-2.2-0 release + * new upstream version apmd-2.2 with support for /dev/apm_bios; + apmd-2.2 utilities will work with older and newer kernels + * debian.control: added Architecture: field +Sun Mar 10 09:54:49 1996 Dirk Eddelbuettel + * apmd-2.1-1 release + * apmd.rc: deleted the reload feature, fixed a typo +Sat Mar 9 10:58:03 1996 Dirk Eddelbuettel + * apmd-2.1-0: Initial Debian release, added Debian package management + system scripts and Debian sysvinit daemon handling scripts + * provide apmlib.c as source in /usr/doc/example/apmd so that + users can build either shared or static libs themselves + --- apmd-3.2.2.orig/debian/apmd.dirs +++ apmd-3.2.2/debian/apmd.dirs @@ -0,0 +1,11 @@ +etc/apm/event.d +etc/apm/other.d +etc/apm/resume.d +etc/apm/scripts.d +etc/apm/suspend.d +etc/logcheck/ignore.d.paranoid +etc/logcheck/ignore.d.server +etc/logcheck/ignore.d.workstation +usr/bin +usr/sbin +usr/share/apmd --- apmd-3.2.2.orig/debian/apmd_proxy.conf +++ apmd-3.2.2/debian/apmd_proxy.conf @@ -0,0 +1,16 @@ +# /etc/apm/apmd_proxy.conf: configuration file for apmd. +# +# This file is managed by debconf when installing or reconfiguring the +# package. It is generated by merging the answers gathered by debconf +# into the template file "/usr/share/apmd/apmd_proxy.conf". + +# The following doesn't yet work, because current kernels (up to at least +# 2.4.20) do not support rejection of APM events. Supporting this would +# require substantial modifications to the APM driver. We will re-enable +# this feature if the driver is ever modified. -- cph@debian.org +# +# Set the following to "false" if you want to reject system suspend or +# system standby requests when the computer is running on AC power. +# Otherwise set this to "true". Such requests are never rejected when +# the computer is running on battery power. +#SUSPEND_ON_AC=true --- apmd-3.2.2.orig/debian/apmd.default +++ apmd-3.2.2/debian/apmd.default @@ -0,0 +1,8 @@ +# +# Default for /etc/init.d/apmd +# + +# As apmd can be called with arguments, we use the following variable +# to store them, e.g., APMD="-w 5 -p 2". +# See the manual page apmd(8) for details. +APMD="--proxy-timeout 30" --- apmd-3.2.2.orig/debian/xapm.dirs +++ apmd-3.2.2/debian/xapm.dirs @@ -0,0 +1 @@ +usr/bin --- apmd-3.2.2.orig/debian/libapm1.files +++ apmd-3.2.2/debian/libapm1.files @@ -0,0 +1 @@ +usr/lib/*.so.* --- apmd-3.2.2.orig/debian/README.Debian +++ apmd-3.2.2/debian/README.Debian @@ -0,0 +1,31 @@ +Important note for Debian package maintainers +--------------------------------------------- + +If your package needs to be notified of APM events then it should +install a script or scripts under /etc/apm/ as follows. + +If the order of execution of a set of scripts does not need to depend +on the event then place the scripts in /etc/apm/scripts.d/ and +symlink to them from /etc/apm/event.d/ . + +If the order of execution of a set of scripts needs to depend on the +event then place the scripts in /etc/apm/scripts.d/ and symlink to +them from /etc/apm/suspend.d/, /etc/apm/resume.d/ and /etc/apm/other.d/ +with names that (due to their lexicographical order) result in the +correct sequencing of the scripts. + +For example, suppose you want to run a before b on suspend, but a +after b on resume. Then put scripts a and b in /etc/apm/scripts.d/ +and create the following symlinks: + + /etc/apm/suspend.d/20a --> ../scripts.d/a + /etc/apm/suspend.d/80b --> ../scripts.d/b + /etc/apm/resume.d/20b --> ../scripts.d/b + /etc/apm/resume.d/80a --> ../scripts.d/a + +Do not put anything but symlinks in /etc/apm/suspend.d/, +/etc/apm/resume.d/ and /etc/apm/other.d/ . + +Links in /etc/apm/event.d/ are run in their lexicographical order +_after_ all the links in /etc/apm/suspend.d/, /etc/apm/resume.d/ and +/etc/apm/other.d/ . --- apmd-3.2.2.orig/debian/libapm1.dirs +++ apmd-3.2.2/debian/libapm1.dirs @@ -0,0 +1 @@ +usr/lib --- apmd-3.2.2.orig/debian/xapm.manpages +++ apmd-3.2.2/debian/xapm.manpages @@ -0,0 +1 @@ +xapm.1 --- apmd-3.2.2.orig/debian/libapm-dev.files +++ apmd-3.2.2/debian/libapm-dev.files @@ -0,0 +1,4 @@ +usr/include/*.h +usr/lib/*.a +usr/lib/*.la +usr/lib/*.so --- apmd-3.2.2.orig/debian/control +++ apmd-3.2.2/debian/control @@ -0,0 +1,76 @@ +Source: apmd +Section: admin +Priority: optional +Maintainer: Anibal Monsalve Salazar +Build-Depends: debhelper (>= 7), libx11-dev, libxaw7-dev, libtool +Standards-Version: 3.8.2 +Homepage: http://alumnit.ca/~apenwarr/apmd/ + +Package: apmd +Section: admin +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, debconf (>= 1.2.9) | debconf-2.0, powermgmt-base, lsb-base (>= 1.3-9ubuntu3) +Suggests: xapm +Description: Utilities for Advanced Power Management (APM) + On laptop computers, the Advanced Power Management (APM) support + provides access to battery status information and may help you to + conserve battery power, depending on your laptop and the APM + implementation. The apmd program also lets you run arbitrary programs + when APM events happen (for example, you can eject PCMCIA devices when + you suspend, or change hard drive timeouts when you connect the battery). + . + This package contains apmd(8), a daemon for logging and acting on APM + events; and apm(1), a client that prints the information in /proc/apm + in a readable format. + . + apmd is notified of APM events by the APM driver in the kernel. + . + Since lenny Debian kernels are not built with APM support anymore. You + need to compile a kernel with apm support enabled to use this package. + You need to boot the kernel with the "apm=on" option if you + want to enable the driver. + . + In most cases, users may want to know that there are newer power + management schemes, like ACPI. + +Package: xapm +Section: x11 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Conflicts: apmd (<< 3.0.2-1.6) +Description: X program to monitor APM battery status + On laptop computers, the Advanced Power Management (APM) support + provides access to battery status information and may help you to + conserve battery power, depending on your laptop and the APM + implementation. + . + This package contains xapm(1), an X11 utility that displays the + status of the battery. + +Package: libapm1 +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Conflicts: apmd (<< 3.0.2-1.9), libapm-dev (<< 3.0.2-1.9) +Description: Library for interacting with APM driver in kernel + On laptop computers, the Advanced Power Management (APM) support + provides access to battery status information and may help you to + conserve battery power, depending on your laptop and the APM + implementation. + . + This package contains a shared library that provides support for + interacting with the APM driver in the kernel. + +Package: libapm-dev +Section: libdevel +Architecture: any +Depends: libapm1 (= ${binary:Version}), ${misc:Depends} +Conflicts: apmd (<< 3.0.2-1.6) +Description: Library for interacting with APM driver in kernel + On laptop computers, the Advanced Power Management (APM) support + provides access to battery status information and may help you to + conserve battery power, depending on your laptop and the APM + implementation. + . + This package contains a library and header files needed to write + programs that interact with the APM driver in the kernel. --- apmd-3.2.2.orig/debian/apmd.logcheck.ignore.paranoid +++ apmd-3.2.2/debian/apmd.logcheck.ignore.paranoid @@ -0,0 +1,14 @@ +apmd\[[0-9]+\]: (Normal|Standby|Critical) Resume +apmd\[[0-9]+\]: (Now using|Using) (AC|battery|backup) power +apmd\[[0-9]+\]: (System|User) (Standby|Suspend) +apmd\[[0-9]+\]: (apmd_)?call_proxy: +apmd\[[0-9]+\]: Battery: [0-9]+%, +apmd\[[0-9]+\]: Battery: absent +apmd\[[0-9]+\]: Capability Change +apmd\[[0-9]+\]: Exiting +apmd\[[0-9]+\]: Performing APM status check +apmd\[[0-9]+\]: Suspending now +apmd\[[0-9]+\]: Update Time +apmd\[[0-9]+\]: Version: apmd [0-9.]+, (apm )?driver [0-9.]+, APM BIOS [0-9.]+ +apmd\[[0-9]+\]: apmd [0-9.]+ interfacing with apm driver [0-9.]+ and APM BIOS [0-9.]+ +apmd\[[0-9]+\]: Standing by now --- apmd-3.2.2.orig/debian/rules +++ apmd-3.2.2/debian/rules @@ -0,0 +1,79 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# debian.rules file for the Debian/GNU Linux apmd package +# Copyright 1996-98 by Dirk Eddelbuettel + +# Uncomment this to turn on verbose mode. +export DH_VERBOSE=1 + +package = apmd +DESTDIR := $(shell pwd)/debian/$(package) + +INSTALL := install --preserve-timestamps +INSTALL_SCRIPT := $(INSTALL) --mode=0755 +INSTALL_DATA := $(INSTALL) --mode=0644 + +MAKE_FLAGS=PREFIX=/usr MANDIR=/usr/share/man PROXY_DIR=/etc/apm + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS := -O0 +else + CFLAGS := -O2 +endif +CFLAGS += -g + +build: build-stamp +build-stamp: + dh_testdir + $(MAKE) $(MAKE_FLAGS) CFLAGS="$(CFLAGS)" LDFLAGS= + touch build-stamp + +clean: + dh_testdir + #dh_testroot + rm -f build-stamp + [ ! -f Makefile ] || $(MAKE) distclean + dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + $(MAKE) $(MAKE_FLAGS) DESTDIR=$(DESTDIR) install + # We will use on_ac_power from the powermgmt-base package. + rm -f $(DESTDIR)/usr/bin/on_ac_power + $(INSTALL_SCRIPT) debian/apmd_proxy $(DESTDIR)/etc/apm/. + $(INSTALL_DATA) debian/apmd_proxy.conf $(DESTDIR)/usr/share/apmd + dh_movefiles --sourcedir=debian/apmd + -rmdir $(DESTDIR)/usr/include + -rmdir $(DESTDIR)/usr/lib + +binary-indep: build + +binary-arch: build install + dh_testdir + dh_testroot + dh_installdebconf + dh_installdocs README apmsleep.README + dh_installdocs -A AUTHORS + dh_installinit -- start 10 2 3 4 5 . stop 21 1 . + dh_installlogcheck + dh_installman + dh_installchangelogs ChangeLog + dh_link + dh_strip + dh_compress + dh_fixperms + dh_makeshlibs -V"libapm1 (>= 3.2.0-7)" + dh_installdeb + dh_shlibdeps -ldebian/libapm1/usr/lib + dh_gencontrol + dh_md5sums + dh_builddeb + +source diff: + @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false + +binary: binary-indep binary-arch +.PHONY: build clean install binary-indep binary-arch binary --- apmd-3.2.2.orig/debian/compat +++ apmd-3.2.2/debian/compat @@ -0,0 +1 @@ +5 --- apmd-3.2.2.orig/debian/apmd.init +++ apmd-3.2.2/debian/apmd.init @@ -0,0 +1,71 @@ +#!/bin/sh +# +# Start or stop the Advanced Power Management daemon. +# +# Written by Dirk Eddelbuettel +# Greatly modified by Avery Pennarun +# +# I think this script is now free of bashisms. +# Please correct me if I'm wrong! + +### BEGIN INIT INFO +# Provides: apmd +# Required-Start: $local_fs $remote_fs $syslog +# Required-Stop: $local_fs $remote_fs $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 1 +# Short-Description: Advanced Power Management (APM) daemon +### END INIT INFO + +PATH=/bin:/usr/bin:/sbin:/usr/sbin +APMD_BIN="/usr/sbin/apmd" + +[ ! -f /etc/default/rcS ] || . /etc/default/rcS +[ ! -f /etc/default/apmd ] || . /etc/default/apmd +test -f /lib/lsb/init-functions || exit 1 +. /lib/lsb/init-functions + +if [ "$VERBOSE" = "no" ]; then + MODPROBE_OPTIONS="$MODPROBE_OPTIONS -q" + export MODPROBE_OPTIONS +fi + +[ -s "${APMD_BIN}" ] || exit 0 +modprobe -q apm >/dev/null 2>&1 +apm_available || exit 0 + +case "${1}" in +("start") + log_begin_msg "Starting Advanced Power Management daemon..." + start-stop-daemon --start --quiet \ + --exec "${APMD_BIN}" -- -P /etc/apm/apmd_proxy ${APMD} + case $? in + (0) + log_end_msg 0 + exit 0 + ;; + (1) + log_end_msg 0 + exit 0 + ;; + (*) + log_end_msg 1 + exit 1 + ;; + esac + ;; +("stop") + log_begin_msg "Stopping Advanced Power Management daemon..." + start-stop-daemon --stop --retry=1 --quiet --oknodo --exec "${APMD_BIN}" + log_end_msg $? + exit $? + ;; +("restart" | "force-reload") + "${0}" stop + "${0}" start + ;; +(*) + log_success_msg "Usage: /etc/init.d/apmd {start|stop|restart|force-reload}" >&2 + exit 3 + ;; +esac --- apmd-3.2.2.orig/debian/apmd.postinst +++ apmd-3.2.2/debian/apmd.postinst @@ -0,0 +1,55 @@ +#!/bin/sh +# +# This is the postinst script for the Debian GNU/Linux apmd package +# +# Written by Dirk Eddelbuettel +# Debconf changes added by Chris Hanson + +set -e +umask 022 + +# Remove a no-longer used conffile +rm_conffile() +{ + CONFFILE="$1" + + if [ -e "$CONFFILE".dpkg-obsolete ]; then + echo "Removing obsolete conffile $CONFFILE" + rm -f "$CONFFILE".dpkg-obsolete + fi +} + +case "${1}" in +(configure) + . /usr/share/debconf/confmodule || exit 0 + + db_stop + + # Upgrade from intrepid + if dpkg --compare-versions "$2" lt "3.2.2-12ubuntu2"; then + rm_conffile /etc/apm/scripts.d/hwclock + rm -f /etc/apm/suspend.d/99hwclock + rm -f /etc/apm/resume.d/00hwclock + fi + + # Remove shutdown and reboot links; this init script does not need them. + if dpkg --compare-versions "$2" lt "3.2.2-7ubuntu1"; then + rm -f /etc/rc0.d/K20apmd /etc/rc6.d/K20apmd + fi + + # Update init scripts links + if dpkg --compare-versions "$2" lt "3.2.2-12ubuntu3"; then + update-rc.d -f apmd remove + fi + ;; +(abort-upgrade|abort-remove|abort-deconfigure) + ;; +(*) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 --- apmd-3.2.2.orig/debian/apmd.manpages +++ apmd-3.2.2/debian/apmd.manpages @@ -0,0 +1,4 @@ +apm.1 +apmd.8 +apmsleep.1 +apmsleep.fr.1 --- apmd-3.2.2.orig/debian/apmd.postrm +++ apmd-3.2.2/debian/apmd.postrm @@ -0,0 +1,52 @@ +#!/bin/sh +# +# This is the postrm script for the Debian GNU/Linux apmd package +# +# Written by Dirk Eddelbuettel + +set -e + +# Undo removal of a no-longer used conffile +undo_rm_conffile() +{ + CONFFILE="$1" + + if [ ! -e "$CONFFILE" ]; then + if [ -e "$CONFFILE".dpkg-bak ]; then + echo "Restoring modified conffile $CONFFILE" + mv -f "$CONFFILE".dpkg-bak "$CONFFILE" + elif [ -e "$CONFFILE".dpkg-obsolete ]; then + mv -f "$CONFFILE".dpkg-obsolete "$CONFFILE" + fi + fi +} + +# Finish removal of a no-longer used conffile +finish_rm_conffile() +{ + CONFFILE="$1" + + if [ -e "$CONFFILE".dpkg-bak ]; then + rm -f "$CONFFILE".dpkg-bak + fi +} + + +case "$1" in +(purge) + finish_rm_conffile /etc/apm/scripts.d/hwclock + + [ -d /etc/apm/resume.d ] && rmdir -p --ignore-fail-on-non-empty /etc/apm/resume.d + [ -d /etc/apm/suspend.d ] && rmdir -p --ignore-fail-on-non-empty /etc/apm/suspend.d + ;; +(abort-install|abort-upgrade) + # Abort upgrade from intrepid + if dpkg --compare-versions "$2" lt "3.2.2-12ubuntu2"; then + undo_rm_conffile /etc/apm/scripts.d/hwclock + fi + ;; +esac + +#DEBHELPER# + +exit 0