wok view darkstat/receipt @ rev 24464
created recipes for dargui and dargui-lang
author | Hans-G?nter Theisgen |
---|---|
date | Thu Feb 17 11:06:13 2022 +0100 (2022-02-17) |
parents | 822b3b44b544 |
children | f1f7aaa0be7d |
line source
1 # SliTaz package receipt.
3 PACKAGE="darkstat"
4 VERSION="3.0.719"
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://unix4lyfe.org/darkstat/"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="https://unix4lyfe.org/darkstat/$TARBALL"
15 DEPENDS="libpcap zlib"
16 BUILD_DEPENDS="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 '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;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 ./configure \
32 --prefix=/usr \
33 $CONFIGURE_ARGS &&
34 make &&
35 make DESTDIR=$DESTDIR install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr
42 mkdir -p $fs/var/lib/darkstat
44 cp -a $install/usr/sbin $fs/usr
45 }