summaryrefslogtreecommitdiff
path: root/repo/libnftnl
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/libnftnl
parentf13e0cac13f90f7f57bce3b26b2e6383de6e4ad2 (diff)
added lf and iptables
Diffstat (limited to 'repo/libnftnl')
-rw-r--r--repo/libnftnl/libnftnl.xibuild31
1 files changed, 31 insertions, 0 deletions
diff --git a/repo/libnftnl/libnftnl.xibuild b/repo/libnftnl/libnftnl.xibuild
new file mode 100644
index 0000000..5f36744
--- /dev/null
+++ b/repo/libnftnl/libnftnl.xibuild
@@ -0,0 +1,31 @@
+#!/bin/sh
+
+NAME="libnftnl"
+DESC="Netfilter library providing interface to the nf_tables subsystem"
+
+MAKEDEPS=" bash jansson libmnl"
+
+PKG_VER=1.2.1
+SOURCE="https://netfilter.org/projects/libnftnl/files/libnftnl-$PKG_VER.tar.bz2"
+
+build() {
+ cd "$BUILD_ROOT"
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var \
+ --enable-static
+ make
+}
+
+check() {
+ cd "$BUILD_ROOT"/tests
+ make check
+}
+
+package() {
+ cd "$BUILD_ROOT"
+ make DESTDIR="$PKG_DEST" install
+}
+