wok view trafshow/receipt @ rev 24888
grub2: avoid grub-mkimage error: decompressor is too big
author | Hans-G?nter Theisgen |
---|---|
date | Sat Apr 02 17:25:58 2022 +0100 (2022-04-02) |
parents | 6135577f4d08 |
children | 9aa1f88b45db |
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 ./configure \
32 --prefix=/usr \
33 $CONFIGURE_ARGS && make
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/bin $fs/etc
40 cp -a $src/$PACKAGE $fs/usr/bin
41 cp -a $src/.trafshow $fs/etc/trafshow
43 # tidy config file and change perms
44 chown root:root $fs/etc/trafshow
45 sed -i 's|*/icmp|#*/icmp|' $fs/etc/trafshow
46 sed -i 's|nfs|#nfs|' $fs/etc/trafshow
47 sed -i 's|513|#513|' $fs/etc/trafshow
48 sed -i 's|514|#514|' $fs/etc/trafshow
49 }