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