wok view nut/receipt @ rev 15021

Add some licenses
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Aug 11 18:44:25 2013 +0000 (2013-08-11)
parents 81cc5efd0446
children 1ce2bddf323b
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 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.networkupstools.org"
11 WGET_URL="$WEB_SITE/source/${VERSION%.*}/$TARBALL"
12 CONFIG_FILES="/etc/nut.conf /etc/ups.conf /etc/upsd.conf /etc/upsd.users \
13 /etc/upsmon.conf /etc/upssched.conf"
15 DEPENDS="libusb libusb-compat expat neon zlib libssl libwrap"
16 BUILD_DEPENDS="libusb-dev libusb-compat-dev expat-dev neon-dev zlib-dev \
17 openssl-dev libwrap-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 ./configure \
23 --prefix=/usr \
24 --infodir=/usr/share/info \
25 --mandir=/usr/share/man \
26 --sysconfdir=/etc \
27 $CONFIGURE_ARGS &&
28 make &&
29 make DESTDIR=$DESTDIR install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/share $fs/etc
36 for i in $install/etc/*.sample ; do
37 cp -a $i $fs/etc/$(basename $i .sample)
38 done
39 cp -a $install/lib $fs
40 cp -a $install/usr/lib $fs/usr
41 cp -a $install/usr/bin $fs/usr
42 cp -a $install/usr/sbin $fs/usr
43 cp $install/usr/share/cmdvartab $fs/usr/share
44 cp $install/usr/share/driver.list $fs/usr/share
45 }