wok annotate darkstat/receipt @ rev 24439
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 13 18:01:32 2022 +0000 (2022-02-13) |
parents | 822b3b44b544 |
children | f1f7aaa0be7d |
rev | line source |
---|---|
erjo@3058 | 1 # SliTaz package receipt. |
erjo@3058 | 2 |
erjo@3058 | 3 PACKAGE="darkstat" |
Hans-G?nter@22629 | 4 VERSION="3.0.719" |
pascal@3610 | 5 CATEGORY="network" |
Hans-G?nter@22629 | 6 TAGS="network monitor stats statistics" |
Hans-G?nter@22629 | 7 SHORT_DESC="Simple network traffic statistics." |
erjo@3058 | 8 MAINTAINER="erjo@slitaz.org" |
pascal@15579 | 9 LICENSE="GPL2 BSD" |
Hans-G?nter@22629 | 10 WEB_SITE="https://unix4lyfe.org/darkstat/" |
Hans-G?nter@22629 | 11 |
erjo@3058 | 12 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@20671 | 13 WGET_URL="https://unix4lyfe.org/darkstat/$TARBALL" |
erjo@3058 | 14 |
pascal@15579 | 15 DEPENDS="libpcap zlib" |
pascal@15579 | 16 BUILD_DEPENDS="libpcap-dev zlib-dev" |
pascal@15579 | 17 |
pascal@24439 | 18 # What is the latest version available today? |
pascal@24439 | 19 current_version() |
pascal@24439 | 20 { |
pascal@24439 | 21 wget -O - https://github.com/emikulic/darkstat/releases 2>/dev/null | \ |
pascal@24439 | 22 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24439 | 23 } |
pascal@24439 | 24 |
erjo@3058 | 25 # Rules to configure and make the package. |
erjo@3058 | 26 compile_rules() |
erjo@3058 | 27 { |
Hans-G?nter@22629 | 28 # 3.0.719 unrecognised |
Hans-G?nter@22629 | 29 # --with-chroot-dir=/var/lib/darkstat |
Hans-G?nter@22629 | 30 |
Hans-G?nter@22629 | 31 ./configure \ |
Hans-G?nter@22629 | 32 --prefix=/usr \ |
Hans-G?nter@22629 | 33 $CONFIGURE_ARGS && |
Hans-G?nter@22629 | 34 make && |
Hans-G?nter@22629 | 35 make DESTDIR=$DESTDIR install |
erjo@3058 | 36 } |
erjo@3058 | 37 |
erjo@3058 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@3058 | 39 genpkg_rules() |
erjo@3058 | 40 { |
Hans-G?nter@22629 | 41 mkdir -p $fs/usr |
Hans-G?nter@22629 | 42 mkdir -p $fs/var/lib/darkstat |
Hans-G?nter@22629 | 43 |
Hans-G?nter@22629 | 44 cp -a $install/usr/sbin $fs/usr |
erjo@3058 | 45 } |