summaryrefslogtreecommitdiff
path: root/core/libpcap
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2012-02-25 10:25:19 +0100
committerMichał Masłowski <mtjm@mtjm.eu>2012-02-25 10:25:19 +0100
commitd8eb584da3a24a7b4cccf1b4b39b19ca8fc19495 (patch)
tree8e5ea3b068852a348646a0543fdacbd7de7a937e /core/libpcap
parent82e1a8e4caf3318dbb60adda8c2649ae7ac15661 (diff)
parent299e917c17619f800f0c21cf43209065b608223f (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts: community-testing/pigeonhole/PKGBUILD community/mingw32-pthreads/PKGBUILD community/openbsd-netcat/PKGBUILD community/remmina/PKGBUILD core/crda/PKGBUILD core/libnl/PKGBUILD core/wpa_supplicant/PKGBUILD extra/fontconfig/PKGBUILD extra/gnome-python-extras/PKGBUILD extra/gstreamer0.10-ugly/PKGBUILD extra/gvfs/PKGBUILD extra/libcdio/PKGBUILD extra/maxima/PKGBUILD extra/vcdimager/PKGBUILD extra/vlc/PKGBUILD extra/xfdesktop/PKGBUILD multilib/lib32-glibc/PKGBUILD multilib/q4wine/PKGBUILD testing/dovecot/PKGBUILD
Diffstat (limited to 'core/libpcap')
-rw-r--r--core/libpcap/PKGBUILD15
-rw-r--r--core/libpcap/libnl32.patch19
2 files changed, 28 insertions, 6 deletions
diff --git a/core/libpcap/PKGBUILD b/core/libpcap/PKGBUILD
index 9184647f8..d938932fe 100644
--- a/core/libpcap/PKGBUILD
+++ b/core/libpcap/PKGBUILD
@@ -1,23 +1,26 @@
-# $Id: PKGBUILD 146220 2012-01-06 09:21:20Z thomas $
+# $Id: PKGBUILD 150894 2012-02-23 13:54:08Z allan $
# Maintainer: Thomas Bächler <thomas@archlinux.org>
pkgname=libpcap
pkgver=1.2.1
-pkgrel=1
+pkgrel=2
pkgdesc="A system-independent interface for user-level packet capture"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.tcpdump.org/"
license=('BSD')
depends=('glibc' 'libnl' 'sh')
makedepends=('flex')
-source=(http://www.tcpdump.org/release/libpcap-${pkgver}.tar.gz
- http://www.tcpdump.org/release/libpcap-1.2.1.tar.gz.sig)
+source=(http://www.tcpdump.org/release/libpcap-${pkgver}.tar.gz{,.sig}
+ libnl32.patch)
sha256sums=('a135a6ef7e539729a57c7ed345bdb9b64159e13404174006a7972eb33f00debd'
- 'dc82ca7e7f737885969af0f78ad0f0eef8206062087e0261ca2799ef26d569b4')
+ 'dc82ca7e7f737885969af0f78ad0f0eef8206062087e0261ca2799ef26d569b4'
+ '7d0cbd49e55405cb2b55852223cd4965526e518cfb4f547ab9cc9b95b8f9c9e6')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
- ./configure --prefix=/usr --enable-ipv6
+ patch -Np1 -i "${srcdir}/libnl32.patch"
+ autoreconf -f -i
+ ./configure --prefix=/usr --enable-ipv6 --with-libnl
make
}
diff --git a/core/libpcap/libnl32.patch b/core/libpcap/libnl32.patch
new file mode 100644
index 000000000..633fd003e
--- /dev/null
+++ b/core/libpcap/libnl32.patch
@@ -0,0 +1,19 @@
+diff -u -r libpcap-1.2.1/configure.in libpcap-1.2.1-libnl32/configure.in
+--- libpcap-1.2.1/configure.in 2012-01-02 01:47:37.000000000 +0100
++++ libpcap-1.2.1-libnl32/configure.in 2012-02-09 19:29:29.405603749 +0100
+@@ -433,12 +433,13 @@
+ #
+ # Try libnl 2.x first.
+ #
+- AC_CHECK_LIB(nl, nl_socket_alloc,
++ AC_CHECK_LIB(nl-3, nl_socket_alloc,
+ [
+ #
+ # Yes, we have libnl 2.x.
+ #
+- LIBS="-lnl-genl -lnl $LIBS"
++ LIBS="$(pkg-config --libs libnl-genl-3.0 libnl-3.0) $LIBS"
++ V_INCLS="$V_INCLS $(pkg-config --cflags libnl-genl-3.0 libnl-3.0)"
+ AC_DEFINE(HAVE_LIBNL,1,[if libnl exists])
+ AC_DEFINE(HAVE_LIBNL_2_x,1,[if libnl exists and is version 2.x])
+ ],