updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / iptraf-ipv6 / PKGBUILD
blob905d784b22f147bbca0c4e71887f1866f13846ad
1 # Maintainer: sh0 <mee@sh0.org>
3 _pkgname=iptraf
4 pkgname=iptraf-ipv6
5 pkgver=3.0.1
6 pkgrel=2
7 pkgdesc="An IP network monitor (with IPv6 support)"
8 url="http://iptraf.seul.org"
9 arch=('i686' 'x86_64')
10 depends=('ncurses')
11 license=('GPL')
12 conflicts=('iptraf')
13 replaces=('iptraf')
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')
29 build() {
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
47   done
49   cd ../Documentation
50   for man in *.8; do
51     install -D -m644 $man $pkgdir/usr/share/man/man8/$man
52   done
53   mkdir -p $pkgdir/var/{lib,log,run}/iptraf
56 # vim: ts=2: ft=sh