wok annotate iptables/receipt @ rev 24944

updated n2n (2.4 -> 3.0)
author Hans-G?nter Theisgen
date Fri Apr 22 16:44:33 2022 +0100 (2022-04-22)
parents af8d823a3077
children
rev   line source
pankso@6 1 # SliTaz package receipt.
pankso@6 2
pankso@6 3 PACKAGE="iptables"
Hans-G?nter@24674 4 VERSION="1.8.7"
pankso@209 5 CATEGORY="security"
Hans-G?nter@22957 6 TAGS="firewall"
pankso@6 7 SHORT_DESC="Packet filtering framework (Firewall)."
pankso@6 8 MAINTAINER="pankso@slitaz.org"
pascal@15000 9 LICENSE="GPL2"
Hans-G?nter@24674 10 WEB_SITE="https://www.netfilter.org/projects/iptables/"
Hans-G?nter@22957 11
pankso@6 12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
Hans-G?nter@24674 13 WGET_URL="${WEB_SITE}files/$TARBALL"
pankso@6 14
pascal@15000 15 DEPENDS="linux-netfilter"
Hans-G?nter@22958 16 BUILD_DEPENDS="libmnl-dev linux-module-headers"
pascal@15000 17
pascal@24445 18 # What is the latest version available today?
pascal@24445 19 current_version()
pascal@24445 20 {
pascal@24445 21 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24445 22 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
pascal@24445 23 }
pascal@24445 24
pankso@6 25 # Rules to configure and make the package.
pankso@6 26 compile_rules()
pankso@6 27 {
pascal@2141 28 # Set the right Kernel path to compile.
slaxemulator@6873 29 KERNEL_PATH="/usr/src/linux"
Hans-G?nter@22957 30
Hans-G?nter@22957 31 ./configure \
Hans-G?nter@22957 32 --prefix=/usr \
Hans-G?nter@22957 33 --libexecdir=/usr/lib/iptables \
Hans-G?nter@22957 34 --mandir=/usr/share/man \
Hans-G?nter@22959 35 --disable-nftables \
pascal@2141 36 $CONFIGURE_ARGS &&
Hans-G?nter@22957 37 make &&
Hans-G?nter@24674 38 make install DESTDIR=$DESTDIR
pankso@6 39 }
pankso@6 40
pankso@6 41 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@6 42 genpkg_rules()
pankso@6 43 {
pankso@15855 44 EXTRAVERSION=_${kvers}
Hans-G?nter@22957 45
mojo@15669 46 mkdir -p $fs/usr/lib
Hans-G?nter@22957 47
Hans-G?nter@24674 48 cp -a $install/usr/sbin $fs/usr
Hans-G?nter@24674 49 cp -a $install/usr/lib/lib* $fs/usr/lib
Hans-G?nter@24674 50 cp -a $install/usr/lib/xtables $fs/usr/lib
pankso@6 51 }