summaryrefslogtreecommitdiff
path: root/user/nftables/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <awilcox@wilcox-tech.com>2019-01-13 19:44:23 +0000
committerA. Wilcox <awilcox@wilcox-tech.com>2019-01-13 19:44:23 +0000
commitdadc93d1b35aa2336bbd46cc590dabd5d844bb0e (patch)
tree907612528285f1df404f5de34942c21f247fd568 /user/nftables/APKBUILD
parentb818b871b17b09a6adc0b43f8e65977bab5104a6 (diff)
parenta21b49c9ed1b34c463560d31c0cbeead46810038 (diff)
downloadpackages-dadc93d1b35aa2336bbd46cc590dabd5d844bb0e.tar.gz
packages-dadc93d1b35aa2336bbd46cc590dabd5d844bb0e.tar.bz2
packages-dadc93d1b35aa2336bbd46cc590dabd5d844bb0e.tar.xz
packages-dadc93d1b35aa2336bbd46cc590dabd5d844bb0e.zip
Merge branch 'nftables' into 'master'
nftables + dependencies: new packages This MR contains APKBUILDs for nftables and its libnftnl dependency. APKBUILDs have been adapted and trimmed from Alpine; the OpenRC scripts come indirectly from Gentoo via Alpine. Tested on x86_64 by NAT'ing a couple of VM's to the outside world. See merge request !145
Diffstat (limited to 'user/nftables/APKBUILD')
-rw-r--r--user/nftables/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/user/nftables/APKBUILD b/user/nftables/APKBUILD
new file mode 100644
index 000000000..3ef6d52aa
--- /dev/null
+++ b/user/nftables/APKBUILD
@@ -0,0 +1,45 @@
+# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
+# Contributor: Jakub Jirutka <jakub@jirutka.cz>
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: multiplexd <multi@in-addr.xyz>
+pkgname=nftables
+pkgver=0.9.0
+pkgrel=0
+pkgdesc="Netfilter tables userspace tools"
+url="https://netfilter.org/projects/nftables"
+options="!check" # no test suite
+arch="all"
+license="GPL-2.0+ AND GPL-2.0"
+makedepends="bison docbook2x flex gmp-dev libmnl-dev libnftnl-dev"
+subpackages="$pkgname-doc $pkgname-openrc"
+source="https://netfilter.org/projects/nftables/files/$pkgname-$pkgver.tar.bz2
+ nftables.confd
+ nftables.initd"
+
+build() {
+ cd "$builddir"
+
+ DB2MAN=docbook2x-man ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ --without-cli
+ make
+}
+
+package() {
+ cd "$builddir"
+
+ make DESTDIR="$pkgdir" install
+
+ install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
+ install -Dm644 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
+}
+
+sha512sums="ba08fd78d79f7df14a7a7d753e8be33f22d892672ad906672d938c66a8fbb0824fd1d083c173132b7d81dd5e3cdd7771364ec714662876cb71eb4f7ad4eaa59c nftables-0.9.0.tar.bz2
+4eb1adf003dfcaad65c91af6ca88d91b7904c471aefae67e7d3c2f8e053e1ac196d3437a45d1fed5a855b876a0f1fc58a724e381d2acf1164d9120cadee73eef nftables.confd
+58daafb012b7cd0248a7db6e10f6a667e683347aaea7eaa78cb88780272f334e00913cea3fd39a22a4a72acc27fabd101944b40916f4b534ddeb509bd0232017 nftables.initd"