wok-6.x view iptraf/receipt @ rev 14319

Down webkit-r (99690) don't need gcc 4.7
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Apr 07 20:34:59 2013 +0200 (2013-04-07)
parents
children 45e32b7f12f9
line source
1 # SliTaz package receipt.
3 PACKAGE="iptraf"
4 VERSION="3.0.0"
5 CATEGORY="network"
6 SHORT_DESC="IP Network Monitoring Software."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://$PACKAGE.seul.org/"
10 WGET_URL="ftp://$PACKAGE.seul.org/pub/$PACKAGE/$TARBALL"
11 DEPENDS="ncurses"
12 BUILD_DEPENDS="ncurses-dev"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src/src
18 mkdir -p $DESTDIR/usr/bin 2> /dev/null
19 sed -i 's/ARPHRD_PPP:$/& case ARPHRD_NONE:/' packet.c
20 sed -i 's|/local/|/|' Makefile
21 make clean &&
22 make &&
23 cp rvnamed rawtime iptraf $DESTDIR/usr/bin
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/var/run/iptraf
30 cp -a $_pkg/* $fs
31 }