wok-4.x rev 5981

Add nut
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Aug 13 21:18:10 2010 +0200 (2010-08-13)
parents 84abbc0dbfa7
children b95abf5766d0
files nut/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/nut/receipt	Fri Aug 13 21:18:10 2010 +0200
     1.3 @@ -0,0 +1,41 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="nut"
     1.7 +VERSION="2.4.3"
     1.8 +CATEGORY="system-tools"
     1.9 +SHORT_DESC="Network UPS Tools."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.12 +WEB_SITE="http://www.networkupstools.org/source.html"
    1.13 +WGET_URL="http://www.networkupstools.org/source/${VERSION%.*}/$TARBALL"
    1.14 +DEPENDS="libusb libusb-compat expat neon zlib libssl libwrap"
    1.15 +BUILD_DEPENDS="libusb-dev libusb-compat-dev expat-dev neon-dev zlib-dev \
    1.16 +libssl-dev libwrap-dev"
    1.17 +CONFIG_FILES="/etc/nut.conf /etc/ups.conf /etc/upsd.conf /etc/upsd.users \
    1.18 +/etc/upsmon.conf /etc/upssched.conf"
    1.19 +
    1.20 +# Rules to configure and make the package.
    1.21 +compile_rules()
    1.22 +{
    1.23 +	cd $src
    1.24 +	./configure --prefix=/usr --infodir=/usr/share/info \
    1.25 +	--mandir=/usr/share/man --sysconfdir=/etc \
    1.26 +	$CONFIGURE_ARGS &&
    1.27 +	make &&
    1.28 +	make DESTDIR=$PWD/_pkg install
    1.29 +}
    1.30 +
    1.31 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.32 +genpkg_rules()
    1.33 +{
    1.34 +	mkdir -p $fs/usr/share $fs/etc
    1.35 +	for i in $_pkg/etc/*.sample ; do
    1.36 +		cp -a $i $(basename $i .sample)
    1.37 +	done
    1.38 +	cp -a $_pkg/lib $fs
    1.39 +	cp -a $_pkg/usr/lib $fs/usr
    1.40 +	cp -a $_pkg/usr/bin $fs/usr
    1.41 +	cp -a $_pkg/usr/sbin $fs/usr
    1.42 +	cp $_pkg/usr/share/cmdvartab $fs/usr/share
    1.43 +	cp $_pkg/usr/share/driver.list $fs/usr/share
    1.44 +}