# SliTaz package receipt. PACKAGE="iptraf" VERSION="3.0.0" CATEGORY="network" SHORT_DESC="IP Network Monitoring Software." MAINTAINER="pascal.bellard@slitaz.org" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="http://$PACKAGE.seul.org/" WGET_URL="ftp://$PACKAGE.seul.org/pub/$PACKAGE/$TARBALL" DEPENDS="ncurses" BUILD_DEPENDS="ncurses-dev" # Rules to configure and make the package. compile_rules() { cd $src/src mkdir -p $DESTDIR/usr/bin 2> /dev/null sed -i 's/ARPHRD_PPP:$/& case ARPHRD_NONE:/' packet.c sed -i 's|/local/|/|' Makefile make clean && make && cp rvnamed rawtime iptraf $DESTDIR/usr/bin } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/var/run/iptraf cp -a $_pkg/* $fs }