diff options
author | root <root@rshg054.dnsready.net> | 2012-06-27 00:01:57 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-06-27 00:01:57 +0000 |
commit | c77c7fc60c48c9aaa8f915eb112405e8879e46aa (patch) | |
tree | 46509cb375dc9d89676ab0d115c35629fc7326ae /testing/libpcap/PKGBUILD | |
parent | 9a6b691757346035549dbd12d1323301d04a6675 (diff) |
Wed Jun 27 00:01:57 UTC 2012
Diffstat (limited to 'testing/libpcap/PKGBUILD')
-rw-r--r-- | testing/libpcap/PKGBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/libpcap/PKGBUILD b/testing/libpcap/PKGBUILD new file mode 100644 index 000000000..44b921483 --- /dev/null +++ b/testing/libpcap/PKGBUILD @@ -0,0 +1,41 @@ +# $Id: PKGBUILD 162349 2012-06-25 18:35:21Z thomas $ +# Maintainer: Thomas Bächler <thomas@archlinux.org> + +pkgname=libpcap +pkgver=1.3.0 +pkgrel=1 +pkgdesc="A system-independent interface for user-level packet capture" +arch=('i686' 'x86_64') +url="http://www.tcpdump.org/" +license=('BSD') +depends=('glibc' 'libnl' 'sh' 'libusbx') +makedepends=('flex') +source=(http://www.tcpdump.org/release/libpcap-${pkgver}.tar.gz{,.sig} + libnl32.patch) +sha256sums=('41cbd9ed68383afd9f1fda279cb78427d36879d9e34ee707e31a16a1afd872b9' + '8004a6655fb98acd89f3dea7ce95f182f4874298ce692f5b8f4a7dae65d7993f' + '7d0cbd49e55405cb2b55852223cd4965526e518cfb4f547ab9cc9b95b8f9c9e6') + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + patch -Np1 -i "${srcdir}/libnl32.patch" + autoreconf -f -i + ./configure --prefix=/usr --enable-ipv6 --with-libnl + make +} + +package() { + cd ${srcdir}/${pkgname}-${pkgver} + install -d -m755 ${pkgdir}/usr/bin + make DESTDIR=${pkgdir} install + # remove static library + rm -rf ${pkgdir}/usr/lib/libpcap.a + + # backwards compatibility, programs often look for net/bpf.h + mkdir -p ${pkgdir}/usr/include/net + cd ${pkgdir}/usr/include/net + ln -s ../pcap-bpf.h bpf.h + + #install the license + install -D -m644 ${srcdir}/$pkgname-$pkgver/LICENSE ${pkgdir}/usr/share/licenses/$pkgname/LICENSE +} |