wok-6.x rev 10906
Add iptraf
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jul 21 12:16:28 2011 +0200 (2011-07-21) |
parents | 8dc86d3cfac7 |
children | 8b08d40c9825 |
files | iptraf/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/iptraf/receipt Thu Jul 21 12:16:28 2011 +0200 1.3 @@ -0,0 +1,31 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="iptraf" 1.7 +VERSION="3.0.0" 1.8 +CATEGORY="network" 1.9 +SHORT_DESC="IP Network Monitoring Software." 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.12 +WEB_SITE="http://$PACKAGE.seul.org/" 1.13 +WGET_URL="ftp://$PACKAGE.seul.org/pub/$PACKAGE/$TARBALL" 1.14 +DEPENDS="ncurses" 1.15 +BUILD_DEPENDS="ncurses-dev" 1.16 + 1.17 +# Rules to configure and make the package. 1.18 +compile_rules() 1.19 +{ 1.20 + cd $src/src 1.21 + mkdir -p $DESTDIR/usr/bin 2> /dev/null 1.22 + sed -i 's/ARPHRD_PPP:$/& case ARPHRD_NONE:/' packet.c 1.23 + sed -i 's|/local/|/|' Makefile 1.24 + make clean && 1.25 + make && 1.26 + cp rvnamed rawtime iptraf $DESTDIR/usr/bin 1.27 +} 1.28 + 1.29 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.30 +genpkg_rules() 1.31 +{ 1.32 + mkdir -p $fs/var/run/iptraf 1.33 + cp -a $_pkg/* $fs 1.34 +}