1 # $Id: PKGBUILD 16334 2010-04-28 17:03:39Z ttopper $
3 # Contributor: Roman Kyrylych <roman@archlinux.org>
4 # Contributor: Giuseppe Lucarelli <luk@rebelsoft.org>
6 pkgname=network-ups-tools
9 pkgdesc="NUT is a collection of programs for monitoring and administering UPS hardware"
10 arch=('i686' 'x86_64')
11 url="http://www.networkupstools.org/"
13 depends=('openssl' 'gd')
14 makedepends=('libusb')
15 backup=(etc/ups/{ups.conf,upsd.conf,upsd.users,upsmon.conf,upssched.conf})
17 source=("http://www.networkupstools.org/source/2.6/nut-$pkgver.tar.gz"
19 options=('!emptydirs' '!libtool')
20 md5sums=('89e6405272cc82c53d7b84160945761b'
21 '089ea4a56552253328d17603ff5670cc')
23 cd $srcdir/nut-$pkgver
31 --datadir=/usr/share/ups \
32 --sysconfdir=/etc/ups \
33 --with-cgipath=/usr/share/webapps/nut \
34 --with-htmlpath=/usr/share/webapps/nut || return 1
37 make DESTDIR=$pkgdir install || return 1
39 install -D -m755 $startdir/upsd.init $pkgdir/etc/rc.d/upsd || return 1
40 install -D -m644 conf/ups.conf.sample $pkgdir/etc/ups/ups.conf
41 install -D -m640 conf/upsd.conf.sample $pkgdir/etc/ups/upsd.conf
42 install -D -m640 conf/upsd.users.sample $pkgdir/etc/ups/upsd.users
43 install -D -m640 conf/upsmon.conf.sample $pkgdir/etc/ups/upsmon.conf
44 install -D -m644 conf/upssched.conf.sample $pkgdir/etc/ups/upssched.conf
47 #sed -i "s|SYSFS|ATTRS|g" $pkgdir/etc/udev/rules.d/52-nut-usbups.rules
48 #install -dm755 ${pkgdir}/lib
49 #mv ${pkgdir}/etc/udev ${pkgdir}/lib