wok-6.x rev 16797

Add iptables-template
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jul 04 13:03:36 2014 +0200 (2014-07-04)
parents 0f57834c87d1
children aadee5047c4e
files iptables-template/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/iptables-template/receipt	Fri Jul 04 13:03:36 2014 +0200
     1.3 @@ -0,0 +1,24 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="iptables-template"
     1.7 +VERSION="20140704"
     1.8 +CATEGORY="system-tools"
     1.9 +SHORT_DESC="Template for iptables setup."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +LICENSE="MIT"
    1.12 +WEB_SITE="https://gist.github.com/jirutka/3742890"
    1.13 +
    1.14 +BUILD_DEPENDS="wget"
    1.15 +
    1.16 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.17 +genpkg_rules()
    1.18 +{
    1.19 +	mkdir -p $fs/usr/share/iptables
    1.20 +	for i in c025b0b8c58af49aa9644982c459314c9adba157/rules-both.iptables \
    1.21 +		 622104b0e46e0e7134a69bb7ce24850943b8d2a7/rules-ipv4.iptables \
    1.22 +		 3b92a873bf750a6df32331657c641078adc5906e/rules-ipv6.ip6tables
    1.23 +	do
    1.24 +		wget --no-check-certificate \
    1.25 +		     -O $fs/usr/share/iptables/$(basename $i) $WEB_SITE/raw/$i
    1.26 +	done
    1.27 +}