1 # Maintainer: sh0 <mee@sh0.org>
7 pkgdesc="An IP network monitor (with IPv6 support)"
8 url="http://iptraf.seul.org"
14 source=(ftp://iptraf.seul.org/pub/iptraf/$_pkgname-$pkgver.tar.gz
15 $_pkgname-3.0.0-add-devnames.patch
16 $_pkgname-3.0.0-ncursesw.patch
17 $_pkgname-3.0.0-setlocale.patch
18 $_pkgname-3.0.0-vlan.patch
19 $_pkgname-$pkgver-ipv6.patch
20 $_pkgname-3.0.0-ipv6-glibc24-updated.patch)
21 md5sums=('004c2c005a1b78739e22bc49d33e244d'
22 '382b79be844d959dea3c4362b7a62576'
23 'e9cc01e018a1e0da2f30fa5640c365f9'
24 'e10867d75a7ac82ce32104c1ebe92bec'
25 '4136483b9e41c8789c629c42f9a67d07'
26 '122a9683655df02ee2cd13f2d2c66eea'
27 '6036d6df83d65920bd81fb0fd8c70662')
30 cd "$srcdir/$_pkgname-$pkgver/src"
32 patch -Np2 -i $srcdir/$_pkgname-3.0.0-add-devnames.patch
33 patch -Np2 -i $srcdir/$_pkgname-3.0.0-ncursesw.patch
34 patch -Np2 -i $srcdir/$_pkgname-3.0.0-setlocale.patch
35 patch -Np1 -i $srcdir/$_pkgname-3.0.0-vlan.patch
36 patch -Np3 -i $srcdir/$_pkgname-$pkgver-ipv6.patch
37 patch -Np1 -i $srcdir/$_pkgname-3.0.0-ipv6-glibc24-updated.patch
39 sed -i -e s:/var/local/iptraf:/var/lib/iptraf: \
40 -e s:/usr/local/bin:/usr/sbin: dirs.h
42 make CFLAGS="$CFLAGS" DEBUG="" TARGET="/usr/sbin" \
43 WORKDIR="/var/lib/iptraf" clean all || return 1
45 for sbin in iptraf rvnamed; do
46 install -D -m755 $sbin $pkgdir/usr/sbin/$sbin
51 install -D -m644 $man $pkgdir/usr/share/man/man8/$man
53 mkdir -p $pkgdir/var/{lib,log,run}/iptraf