From d4098f4ed73ea1f2b9bf568f379ac43f0d6f29c9 Mon Sep 17 00:00:00 2001 From: tcely Date: Tue, 28 May 2019 03:05:49 -0400 Subject: main/iptables: add ip6tables-openrc subpackage --- main/iptables/APKBUILD | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'main/iptables') 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 -- cgit v1.2.3