wok annotate darkstat/receipt @ rev 25388
updated meson (0.60.2 -> 0.62.2)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Jul 31 16:52:43 2022 +0100 (2022-07-31) |
parents | bfabe25c21ff |
children | fe1b5660fdd1 |
rev | line source |
---|---|
erjo@3058 | 1 # SliTaz package receipt. |
erjo@3058 | 2 |
erjo@3058 | 3 PACKAGE="darkstat" |
Hans-G?nter@24466 | 4 VERSION="3.0.721" |
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 |
Hans-G?nter@24466 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@24466 | 13 WGET_URL="https://github.com/emikulic/$PACKAGE/archive/refs/tags/$VERSION.tar.gz" |
erjo@3058 | 14 |
pascal@15579 | 15 DEPENDS="libpcap zlib" |
Hans-G?nter@24466 | 16 BUILD_DEPENDS="autoconf 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@24466 | 31 autoconf && |
Hans-G?nter@24466 | 32 autoheader && |
Hans-G?nter@22629 | 33 ./configure \ |
Hans-G?nter@22629 | 34 --prefix=/usr \ |
Hans-G?nter@22629 | 35 $CONFIGURE_ARGS && |
Hans-G?nter@22629 | 36 make && |
Hans-G?nter@24466 | 37 make install DESTDIR=$DESTDIR |
erjo@3058 | 38 } |
erjo@3058 | 39 |
erjo@3058 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@3058 | 41 genpkg_rules() |
erjo@3058 | 42 { |
Hans-G?nter@22629 | 43 mkdir -p $fs/var/lib/darkstat |
Hans-G?nter@22629 | 44 |
Hans-G?nter@24466 | 45 cook_copy_folders sbin |
erjo@3058 | 46 } |