summaryrefslogtreecommitdiff
path: root/community/apcupsd
diff options
context:
space:
mode:
Diffstat (limited to 'community/apcupsd')
-rw-r--r--community/apcupsd/PKGBUILD6
-rwxr-xr-xcommunity/apcupsd/apcupsd5
2 files changed, 4 insertions, 7 deletions
diff --git a/community/apcupsd/PKGBUILD b/community/apcupsd/PKGBUILD
index ef67ef3fe..4fc1ab793 100644
--- a/community/apcupsd/PKGBUILD
+++ b/community/apcupsd/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 52280 2011-07-23 09:29:14Z spupykin $
+# $Id: PKGBUILD 53371 2011-08-03 09:47:21Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Todd Musall <tmusall@comcast.net>
pkgname=apcupsd
pkgver=3.14.9
-pkgrel=1
+pkgrel=2
pkgdesc="Apcupsd can be used for power mangement and controlling most of APC's UPS models on Unix and Windows machines."
arch=(i686 x86_64 'mips64el')
url="http://www.apcupsd.org"
@@ -19,7 +19,7 @@ backup=(etc/apcupsd/apcupsd.conf etc/apcupsd/hosts.conf
source=(http://downloads.sourceforge.net/apcupsd/$pkgname-$pkgver.tar.gz
apcupsd)
md5sums=('aa5e2c2954a81c2f07e0a356e38fe853'
- '5eae3c4d921eeb81798a0250fe3dd111')
+ '8bc674da24188c69b0ad5d7fe7510f73')
build() {
cd $srcdir/$pkgname-$pkgver
diff --git a/community/apcupsd/apcupsd b/community/apcupsd/apcupsd
index 3cd5c9dc8..73ca2b4bf 100755
--- a/community/apcupsd/apcupsd
+++ b/community/apcupsd/apcupsd
@@ -13,8 +13,6 @@ case "$1" in
if [ $? -gt 0 ]; then
stat_fail
else
- PID=`pidof -o %PPID /sbin/apcupsd`
- echo $PID > /var/run/apcupsd.pid
add_daemon apcupsd
stat_done
fi
@@ -25,7 +23,6 @@ case "$1" in
if [ $? -gt 0 ]; then
stat_fail
else
- rm /var/run/apcupsd.pid
rm_daemon apcupsd
stat_done
fi
@@ -39,6 +36,6 @@ case "$1" in
/sbin/apcaccess status
;;
*)
- echo "usage: $0 {start|stop|restart|status}"
+ echo "usage: $0 {start|stop|restart|status}"
esac
exit 0