wok view iptraf/receipt @ rev 12916
glibc-base: handle cross installation
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue May 29 18:13:06 2012 +0000 (2012-05-29) |
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 }