wok annotate nut/receipt @ rev 22398

audacity: back with gcc49
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Dec 06 22:15:38 2019 +0100 (2019-12-06)
parents 3ea5f9aab268
children 2a0479881723
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@5981 20 # Rules to configure and make the package.
pascal@5981 21 compile_rules()
pascal@5981 22 {
Hans-G?nter@21589 23 ./configure \
Hans-G?nter@21589 24 --prefix=/usr \
Hans-G?nter@21589 25 --infodir=/usr/share/info \
Hans-G?nter@21589 26 --mandir=/usr/share/man \
Hans-G?nter@21589 27 --sysconfdir=/etc \
samuel_trassare@14164 28 $CONFIGURE_ARGS &&
pascal@5981 29 make &&
samuel_trassare@14164 30 make DESTDIR=$DESTDIR install
pascal@5981 31 }
pascal@5981 32
pascal@5981 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@5981 34 genpkg_rules()
pascal@5981 35 {
Hans-G?nter@21589 36 mkdir -p $fs/usr/share
Hans-G?nter@21589 37 mkdir -p $fs/etc
Hans-G?nter@21589 38
Hans-G?nter@21589 39 for i in $install/etc/*.sample
Hans-G?nter@21589 40 do
pascal@5982 41 cp -a $i $fs/etc/$(basename $i .sample)
Hans-G?nter@21589 42 done
Hans-G?nter@21589 43 cp -a $install/usr/lib $fs/usr
Hans-G?nter@21589 44 cp -a $install/usr/bin $fs/usr
Hans-G?nter@21589 45 cp -a $install/usr/sbin $fs/usr
Hans-G?nter@21589 46 cp $install/usr/share/cmdvartab $fs/usr/share
Hans-G?nter@21589 47 cp $install/usr/share/driver.list $fs/usr/share
pascal@5981 48 }