wok annotate nut/receipt @ rev 11679
Up: sudo to 1.8.4.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat Feb 18 08:11:49 2012 -0500 (2012-02-18) |
parents | b95abf5766d0 |
children | 81cc5efd0446 |
rev | line source |
---|---|
pascal@5981 | 1 # SliTaz package receipt. |
pascal@5981 | 2 |
pascal@5981 | 3 PACKAGE="nut" |
pascal@5981 | 4 VERSION="2.4.3" |
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" |
pascal@5981 | 9 WEB_SITE="http://www.networkupstools.org/source.html" |
pascal@5981 | 10 WGET_URL="http://www.networkupstools.org/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 { |
pascal@5981 | 20 cd $src |
pascal@5981 | 21 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@5981 | 22 --mandir=/usr/share/man --sysconfdir=/etc \ |
pascal@5981 | 23 $CONFIGURE_ARGS && |
pascal@5981 | 24 make && |
pascal@5981 | 25 make DESTDIR=$PWD/_pkg install |
pascal@5981 | 26 } |
pascal@5981 | 27 |
pascal@5981 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@5981 | 29 genpkg_rules() |
pascal@5981 | 30 { |
pascal@5981 | 31 mkdir -p $fs/usr/share $fs/etc |
pascal@5981 | 32 for i in $_pkg/etc/*.sample ; do |
pascal@5982 | 33 cp -a $i $fs/etc/$(basename $i .sample) |
pascal@5981 | 34 done |
pascal@5981 | 35 cp -a $_pkg/lib $fs |
pascal@5981 | 36 cp -a $_pkg/usr/lib $fs/usr |
pascal@5981 | 37 cp -a $_pkg/usr/bin $fs/usr |
pascal@5981 | 38 cp -a $_pkg/usr/sbin $fs/usr |
pascal@5981 | 39 cp $_pkg/usr/share/cmdvartab $fs/usr/share |
pascal@5981 | 40 cp $_pkg/usr/share/driver.list $fs/usr/share |
pascal@5981 | 41 } |