1 # $Id: PKGBUILD 20200 2008-12-01 17:56:56Z thomas $
2 # Maintainer: Thomas Bächler <thomas@archlinux.org>
8 pkgdesc="A system-independent interface for user-level packet capture with debian patch (-i any)"
10 url="http://www.tcpdump.org/"
17 source=(http://www.tcpdump.org/release/libpcap-${pkgver}.tar.gz
20 md5sums=('9ad1358c5dec48456405eac197a46d3d')
23 cd ${srcdir}/${_pkgname}-${pkgver}
24 patch -p1 < ../20-fix-any-intf.diff
25 patch -p1 < ../30_man_fixes.diff
26 ./configure --prefix=/usr --enable-ipv6
28 make shared || return 1
30 install -d -m755 ${pkgdir}/usr/bin
31 make DESTDIR=${pkgdir} install install-shared || return 1
32 ln -s libpcap.so.1.0.0 ${pkgdir}/usr/lib/libpcap.so.1
33 ln -s libpcap.so.1.0.0 ${pkgdir}/usr/lib/libpcap.so
34 # backwards compatibility, programs often look for net/bpf.h
35 mkdir -p ${pkgdir}/usr/include/net
36 cd ${pkgdir}/usr/include/net
37 ln -s ../pcap-bpf.h bpf.h
40 install -D -m644 ${srcdir}/$_pkgname-$pkgver/LICENSE ${pkgdir}/usr/share/licenses/$pkgname/LICENSE