wok-6.x view trafshow/receipt @ rev 14651
get-libaacs: typos
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 04 12:23:01 2013 +0200 (2013-06-04) |
parents | |
children | 23c3aed67cd9 |
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 DEPENDS="ncurses libpcap"
9 BUILD_DEPENDS="ncurses-dev libpcap-dev"
10 TARBALL="$PACKAGE-$VERSION.tgz"
11 WEB_SITE="http://soft.risp.ru/trafshow/index_en.shtml"
12 WGET_URL="http://fossies.org/linux/misc/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
19 # fix session.c bug
20 sed -i '43d' session.c
22 ./configure \
23 --prefix=/usr \
24 $CONFIGURE_ARGS && make
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr/bin $fs/etc
31 cp -a $src/$PACKAGE $fs/usr/bin
32 cp -a $src/.trafshow $fs/etc/trafshow
34 # tidy config file and change perms
35 chown root:root $fs/etc/trafshow
36 sed -i 's|*/icmp|#*/icmp|' $fs/etc/trafshow
37 sed -i 's|nfs|#nfs|' $fs/etc/trafshow
38 sed -i 's|513|#513|' $fs/etc/trafshow
39 sed -i 's|514|#514|' $fs/etc/trafshow
40 }