iptables: fix iptables alternatives group
This commit is contained in:
parent
32996fcd99
commit
c7e54b0ba6
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'iptables'
|
||||
pkgname=iptables
|
||||
version=1.8.6
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=gnu-configure
|
||||
configure_args="--enable-libipq --enable-shared --enable-devel --enable-bpf-compiler"
|
||||
hostmakedepends="pkg-config flex"
|
||||
|
@ -19,8 +19,7 @@ alternatives="
|
|||
iptables:ip6tables-save:/usr/bin/xtables-legacy-multi
|
||||
iptables:iptables:/usr/bin/xtables-legacy-multi
|
||||
iptables:iptables-restore:/usr/bin/xtables-legacy-multi
|
||||
iptables:iptables-save:/usr/bin/xtables-legacy-multi
|
||||
iptables:iptables-apply:/usr/bin/xtables-legacy-multi"
|
||||
iptables:iptables-save:/usr/bin/xtables-legacy-multi"
|
||||
|
||||
pre_build() {
|
||||
rm include/linux/types.h
|
||||
|
@ -39,8 +38,8 @@ post_install() {
|
|||
vinstall ${FILESDIR}/empty-${f}.rules 644 \
|
||||
var/lib/iptables empty-${f}.rules
|
||||
done
|
||||
for i in ip{6,}tables{-save,-restore,} ; do
|
||||
rm -f "usr/bin/${i}"
|
||||
for f in ip{6,}tables{-save,-restore,}; do
|
||||
rm -f "${DESTDIR}/usr/bin/${f}"
|
||||
done
|
||||
}
|
||||
|
||||
|
@ -65,6 +64,5 @@ iptables-nft_package() {
|
|||
iptables:ip6tables-save:/usr/bin/xtables-nft-multi
|
||||
iptables:iptables:/usr/bin/xtables-nft-multi
|
||||
iptables:iptables-restore:/usr/bin/xtables-nft-multi
|
||||
iptables:iptables-save:/usr/bin/xtables-nft-multi
|
||||
iptables:iptables-apply:/usr/bin/xtables-nft-multi"
|
||||
iptables:iptables-save:/usr/bin/xtables-nft-multi"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue