diff options
Diffstat (limited to 'main/iptables')
-rw-r--r-- | main/iptables/APKBUILD | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/main/iptables/APKBUILD b/main/iptables/APKBUILD index 5f9090e613..984df60a94 100644 --- a/main/iptables/APKBUILD +++ b/main/iptables/APKBUILD @@ -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 |