### this file is sourced not run
PKGVER=3.0.0
PKGBUILD=1
PKGARCH=x86_64

# source: james
TARBALL=iptraf-3.0.0.tar.gz 
MD5SUM=377371c28ee3c21a76f7024920649ea8  
SRC_URL=ftp://iptraf.seul.org/pub/iptraf/$TARBALL
BUNDLE=

SLACKREQ=ncurses
SLACKDESC='iptraf: iptraf 3.0.0 (Network traffic monitor)  
iptraf:  
iptraf: IPTraf is a console-based network statistics utility for Linux. It 
iptraf: gathers a variety of figures such as TCP connection packet and byte 
iptraf: counts, interface statistics and activity indicators, TCP/UDP traffic 
iptraf: breakdowns, and LAN station packet and byte counts.  
iptraf: 
iptraf: 
iptraf: 
iptraf: 
iptraf:
'

# default pkg_download
# default pkg_prepare
# default pkg_package
# default pkg_build 
pkg_build() {
	cd /tmp/iptraf*/src
	sed -i -e 's|linux/if_tr.h|netinet/if_tr.h|' * &&
	sed -i -e 's|read YESNO||' install.sh &&
	make $MAKEFLAGS TARGET=/usr/bin WORKDIR=/etc/iptraf &&
	make TARGET=/usr/bin WORKDIR=/etc/iptraf install &&
	pkg_build_slackdesc
}
