--- apcupsd-3.14.12.orig/debian/README.source +++ apcupsd-3.14.12/debian/README.source @@ -0,0 +1,58 @@ +This package uses quilt to manage all modifications to the upstream +source. Changes are stored in the source package as diffs in +debian/patches and applied during the build. + +To configure quilt to use debian/patches instead of patches, you want +either to export QUILT_PATCHES=debian/patches in your environment +or use this snippet in your ~/.quiltrc: + + for where in ./ ../ ../../ ../../../ ../../../../ ../../../../../; do + if [ -e ${where}debian/rules -a -d ${where}debian/patches ]; then + export QUILT_PATCHES=debian/patches + break + fi + done + +To get the fully patched source after unpacking the source package, cd to +the root level of the source package and run: + + quilt push -a + +The last patch listed in debian/patches/series will become the current +patch. + +To add a new set of changes, first run quilt push -a, and then run: + + quilt new + +where is a descriptive name for the patch, used as the filename in +debian/patches. Then, for every file that will be modified by this patch, +run: + + quilt add + +before editing those files. You must tell quilt with quilt add what files +will be part of the patch before making changes or quilt will not work +properly. After editing the files, run: + + quilt refresh + +to save the results as a patch. + +Alternately, if you already have an external patch and you just want to +add it to the build system, run quilt push -a and then: + + quilt import -P /path/to/patch + quilt push -a + +(add -p 0 to quilt import if needed). as above is the filename to +use in debian/patches. The last quilt push -a will apply the patch to +make sure it works properly. + +To remove an existing patch from the list of patches that will be applied, +run: + + quilt delete + +You may need to run quilt pop -a to unapply patches first before running +this command. --- apcupsd-3.14.12.orig/debian/apcupsd-cgi.install +++ apcupsd-3.14.12/debian/apcupsd-cgi.install @@ -0,0 +1,2 @@ +/etc/apcupsd/apcupsd.css +/usr/lib/cgi-bin --- apcupsd-3.14.12.orig/debian/apcupsd-doc.doc-base +++ apcupsd-3.14.12/debian/apcupsd-doc.doc-base @@ -0,0 +1,7 @@ +Document: apcupsd-doc +Title: HTML Documentation of apcupsd +Section: System/Administration + +Format: HTML +Index: /usr/share/doc/apcupsd/doc/home-page/index.html +Files: /usr/share/doc/apcupsd/doc/home-page/*.html --- apcupsd-3.14.12.orig/debian/apcupsd-doc.install +++ apcupsd-3.14.12/debian/apcupsd-doc.install @@ -0,0 +1 @@ +/usr/share/doc/apcupsd --- apcupsd-3.14.12.orig/debian/apcupsd-doc.lintian-overrides +++ apcupsd-3.14.12/debian/apcupsd-doc.lintian-overrides @@ -0,0 +1 @@ +apcupsd-doc: extra-license-file usr/share/doc/apcupsd/doc/home-page/license.wml --- apcupsd-3.14.12.orig/debian/apcupsd.default +++ apcupsd-3.14.12/debian/apcupsd.default @@ -0,0 +1,5 @@ +# Defaults for apcupsd initscript + +# Apcupsd-devel internal configuration +APCACCESS=/sbin/apcaccess +ISCONFIGURED=no --- apcupsd-3.14.12.orig/debian/apcupsd.dirs +++ apcupsd-3.14.12/debian/apcupsd.dirs @@ -0,0 +1 @@ +/var/spool/apcupsd --- apcupsd-3.14.12.orig/debian/apcupsd.docs +++ apcupsd-3.14.12/debian/apcupsd.docs @@ -0,0 +1,4 @@ +DISCLAIMER +Developers +ReleaseNotes +kernstodo --- apcupsd-3.14.12.orig/debian/apcupsd.examples +++ apcupsd-3.14.12/debian/apcupsd.examples @@ -0,0 +1 @@ +debian/local/usb.conf --- apcupsd-3.14.12.orig/debian/apcupsd.init +++ apcupsd-3.14.12/debian/apcupsd.init @@ -0,0 +1,78 @@ +#!/bin/sh + +### BEGIN INIT INFO +# Provides: apcupsd +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Should-Start: $local_fs +# Should-Stop: $local_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Starts apcupsd daemon +# Description: apcupsd provides UPS power management for APC products. +### END INIT INFO + +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin +DAEMON=/sbin/apcupsd +CONFIG=/etc/default/apcupsd +NAME=apcupsd +DESC="UPS power management" + +test -x $DAEMON || exit 0 +test -e $CONFIG || exit 0 + +set -e + +. $CONFIG + +if [ "x$ISCONFIGURED" != "xyes" ] ; +then + echo "Please check your configuration ISCONFIGURED in /etc/default/apcupsd" + exit 0 +fi + + +case "$1" in + start) + echo -n "Starting $DESC: " + + rm -f /etc/apcupsd/powerfail + + if [ "`pidof apcupsd`" = "" ] + then + start-stop-daemon --start --quiet --exec $DAEMON + echo "$NAME." + else + echo "" + echo "A copy of the daemon is still running. If you just stopped it," + echo "please wait about 5 seconds for it to shut down." + exit 0 + fi + ;; + + stop) + echo -n "Stopping $DESC: " + start-stop-daemon --stop --oknodo --pidfile /var/run/apcupsd.pid || echo "Not Running." + rm -f /var/run/apcupsd.pid + echo "$NAME." + ;; + + restart|force-reload) + $0 stop + sleep 10 + $0 start + ;; + + status) + #/sbin/apcaccess status + $APCACCESS status + ;; + + *) + N=/etc/init.d/$NAME + echo "Usage: $N {start|stop|restart|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 --- apcupsd-3.14.12.orig/debian/apcupsd.install +++ apcupsd-3.14.12/debian/apcupsd.install @@ -0,0 +1,12 @@ +/etc/apcupsd/apccontrol +/etc/apcupsd/apcupsd.conf +/etc/apcupsd/changeme +/etc/apcupsd/commfailure +/etc/apcupsd/commok +/etc/apcupsd/hosts.conf +/etc/apcupsd/killpower +/etc/apcupsd/multimon.conf +/etc/apcupsd/offbattery +/etc/apcupsd/onbattery +/etc/apcupsd/ups-monitor +/sbin --- apcupsd-3.14.12.orig/debian/apcupsd.links +++ apcupsd-3.14.12/debian/apcupsd.links @@ -0,0 +1,6 @@ +/etc/apcupsd/ups-monitor /etc/init.d/ups-monitor +/usr/share/man/man8/apcupsd.8 /usr/share/man/man1/apcaccess.1 +/usr/share/man/man8/apcupsd.8 /usr/share/man/man1/apcnisd.1 +/usr/share/man/man8/apcupsd.8 /usr/share/man/man1/apctest.1 +/usr/share/man/man8/apcupsd.8 /usr/share/man/man1/powerflute.1 +/usr/share/man/man8/apcupsd.8 /usr/share/man/man1/smtp.1 --- apcupsd-3.14.12.orig/debian/apcupsd.manpages +++ apcupsd-3.14.12/debian/apcupsd.manpages @@ -0,0 +1 @@ +platforms/debian/apcupsd.8 --- apcupsd-3.14.12.orig/debian/apcupsd.postinst +++ apcupsd-3.14.12/debian/apcupsd.postinst @@ -0,0 +1,28 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule +db_version 2.0 + +case "$1" in + configure) + db_get "apcupsd/warning" || true + [ "$RET" = "false" ] && exit 0 + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +db_stop + +#DEBHELPER# + +exit 0 --- apcupsd-3.14.12.orig/debian/apcupsd.postrm +++ apcupsd-3.14.12/debian/apcupsd.postrm @@ -0,0 +1,53 @@ +#!/bin/sh + +set -e + +if [ -f /usr/share/debconf/confmodule ] +then + . /usr/share/debconf/confmodule + db_version 2.0 + db_purge +fi + +stop_server () +{ + set +e + + if [ -x /usr/sbin/invoke-rc.d ] + then + invoke-rc.d apcupsd stop + else + /etc/init.d/apcupsd stop + fi + + errno=$? + + set -e + + if [ "$?" != 0 ] + then + echo "Trying to stop the apcupsd server resulted in exitcode $?." 1>&2 + echo "Stop it yourself and try again!" 1>&2 + exit 1 + fi +} + +case "$1" in + purge) + rm -rf /etc/apcupsd + ;; + + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + stop_server + sleep 2 + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 --- apcupsd-3.14.12.orig/debian/apcupsd.prerm +++ apcupsd-3.14.12/debian/apcupsd.prerm @@ -0,0 +1,27 @@ +#!/bin/sh + +set -e + +case "$1" in + remove|upgrade|deconfigure) + [ -x /etc/init.d/apcupsd ] && ( /etc/init.d/apcupsd stop || killall apcupsd || echo "" >> /dev/null ) + + if [ -f /etc/cron.daily/apcupsd ] + then + rm -f /etc/cron.daily/apcupsd + fi + ;; + + failed-upgrade) + + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 --- apcupsd-3.14.12.orig/debian/changelog +++ apcupsd-3.14.12/debian/changelog @@ -0,0 +1,769 @@ +apcupsd (3.14.12-1.1) unstable; urgency=medium + + * Non-maintainer upload. + * src/apcaccess.c: declare "ch" as int to match getopt return type. Fixes + apcaccess on ARM. (Closes: #770984) + + -- Emanuele Rocca Tue, 14 Apr 2015 09:14:33 +0200 + +apcupsd (3.14.12-1) unstable; urgency=low + + * [84a0ea2] Imported Upstream version 3.14.12 + * [9de1ff1] Refreshed patches + * [9141683] Use hardening flags + + -- Giuseppe Iuculano Sun, 19 Oct 2014 18:50:43 +0200 + +apcupsd (3.14.10-2) unstable; urgency=low + + * [16893a8] Support serial UPS connection on kfreebsd. + Thanks to Steven Chamberlain (Closes: #674081) + + -- Giuseppe Iuculano Mon, 28 May 2012 10:42:44 +0200 + +apcupsd (3.14.10-1) unstable; urgency=low + + [ Stefan Ritter ] + * [bf056fd] Update 02-man-typo.patch to fix typo in manpage + * [854b4f7] Add debian/source/format + + [ Giuseppe Iuculano ] + * [5a688de] Imported Upstream version 3.14.10 + * [33fae57] Remove hal from Suggests (Closes: #615216) + * [4ea4476] Refreshed patches + * [c391cb2] debian/rules: Provide build-arch and build-indep recommended targets + + -- Giuseppe Iuculano Fri, 21 Oct 2011 11:52:04 +0200 + +apcupsd (3.14.8-2) unstable; urgency=low + + [ Stefan Ritter ] + * [0501677] Added myself to maintainers + * [78e21ff] Fixed broken links in documentation, thanks to Ross Boylan + (Closes: #525460) + * [cbbe4c8] Bump to Standards-Version 3.8.4 + * [f31ba10] Added libusb-dev to build-depends + * [8e5f563] Added doc-base registration for apcupsd-doc + + [ Giuseppe Iuculano ] + * [952c130] Fixed Document field in apcupsd-doc.doc-base + * [5443fe8] Do not fail if $ISCONFIGURED is commented in + /etc/default/apcupsd (Closes: #502329) + + -- Giuseppe Iuculano Tue, 02 Feb 2010 11:29:07 +0100 + +apcupsd (3.14.8-1) unstable; urgency=low + + * [88549bc] New maintainer, thanks to Daniel Baumann for the prior + work on apcupsd (Closes: #543830) + * [40874e0] Added a watch file + * [676be8e] Imported Upstream version 3.14.8 + - Fix missing WALL in apccontrol (Closes: #546019) + * [28eb1d5] Removed tetex-bin from Build-Depends (Closes: #562353) + * [d29a49a] Added a README.source + * [17bad30] debian/apcupsd.prerm: Remove the prepended path in killall + * [6b8aa3b] Added rst2pdf and python-docutils in Build-Depends + * [a5a0164] Bump to Standards-Version 3.8.3 + * [a38e728] Added ${misc:Depends} in apcupsd-doc depends. + * [2dbeafa] debian/control: Removed duplicated section in apcupsd + * [0547ba3] Added pkg-config in build-depends + * [e770c9f] Added $remote_fs in init run-time dependencies + + -- Giuseppe Iuculano Sat, 23 Jan 2010 18:49:41 +0100 + +apcupsd (3.14.6-3) unstable; urgency=low + + * Updating package to standards version 3.8.3. + * Removing vcs fields. + * Orphaning package. + + -- Daniel Baumann Thu, 27 Aug 2009 06:52:07 +0200 + +apcupsd (3.14.6-2) unstable; urgency=low + + * Updating autoconf files in rules (Closes: #529992). + + -- Daniel Baumann Sat, 30 May 2009 17:44:04 +0200 + +apcupsd (3.14.6-1) unstable; urgency=low + + * Merging upstream version 3.14.6: + - uses consistent prioritie for syslog messages (Closes: #503275). + * Using quilt rather than dpatch. + * Adding patch from Justin Pryzby + to fix typo in apcupsd manpage (Closes: #516045). + * Using correct rfc-2822 date formats in changelog. + * Updating package to standards 3.8.1. + * Rewriting copyright file in machine-interpretable format. + * Using common directory to keep debian additions in the debian + directory. + * Updating rules file to current state of the art. + + -- Daniel Baumann Mon, 18 May 2009 18:29:51 +0200 + +apcupsd (3.14.5-2) unstable; urgency=low + + * Adding replaces apcupsd to apcupsd-doc (Closes: #514586). + + -- Daniel Baumann Tue, 10 Feb 2009 15:11:00 +0100 + +apcupsd (3.14.5-1) unstable; urgency=low + + * Updating to standards 3.8.0. + * Updating vcs fields in control file. + * Using patch-stamp rather than patch in rules file. + * Replacing obsolete dh_clean -k with dh_prep. + * Merging upstream version 3.14.5. + * Removing unneeded chmod calls on examples in rules. + + -- Daniel Baumann Sun, 25 Jan 2009 03:27:00 +0100 + +apcupsd (3.14.4-1) unstable; urgency=low + + * Removing ChangeLog.old from apcupds.docs, got removed upstream. + * Removing 01-mipsel.dpatch, not required anymore. + * Updating clean target for new upstream version. + * Removing watch file. + * Using lintian debhelper to install lintian overrides. + * Shortening package long descriptions. + * Adding vcs fields in control file. + * Upgrading package to debhelper 7. + * Merging upstream version 3.14.4. + + -- Daniel Baumann Wed, 21 May 2008 10:24:00 +0200 + +apcupsd (3.14.3-2) unstable; urgency=medium + + * Adding lsb init header to ups-monitor (Closes: #471787). + * Removing config files when purging (Closes: #454910). + + -- Daniel Baumann Tue, 01 Apr 2008 10:51:00 +0100 + +apcupsd (3.14.3-1) unstable; urgency=low + + * New upstream release. + + -- Daniel Baumann Sat, 26 Jan 2008 12:54:00 +0100 + +apcupsd (3.14.2-2) unstable; urgency=low + + * Bumping to new policy. + * Using new homepage field in control. + * Don't hide make errors in clean target of rules. + * Using versioned packages within own binary packages. + * Suggesting apache as httpd. + + -- Daniel Baumann Thu, 27 Dec 2007 09:04:00 +0100 + +apcupsd (3.14.2-1) unstable; urgency=low + + * New upstream release. + + -- Daniel Baumann Tue, 09 Oct 2007 10:11:00 +0200 + +apcupsd (3.14.1-3) unstable; urgency=low + + * Applied patch from Tero Janka to not call apcaccess + in commfailure mails (Closes: #409734). + + -- Daniel Baumann Tue, 14 Aug 2007 13:30:00 +0200 + +apcupsd (3.14.1-2) unstable; urgency=low + + * Updated build-depends for libwrap transition (Closes: #436313). + + -- Daniel Baumann Tue, 07 Aug 2007 08:18:00 +0200 + +apcupsd (3.14.1-1) unstable; urgency=low + + * New upstream release. + + -- Daniel Baumann Fri, 01 Jun 2007 20:19:00 +0200 + +apcupsd (3.14.0-4) unstable; urgency=low + + * Upload to unstable. + + -- Daniel Baumann Fri, 25 May 2007 10:00:00 +0200 + +apcupsd (3.14.0-3) experimental; urgency=low + + * New maintainer (Closes: #424711). + * Redone debian packaging from scratch. + * Moved upstream examples to -doc package. + * Uploading to experimental to not interfere testing migration of 3.14.0-2.1. + + -- Daniel Baumann Thu, 17 May 2007 09:18:00 +0200 + +apcupsd (3.14.0-2.1) unstable; urgency=high + + * Non-maintainer upload during BSP. + * Fix failure on purge when debconf is not available (Closes: #416642). + * Fix removal of rc.d links on purge (Closes: #356749). + * Rename libsnmp9-dev build dependency to libsnmp-dev for easier + transitions. + + -- Luk Claes Wed, 16 May 2007 23:32:21 +0200 + +apcupsd (3.14.0-2) unstable; urgency=low + + * Master/Slave break issue in News (Closes: #414377) (Closes: #413048) + + -- Samuele Giovanni Tonon Sun, 11 Mar 2007 20:18:59 +0100 + +apcupsd (3.14.0-1) unstable; urgency=low + + * Newer Upstream release + + -- Samuele Giovanni Tonon Mon, 26 Feb 2007 09:52:05 +0100 + +apcupsd (3.12.4-2) unstable; urgency=low + + * Added conflict with pmake (Closes: #396351) + + -- Samuele Giovanni Tonon Thu, 02 Nov 2006 12:20:39 +0100 + +apcupsd (3.12.4-1) unstable; urgency=low + + * New Upstream Release + + -- Samuele Giovanni Tonon Wed, 2 Oct 2006 10:20:31 +0200 +apcupsd (3.12.3-1) unstable; urgency=low + + * New Upstream Release + * Fixed restart issue (Closes: #366983) + + -- Samuele Giovanni Tonon Wed, 17 May 2006 12:20:31 +0200 + +apcupsd (3.12.1-2) unstable; urgency=low + + * Fixed Apcupsd.postrm (Closes: #351190) + * Apcupsd will now start later at boot time (Closes: #348771) + + -- Samuele Giovanni Tonon Mon, 13 Feb 2006 11:24:42 +0100 + +apcupsd (3.12.1-1) unstable; urgency=low + + * New Upstream Release, Happy new 2006 + * Newer Config system (Closes: #338322) + + -- Samuele Giovanni Tonon Sun, 08 Jan 2006 11:30:21 +0100 + +apcupsd (3.10.18-4) unstable; urgency=low + + * Modified Build-deps to libgd2-noxpm-dev (Closes: #344640) + * Added Patch from Hugo Vanwoerkom to compile example client + (Closes: #344757) + * Added Suggest to hal and udev + * There's the need to patch the kernel to solve the problem + related to bug 330487 please see + http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=330487 + * Build against libsnmp9 (Closes: #331621) + + -- Samuele Giovanni Tonon Tue, 27 Dec 2005 14:20:18 +0100 + +apcupsd (3.10.18-3) unstable; urgency=low + + * Removed Build-dep from libgd2-dev (Closes: #343920) + * Added config to enable nis only on 127.0.0.1 (Closes: #343507) + + -- Samuele Giovanni Tonon Tue, 20 Dec 2005 10:20:45 +0100 + +apcupsd (3.10.18-2) unstable; urgency=low + + * Rebuild against libssl0.9.8 + + -- Samuele Giovanni Tonon Mon, 10 Oct 2005 13:01:53 +0200 + +apcupsd (3.10.18-1) unstable; urgency=low + + * New Upstream Release (Closes: #315928) + * apcupsd-3.10.17 is now in stable (Closes: #256261) + * Fixed NEWS file (Closes: #310460) + * Provides Virtual Package ups-monitor added (Closes: #316398) + * Better doc for NISPORT (Closes: #321929) + * Other information on NEWS file inserted (Closes: #313642) (Closes: #316932) + + -- Samuele Giovanni Tonon Thu, 11 Aug 2005 11:40:35 +0200 + +apcupsd (3.10.17-2) unstable; urgency=low + + * Moved powerfail from /var/spool/apcupsd to /etc/apcupsd + (after some analisys this should not break FHS ) + * Added killpower script to /etc/apcupsd as suggested by Álvaro Martínez + Echevarría (Closes: #301916) + * Added NEWS file + + -- Samuele Giovanni Tonon Sun, 03 Apr 2005 12:41:13 +0200 + +apcupsd (3.10.17-1) unstable; urgency=low + + * New Upstream Release + * multimon.cgi links refers to cgi-bin directory (Closes: #301269) + + -- Samuele Giovanni Tonon Fri, 25 Mar 2005 17:43:56 +0100 + +apcupsd (3.10.16-7) unstable; urgency=low + + * splitted apcupsd in three packages: main, doc, cgi (Closes: #296035) + + -- Samuele Giovanni Tonon Sun, 20 Feb 2005 12:10:56 +0100 + +apcupsd (3.10.16-6) unstable; urgency=low + + * docbook is no more used therefore it's removed from apcupsd-doc + (Closes: #274752) + * Applied patch to solve problem with slave configuration (Closes: #282079) + * Applied patch to solve the problem of apctest (Closes: #285316) + * Adjusted init script to remove pid file on start stop (Closes: #290532) + + -- Samuele Giovanni Tonon Tue, 15 Feb 2005 15:26:23 +0100 + +apcupsd (3.10.16-5) unstable; urgency=low + + * Actually i should remove depends from logrotate instead of + just adding to changelog + + -- Samuele Giovanni Tonon Mon, 07 Feb 2005 18:33:24 +0100 + +apcupsd (3.10.16-4) unstable; urgency=low + + * Fixed Conflicts with other upses (Closes: #284890) + * I forgot to remove depends from logrotate (Closes: #290534) + * Fixed POWERFAIL in /etc/default/apcupsd (Closes: #293352) + + -- Samuele Giovanni Tonon Mon, 07 Feb 2005 18:19:34 +0100 + +apcupsd (3.10.16-3) unstable; urgency=low + + * Lost ups-monitor readding it + + -- Samuele Giovanni Tonon Mon, 29 Nov 2004 18:48:56 +0100 + +apcupsd (3.10.16-2) unstable; urgency=low + + * The "Why am i NMU-ing myself?" release: nothing has been changed from 16-1 + + -- Samuele Giovanni Tonon Mon, 15 Nov 2004 12:45:16 +0100 + +apcupsd (3.10.16-1) unstable; urgency=low + + * Added variable to deal init.d file with upgrades (Closes: #273198) + * No more kernel panic (Closes: #270308) + * Readded ups-monitor and provide: label (Closes: #277903) + + -- Samuele Giovanni Tonon Mon, 15 Nov 2004 11:11:14 +0100 + +apcupsd (3.10.15-3) unstable; urgency=low + + * Added a Patch to close file descriptor (Closes: #270234) + + -- Samuele Giovanni Tonon Mon, 06 Sep 2004 12:46:43 +0200 + +apcupsd (3.10.15-2) unstable; urgency=low + + * Added patch from Kern to fix a problem with snmp driver + (Closes: #266623) + + -- Samuele Giovanni Tonon Wed, 25 Aug 2004 11:45:08 +0200 + +apcupsd (3.10.15-1) unstable; urgency=low + + * New Upstream Release + + -- Samuele Giovanni Tonon Mon, 16 Aug 2004 17:08:33 +0200 + +apcupsd (3.10.14-1) unstable; urgency=low + + * New Upstream Release + * Kern is doing a great job, everybody thanks him! + + -- Samuele Giovanni Tonon Thu, 05 Aug 2004 23:52:47 +0200 + +apcupsd (3.10.13-5) unstable; urgency=medium + + * Added '|| echo "Not Running"' to apcupsd.init + to make apcupsd uninstall correctly (Closes: #261534). + Thanks to Philipp Matthias Hahn to report it and suggest + on how to fix it + * Modified apcupsd man page to point to + /usr/share/doc/apcupsd/doc/docbook/manual.html in SEE ALSO + section (Closes: #258910) + * added safe.apccontrol to examples directory (Closes: #258905) + + -- Samuele Giovanni Tonon Mon, 26 Jul 2004 21:01:08 +0200 + +apcupsd (3.10.13-4) unstable; urgency=low + + * Added Conflicts in control file (Closes: #252373) + * Removed all references to apcupsd-cgi + + -- Samuele Giovanni Tonon Tue, 15 Jun 2004 10:50:58 +0200 + +apcupsd (3.10.13-3) unstable; urgency=low + + * removed logrotate as suggested on apcupsd ml + * merged packages in -doc e main due to the fact that + even apcupsd depends on libgd (see bug 240849) + + -- Samuele Giovanni Tonon Wed, 02 Jun 2004 11:40:31 +0200 + +apcupsd (3.10.13-2) unstable; urgency=low + + * Added old patch to fix closing file descriptor (Closes: #236042) + * Added some trick to make apcupsd removing even if it's not configured + (Closes: #247935) + * Apcupsd has been splitted on daemon and cgi package (Closes: #240849), + however apcupsd binary still depend on libgd + * Added a line on prerm to delete the old cron.daily script + + -- Samuele Giovanni Tonon Sat, 15 May 2004 15:32:16 +0200 + +apcupsd (3.10.13-1) unstable; urgency=low + + * New Upstream Release + * Removing ups-monitor also fixed the problem with raid disks (Closes: #238185) + * Removed cron to rotate logs (Closes: #242722) + * fixed close on fork (Closes: #236042) + * No more css in cgi from this release + + -- Samuele Giovanni Tonon Fri, 23 Apr 2004 20:37:00 +0200 + +apcupsd (3.10.12-1) unstable; urgency=low + + * New Upstream Release + * Removed old templates (Closes: #237454) + * Changed listening port to 3551 as pointed out by Tomas Vinar - many + thanks! - (Closes: #234253) + * Added missing apctest (Closes: #242922) + * Removed ups-monitor (Closes: #230808) + * After some experiment the problem with logrotate seems closed + (Closes: #226055) + + -- Samuele Giovanni Tonon Thu, 15 Apr 2004 23:56:37 +0200 + +apcupsd (3.10.11-1.1) unstable; urgency=low + + * NMU to fix RC bug. + * Applied patch to close file descriptors to avoid blocking cron runs + (Closes: #236042). + + -- Yann Dirson Fri, 26 Mar 2004 15:04:30 +0100 + +apcupsd (3.10.11-1) unstable; urgency=low + + * New Upstream Release + + -- Samuele Giovanni Tonon Wed, 28 Jan 2004 17:11:19 +0100 + +apcupsd (3.10.10-2) unstable; urgency=medium + + * Removed ;; in platforms/apccontrol.in (Closes: #229485) that + can cause trouble during shutdown + + -- Samuele Giovanni Tonon Mon, 26 Jan 2004 16:19:55 +0100 + +apcupsd (3.10.10-1) unstable; urgency=low + + * New Upstream Release that fix some problem with kernel 2.6.x + + -- Samuele Giovanni Tonon Wed, 21 Jan 2004 10:22:35 +0100 + +apcupsd (3.10.9-3) unstable; urgency=low + + * Changed logrotate script + * Modified init.d script + + -- Samuele Giovanni Tonon Fri, 09 Jan 2004 19:28:35 +0100 + +apcupsd (3.10.9-2) unstable; urgency=low + + * Fixed missing Build-Depends (Closes: #226328) + + -- Samuele Giovanni Tonon Tue, 06 Jan 2004 12:06:27 +0100 + +apcupsd (3.10.9-1) unstable; urgency=high + + * New Upstream Release + * Upstream Fixed an incorrect sleep (forever) + + -- Samuele Giovanni Tonon Sat, 03 Jan 2004 02:33:39 +0100 + +apcupsd (3.10.8-1) unstable; urgency=low + + * New Upstream Release + * Fixed madness on rc.d symlinx (Closes: #225643) + + -- Samuele Giovanni Tonon Wed, 31 Dec 2003 16:17:01 +0100 + +apcupsd (3.10.6-5) unstable; urgency=low + + * Fixed up copyright file + + -- Samuele Giovanni Tonon Wed, 17 Dec 2003 12:56:55 +0100 + +apcupsd (3.10.6-4) unstable; urgency=low + + * Lost my mind release: changed override to extra as it should be + * Modified Author email to one working (Closes: #178291) + + -- Samuele Giovanni Tonon Mon, 10 Nov 2003 17:28:09 +0100 + +apcupsd (3.10.6-3) unstable; urgency=low + + * Changed default configuration with NetAccess setted to False + * Confirmed that --enable-master-slave solved the problem to allow + netaccess (Closes: #219414) + + -- Samuele Giovanni Tonon Mon, 10 Nov 2003 17:05:56 +0100 + +apcupsd (3.10.6-2) unstable; urgency=low + + * Added --enable-master-slave to configure to enable sharing of information + through the net + + -- Samuele Giovanni Tonon Fri, 07 Nov 2003 19:50:29 +0100 + +apcupsd (3.10.6-1) unstable; urgency=low + + * New Upstream Release + * New Mantainer (me) :-) + * Merged changelog of apcupsd-devel package and apcupsd main + * I think i'll drop apcupsd-devel 'cause it has no reason to exist + * Closing some very old bugs, that depends on the old version of apcupsd + and that don't exist in this release, if people still have problem they + are welcomed to reopen them (Closes: #93324) (Closes: #98989) + (Closes: #131727) (Closes: #131814) (Closes: #134151) (Closes: #136835) + (Closes: #178553) (Closes: #211682) (Closes: #216532) (Closes: #102026) + (Closes: #178291) (Closes: #182807) (Closes: #174615) (Closes: #130270) + (Closes: #132839) (Closes: #179544) (Closes: #205981) + + -- Samuele Giovanni Tonon Tue, 28 Oct 2003 20:43:11 +0100 + +apcupsd-devel (3.10.6.20030912-12Sep03-1) unstable; urgency=low + + * New Upstream Release + * rewritten /etc/init.d/apcupsd-devel so people won't go crazy when + there are changes (Closes: #213259) + * For Kern it seems there aren't problem to logs event to events file + (Closes: #201999) + + -- Samuele Giovanni Tonon Fri, 10 Oct 2003 15:15:49 +0200 + +apcupsd-devel (3.10.6.20030805-05Aug03-3) unstable; urgency=low + + * added symlink from etc/apcupsd/ups-monitor to etc/init.d/ups-monitor + * changed postinst and postrm + * changed rc.d level for a better performance + * changed init.d to rm /var/spool/apcupsd/powerfail even when restarting + the daemon + + -- Samuele Giovanni Tonon Sat, 23 Aug 2003 18:57:14 +0200 + +apcupsd-devel (3.10.6.20030805-05Aug03-2) unstable; urgency=low + + * Changed from usr/sbin to sbin + * Modified init.d script to rm the right powerfail file. + + -- Samuele Giovanni Tonon Thu, 21 Aug 2003 14:40:46 +0200 + +apcupsd-devel (3.10.6.20030805-05Aug03-1) unstable; urgency=low + + * New Upstream Version + * if powerfail is in /var/spool/apcupsd/powerfail then + ups-monitor has to look in /var/spool/... not /etc .. + * added some scripts in /etc/apcupsd + + -- Samuele Giovanni Tonon Mon, 18 Aug 2003 17:15:56 +0200 + +apcupsd-devel (3.10.6.18Jul03-3) unstable; urgency=low + + * Fixed /etc/init.d/apcupsd-devel restart adding --oknodo as suggested + by Andrew Suffield (Closes: #204002) + + -- Samuele Giovanni Tonon Sun, 03 Aug 2003 22:48:35 +0200 + +apcupsd-devel (3.10.6.18Jul03-2) unstable; urgency=low + + * Fixed a problem in rules script to configure powerfail PATH + now it points to /var/spool/apcupsd/powerfail (Closes: #203937) + + -- Samuele Giovanni Tonon Sun, 03 Aug 2003 11:25:31 +0200 + +apcupsd-devel (3.10.6.18Jul03-1) unstable; urgency=low + + * 23 July release check example directory for some addons + * New Upstream version + + -- Samuele Giovanni Tonon Fri, 25 Jul 2003 20:37:25 +0200 + +apcupsd-devel (3.10.6-5) unstable; urgency=low + + * Fixed override disparity (gee gtg to bed soon) + + -- Samuele Giovanni Tonon Fri, 23 May 2003 00:13:19 +0200 + +apcupsd-devel (3.10.6-4) unstable; urgency=low + + * Recompiled against libssl0.9.7 + + -- Samuele Giovanni Tonon Thu, 22 May 2003 23:11:43 +0200 + +apcupsd-devel (3.10.6-3) unstable; urgency=low + + * checked examples files for lost ones + + -- Samuele Giovanni Tonon Tue, 13 May 2003 13:15:08 +0200 + +apcupsd-devel (3.10.6-2) unstable; urgency=low + + * changed Conflicts to point to apcupsd (Closes: #192937) + + -- Samuele Giovanni Tonon Sun, 11 May 2003 19:58:38 +0200 + +apcupsd-devel (3.10.6-1) unstable; urgency=low + + * New upstream release + * removed apcupsd.8.gz from apcupsd-devel-doc package (Closes: #185839) + * Modified src/drivers/snmp/snmp.c from + int snmp_ups_program_eeprom(UPSINFO *ups, int command, char *data) to + int snmp_ups_program_eeprom(UPSINFO *ups, int command, void *data) + to make it compile with snmp support + + -- Samuele Giovanni Tonon Tue, 06 May 2003 23:52:33 +0200 + +apcupsd-devel (3.10.5-1) unstable; urgency=high + + * New Upstream Version + + -- Samuele Giovanni Tonon Tue, 28 Jan 2003 15:05:59 +0100 + +apcupsd-devel (3.10.3-3) unstable; urgency=low + + * Fixed override problems + * Added patch to fix config.guess and config.sub to latest autotools-dev + package (Closes: #178697) + * Added dpatch to Build-Depends + + -- Samuele Giovanni Tonon Tue, 28 Jan 2003 15:05:59 +0100 + +apcupsd-devel (3.10.3-2) unstable; urgency=low + + * Correct Dependencies (thanks to Unit 3 for reporting + and Craig Small for help) (Closes: #178614) + + -- Samuele Giovanni Tonon Mon, 27 Jan 2003 23:52:20 +0100 + +apcupsd-devel (3.10.3-1) unstable; urgency=low + + * Initial Release. (Closes: #177000) + * Modified Makefile.in to best fit DFHS + * Added some examples as well some tips in Readme.Debian file + + -- Samuele Giovanni Tonon Wed, 22 Jan 2003 17:40:41 +0100 + +apcupsd (3.8.5-1.3) unstable; urgency=low + + * NMU + * Remove automake1.5 dependency (Closes: #205981) + + -- Julien Danjou Fri, 29 Aug 2003 12:00:25 +0200 + +apcupsd (3.8.5-1.2) unstable; urgency=low + + * NMU (Bug squashing party) + * Depend on autoconf2.13 (closes: #179544) + * Fix format string vulnerability (closes: #174615) + + -- Lukas Geyer Sun, 16 Mar 2003 00:02:39 +0500 + +apcupsd (3.8.5-1.1) unstable; urgency=low + + * Non-mantainer upload. + * Added /etc/cron.daily/apcupsd and /etc/init.d/ups-monitor + to debian/apcupsd.conffiles (Closes: #132839) + * Applied a patch to make apcupsd compile in hppa. + Thanks to James Troup (Closes: #130270) + + -- Jose Carlos Garcia Sogo Sat, 16 Feb 2002 14:57:07 +0000 + +apcupsd (3.8.5-1) unstable; urgency=low + + * New upstream release. (closes: #109387, #93346) + * Update build depends on debhelper. (closes: #94889) + * Update mail paths. (closes: #109445, #98499) + * Fix postrm script for removing configuration directory. (closes: #104284) + * Update apccontrol script. (closes: #103035, #99281) + * Enable libwrap support. + * Update to standards version 3.5.6. + + -- Martin Mitchell Sun, 20 Jan 2002 02:04:27 +1100 + +apcupsd (3.8.1.5-1) unstable; urgency=low + + * New upstream release. (closes: #79045, #74060, #83059) + * Provide ups-monitor. (closes: #78058) + * Update to standards version 3.5.2. + * Update build depends. (closes: #70159) + * Change section to admin. + * Move events and status files to appropriate places. (closes: #63745) + + -- Martin Mitchell Sun, 08 Apr 2001 22:57:24 +1000 + +apcupsd (3.7.1-2) unstable; urgency=low + + * Fix init.d script problem with environment variable. + + -- Martin Mitchell Wed, 17 May 2000 01:20:06 +1000 + +apcupsd (3.7.1-1) unstable; urgency=low + + * New upstream release. (closes: #57131, #61777, #52206, #61636, #43447) + * Update copyright information. + * Update to standards version 3.1.1. + * Remove implicit bash dependency. (closes: #46505) + + -- Martin Mitchell Tue, 25 Apr 2000 14:21:54 +1000 + +apcupsd (3.6.2-1) unstable; urgency=low + + * New upstream release. (closes: #42653) + * New maintainer. + * Update to standards version 3.0.1. + * Remove files and substvars. (closes: #41599) + + -- Martin Mitchell Mon, 09 Aug 1999 01:11:48 +1000 + +apcupsd (3.6.1-1) unstable; urgency=low + + * New upstream release + * Binaries now reside in /usr/sbin (upstream change) + + -- Leon Breedt Wed, 14 Jul 1999 14:35:57 +0200 + +apcupsd (3.5.8-4) unstable; urgency=low + + * Removed empty README.Debian (closes: #38956) + * Fixed cron.daily to restart quietly (closes: #41056) + + -- Leon Breedt Fri, 09 Jul 1999 21:39:29 +0200 + +apcupsd (3.5.8-3) unstable; urgency=low + + * Various edits to /etc/apcupsd.conf + * Fixed /etc/init.d/apcupsd + * Added logrotate script + + -- Leon Breedt Mon, 07 Jun 1999 17:33:59 +0200 + +apcupsd (3.5.8-2) unstable; urgency=low + + * Added apcupsd.conf warning + + -- Leon Breedt Tue, 25 May 1999 21:42:53 +0200 + +apcupsd (3.5.8-1) unstable; urgency=low + + * Initial Release. + + -- Leon Breedt Sun, 23 May 1999 20:47:12 +0200 --- apcupsd-3.14.12.orig/debian/compat +++ apcupsd-3.14.12/debian/compat @@ -0,0 +1 @@ +7 --- apcupsd-3.14.12.orig/debian/control +++ apcupsd-3.14.12/debian/control @@ -0,0 +1,48 @@ +Source: apcupsd +Section: admin +Priority: extra +Maintainer: Giuseppe Iuculano +Uploaders: Stefan Ritter +Build-Depends: debhelper (>= 7), autotools-dev, quilt, mawk | awk, libgd2-noxpm-dev, libncurses5-dev | libncurses-dev, libsnmp-dev, libssl-dev, libwrap0-dev, po-debconf, texinfo, tcpd, rst2pdf, python-docutils, pkg-config, libusb-dev +Standards-Version: 3.8.4 +Homepage: http://www.apcupsd.com/ + +Package: apcupsd +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Conflicts: ups-monitor +Provides: ups-monitor +Recommends: apcupsd-doc +Suggests: apcupsd-cgi, udev +Description: APC UPS Power Management (daemon) + apcupsd provides UPS power management for APC products, including most BackUPS + series models (including USB), SmartUPS V/S, SmartUPS (NET/RM), and Matrix + series. + . + It controls and monitors the status of UPS and allows your computer to run for + a specified length of time on UPS power, and then executes a controlled + shutdown in the case of an extended power failure. + +Package: apcupsd-cgi +Section: web +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, apcupsd (= ${binary:Version}) +Suggests: apache2 | httpd +Description: APC UPS Power Management (web interface) + apcupsd provides UPS power management for APC products, including most BackUPS + series models (including USB), SmartUPS V/S, SmartUPS (NET/RM), and Matrix + series. + . + This package contains the web interface. + +Package: apcupsd-doc +Section: doc +Architecture: all +Depends: ${misc:Depends} +Replaces: apcupsd +Description: APC UPS Power Management (documentation/examples) + apcupsd provides UPS power management for APC products, including most BackUPS + series models (including USB), SmartUPS V/S, SmartUPS (NET/RM), and Matrix + series. + . + This package contains the documentation and examples. --- apcupsd-3.14.12.orig/debian/copyright +++ apcupsd-3.14.12/debian/copyright @@ -0,0 +1,42 @@ +Author: Kern Sibbald +Download: http://www.apcupsd.com/ + +Files: * +Copyright: (C) 2000-2009 Kern Sibbald +License: GPL-2+ + This program 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; either version 2 + of the License, or (at your option) any later version. + . + This program 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 program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + . + On Debian systems, the complete text of the GNU General Public License + can be found in /usr/share/common-licenses/GPL-2 file. + +Files: debian/* +Copyright: 2007-2009 Daniel Baumann +License: GPL-2+ + This program 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; either version 2 + of the License, or (at your option) any later version. + . + This program 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 program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + . + On Debian systems, the complete text of the GNU General Public License + can be found in /usr/share/common-licenses/GPL-2 file. --- apcupsd-3.14.12.orig/debian/local/killpower +++ apcupsd-3.14.12/debian/local/killpower @@ -0,0 +1,23 @@ +#!/bin/sh +# +# This shell script if placed in /etc/apcupsd +# will be called by /etc/apcupsd/apccontrol before +# apcupsd kills the power in the UPS. You probably +# need to edit this to mount read-only /usr and /var, +# otherwise apcupsd will not run. + +# Choose one of this solution +#mount -n -o ro /usr +#mount -n -o ro /var +# +#mount | awk '/ext2/ { print $3 }' | while read line; do +# mount -n -o ro,remount $line +#done +#mount | awk '/ext3/ { print $3 }' | while read line; do +# mount -n -o ro,remount $line +#done +#mount | awk '/reiserfs/ { print $3 }' | while read line; do +# mount -n -o ro,remount $line +#done + +exit 0 --- apcupsd-3.14.12.orig/debian/local/ups-monitor +++ apcupsd-3.14.12/debian/local/ups-monitor @@ -0,0 +1,39 @@ +#!/bin/sh + +### BEGIN INIT INFO +# Provides: ups-monitor +# Required-Start: +# Required-Stop: +# Should-Start: +# Should-Stop: +# Default-Start: +# Default-Stop: +# Short-Description: Stop ups-monitor +# Description: apcupsd provides UPS power management for APC products. +### END INIT INFO + +# Martin Mitchell +# modifications by Gordon Morehouse April 2001 +# +# Modified to be "non-blocking" by Bjorn Wiberg 2004-10-21 +# Place this script as /etc/init.d/ups-monitor in order for /etc/init.d/halt to find it! + +case "$1" in + poweroff | killpower) + if [ -f /etc/apcupsd/powerfail ]; then + echo "" + echo -n "apcupsd: Ordering UPS to kill power... " + /etc/apcupsd/apccontrol killpower + echo "done." + echo "" + echo "Please ensure the UPS has powered off before rebooting." + echo "Otherwise, the UPS may cut the power during the reboot!" + echo "" + fi + ;; + + *) + ;; +esac + +exit 0 --- apcupsd-3.14.12.orig/debian/local/usb.conf +++ apcupsd-3.14.12/debian/local/usb.conf @@ -0,0 +1,244 @@ +## apcupsd.conf v1.1 ## +# +# +# ========= General configuration parameters ============ +# +# UPSCABLE [ simple | smart | +# 940-00(20B,23A,24B,24C,24G,95A,95B,95C) | +# 940-15(24C) | +# ether ] +# defines the type of cable that you have. +UPSCABLE usb +# +# UPSTYPE [ backups | sharebasic | netups | +# backupspro | smartvsups | +# newbackupspro | backupspropnp | +# smartups | matrixups | sharesmart ] +# defines the type of UPS you have. +UPSTYPE usb +# +# +#DEVICE /dev/ +# name of your serial port +DEVICE /dev/usb/hid/hiddev[0-9] +# +#LOCKFILE +# path for serial port lock file +LOCKFILE /var/lock +# +# +# +# ======== configuration parameters used during power failures ========== +# +# Note: BATTERYLEVEL, MINUTES, and TIMEOUT work in conjunction, so +# the first that occurs will cause the initation of a shutdown. +# +# If during a power failure, the remaining battery percentage +# (as reported by the UPS) is below or equal to BATTERYLEVEL, +# apcupsd will initiate a system shutdown. +BATTERYLEVEL 5 +# +# +# If during a power failure, the remaining runtime in minutes +# (as calculated internally by the UPS) is below or equal to MINUTES, +# apcupsd, will initiate a system shutdown. +MINUTES 3 +# +# +# If during a power failure, the UPS has run on batteries for TIMEOUT +# many seconds or longer, apcupsd will initiate a system shutdown. +# A value of 0 disables this timer. +# +# Note, if you have a Smart UPS, you will most likely want to disable +# this timer by setting it to zero. That way, you UPS will continue +# on batteries until either the % charge remaing drops to or below BATTERYLEVEL, +# or the remaining battery runtime drops to or below MINUTES. Of course, +# if you are testing, setting this to 60 causes a quick system shutdown +# if you pull the power plug. +# If you have an older dumb UPS, you will want to set this to less than +# the time you know you can run on batteries. +TIMEOUT 0 +# +# +# Time in seconds between annoying users to signoff prior to +# system shutdown. 0 disables. +ANNOY 300 +# +# Initial delay after power failure before warning users to get +# off the system. +ANNOYDELAY 60 +# +# The condition which determines when users are prevented from +# logging in during a power failure. +# NOLOGON [ disable | timeout | percent | minutes | always ] +NOLOGON disable +# +# +# If killdelay is set, apcupsd will continue running after a +# shutdown has been requested, and after the specified time in +# seconds attempt to kill the power. This is for use on systems +# where apcupsd cannot regain control after a shutdown. +# KILLDELAY 0 disables +KILLDELAY 0 +# +# +# ==== Configuration statements the network information server ========= +# +# NETSERVER [ on | off ] on enables, off disables the network +# information server. If netstatus is on, a network information +# server process will be started for serving the STATUS and +# EVENT data over the network (used by CGI programs). +NETSERVER on +# +# NISPORT default is 7000 +# port to use for sending STATUS and EVENTS data over the network. +# It is not used unless NETSERVER is on. If you change this port, +# you will need to change the corresponding value in the cgi directory +# and rebuild the cgi programs. +NISIP 127.0.0.1 +NISPORT 6543 +# +# If you want the last few EVENTS to be available over the network +# by the network information server, you must define an EVENTSFILE. +# Only the last 50 or so events are kept. +EVENTSFILE /var/log/apcupsd.events +# +# +# +# +# ===== Configuration statements to control apcupsd system logging ======== +# +# Time interval in seconds between writing the STATUS file; 0 disables +STATTIME 0 +# +# Location of STATUS file (written to only if STATTIME is non-zero) +STATFILE /var/log/apcupsd.status +# +# +# LOGSTATS [ on | off ] on enables, off disables +# Note! This generates a lot of output, so if +# you turn this on, be sure that the +# file defined in syslog.conf for LOG_NOTICE is a named pipe. +# You probably do not want this on. +LOGSTATS off +# +# +# Time interval in seconds between writing the DATA records to +# the log file. 0 disables. +DATATIME 0 +# +# FACILITY defines the logging facility (class) for logging to syslog. +# If not specified, it defaults to "daemon". This is useful +# if you want to separate the data logged by apcupsd from other +# programs. +#FACILITY local0 +# +# +# +# +# ========== Configuration statements used in updating the UPS EPROM ========= +# +# UPS name, max 8 characters -- used only during -n or --rename-ups +UPSNAME UPS_IDEN +# +# Battery date - 8 characters -- used only during -u or --update-battery-date +#BATTDATE mm/dd/yy +# +# The following items are set during -c or --configure +# +# Sensitivity to line voltage quality (H cause faster transfer to batteries) +# SENSITIVITY H M L (default = H) +#SENSITIVITY H +# +# UPS delay after power return (seconds) +# WAKEUP 000 060 180 300 (default = 0) +#WAKEUP 60 +# +# UPS Grace period after request to power off (seconds) +# SLEEP 020 180 300 600 (default = 20) +#SLEEP 180 +# +# +# Low line voltage causing transfer to batteries +# The permitted values depend on your model as defined by last letter +# of FIRMWARE or APCMODEL. Some representative values are: +# D 106 103 100 097 +# M 177 172 168 182 +# A 092 090 088 086 +# I 208 204 200 196 (default = 0 => not valid) +#LOTRANSFER 208 +# +# High line voltage causing transfer to batteries +# The permitted values depend on your model as defined by last letter +# of FIRMWARE or APCMODEL. Some representative values are: +# D 127 130 133 136 +# M 229 234 239 224 +# A 108 110 112 114 +# I 253 257 261 265 (default = 0 => not valid) +#HITRANSFER 253 +# +# Battery change needed to restore power +# RETURNCHARGE 00 15 50 90 (default = 15) +#RETURNCHARGE 15 +# +# Alarm delay +# 0 = zero delay after pwr fail, T = power fail + 30 sec, L = low battery, N = never +# BEEPSTATE 0 T L N (default = 0) +#BEEPSTATE T +# +# Low battery warning delay in minutes +# LOWBATT 02 05 07 10 (default = 02) +#LOWBATT 2 +# +# UPS Output voltage when running on batteries +# The permitted values depend on your model as defined by last letter +# of FIRMWARE or APCMODEL. Some representative values are: +# D 115 +# M 208 +# A 100 +# I 230 240 220 225 (default = 0 => not valid) +#OUTPUTVOLTS 230 +# +# Self test interval in hours 336=2 weeks, 168=1 week, ON=at power on +# SELFTEST 336 168 ON OFF (default = 336) +#SELFTEST 336 +# +# +# +# ========== Configuration statements used if sharing ============= +# a UPS and controlling it via the network +# +# The configuration statements below are used if you +# want to share one UPS to power multiple machines and have them +# communicate by the network. Obviously, the master is connected +# to the UPS via the serial cable, and it communicates to the +# "slaves" via the network -- i.e. the slaves get their info +# concerning the UPS via the ethernet. +# +# UPSCLASS [ standalone | shareslave | sharemaster | netslave | netmaster ] +# normally standalone unless you share a UPS with multiple machines. +UPSCLASS standalone +# +# Unless you want to share the UPS (power multiple machines). +# this should be disable +# UPSMODE [ disable | share | net | sharenet ] +UPSMODE disable +# +#NETACCESS [ true | false ] Enable Network Access Support +NETACCESS true +# +# NETTIME +#NETTIME 100 +# +# NETPORT +#NETPORT 6544 +# +# MASTER +#MASTER +# +# SLAVE +#SLAVE +# +# USERMAGIC +#USERMAGIC +# --- apcupsd-3.14.12.orig/debian/patches/01-commfailure.patch +++ apcupsd-3.14.12/debian/patches/01-commfailure.patch @@ -0,0 +1,15 @@ +Author: Tero Janka +Description: apcaccess call blocking commfailure mails (Closes: #409734). + +Index: apcupsd/platforms/etc/commfailure.in +=================================================================== +--- apcupsd.orig/platforms/etc/commfailure.in ++++ apcupsd/platforms/etc/commfailure.in +@@ -13,7 +13,5 @@ MSG="$HOSTNAME Communications with UPS $ + echo "Subject: $MSG" + echo " " + echo "$MSG" +- echo " " +- @sbindir@/apcaccess status + ) | $APCUPSD_MAIL -s "$MSG" $SYSADMIN + exit 0 --- apcupsd-3.14.12.orig/debian/patches/02-man-typo.patch +++ apcupsd-3.14.12/debian/patches/02-man-typo.patch @@ -0,0 +1,25 @@ +Author: Justin Pryzby +Description: Fixes typo in apcupsd manpage (Closes: #516045). + +Index: apcupsd/platforms/debian/apcupsd.8 +=================================================================== +--- apcupsd.orig/platforms/debian/apcupsd.8 ++++ apcupsd/platforms/debian/apcupsd.8 +@@ -30,7 +30,7 @@ There is now no communication between "a + The "apcupsd" daemon now supports the networking mode. In this mode, + one machine is configured as a master, with UPS attached to the serial + port. Other machines (max. 20) are configured as a slaves. Master has a +-network connection with slaves and send them informations about UPS ++network connection with slaves and send them information about UPS + status. Both Master and Slaves open and close there sockets on a regular + basis. If someone gets lost nobody gets to upset. + .LP +@@ -264,7 +264,7 @@ ranging from 0-3 are assigned the learne + Valid for UPSes capable of Internal EPROM programming. + .br + This allows the setting of the noise maker that many have removed +-because of the annoiance factor. These settings are based on discrete ++because of the annoyance factor. These settings are based on discrete + events related to the remaining capacity of the UPS. + .br + 0 always --- apcupsd-3.14.12.orig/debian/patches/03-fix-broken-links-in-documentation.patch +++ apcupsd-3.14.12/debian/patches/03-fix-broken-links-in-documentation.patch @@ -0,0 +1,37 @@ +Fix #525460 +Index: apcupsd/doc/home-page/index.html +=================================================================== +--- apcupsd.orig/doc/home-page/index.html ++++ apcupsd/doc/home-page/index.html +@@ -17,8 +17,8 @@ + Site Visits
+  
+ Documentation
+-Online Manual
+-PDF Manual
++Online Manual
++PDF Manual
+  
+ Downloads
+ All Files
+@@ -71,16 +71,16 @@ Apcupsd 3.14.11 is the latest stable rel + new features over previous releases. Users of all previous + versions are encouraged to upgrade. +

+-

Online Manual or a +-PDF Version of ++

Online Manual or a ++PDF Version of + the Manual

If you want to learn a bit more about + apcupsd, you can browse the +-manual online. ++manual online. + If you have any corrections/comments to the manual, please send them to + the apcupsd-users mailing list (see below). For bug reports and + developer contact, please see below. + If you want a pdf copy of the manual, you can find it +-here. ++here. +

Bugs and Email Support

+ Please don't email me directly, it is much better to address bug reports + and questions to the --- apcupsd-3.14.12.orig/debian/patches/04-kfreebsd-support.patch +++ apcupsd-3.14.12/debian/patches/04-kfreebsd-support.patch @@ -0,0 +1,27 @@ +Index: apcupsd/autoconf/configure.in +=================================================================== +--- apcupsd.orig/autoconf/configure.in ++++ apcupsd/autoconf/configure.in +@@ -350,6 +350,7 @@ case $host in + *-*-hpux*) AC_DEFINE(HAVE_HPUX_OS) ;; + *-*-linux*) AC_DEFINE(HAVE_LINUX_OS) ;; + *-*-freebsd*) AC_DEFINE(HAVE_FREEBSD_OS) ;; ++ *-*-kfreebsd*)AC_DEFINE(HAVE_FREEBSD_OS) ;; + *-*-netbsd*) AC_DEFINE(HAVE_NETBSD_OS) ;; + *-*-openbsd*) AC_DEFINE(HAVE_OPENBSD_OS) ;; + *-*-bsdi*) AC_DEFINE(HAVE_BSDI_OS) ;; +Index: apcupsd/configure +=================================================================== +--- apcupsd.orig/configure ++++ apcupsd/configure +@@ -10312,6 +10312,10 @@ _ACEOF + #define HAVE_FREEBSD_OS 1 + _ACEOF + ;; ++ *-*-kfreebsd*) cat >>confdefs.h <<\_ACEOF ++#define HAVE_FREEBSD_OS 1 ++_ACEOF ++ ;; + *-*-netbsd*) cat >>confdefs.h <<\_ACEOF + #define HAVE_NETBSD_OS 1 + _ACEOF --- apcupsd-3.14.12.orig/debian/patches/05-apcaccess-arm.patch +++ apcupsd-3.14.12/debian/patches/05-apcaccess-arm.patch @@ -0,0 +1,13 @@ +Declare "ch" as int to match getopt return type. Fix apcaccess behavior on +arm. +--- a/src/apcaccess.c ++++ b/src/apcaccess.c +@@ -146,7 +146,7 @@ + #endif + + // Process standard options +- char ch; ++ int ch; + while ((ch = getopt(argc, argv, "f:h:p:u")) != -1) + { + switch (ch) --- apcupsd-3.14.12.orig/debian/patches/series +++ apcupsd-3.14.12/debian/patches/series @@ -0,0 +1,5 @@ +01-commfailure.patch +02-man-typo.patch +03-fix-broken-links-in-documentation.patch +04-kfreebsd-support.patch +05-apcaccess-arm.patch --- apcupsd-3.14.12.orig/debian/rules +++ apcupsd-3.14.12/debian/rules @@ -0,0 +1,97 @@ +#!/usr/bin/make -f + +include /usr/share/quilt/quilt.make + +DPKG_EXPORT_BUILDFLAGS = 1 +include /usr/share/dpkg/buildflags.mk + +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp + rm -f autoconf/config.guess autoconf/config.sub + + [ ! -f autoconf/variables.mak ] || $(MAKE) distclean + + dh_clean + +config.status: configure patch + dh_testdir + +ifneq "$(wildcard /usr/share/misc/config.sub)" "" + cp -f /usr/share/misc/config.sub autoconf/config.sub +endif +ifneq "$(wildcard /usr/share/misc/config.guess)" "" + cp -f /usr/share/misc/config.guess autoconf/config.guess +endif + + ./configure $(CROSS) --prefix=/usr --sbindir=/sbin --mandir=\$${prefix}/share/man --enable-pthreads --with-libwrap --enable-cgi --enable-usb --enable-net --enable-snmp --enable-test --with-cgi-bin=\$${prefix}/lib/cgi-bin/apcupsd --enable-powerflute --enable-nls --with-catgets --with-pid-dir=/var/run --with-log-dir=/var/log --with-lock-dir=/var/lock --with-pwrfail-dir=/etc/apcupsd --disable-install-distdir --with-nis-port=3551 --with-nisip=127.0.0.1 --enable-master-slave --with-css-dir=\$${prefix}/../etc/apcupsd/ CFLAGS="$(CFLAGS)" + +build: build-arch build-indep +build-arch: build-stamp +build-indep: build-stamp +build-stamp: config.status + dh_testdir + + $(MAKE) + + touch build-stamp + +install: build + dh_testdir + dh_testroot + dh_prep + + $(MAKE) DESTDIR=$(CURDIR)/debian/tmp prefix=/usr sysconfdir=/etc/apcupsd sbindir=/sbin install + + # Installing debian additions + install -D -m 0755 debian/local/killpower debian/tmp/etc/apcupsd/killpower + install -D -m 0755 debian/local/ups-monitor debian/tmp/etc/apcupsd/ups-monitor + + # Installing documentation + mkdir -p debian/tmp/usr/share/doc/apcupsd + cp -r doc debian/tmp/usr/share/doc/apcupsd + + # Installing examples + cp -r examples debian/tmp/usr/share/doc/apcupsd + +binary: binary-arch binary-indep + +binary-arch: install + dh_testdir -a + dh_testroot -a + dh_installchangelogs -a ChangeLog + dh_installdocs -a + dh_installexamples -a + dh_install -a --sourcedir=debian/tmp + dh_installinit -a --no-restart-on-upgrade --init-script=apcupsd -- start 41 1 2 3 4 5 . stop 80 0 6 . + dh_installman -a + dh_link -a + dh_strip -a + dh_compress -a -Xusr/share/doc/apcupsd/examples + dh_fixperms -a + dh_makeshlibs -a + dh_installdeb -a + dh_shlibdeps -a + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a + +binary-indep: install + dh_testdir -i + dh_testroot -i + dh_installchangelogs -i ChangeLog + dh_installdocs -i + dh_install -i --sourcedir=debian/tmp + dh_lintian -i + dh_compress -i -Xusr/share/doc/apcupsd/doc + dh_fixperms -i + dh_installdeb -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +.PHONY: clean build install binary binary-arch binary-indep --- apcupsd-3.14.12.orig/debian/source/format +++ apcupsd-3.14.12/debian/source/format @@ -0,0 +1 @@ +1.0 --- apcupsd-3.14.12.orig/debian/watch +++ apcupsd-3.14.12/debian/watch @@ -0,0 +1,3 @@ +version=3 +http://sf.net/apcupsd/apcupsd-(.*)\.tar.gz +