wok-6.x annotate iptables/receipt @ rev 24567
sokojs: add shrink.sh
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 26 15:02:05 2022 +0000 (2022-02-26) |
parents | 5aa9b0045ecd |
children | 4abfb8bc5dd3 |
rev | line source |
---|---|
pankso@6 | 1 # SliTaz package receipt. |
pankso@6 | 2 |
pankso@6 | 3 PACKAGE="iptables" |
Hans-G?nter@22957 | 4 VERSION="1.8.4" |
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@22957 | 10 WEB_SITE="http://www.netfilter.org/" |
Hans-G?nter@22957 | 11 |
pankso@6 | 12 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@6 | 13 WGET_URL="http://www.netfilter.org/projects/iptables/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@22957 | 38 make DESTDIR=$DESTDIR install |
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 |
mojo@15669 | 48 cp -a $install/usr/sbin $fs/usr |
mojo@15669 | 49 cp -a $install/usr/lib/lib* $fs/usr/lib |
mojo@15669 | 50 cp -a $install/usr/lib/xtables $fs/usr/lib |
pankso@6 | 51 } |