summaryrefslogtreecommitdiff
path: root/nut/Pkgfile
blob: 444666cc06fc708ec7b3b377f06d5445f3faf803 (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.4
    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 		--sysconfdir=/etc/$name \
   21 		--datadir=/usr/share/$name \
   22 		--localstatedir=/var/$name
   23 
   24 	make
   25 	make DESTDIR=$PKG install
   26 
   27 	#if you dont want config templates uncomment the next line
   28 	#rm $PKG/etc/nut/*
   29 
   30 	find $PKG/etc/nut -type f -print0 | xargs -0 chown root:nut
   31 	install -d $PKG/etc/udev/rules.d
   32 	install -d -m 0770 -o root -g nut $PKG/var/state/ups
   33 	install -D -m 0754 $SRC/upsd $PKG/etc/rc.d/upsd
   34 }

Generated by cgit