iptables: override broken symlinks, fixes issue #34.

This commit is contained in:
Juan RP 2011-07-16 09:04:17 +02:00
parent 447ae951ec
commit 316936b82a

View file

@ -1,6 +1,7 @@
# Template file for 'iptables'
pkgname=iptables
version=1.4.11
revision=1
distfiles="http://www.iptables.org/projects/iptables/files/$pkgname-$version.tar.bz2"
build_style=custom-install
short_desc="Linux IPv[46] packet filtering ruleset"
@ -56,4 +57,11 @@ do_install()
vinstall ${f} 644 etc/iptables
done
vmkdir var/lib/iptables
# Override wrong symlinks from xtables_multi.
for f in iptables iptables-restore iptables-save ip6tables \
ip6tables-restore ip6tables-save; do
ln -sf /sbin/xtables-multi ${DESTDIR}/sbin/${f}
done
ln -sf /sbin/xtables-multi ${DESTDIR}/usr/bin/iptables-xml
}