wok-6.x annotate nut/receipt @ rev 25206
updated python-netaddr (0.7.19 -> 0.8.0)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jul 13 14:43:56 2022 +0100 (2022-07-13) |
parents | 2a0479881723 |
children |
rev | line source |
---|---|
pascal@5981 | 1 # SliTaz package receipt. |
pascal@5981 | 2 |
pascal@5981 | 3 PACKAGE="nut" |
Hans-G?nter@25007 | 4 VERSION="2.8.0" |
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@21601 | 9 WEB_SITE="https://networkupstools.org" |
Hans-G?nter@21589 | 10 |
pascal@5981 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
samuel_trassare@14164 | 12 WGET_URL="$WEB_SITE/source/${VERSION%.*}/$TARBALL" |
Hans-G?nter@25007 | 13 |
Hans-G?nter@25007 | 14 DEPENDS="expat libssl libusb libusb-compat libwrap neon zlib" |
Hans-G?nter@25007 | 15 BUILD_DEPENDS="expat-dev libusb-dev libusb-compat-dev libwrap-dev |
Hans-G?nter@25007 | 16 neon-dev openssl-dev zlib-dev" |
Hans-G?nter@25007 | 17 |
pascal@15021 | 18 CONFIG_FILES="/etc/nut.conf /etc/ups.conf /etc/upsd.conf /etc/upsd.users \ |
Hans-G?nter@21589 | 19 /etc/upsmon.conf /etc/upssched.conf" |
pascal@15021 | 20 |
pascal@24436 | 21 # What is the latest version available today? |
pascal@24436 | 22 current_version() |
pascal@24436 | 23 { |
pascal@24436 | 24 wget -O - https://github.com/networkupstools/nut/releases 2>/dev/null | \ |
pascal@24436 | 25 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24436 | 26 } |
pascal@24436 | 27 |
pascal@5981 | 28 # Rules to configure and make the package. |
pascal@5981 | 29 compile_rules() |
pascal@5981 | 30 { |
Hans-G?nter@21589 | 31 ./configure \ |
Hans-G?nter@21589 | 32 --prefix=/usr \ |
Hans-G?nter@21589 | 33 --infodir=/usr/share/info \ |
Hans-G?nter@21589 | 34 --mandir=/usr/share/man \ |
Hans-G?nter@21589 | 35 --sysconfdir=/etc \ |
samuel_trassare@14164 | 36 $CONFIGURE_ARGS && |
pascal@5981 | 37 make && |
Hans-G?nter@25007 | 38 make install DESTDIR=$DESTDIR |
pascal@5981 | 39 } |
pascal@5981 | 40 |
pascal@5981 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@5981 | 42 genpkg_rules() |
pascal@5981 | 43 { |
Hans-G?nter@21589 | 44 mkdir -p $fs/usr/share |
Hans-G?nter@21589 | 45 mkdir -p $fs/etc |
Hans-G?nter@21589 | 46 |
Hans-G?nter@21589 | 47 for i in $install/etc/*.sample |
Hans-G?nter@25007 | 48 do |
Hans-G?nter@25007 | 49 cp -a $i $fs/etc/$(basename $i .sample) |
Hans-G?nter@25007 | 50 done |
Hans-G?nter@21589 | 51 cp -a $install/usr/lib $fs/usr |
Hans-G?nter@21589 | 52 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21589 | 53 cp -a $install/usr/sbin $fs/usr |
Hans-G?nter@21589 | 54 cp $install/usr/share/cmdvartab $fs/usr/share |
Hans-G?nter@21589 | 55 cp $install/usr/share/driver.list $fs/usr/share |
pascal@5981 | 56 } |