diff options
Diffstat (limited to 'repo/libmnl')
-rw-r--r-- | repo/libmnl/libmnl.xibuild | 36 | ||||
-rw-r--r-- | repo/libmnl/musl-fix-headers.patch | 13 |
2 files changed, 49 insertions, 0 deletions
diff --git a/repo/libmnl/libmnl.xibuild b/repo/libmnl/libmnl.xibuild new file mode 100644 index 0000000..4a48350 --- /dev/null +++ b/repo/libmnl/libmnl.xibuild @@ -0,0 +1,36 @@ +#!/bin/sh + +NAME="libmnl" +DESC="Library for minimalistic netlink" + +MAKEDEPS=" linux-headers musl-legacy-compat" + +PKG_VER=1.0.5 +SOURCE="https://www.netfilter.org/projects/libmnl/files/libmnl-$PKG_VER.tar.bz2" + +ADDITIONAL=" +musl-fix-headers.patch +" + +prepare () { + apply_patches + sed -i 's/--no-dereference --preserve=links,mode,timestamps/-p/g' doxygen/Makefile.in +} + + + +build() { + ./configure \ + --prefix=/usr \ + --enable-static \ + --without-doxygen +} + +check() { + make check +} + +package() { + make DESTDIR="$PKG_DEST" install +} + diff --git a/repo/libmnl/musl-fix-headers.patch b/repo/libmnl/musl-fix-headers.patch new file mode 100644 index 0000000..f3338b1 --- /dev/null +++ b/repo/libmnl/musl-fix-headers.patch @@ -0,0 +1,13 @@ +diff --git a/examples/netfilter/nfct-daemon.c b/examples/netfilter/nfct-daemon.c +index a97c2ec..e3bb17a 100644 +--- a/examples/netfilter/nfct-daemon.c ++++ b/examples/netfilter/nfct-daemon.c +@@ -20,6 +20,8 @@ + #include <linux/netfilter/nfnetlink_conntrack.h> + + #include <sys/queue.h> ++#include <sys/time.h> ++#include <sys/select.h> + + struct nstats { + LIST_ENTRY(nstats) list; |