Commit d4098f4e authored by tcely's avatar tcely Committed by Natanael Copa

main/iptables: add ip6tables-openrc subpackage

parent 3c4e7e75
......@@ -2,14 +2,14 @@
pkgname=iptables
pkgver=1.8.2
pkgrel=0
pkgrel=1
pkgdesc="Linux kernel firewall, NAT and packet mangling tools"
url="https://www.netfilter.org/projects/iptables/index.html"
arch="all"
license="GPL-2.0-or-later"
depends_dev="linux-headers"
makedepends="$depends_dev libnftnl-dev bison flex autoconf automake"
subpackages="ip6tables $pkgname-doc $pkgname-dev $pkgname-openrc"
subpackages="ip6tables $pkgname-doc $pkgname-dev $pkgname-openrc ip6tables-openrc:ip6tables_openrc"
provides="ebtables" # for backards compat
replaces="ebtables"
source="https://www.netfilter.org/projects/iptables/files/iptables-$pkgver.tar.bz2
......@@ -78,9 +78,13 @@ ip6tables() {
mv "$pkgdir"/sbin/ip6* sbin/
mv "$pkgdir"/usr/lib/xtables/libip6* usr/lib/xtables/
}
ip6tables_openrc() {
default_openrc
install -D -m755 "$srcdir"/iptables.initd etc/init.d/ip6tables
install -D -m644 "$srcdir"/ip6tables.confd etc/conf.d/ip6tables
install -D -m755 "$srcdir"/iptables.initd "$subpkgdir"/etc/init.d/ip6tables
install -D -m644 "$srcdir"/ip6tables.confd "$subpkgdir"/etc/conf.d/ip6tables
}
sha512sums="8cf0f515764e1dc6e03284581d682d1949b33e8f25fea29c27ae856f1089fe8ca7b1814524b85f4378fd1fc7c7c7d002f06557b257ae2bbc945f8555bad0dc76 iptables-1.8.2.tar.bz2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment