wok-current view iptables/receipt @ rev 25728
Merge wok for both arch and few updates
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Dec 05 08:39:45 2024 +0000 (2 months ago) |
parents | 4abfb8bc5dd3 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="iptables"
4 VERSION="1.8.7"
5 CATEGORY="security"
6 TAGS="firewall"
7 SHORT_DESC="Packet filtering framework (Firewall)."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://www.netfilter.org/projects/iptables/"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="${WEB_SITE}files/$TARBALL"
15 DEPENDS="linux-netfilter"
16 BUILD_DEPENDS="libmnl-dev"
18 case $ARCH in
19 i?86)
20 BUILD_DEPENDS="$BUILD_DEPENDS linux-module-headers" ;;
21 x86_64)
22 BUILD_DEPENDS="$BUILD_DEPENDS linux64-module-headers" ;;
23 esac
25 HOST_ARCH="i486 x86_64"
27 # What is the latest version available today?
28 current_version()
29 {
30 wget -O - ${WGET_URL%/*} 2>/dev/null | \
31 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
32 }
34 # Rules to configure and make the package.
35 compile_rules()
36 {
37 # Set the right Kernel path to compile.
38 KERNEL_PATH="/usr/src/linux"
40 ./configure \
41 --prefix=/usr \
42 --libexecdir=/usr/lib/iptables \
43 --mandir=/usr/share/man \
44 --disable-nftables \
45 $CONFIGURE_ARGS &&
46 make &&
47 make install DESTDIR=$DESTDIR
48 }
50 # Rules to gen a SliTaz package suitable for Tazpkg.
51 genpkg_rules()
52 {
53 EXTRAVERSION=_${kvers}
55 mkdir -p $fs/usr/lib
57 cp -a $install/usr/sbin $fs/usr
58 cp -a $install/usr/lib/lib* $fs/usr/lib
59 cp -a $install/usr/lib/xtables $fs/usr/lib
60 }