summaryrefslogtreecommitdiff
path: root/repo/libmnl/libmnl.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-27 23:09:07 +0100
committerdavidovski <david@davidovski.xyz>2022-06-27 23:09:07 +0100
commitf6332a43c35387c4a2dea1746be5fd092890ae0e (patch)
treed6599f63de04096f3fc21a98e0b3bb39d55a3531 /repo/libmnl/libmnl.xibuild
parentf13e0cac13f90f7f57bce3b26b2e6383de6e4ad2 (diff)
added lf and iptables
Diffstat (limited to 'repo/libmnl/libmnl.xibuild')
-rw-r--r--repo/libmnl/libmnl.xibuild36
1 files changed, 36 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
+}
+