From f6332a43c35387c4a2dea1746be5fd092890ae0e Mon Sep 17 00:00:00 2001 From: davidovski Date: Mon, 27 Jun 2022 23:09:07 +0100 Subject: added lf and iptables --- repo/libmnl/libmnl.xibuild | 36 ++++++++++++++++++++++++++++++++++++ repo/libmnl/musl-fix-headers.patch | 13 +++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 repo/libmnl/libmnl.xibuild create mode 100644 repo/libmnl/musl-fix-headers.patch (limited to 'repo/libmnl') 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 + + #include ++#include ++#include + + struct nstats { + LIST_ENTRY(nstats) list; -- cgit v1.2.1