wok-6.x annotate iptraf-ng/receipt @ rev 25315
updated soprano and soprano-dev (2.8.0 -> 2.9.4)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jul 21 06:45:43 2022 +0100 (2022-07-21) |
parents | 544e47246b33 |
children |
rev | line source |
---|---|
pascal@17333 | 1 # SliTaz package receipt. |
pascal@17333 | 2 |
pascal@17333 | 3 PACKAGE="iptraf-ng" |
Hans-G?nter@24675 | 4 VERSION="1.2.1" |
pascal@17333 | 5 CATEGORY="network" |
pascal@17333 | 6 SHORT_DESC="IP Network Monitoring Software." |
pascal@17333 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@17333 | 8 LICENSE="GPL2" |
Hans-G?nter@24675 | 9 WEB_SITE="https://fedorahosted.org/iptraf-ng/" |
pascal@17333 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@24675 | 11 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/archive/v$VERSION.tar.gz" |
Hans-G?nter@24675 | 12 |
pascal@17333 | 13 PROVIDE="iptraf" |
pascal@17333 | 14 DEPENDS="ncursesw" |
al@18937 | 15 BUILD_DEPENDS="ncurses-dev" |
pascal@17333 | 16 |
Hans-G?nter@24675 | 17 CONFIG_FILES="/var/lib/iptraf-ng/iptraf.cfg" |
Hans-G?nter@24675 | 18 |
pascal@24540 | 19 # What is the latest version available today? |
pascal@24540 | 20 current_version() |
pascal@24540 | 21 { |
pascal@24540 | 22 wget -O - https://github.com/iptraf-ng/iptraf-ng/releases 2>/dev/null | \ |
pascal@24540 | 23 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24540 | 24 } |
pascal@24540 | 25 |
pascal@17333 | 26 # Rules to configure and make the package. |
pascal@17333 | 27 compile_rules() |
pascal@17333 | 28 { |
Hans-G?nter@24675 | 29 export LDFLAGS="$LDFLAGS -lrt" |
Hans-G?nter@24675 | 30 |
Hans-G?nter@24675 | 31 make \ |
Hans-G?nter@24675 | 32 LDFLAGS="$LDFLAGS" \ |
Hans-G?nter@24675 | 33 DESTDIR=$DESTDIR \ |
Hans-G?nter@24675 | 34 prefix=/usr && |
Hans-G?nter@24675 | 35 make install \ |
Hans-G?nter@24675 | 36 DESTDIR=$DESTDIR \ |
Hans-G?nter@24675 | 37 prefix=/usr |
pascal@17333 | 38 } |
pascal@17333 | 39 |
pascal@17333 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@17333 | 41 genpkg_rules() |
pascal@17333 | 42 { |
al@18937 | 43 mkdir -p $fs/var/log/iptraf-ng |
Hans-G?nter@24675 | 44 cp -a $install/usr/sbin $fs |
pascal@17333 | 45 } |