wok view nut/receipt @ rev 14164

nut: up 2.6.5
author Samuel Trassare <samuel_trassare@yahoo.com>
date Thu Mar 07 20:38:21 2013 -0800 (2013-03-07)
parents b04abd30b007
children 10e6c72b2c15
line source
1 # SliTaz package receipt.
3 PACKAGE="nut"
4 VERSION="2.6.5"
5 CATEGORY="system-tools"
6 SHORT_DESC="Network UPS Tools."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.networkupstools.org"
10 WGET_URL="$WEB_SITE/source/${VERSION%.*}/$TARBALL"
11 DEPENDS="libusb libusb-compat expat neon zlib libssl libwrap"
12 BUILD_DEPENDS="libusb-dev libusb-compat-dev expat-dev neon-dev zlib-dev \
13 openssl-dev libwrap-dev"
14 CONFIG_FILES="/etc/nut.conf /etc/ups.conf /etc/upsd.conf /etc/upsd.users \
15 /etc/upsmon.conf /etc/upssched.conf"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 ./configure \
21 --prefix=/usr \
22 --infodir=/usr/share/info \
23 --mandir=/usr/share/man \
24 --sysconfdir=/etc \
25 $CONFIGURE_ARGS &&
26 make &&
27 make DESTDIR=$DESTDIR install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/share $fs/etc
34 for i in $install/etc/*.sample ; do
35 cp -a $i $fs/etc/$(basename $i .sample)
36 done
37 cp -a $install/lib $fs
38 cp -a $install/usr/lib $fs/usr
39 cp -a $install/usr/bin $fs/usr
40 cp -a $install/usr/sbin $fs/usr
41 cp $install/usr/share/cmdvartab $fs/usr/share
42 cp $install/usr/share/driver.list $fs/usr/share
43 }