diff options
author | davidovski <david@davidovski.xyz> | 2022-06-27 23:09:07 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-06-27 23:09:07 +0100 |
commit | f6332a43c35387c4a2dea1746be5fd092890ae0e (patch) | |
tree | d6599f63de04096f3fc21a98e0b3bb39d55a3531 /repo/libmnl | |
parent | f13e0cac13f90f7f57bce3b26b2e6383de6e4ad2 (diff) |
added lf and iptables
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; |