wok annotate nut/receipt @ rev 24857

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