diff options
author | tcely <tcely@users.noreply.github.com> | 2019-05-28 03:05:49 -0400 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-05-28 07:26:26 +0000 |
commit | d4098f4ed73ea1f2b9bf568f379ac43f0d6f29c9 (patch) | |
tree | 83bb3f2c6c48ed12320ad800a6f8290133ee276d /main/iptables | |
parent | 3c4e7e7517b622c8ce3694f548e5e3f6c3c5db4e (diff) | |
download | aports-d4098f4ed73ea1f2b9bf568f379ac43f0d6f29c9.tar.bz2 aports-d4098f4ed73ea1f2b9bf568f379ac43f0d6f29c9.tar.xz |
main/iptables: add ip6tables-openrc subpackage
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 |