summaryrefslogtreecommitdiff
path: root/main/iptables/APKBUILD
diff options
context:
space:
mode:
authorpsykose <alice@ayaya.dev>2023-05-12 17:39:50 +0000
committerpsykose <alice@ayaya.dev>2023-05-12 19:39:59 +0200
commit7f294b874491e43a0badf26b476b1bc8beac39cb (patch)
tree54835e3b32054f69fc57679ae0a85c3b954785fb /main/iptables/APKBUILD
parentf87a191922955bcf5c5f3fc66a425263a4588d48 (diff)
downloadaports-7f294b874491e43a0badf26b476b1bc8beac39cb.zip
main/iptables: split legacy tools and libraries
most libraries here are legacy, so place them separately
Diffstat (limited to 'main/iptables/APKBUILD')
-rw-r--r--main/iptables/APKBUILD43
1 files changed, 42 insertions, 1 deletions
diff --git a/main/iptables/APKBUILD b/main/iptables/APKBUILD
index ff91747cdb6..0fb2a11720d 100644
--- a/main/iptables/APKBUILD
+++ b/main/iptables/APKBUILD
@@ -8,7 +8,16 @@ arch="all"
license="GPL-2.0-or-later"
depends_dev="linux-headers"
makedepends="$depends_dev libnftnl-dev bison flex autoconf automake"
-subpackages="$pkgname-doc $pkgname-dev $pkgname-openrc"
+subpackages="
+ iptables-legacy
+ libip4tc
+ libip6tc
+ libipq
+ libxtables
+ $pkgname-doc
+ $pkgname-dev
+ $pkgname-openrc
+ "
provides="ip6tables=$pkgver-r$pkgrel ebtables=$pkgver-r$pkgrel" # for backards compat
replaces="ip6tables ebtables"
source="https://www.netfilter.org/projects/iptables/files/iptables-$pkgver.tar.xz
@@ -69,6 +78,38 @@ package() {
ln -sfv xtables-nft-multi "$pkgdir"/sbin/ip6tables-restore
}
+legacy() {
+ pkgdesc="$pkgdesc (legacy xtables-legacy binaries)"
+
+ amove \
+ sbin/*legacy* \
+ usr/bin/iptables-xml
+}
+
+libip4tc() {
+ pkgdesc="$pkgdesc (legacy libip4tc library)"
+
+ amove usr/lib/libip4tc.so.*
+}
+
+libip6tc() {
+ pkgdesc="$pkgdesc (legacy libip6tc library)"
+
+ amove usr/lib/libip6tc.so.*
+}
+
+libipq() {
+ pkgdesc="$pkgdesc (legacy libipq library)"
+
+ amove usr/lib/libipq.so.*
+}
+
+libxtables() {
+ pkgdesc="$pkgdesc (xtables library)"
+
+ amove usr/lib/libxtables.so.*
+}
+
openrc() {
default_openrc
provides="ip6tables-openrc=$pkgver-r$pkgrel"