wok-current annotate nut/receipt @ rev 17027
linux64: new module path
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Aug 16 14:43:53 2014 +0200 (2014-08-16) |
parents | 10e6c72b2c15 |
children | 3ea5f9aab268 |
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@15021 | 8 LICENSE="GPL2" |
pascal@5981 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
samuel_trassare@14164 | 10 WEB_SITE="http://www.networkupstools.org" |
samuel_trassare@14164 | 11 WGET_URL="$WEB_SITE/source/${VERSION%.*}/$TARBALL" |
pascal@15021 | 12 CONFIG_FILES="/etc/nut.conf /etc/ups.conf /etc/upsd.conf /etc/upsd.users \ |
pascal@15021 | 13 /etc/upsmon.conf /etc/upssched.conf" |
pascal@15021 | 14 |
pascal@5981 | 15 DEPENDS="libusb libusb-compat expat neon zlib libssl libwrap" |
pascal@5981 | 16 BUILD_DEPENDS="libusb-dev libusb-compat-dev expat-dev neon-dev zlib-dev \ |
pascal@6109 | 17 openssl-dev libwrap-dev" |
pascal@5981 | 18 |
pascal@5981 | 19 # Rules to configure and make the package. |
pascal@5981 | 20 compile_rules() |
pascal@5981 | 21 { |
samuel_trassare@14164 | 22 ./configure \ |
samuel_trassare@14164 | 23 --prefix=/usr \ |
samuel_trassare@14164 | 24 --infodir=/usr/share/info \ |
samuel_trassare@14164 | 25 --mandir=/usr/share/man \ |
samuel_trassare@14164 | 26 --sysconfdir=/etc \ |
samuel_trassare@14164 | 27 $CONFIGURE_ARGS && |
pascal@5981 | 28 make && |
samuel_trassare@14164 | 29 make DESTDIR=$DESTDIR install |
pascal@5981 | 30 } |
pascal@5981 | 31 |
pascal@5981 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@5981 | 33 genpkg_rules() |
pascal@5981 | 34 { |
pascal@5981 | 35 mkdir -p $fs/usr/share $fs/etc |
samuel_trassare@14164 | 36 for i in $install/etc/*.sample ; do |
pascal@5982 | 37 cp -a $i $fs/etc/$(basename $i .sample) |
pascal@5981 | 38 done |
samuel_trassare@14164 | 39 cp -a $install/usr/lib $fs/usr |
samuel_trassare@14164 | 40 cp -a $install/usr/bin $fs/usr |
samuel_trassare@14164 | 41 cp -a $install/usr/sbin $fs/usr |
samuel_trassare@14164 | 42 cp $install/usr/share/cmdvartab $fs/usr/share |
samuel_trassare@14164 | 43 cp $install/usr/share/driver.list $fs/usr/share |
pascal@5981 | 44 } |