wok-next annotate nut/receipt @ rev 20513
A lot of tiny edits; remove wget and pkg-build from $BUILD_DEPENDS and from *-dev packages $DEPENDS.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Mar 21 15:58:17 2018 +0200 (2018-03-21) |
parents | e6615350078d |
children | 44db492e9f33 |
rev | line source |
---|---|
al@20513 | 1 # SliTaz package receipt v2. |
pascal@5981 | 2 |
pascal@5981 | 3 PACKAGE="nut" |
samuel_trassare@14164 | 4 VERSION="2.6.5" |
pascal@5981 | 5 CATEGORY="system-tools" |
al@20513 | 6 SHORT_DESC="Network UPS Tools" |
pascal@5981 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15021 | 8 LICENSE="GPL2" |
al@20513 | 9 WEB_SITE="http://www.networkupstools.org" |
al@20513 | 10 |
pascal@5981 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
samuel_trassare@14164 | 12 WGET_URL="$WEB_SITE/source/${VERSION%.*}/$TARBALL" |
pascal@15021 | 13 |
pascal@5981 | 14 BUILD_DEPENDS="libusb-dev libusb-compat-dev expat-dev neon-dev zlib-dev \ |
pascal@6109 | 15 openssl-dev libwrap-dev" |
pascal@5981 | 16 |
al@20513 | 17 compile_rules() { |
al@20513 | 18 ./configure $CONFIGURE_ARGS && make && make DESTDIR=$DESTDIR install || return 1 |
al@20513 | 19 |
al@20513 | 20 for i in $install/etc/*.sample; do |
al@20513 | 21 mv $i $install/etc/$(basename $i .sample) |
al@20513 | 22 done |
pascal@5981 | 23 } |
pascal@5981 | 24 |
al@20513 | 25 genpkg_rules() { |
al@20513 | 26 copy @std |
al@20513 | 27 DEPENDS="libusb libusb-compat expat neon zlib openssl libwrap" |
al@20513 | 28 CONFIG_FILES="/etc/nut.conf /etc/ups.conf /etc/upsd.conf /etc/upsd.users \ |
al@20513 | 29 /etc/upsmon.conf /etc/upssched.conf" |
pascal@5981 | 30 } |