wok-6.x view trafshow/receipt @ rev 24895

libgpod: libplist 2.x support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Apr 08 11:37:28 2022 +0000 (2022-04-08)
parents b7f1bd1b9ac7
children bd7510903310
line source
1 # SliTaz package receipt.
3 PACKAGE="trafshow"
4 VERSION="5.2.3"
5 CATEGORY="network"
6 SHORT_DESC="Full screen network traffic monitor."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="BSD"
9 TARBALL="$PACKAGE-$VERSION.tgz"
10 WEB_SITE="https://web.archive.org/web/20130707021442/soft.risp.ru/trafshow/index_en.shtml"
11 WGET_URL="http://fossies.org/linux/misc/$TARBALL"
13 DEPENDS="ncurses libpcap"
14 BUILD_DEPENDS="ncurses-dev libpcap-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://fossies.org/linux/misc/old/ 2>/dev/null | \
20 sed '/trafshow-/!d;s|.*trafshow-||;s|.t.*||;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 export LDFLAGS="$LDFLAGS -ltinfo"
28 # fix session.c bug
29 sed -i '43d' session.c
31 # libpcap 1.10 has its own pcap_init
32 sed -i 's|pcap_init|&2|' trafshow.c
34 ./configure \
35 --prefix=/usr \
36 $CONFIGURE_ARGS && make
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/bin $fs/etc
43 cp -a $src/$PACKAGE $fs/usr/bin
44 cp -a $src/.trafshow $fs/etc/trafshow
46 # tidy config file and change perms
47 chown root:root $fs/etc/trafshow
48 sed -i 's|*/icmp|#*/icmp|' $fs/etc/trafshow
49 sed -i 's|nfs|#nfs|' $fs/etc/trafshow
50 sed -i 's|513|#513|' $fs/etc/trafshow
51 sed -i 's|514|#514|' $fs/etc/trafshow
52 }