wok-next annotate nut/receipt @ rev 14928

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