# SliTaz package receipt.

PACKAGE="iptables"
VERSION="1.4.10"
CATEGORY="security"
SHORT_DESC="Packet filtering framework (Firewall)."
MAINTAINER="pankso@slitaz.org"
DEPENDS="linux-netfilter"
BUILD_DEPENDS="linux-module-headers"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="http://www.netfilter.org/"
WGET_URL="http://www.netfilter.org/projects/iptables/files/$TARBALL"
TAGS="firewall"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	# Set the right Kernel path to compile.
	KERNEL_PATH="/usr/src/linux"
	./configure \
		--prefix=/usr \
		--libexecdir=/usr/lib/iptables \
		--mandir=/usr/share/man \
		$CONFIGURE_ARGS &&
	make && make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	EXTRAVERSION=_${kvers}
	mkdir -p $fs/usr
	cp -a $_pkg/usr/sbin $fs/sbin
	cp -a $_pkg/usr/lib $fs/usr
}