wok annotate iptraf-ng/receipt @ rev 25670
Up mediawiki (1.41.0), memcached (1.6.23), metasploit (6.3.56), modsecurity-apache (2.9.7), mutt (2.2.12), ncurses (6.4), nginx (1.25.4)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 25 17:20:49 2024 +0000 (8 months ago) |
parents | 15da8bede304 |
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" |
pascal@25590 | 9 WEB_SITE="https://github.com/$PACKAGE/$PACKAGE" |
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@25599 | 23 sed '/tag\//!d;s|.*tag/v*||;s|".*||;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 } |