wok-next annotate trafshow/receipt @ rev 21238

updated codeblocks (10.05 -> 17.12)
author Hans-G?nter Theisgen
date Wed Dec 04 17:03:37 2019 +0100 (2019-12-04)
parents 8e1b2a143eb3
children
rev   line source
pascal@14377 1 # SliTaz package receipt.
pascal@14377 2
pascal@14377 3 PACKAGE="trafshow"
pascal@14377 4 VERSION="5.2.3"
pascal@14377 5 CATEGORY="network"
al@21020 6 SHORT_DESC="Full screen network traffic monitor"
pascal@14377 7 MAINTAINER="paul@slitaz.org"
pascal@15601 8 LICENSE="BSD"
pascal@14377 9 TARBALL="$PACKAGE-$VERSION.tgz"
al@20949 10 WEB_SITE="https://web.archive.org/web/20130707021442/soft.risp.ru/trafshow/index_en.shtml"
pascal@14377 11 WGET_URL="http://fossies.org/linux/misc/$TARBALL"
pascal@14377 12
pascal@15601 13 BUILD_DEPENDS="ncurses-dev libpcap-dev"
pascal@15601 14
al@21020 15 compile_rules() {
pascal@14377 16 # fix session.c bug
pascal@14377 17 sed -i '43d' session.c
pascal@14377 18
pascal@14377 19 ./configure \
pascal@14377 20 --prefix=/usr \
al@21020 21 $CONFIGURE_ARGS &&
al@21020 22 make
pascal@14377 23 }
pascal@14377 24
al@21020 25 genpkg_rules() {
pascal@14377 26 mkdir -p $fs/usr/bin $fs/etc
pascal@14377 27 cp -a $src/$PACKAGE $fs/usr/bin
pascal@14377 28 cp -a $src/.trafshow $fs/etc/trafshow
pascal@14377 29
pascal@14377 30 # tidy config file and change perms
pascal@14377 31 chown root:root $fs/etc/trafshow
al@21020 32 sed -i 's|*/icmp|#*/icmp|; s|nfs|#nfs|; s|513|#513|; s|514|#514|' \
al@21020 33 $fs/etc/trafshow
al@21020 34 DEPENDS="ncurses libpcap"
pascal@14377 35 }