summaryrefslogtreecommitdiff
path: root/user/libpcap
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-23 18:01:22 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-23 18:01:22 -0500
commitd97844073a853fbfd1b4f5e075e2f8c93e45b632 (patch)
tree4612bd829926d46ff2c786b2ab8b6feb7120bdd1 /user/libpcap
parent38f7e3d4dd2b813c2984be3d71883d6c37f5edb3 (diff)
downloadpackages-d97844073a853fbfd1b4f5e075e2f8c93e45b632.tar.gz
packages-d97844073a853fbfd1b4f5e075e2f8c93e45b632.tar.bz2
packages-d97844073a853fbfd1b4f5e075e2f8c93e45b632.tar.xz
packages-d97844073a853fbfd1b4f5e075e2f8c93e45b632.zip
user/libpcap: pull in, bump to 1.9.0, build/license, modernise
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>