wok annotate trafshow/receipt @ rev 16776
Add: httpie, python-requests; up: python-pygments (1.6), setuptools (4.0.1).
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun Jun 22 01:53:55 2014 +0300 (2014-06-22) |
parents | 490539922a0d |
children | 3ba8d2c9720d |
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" |
pascal@14377 | 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" |
pascal@14377 | 10 WEB_SITE="http://soft.risp.ru/trafshow/index_en.shtml" |
pascal@14377 | 11 WGET_URL="http://fossies.org/linux/misc/$TARBALL" |
pascal@14377 | 12 |
pascal@15601 | 13 DEPENDS="ncurses libpcap" |
pascal@15601 | 14 BUILD_DEPENDS="ncurses-dev libpcap-dev" |
pascal@15601 | 15 |
pascal@14377 | 16 # Rules to configure and make the package. |
pascal@14377 | 17 compile_rules() |
pascal@14377 | 18 { |
pascal@14377 | 19 cd $src |
pascal@14377 | 20 |
pascal@14377 | 21 # fix session.c bug |
pascal@14377 | 22 sed -i '43d' session.c |
pascal@14377 | 23 |
pascal@14377 | 24 ./configure \ |
pascal@14377 | 25 --prefix=/usr \ |
pascal@14377 | 26 $CONFIGURE_ARGS && make |
pascal@14377 | 27 } |
pascal@14377 | 28 |
pascal@14377 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@14377 | 30 genpkg_rules() |
pascal@14377 | 31 { |
pascal@14377 | 32 mkdir -p $fs/usr/bin $fs/etc |
pascal@14377 | 33 cp -a $src/$PACKAGE $fs/usr/bin |
pascal@14377 | 34 cp -a $src/.trafshow $fs/etc/trafshow |
pascal@14377 | 35 |
pascal@14377 | 36 # tidy config file and change perms |
pascal@14377 | 37 chown root:root $fs/etc/trafshow |
pascal@14377 | 38 sed -i 's|*/icmp|#*/icmp|' $fs/etc/trafshow |
pascal@14377 | 39 sed -i 's|nfs|#nfs|' $fs/etc/trafshow |
pascal@14377 | 40 sed -i 's|513|#513|' $fs/etc/trafshow |
pascal@14377 | 41 sed -i 's|514|#514|' $fs/etc/trafshow |
pascal@14377 | 42 } |
pascal@14377 | 43 |