wok-6.x view nut/receipt @ rev 25176

updated python-formalchemy (1.5.5 -> 1.5.6)
author Hans-G?nter Theisgen
date Fri Jul 01 17:52:21 2022 +0100 (2022-07-01)
parents 2a0479881723
children
line source
1 # SliTaz package receipt.
3 PACKAGE="nut"
4 VERSION="2.8.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="Network UPS Tools."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://networkupstools.org"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/source/${VERSION%.*}/$TARBALL"
14 DEPENDS="expat libssl libusb libusb-compat libwrap neon zlib"
15 BUILD_DEPENDS="expat-dev libusb-dev libusb-compat-dev libwrap-dev
16 neon-dev openssl-dev zlib-dev"
18 CONFIG_FILES="/etc/nut.conf /etc/ups.conf /etc/upsd.conf /etc/upsd.users \
19 /etc/upsmon.conf /etc/upssched.conf"
21 # What is the latest version available today?
22 current_version()
23 {
24 wget -O - https://github.com/networkupstools/nut/releases 2>/dev/null | \
25 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 ./configure \
32 --prefix=/usr \
33 --infodir=/usr/share/info \
34 --mandir=/usr/share/man \
35 --sysconfdir=/etc \
36 $CONFIGURE_ARGS &&
37 make &&
38 make install DESTDIR=$DESTDIR
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/share
45 mkdir -p $fs/etc
47 for i in $install/etc/*.sample
48 do
49 cp -a $i $fs/etc/$(basename $i .sample)
50 done
51 cp -a $install/usr/lib $fs/usr
52 cp -a $install/usr/bin $fs/usr
53 cp -a $install/usr/sbin $fs/usr
54 cp $install/usr/share/cmdvartab $fs/usr/share
55 cp $install/usr/share/driver.list $fs/usr/share
56 }