# Contributor: Leonardo Arena # Maintainer: Leonardo Arena pkgname=iptraf pkgver=3.0.0 pkgrel=3 pkgdesc="IP Network Monitoring Software" url="http://iptraf.seoul.org" arch="all" license="GPL" depends= makedepends="ncurses-dev" install= subpackages="$pkgname-doc" source="ftp://iptraf.seul.org/pub/$pkgname/$pkgname-$pkgver.tar.gz iptraf-3.0.0-vlan.patch iptraf-3.0.0-interface.patch " build() { cd "$srcdir/$pkgname-$pkgver/src" patch -p1 -i "$srcdir"/iptraf-3.0.0-vlan.patch || return 1 sed -i -e s:/var/local/iptraf:/var/lib/iptraf: \ -e s:/usr/local/bin:/usr/sbin: dirs.h make CFLAGS="$CFLAGS" DEBUG="" TARGET="/usr/sbin" \ WORKDIR="/var/lib/iptraf" || return 1 for sbin in iptraf rvnamed; do install -D -m755 $sbin "$pkgdir"/usr/sbin/$sbin done cd ../Documentation for man in *.8; do install -D -m644 $man "$pkgdir"/usr/share/man/man8/$man done for dir in lib log run; do mkdir -p "$pkgdir"/var/$dir/iptraf done } md5sums="377371c28ee3c21a76f7024920649ea8 iptraf-3.0.0.tar.gz 4136483b9e41c8789c629c42f9a67d07 iptraf-3.0.0-vlan.patch 667def7e433fe95823fec8faeb3cd8b9 iptraf-3.0.0-interface.patch"