summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/libmnl/APKBUILD40
-rw-r--r--system/libmnl/test-include-sysselect.patch10
2 files changed, 50 insertions, 0 deletions
diff --git a/system/libmnl/APKBUILD b/system/libmnl/APKBUILD
new file mode 100644
index 000000000..cb26c05e9
--- /dev/null
+++ b/system/libmnl/APKBUILD
@@ -0,0 +1,40 @@
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Dan Theisen <djt@hxx.in>
+pkgname=libmnl
+pkgver=1.0.4
+pkgrel=0
+pkgdesc="Minimalistic library for Netlink operations"
+url="http://www.netfilter.org/projects/libmnl/"
+arch="all"
+options="!check" # this package doesn't actually run any tests, just builds them
+license="LGPL-2.0+"
+depends=
+depends_dev="linux-headers"
+makedepends="$depends_dev"
+checkdepends="bsd-compat-headers"
+install=""
+subpackages="$pkgname-dev"
+source="http://www.netfilter.org/projects/$pkgname/files/$pkgname-$pkgver.tar.bz2
+ test-include-sysselect.patch"
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="e2bbfb688fe41913d53c74ba7ec95b4e88ee2c52b556b8608185f2fcbd629665423a3b37f877f84426ba257cf6040fa701539d67166b00b8e3e2dfde6831a2f9 libmnl-1.0.4.tar.bz2
+9735fa46eacdf4c0c1ae888ef0453216614d0204800383767a0c567dc9557d743a28ec17203d3bc5c0f8c1573dd7c29026ec17393d07fd2af5c38d1e34d8071c test-include-sysselect.patch"
diff --git a/system/libmnl/test-include-sysselect.patch b/system/libmnl/test-include-sysselect.patch
new file mode 100644
index 000000000..ef9b6073d
--- /dev/null
+++ b/system/libmnl/test-include-sysselect.patch
@@ -0,0 +1,10 @@
+--- libmnl-1.0.4/examples/netfilter/nfct-daemon.c.old 2018-06-21 04:06:51.790655013 +0000
++++ libmnl-1.0.4/examples/netfilter/nfct-daemon.c 2018-06-21 04:03:34.850653597 +0000
+@@ -20,6 +20,7 @@
+ #include <linux/netfilter/nfnetlink_conntrack.h>
+
+ #include <sys/queue.h>
++#include <sys/select.h>
+
+ struct nstats {
+ LIST_ENTRY(nstats) list;