wok view darkstat/receipt @ rev 25794
created recipe for exo-lang
author | Hans-G?nter Theisgen |
---|---|
date | Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago) |
parents | fe1b5660fdd1 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="darkstat"
4 VERSION="3.0.721"
5 CATEGORY="network"
6 TAGS="network monitor stats statistics"
7 SHORT_DESC="Simple network traffic statistics."
8 MAINTAINER="erjo@slitaz.org"
9 LICENSE="GPL2 BSD"
10 WEB_SITE="https://github.com/emikulic/darkstat"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/emikulic/$PACKAGE/archive/refs/tags/$VERSION.tar.gz"
15 DEPENDS="libpcap zlib"
16 BUILD_DEPENDS="autoconf libpcap-dev zlib-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://github.com/emikulic/darkstat/releases 2>/dev/null | \
22 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 # 3.0.719 unrecognised
29 # --with-chroot-dir=/var/lib/darkstat
31 autoconf &&
32 autoheader &&
33 ./configure \
34 --prefix=/usr \
35 $CONFIGURE_ARGS &&
36 make &&
37 make install DESTDIR=$DESTDIR
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/var/lib/darkstat
45 cook_copy_folders sbin
46 }