blob: 3d77c575bbd6cb4b3da98297f3d1d61d5b280495 (
plain)
1 # Description: Network UPS Tools. Monitor of UPS hardware.
2 # URL: http://www.networkupstools.org/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Packager: Victor Martinez, pitillo at ono dot com
5 # Depends on: libusb openssl tcp_wrappers
6
7 name=nut
8 version=2.7.1
9 release=1
10 source=(http://www.networkupstools.org/source/${version%.*}/$name-$version.tar.gz
11 upsd)
12
13 build() {
14 cd $name-$version
15
16 ./configure \
17 --prefix=/usr \
18 --with-user=nut \
19 --with-group=nut \
20 --mandir=/usr/man \
21 --sysconfdir=/etc/$name \
22 --datadir=/usr/share/$name \
23 --localstatedir=/var/$name
24
25 make
26 make DESTDIR=$PKG install
27
28 #if you dont want config templates uncomment the next line
29 #rm $PKG/etc/nut/*
30
31 find $PKG/etc/nut -type f -print0 | xargs -0 chown root:nut
32 install -d $PKG/etc/udev/rules.d
33 install -d -m 0770 -o root -g nut $PKG/var/state/ups
34 install -D -m 0754 $SRC/upsd $PKG/etc/rc.d/upsd
35 }
|