wok view 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 |
line source
1 # SliTaz package receipt.
3 PACKAGE="iptraf-ng"
4 VERSION="1.2.1"
5 CATEGORY="network"
6 SHORT_DESC="IP Network Monitoring Software."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://github.com/$PACKAGE/$PACKAGE"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/archive/v$VERSION.tar.gz"
13 PROVIDE="iptraf"
14 DEPENDS="ncursesw"
15 BUILD_DEPENDS="ncurses-dev"
17 CONFIG_FILES="/var/lib/iptraf-ng/iptraf.cfg"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://github.com/iptraf-ng/iptraf-ng/releases 2>/dev/null | \
23 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 export LDFLAGS="$LDFLAGS -lrt"
31 make \
32 LDFLAGS="$LDFLAGS" \
33 DESTDIR=$DESTDIR \
34 prefix=/usr &&
35 make install \
36 DESTDIR=$DESTDIR \
37 prefix=/usr
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/var/log/iptraf-ng
44 cp -a $install/usr/sbin $fs
45 }