summaryrefslogtreecommitdiffstats
path: root/abs/extra/network-ups-tools/PKGBUILD
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-11-26 14:54:12 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-11-26 14:54:12 (GMT)
commit9d7a918dcf618e4594a78814e3c5a0ace1edbcad (patch)
tree3bceae104f8ccfed9bc1c84b1aea3972ed4eb73f /abs/extra/network-ups-tools/PKGBUILD
parent19921178a861f4bb631f6ec05d19fcaebc5836a6 (diff)
downloadlinhes_pkgbuild-9d7a918dcf618e4594a78814e3c5a0ace1edbcad.zip
linhes_pkgbuild-9d7a918dcf618e4594a78814e3c5a0ace1edbcad.tar.gz
linhes_pkgbuild-9d7a918dcf618e4594a78814e3c5a0ace1edbcad.tar.bz2
network-ups-tool: moved to extra from community
Diffstat (limited to 'abs/extra/network-ups-tools/PKGBUILD')
-rw-r--r--abs/extra/network-ups-tools/PKGBUILD57
1 files changed, 57 insertions, 0 deletions
diff --git a/abs/extra/network-ups-tools/PKGBUILD b/abs/extra/network-ups-tools/PKGBUILD
new file mode 100644
index 0000000..50afbcc
--- /dev/null
+++ b/abs/extra/network-ups-tools/PKGBUILD
@@ -0,0 +1,57 @@
+# Maintainer: Alex Reznichenko <sa5gap@yandex.ru>
+# Contributor: Roman Kyrylych <roman@archlinux.org>
+# Contributor: Giuseppe Lucarelli <luk@rebelsoft.org>
+
+pkgname=network-ups-tools
+pkgver=2.6.5
+pkgrel=2
+pkgdesc="NUT is a collection of programs for monitoring and administering UPS hardware"
+arch=('i686' 'x86_64')
+url="http://www.networkupstools.org/"
+license=('GPL2')
+depends=('openssl' 'libusb-compat')
+makedepends=()
+backup=(etc/ups/{ups.conf,upsd.conf,upsd.users,upsmon.conf,upssched.conf})
+install=nut.install
+source=("http://www.networkupstools.org/source/2.6/nut-$pkgver.tar.gz"
+ 'upsd.init' 'nut-driver.service.patch')
+options=('!emptydirs' '!libtool')
+md5sums=('e6eac4fa04baff0d0a827d64efe81a7e'
+ '089ea4a56552253328d17603ff5670cc'
+ 'ee3aa25a08caca24f51951ee1f090c44')
+
+build() {
+
+ cd $srcdir/nut-$pkgver
+ ./configure \
+ --without-wrap \
+ --with-user=ups \
+ --with-group=nut \
+ --with-usb \
+ --prefix=/usr \
+ --with-udev-dir=/usr/lib/udev \
+ --with-systemdsystemunitdir=/lib/systemd/system \
+ --datadir=/usr/share/ups \
+ --sysconfdir=/etc/ups || return 1
+
+ make || return 1
+
+}
+
+package() {
+
+ cd $srcdir/nut-$pkgver
+ make DESTDIR=$pkgdir install || return 1
+
+ install -D -m755 $startdir/upsd.init $pkgdir/etc/rc.d/upsd || return 1
+ install -D -m644 conf/ups.conf.sample $pkgdir/etc/ups/ups.conf
+ install -D -m640 conf/upsd.conf.sample $pkgdir/etc/ups/upsd.conf
+ install -D -m640 conf/upsd.users.sample $pkgdir/etc/ups/upsd.users
+ install -D -m640 conf/upsmon.conf.sample $pkgdir/etc/ups/upsmon.conf
+ install -D -m644 conf/upssched.conf.sample $pkgdir/etc/ups/upssched.conf
+
+ # Fix systemd's nut-driver.service
+ cd $pkgdir
+ patch -p1 < ../nut-driver.service.patch
+
+}