wok-next annotate iptables/receipt @ rev 21127
Update xarchiver (0.5.4.14), xcursorgen (1.0.7)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Jan 18 11:29:09 2019 +0200 (2019-01-18) |
parents | f48456621a9d |
children |
rev | line source |
---|---|
al@19745 | 1 # SliTaz package receipt v2. |
pankso@6 | 2 |
pankso@6 | 3 PACKAGE="iptables" |
al@19745 | 4 VERSION="1.6.1" |
al@20251 | 5 EXTRAVERSION="_$kvers" |
pankso@209 | 6 CATEGORY="security" |
al@19745 | 7 SHORT_DESC="Packet filtering framework (Firewall)" |
al@21020 | 8 MAINTAINER="devel@slitaz.org" |
pascal@15000 | 9 LICENSE="GPL2" |
al@21020 | 10 WEB_SITE="https://netfilter.org/projects/iptables/" |
al@21017 | 11 LFS="http://www.linuxfromscratch.org/blfs/view/svn/postlfs/iptables.html" |
al@19745 | 12 |
pankso@6 | 13 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
al@20443 | 14 WGET_URL="http://www.netfilter.org/projects/iptables/files/$TARBALL" |
al@19745 | 15 TARBALL_SHA1="b2592490ca7a6c2cd0f069e167a4337c86acdf91" |
pankso@6 | 16 |
al@19745 | 17 BUILD_DEPENDS="linux-module-headers libmnl-dev libnftnl-dev" |
al@21020 | 18 SPLIT="$PACKAGE-dev" |
pascal@15000 | 19 |
al@20443 | 20 compile_rules() { |
pascal@2141 | 21 # Set the right Kernel path to compile. |
al@20443 | 22 KERNEL_PATH="/usr/src/linux" # TODO: KERNEL_DIR? (see INSTALL) |
pankso@932 | 23 ./configure \ |
al@20443 | 24 --sbindir=/sbin \ |
al@20443 | 25 --disable-nftables \ |
al@20443 | 26 --enable-libipq \ |
al@20443 | 27 --with-xtlibdir=/lib/xtables \ |
pascal@2141 | 28 $CONFIGURE_ARGS && |
al@20575 | 29 fix libtool && |
al@20575 | 30 make && |
al@20575 | 31 make install || return 1 |
al@20443 | 32 |
al@20443 | 33 ln -sfv ../../sbin/xtables-multi $install/usr/bin/iptables-xml |
al@20443 | 34 |
al@20443 | 35 for file in ip4tc ip6tc ipq iptc xtables; do |
al@20443 | 36 mv -v $install/usr/lib/lib$file.so.* $install/lib |
al@20443 | 37 ln -sfv ../../lib/$(readlink $install/usr/lib/lib$file.so) \ |
al@20443 | 38 $install/usr/lib/lib$file.so |
al@20443 | 39 done |
pankso@6 | 40 } |
pankso@6 | 41 |
al@20443 | 42 genpkg_rules() { |
al@19745 | 43 case $PACKAGE in |
al@19745 | 44 iptables) |
al@19745 | 45 copy @std |
al@19745 | 46 DEPENDS="linux-netfilter" |
al@19745 | 47 TAGS="firewall" |
al@19745 | 48 ;; |
al@19745 | 49 *-dev) |
al@19745 | 50 copy @dev |
al@19745 | 51 ;; |
al@19745 | 52 esac |
pankso@6 | 53 } |