summaryrefslogtreecommitdiff
path: root/user/libpcap
diff options
context:
space:
mode:
Diffstat (limited to 'user/libpcap')
-rw-r--r--user/libpcap/APKBUILD41
-rw-r--r--user/libpcap/add-missing-header.patch10
2 files changed, 51 insertions, 0 deletions
diff --git a/user/libpcap/APKBUILD b/user/libpcap/APKBUILD
new file mode 100644
index 000000000..f1c3cd9d7
--- /dev/null
+++ b/user/libpcap/APKBUILD
@@ -0,0 +1,41 @@
+# Maintainer:
+pkgname=libpcap
+pkgver=1.9.0
+pkgrel=0
+pkgdesc="System-independent interface for user-level packet capture"
+url="http://www.tcpdump.org/"
+arch="all"
+options="!check"
+license="BSD-3-Clause"
+depends=""
+makedepends="autoconf bison bluez-dev flex linux-headers"
+subpackages="$pkgname-doc $pkgname-dev"
+source="http://www.tcpdump.org/release/$pkgname-$pkgver.tar.gz
+ add-missing-header.patch
+ "
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var \
+ --enable-ipv6
+
+ # seems to be problem with timestamps
+ sleep 1
+ ./config.status
+
+ make all shared
+}
+
+package() {
+ cd "$builddir"
+ make -j1 DESTDIR="$pkgdir" install install-shared
+}
+
+sha512sums="0ff25641f1e9d29082766caef45888c19214f770c4f378818caa73fcbc4ae54ad9195549c2499d4879ff46e35741d93b2b02cc5f3d6aa99e85a32194cf10bfe7 libpcap-1.9.0.tar.gz
+d9bee430f26e647c4a7ddd5b1ddd588fadefd3a034710e9bdfa9ff1d8c18ad8f6c0be1c29c2261e7be89db7d7e545e30c7910f09f3f53701ce04421449328be2 add-missing-header.patch"
diff --git a/user/libpcap/add-missing-header.patch b/user/libpcap/add-missing-header.patch
new file mode 100644
index 000000000..0411b8c84
--- /dev/null
+++ b/user/libpcap/add-missing-header.patch
@@ -0,0 +1,10 @@
+--- libpcap-1.9.0/pcap-usb-linux.c.old 2018-06-24 17:54:20.000000000 +0000
++++ libpcap-1.9.0/pcap-usb-linux.c 2018-07-23 22:59:58.190000000 +0000
+@@ -47,6 +47,7 @@
+
+ #include <ctype.h>
+ #include <errno.h>
++#include <limits.h>
+ #include <stdlib.h>
+ #include <unistd.h>
+ #include <fcntl.h>