wok annotate iptables-template/receipt @ rev 21802

linld/iso2exe: remove non slitaz dos boot (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Aug 10 18:59:42 2019 +0200 (2019-08-10)
parents aadee5047c4e
children ba1e68274f76
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@18931 10 EXTRA_SOURCE_FILES="rules-both.iptables rules-ipv4.iptables rules-ipv6.ip6tables"
pascal@16797 11
pascal@16797 12 BUILD_DEPENDS="wget"
pascal@16797 13
pascal@16798 14 # Rules to configure and make the package.
pascal@16798 15 compile_rules()
pascal@16797 16 {
pascal@16798 17 mkdir -p $install/usr/share/iptables
pascal@18931 18 while read dir file ; do
pascal@18931 19 [ -s "$SOURCES_REPOSITORY/$file" ] ||
pascal@18931 20 wget --no-check-certificate -P $SOURCES_REPOSITORY \
pascal@18931 21 $WEB_SITE/raw/$dir/$file
pascal@18931 22 cp $SOURCES_REPOSITORY/$file $install/usr/share/iptables/
pascal@18931 23 done <<EOT
pascal@18931 24 c025b0b8c58af49aa9644982c459314c9adba157 rules-both.iptables
pascal@18931 25 622104b0e46e0e7134a69bb7ce24850943b8d2a7 rules-ipv4.iptables
pascal@18931 26 3b92a873bf750a6df32331657c641078adc5906e rules-ipv6.ip6tables
pascal@18931 27 EOT
pascal@16797 28 }
pascal@16798 29
pascal@16798 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@16798 31 genpkg_rules()
pascal@16798 32 {
pascal@16798 33 cp -a $install/* $fs
pascal@16798 34 }