summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Wendel <lanius@gentoo.org>2003-12-04 22:39:32 +0000
committerHeinrich Wendel <lanius@gentoo.org>2003-12-04 22:39:32 +0000
commit2d1f27423cadf4c01a122119e87d0a33424e739b (patch)
tree2ac56d445f19aa657c36250686c3332db6e8b8d8 /sys-apps/apcupsd
parentFix typo. (diff)
downloadhistorical-2d1f27423cadf4c01a122119e87d0a33424e739b.tar.gz
historical-2d1f27423cadf4c01a122119e87d0a33424e739b.tar.bz2
historical-2d1f27423cadf4c01a122119e87d0a33424e739b.zip
removed unused files
Diffstat (limited to 'sys-apps/apcupsd')
-rw-r--r--sys-apps/apcupsd/ChangeLog6
-rw-r--r--sys-apps/apcupsd/Manifest5
-rw-r--r--sys-apps/apcupsd/files/apccontrol122
-rw-r--r--sys-apps/apcupsd/files/apcupsd31
-rwxr-xr-xsys-apps/apcupsd/files/halt24
5 files changed, 6 insertions, 182 deletions
diff --git a/sys-apps/apcupsd/ChangeLog b/sys-apps/apcupsd/ChangeLog
index b8690d3d5a91..83a43e9883eb 100644
--- a/sys-apps/apcupsd/ChangeLog
+++ b/sys-apps/apcupsd/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-apps/apcupsd
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/apcupsd/ChangeLog,v 1.23 2003/12/04 22:20:14 lanius Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/apcupsd/ChangeLog,v 1.24 2003/12/04 22:39:26 lanius Exp $
+
+ 04 Dec 2003; Heinrich Wendel <lanius@gentoo.org> files/apccontrol,
+ files/apcupsd, files/halt:
+ removed unused files
04 Dec 2003; Heinrich Wendel <lanius@gentoo.org> apcupsd-3.10.6.ebuild,
files/3.10.6/ucd-snmp.patch:
diff --git a/sys-apps/apcupsd/Manifest b/sys-apps/apcupsd/Manifest
index 945c8f6e5ab3..54216a760585 100644
--- a/sys-apps/apcupsd/Manifest
+++ b/sys-apps/apcupsd/Manifest
@@ -1,13 +1,10 @@
MD5 51d33fa0d6b6fec4502f239d89f112b1 apcupsd-3.10.5-r3.ebuild 1993
MD5 37a17ef92e0fa96f32d68b794be5e396 apcupsd-3.10.5-r2.ebuild 1896
MD5 95fbe0b2c22a6ac60e34a6449c2a90d6 apcupsd-3.10.5-r4.ebuild 2180
-MD5 987715f7815645667b48affbf0eaff52 ChangeLog 3989
+MD5 f845e362702469e414daf5d4866c95d6 ChangeLog 4111
MD5 e6543624c262cae90cc830cde90ad3ae metadata.xml 165
MD5 090ee030df26c309286f279952a730b6 apcupsd-3.10.6.ebuild 2530
-MD5 32ee68a9e4bf0033543a302d00b8cbf4 files/halt 519
MD5 f66859d42d0af37659622f78b276a8bc files/digest-apcupsd-3.10.6 123
-MD5 b3e098cb7179d63d6c017deb7c9c6f08 files/apccontrol 4230
-MD5 158b1f6f027c57fec3b78f3f2f5b991f files/apcupsd 719
MD5 f7092406e32869eb0535d85b4c09be0d files/digest-apcupsd-3.10.5-r2 123
MD5 f7092406e32869eb0535d85b4c09be0d files/digest-apcupsd-3.10.5-r3 123
MD5 f7092406e32869eb0535d85b4c09be0d files/digest-apcupsd-3.10.5-r4 123
diff --git a/sys-apps/apcupsd/files/apccontrol b/sys-apps/apcupsd/files/apccontrol
deleted file mode 100644
index 050b32f02006..000000000000
--- a/sys-apps/apcupsd/files/apccontrol
+++ /dev/null
@@ -1,122 +0,0 @@
-#!/bin/sh
-#
-# Copyright (C) 1999-2000 Riccardo Facchetti <riccardo@master.oasi.gpa.it>
-#
-# Generated automatically from apccontrol.sh.in by configure.
-#
-
-#
-# These variables are needed for set up the autoconf other variables.
-#
-prefix=/tmp/portage/apcupsd-3.8.1/image/
-exec_prefix=${prefix}
-
-APCPID=/var/run/apcupsd.pid
-APCUPSD=/usr/sbin/apcupsd
-SHUTDOWN=/sbin/shutdown
-SCRIPTSHELL=/bin/sh
-SCRIPTDIR=/etc/apcupsd
-
-#
-# This piece is to substitute the default behaviour with your own script,
-# perl, or C program.
-# You can customize every single command creating an executable file (may be a
-# script or a compiled program) and calling it the same as the $1 parameter
-# passed by apcupsd to this script.
-#
-# After executing your script, apccontrol continues with the default action.
-# If you do not want apccontrol to continue, exit your script with exit
-# code 99. E.g. "exit 99".
-#
-# WARNING: the apccontrol file will be overwritten every time you update your
-# apcupsd, doing `make install'. Your own customized scripts will _not_ be
-# overwritten. If you wish to make changes to this file (discouraged), you
-# should change apccontrol.sh.in and then rerun the configure process.
-#
-if [ -f ${SCRIPTDIR}/${1} -a -x ${SCRIPTDIR}/${1} ]
-then
- ${SCRIPTSHELL} ${SCRIPTDIR}/${1}
- # exit code 99 means he does not want us to do default action
- if [ $? = 99 ] ; then
- exit 0
- fi
-fi
-
-case "$1" in
- killpower)
- echo "Apccontrol doing: ${APCUPSD} --killpower"
- ${APCUPSD} --killpower
- ;;
- commfailure)
- printf "Warning serial port communications with UPS lost." | wall
- ;;
- commok)
- printf "Serial communciations with UPS restored." | wall
- ;;
- powerout)
- printf "Warning power loss detected." | wall
- ;;
- onbattery)
- printf "Power failure. Running on UPS batteries." | wall
- ;;
- failing)
- printf "UPS battery power exhaused. Doing shutdown.\n" | wall
- ;;
- timeout)
- printf "UPS battery runtime limit exceded. Doing shutdown.\n" | wall
- ;;
- loadlimit)
- printf "UPS battery discharge limit reached. Doing shutdown.\n" | wall
- ;;
- runlimit)
- printf "UPS battery runtime percent reached. Doing shutdown.\n" \
- | wall
- ;;
- doreboot)
- printf "Beginning Reboot Sequence" | wall
- ${SHUTDOWN} -r now "apcupsd initiated reboot"
- ;;
- doshutdown)
- printf "Beginning Shutdown Sequence" | wall
- ${SHUTDOWN} -h now "apcupsd initiated shutdown"
- ;;
- mainsback)
- printf "Power has returned..." | wall
- if [ -f /etc/apcupsd/powerfail ] ; then
- printf "Attempting to cancel shutdown." | wall
- ${SHUTDOWN} -c
- fi
- ;;
- annoyme)
- printf "Power problems please logoff." | wall
- ;;
- emergency)
- printf "Emergency Shutdown. Possible UPS battery failure." \
- | wall
- ${SHUTDOWN} -h now "apcupsd emergency shutdown"
- ;;
- changeme)
- printf "Emergency! UPS batteries have failed\nChange them NOW" \
- | wall
- ;;
- remotedown)
- printf "Remote Shutdown.\nBeginning Shutdown Sequence." | wall
- ${SHUTDOWN} -h now "apcupsd remote shutdown"
- ;;
- restartme)
- echo -n "Restarting APCUPSD Power Management: "
- THEPID=`cat ${APCPID}`
- kill ${THEPID}
- rm -f ${APCPID}
- rm -f /etc/apcupsd/powerfail
- rm -f /etc/nologin
- sleep 5
- `${APCUPSD}`
- echo "apcupsd"
- ;;
- *) echo "Usage: ${0##*/} command"
- echo " warning: this script is intended to be launched by"
- echo " apcupsd and should never be launched by users."
- exit 1
- ;;
-esac
diff --git a/sys-apps/apcupsd/files/apcupsd b/sys-apps/apcupsd/files/apcupsd
deleted file mode 100644
index 28a879af5ef9..000000000000
--- a/sys-apps/apcupsd/files/apcupsd
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2003 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/apcupsd/files/apcupsd,v 1.9 2003/09/03 20:01:26 mholzer Exp $
-
-depend() {
- need net
- use logger dns
- after hotplug
-}
-
-start() {
- rm -f /etc/apcupsd/powerfail
- ebegin "Starting APC UPS daemon"
- start-stop-daemon --start --quiet --exec /usr/sbin/apcupsd -- 1>&2
- eend $?
-}
-
-stop() {
- ebegin "Stopping APC UPS daemon"
- start-stop-daemon --stop --quiet --exec /usr/sbin/apcupsd -- 1>&2
- eend $?
-}
-
-restart() {
- svc_stop
- # need to sleep or new process may choke grabbing
- # the dying processes network socket
- sleep 1
- svc_start
-}
diff --git a/sys-apps/apcupsd/files/halt b/sys-apps/apcupsd/files/halt
deleted file mode 100755
index be982cf792ca..000000000000
--- a/sys-apps/apcupsd/files/halt
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/sh
-#
-# halt Execute the halt command.
-#
-# Version: @(#)halt 2.75 19-May-1998 miquels@cistron.nl
-# modified by Holger Brueckner <darks@gentoo.org>
-# for apcupsd 28-June-2001
-
-PATH=/sbin:/bin:/usr/sbin:/usr/bin
-APCCONTROL="/etc/apcupsd/apccontrol killpower"
-
-# See if we need to cut the power.
-
-# See if this is a powerfail situation.
-if [ -f /etc/apcupsd/powerfail ]; then
- echo "APCUPSD to the Rescue!"
- echo
- $APCCONTROL
- echo
- sleep 120
- exit 1
-fi
-
-/sbin/halt -nfip