pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/apcupsd Proofread apccontrol's messages. Rai...
details: https://anonhg.NetBSD.org/pkgsrc/rev/b9dd41cd8592
branches: trunk
changeset: 603540:b9dd41cd8592
user: shattered <shattered%pkgsrc.org@localhost>
date: Mon May 07 12:55:23 2012 +0000
description:
Proofread apccontrol's messages. Raise syslog severity for 'emergency'
message to 'crit'.
diffstat:
sysutils/apcupsd/Makefile | 4 ++--
sysutils/apcupsd/distinfo | 4 ++--
sysutils/apcupsd/patches/patch-ad | 28 ++++++++++++++--------------
3 files changed, 18 insertions(+), 18 deletions(-)
diffs (111 lines):
diff -r 4acdba125bf7 -r b9dd41cd8592 sysutils/apcupsd/Makefile
--- a/sysutils/apcupsd/Makefile Mon May 07 08:42:00 2012 +0000
+++ b/sysutils/apcupsd/Makefile Mon May 07 12:55:23 2012 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.67 2012/02/18 21:10:48 bouyer Exp $
+# $NetBSD: Makefile,v 1.68 2012/05/07 12:55:23 shattered Exp $
DISTNAME= apcupsd-3.14.9
-PKGREVISION= 3
+PKGREVISION= 4
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=apcupsd/}
diff -r 4acdba125bf7 -r b9dd41cd8592 sysutils/apcupsd/distinfo
--- a/sysutils/apcupsd/distinfo Mon May 07 08:42:00 2012 +0000
+++ b/sysutils/apcupsd/distinfo Mon May 07 12:55:23 2012 +0000
@@ -1,11 +1,11 @@
-$NetBSD: distinfo,v 1.18 2012/02/19 18:21:58 bouyer Exp $
+$NetBSD: distinfo,v 1.19 2012/05/07 12:55:23 shattered Exp $
SHA1 (apcupsd-3.14.9.tar.gz) = 1e9e8a054f17c554c047ec1d7b363d35553058bc
RMD160 (apcupsd-3.14.9.tar.gz) = be1a33b85c790fc3bc62bab370a62d014dbf0a57
Size (apcupsd-3.14.9.tar.gz) = 1334762 bytes
SHA1 (patch-ab) = 3db85accf1b05c8723dd7625278dfac02909dc34
SHA1 (patch-ac) = 98e8853dd030e09d5a487e57a277ff1269baa517
-SHA1 (patch-ad) = 48818f95966f5c9f742e333614b0ab5387886e62
+SHA1 (patch-ad) = 2877fd13513c96f4489953b539012b03c16b0223
SHA1 (patch-ae) = 9deb5f88617ea4fa81308567f4e65851c05e3f86
SHA1 (patch-af) = 0e230b543aa72c6d5799b2223e52f2d932255e4f
SHA1 (patch-ag) = c160cf80182edd0e42323dd24eddff7ae91c0e13
diff -r 4acdba125bf7 -r b9dd41cd8592 sysutils/apcupsd/patches/patch-ad
--- a/sysutils/apcupsd/patches/patch-ad Mon May 07 08:42:00 2012 +0000
+++ b/sysutils/apcupsd/patches/patch-ad Mon May 07 12:55:23 2012 +0000
@@ -1,7 +1,7 @@
-$NetBSD: patch-ad,v 1.4 2006/11/15 21:46:25 bouyer Exp $
+$NetBSD: patch-ad,v 1.5 2012/05/07 12:55:23 shattered Exp $
---- /dev/null 2006-11-15 17:26:11.000000000 +0100
-+++ platforms/netbsd/apccontrol.in 2006-11-15 17:42:37.000000000 +0100
+--- platforms/netbsd/apccontrol.in.orig 2012-04-21 20:53:17.000000000 +0000
++++ platforms/netbsd/apccontrol.in
@@ -0,0 +1,147 @@
+#!@SCRIPTSHELL@
+#
@@ -58,15 +58,15 @@
+ ;;
+ commfailure)
+ printf "Communications with UPS lost." | wall
-+ /usr/bin/logger -p user.info -t apccontrol "Warning serial port communications with UPS lost."
++ /usr/bin/logger -p user.info -t apccontrol "Warning, serial port communications with UPS lost."
+ ;;
+ commok)
-+ printf "Communciations with UPS restored." | wall
-+ /usr/bin/logger -p user.info -t apccontrol "Communciations with UPS restored."
++ printf "Communications with UPS restored." | wall
++ /usr/bin/logger -p user.info -t apccontrol "Communications with UPS restored."
+ ;;
+ powerout)
+ printf "Warning power loss detected." | wall
-+ /usr/bin/logger -p user.info -t apccontrol "Warning power loss detected."
++ /usr/bin/logger -p user.info -t apccontrol "Warning, power loss detected."
+ ;;
+ onbattery)
+ printf "Power failure. Running on UPS batteries." | wall
@@ -84,20 +84,20 @@
+ ;;
+ failing)
+ printf "UPS battery power exhaused. Doing shutdown.\n" | wall
-+ /usr/bin/logger -p user.info -t apccontrol "UPS battery power exhaused. Doing shutdown.\n"
++ /usr/bin/logger -p user.info -t apccontrol "UPS battery power exhaused. Doing shutdown."
+ ;;
+ timeout)
+ printf "UPS battery runtime limit exceeded. Doing shutdown.\n" | wall
-+ /usr/bin/logger -p user.info -t apccontrol "UPS battery runtime limit exceeded. Doing shutdown.\n"
++ /usr/bin/logger -p user.info -t apccontrol "UPS battery runtime limit exceeded. Doing shutdown."
+ ;;
+ loadlimit)
+ printf "UPS battery discharge limit reached. Doing shutdown.\n" | wall
-+ /usr/bin/logger -p user.info -t apccontrol "UPS battery discharge limit reached. Doing shutdown.\n"
++ /usr/bin/logger -p user.info -t apccontrol "UPS battery discharge limit reached. Doing shutdown."
+ ;;
+ runlimit)
+ printf "UPS battery runtime percent reached. Doing shutdown.\n" \
+ | wall
-+ /usr/bin/logger -p user.info -t apccontrol "UPS battery runtime percent reached. Doing shutdown.\n"
++ /usr/bin/logger -p user.info -t apccontrol "UPS battery runtime percent reached. Doing shutdown."
+ ;;
+ doreboot)
+ printf "Beginning Reboot Sequence" | wall
@@ -108,18 +108,18 @@
+ ${SHUTDOWN} -h now "apcupsd initiated shutdown"
+ ;;
+ annoyme)
-+ printf "Power problems please logoff." | wall
++ printf "Power problems, please logoff." | wall
+ ;;
+ emergency)
+ printf "Emergency Shutdown. Possible UPS battery failure." \
+ | wall
-+ /usr/bin/logger -p user.info -t apccontrol "Emergency Shutdown. Possible UPS battery failure."
++ /usr/bin/logger -p user.crit -t apccontrol "Emergency Shutdown. Possible UPS battery failure."
+ ${SHUTDOWN} -h now "apcupsd emergency shutdown"
+ ;;
+ changeme)
+ printf "Emergency! UPS batteries have failed\nChange them NOW" \
+ | wall
-+ /usr/bin/logger -p user.info -t apccontrol "Emergency! UPS batteries have failed\nChange them NOW"
++ /usr/bin/logger -p user.info -t apccontrol "Emergency! UPS batteries have failed. Change them NOW."
+ ;;
+ remotedown)
+ printf "Remote Shutdown.\nBeginning Shutdown Sequence." | wall
Home |
Main Index |
Thread Index |
Old Index