wok-next annotate iptables-template/receipt @ rev 18874
Up node (0.10.41)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 04 16:21:24 2016 +0100 (2016-02-04) |
parents | 845cb0b3d966 |
children | 5b16e60b3d24 |
rev | line source |
---|---|
pascal@16797 | 1 # SliTaz package receipt. |
pascal@16797 | 2 |
pascal@16797 | 3 PACKAGE="iptables-template" |
pascal@16797 | 4 VERSION="20140704" |
pascal@16797 | 5 CATEGORY="system-tools" |
pascal@16797 | 6 SHORT_DESC="Template for iptables setup." |
pascal@16797 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@16797 | 8 LICENSE="MIT" |
pascal@16797 | 9 WEB_SITE="https://gist.github.com/jirutka/3742890" |
pascal@16797 | 10 |
pascal@16797 | 11 BUILD_DEPENDS="wget" |
pascal@16797 | 12 |
pascal@16798 | 13 # Rules to configure and make the package. |
pascal@16798 | 14 compile_rules() |
pascal@16797 | 15 { |
pascal@16798 | 16 mkdir -p $install/usr/share/iptables |
pascal@16797 | 17 for i in c025b0b8c58af49aa9644982c459314c9adba157/rules-both.iptables \ |
pascal@16797 | 18 622104b0e46e0e7134a69bb7ce24850943b8d2a7/rules-ipv4.iptables \ |
pascal@16797 | 19 3b92a873bf750a6df32331657c641078adc5906e/rules-ipv6.ip6tables |
pascal@16797 | 20 do |
pascal@16797 | 21 wget --no-check-certificate \ |
pascal@16798 | 22 -O $install/usr/share/iptables/$(basename $i) $WEB_SITE/raw/$i |
pascal@16797 | 23 done |
pascal@16797 | 24 } |
pascal@16798 | 25 |
pascal@16798 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@16798 | 27 genpkg_rules() |
pascal@16798 | 28 { |
pascal@16798 | 29 cp -a $install/* $fs |
pascal@16798 | 30 } |