wok-current view iptables-template/receipt @ rev 21020

Update some WEB_SITE
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Mar 10 14:33:01 2019 +0100 (2019-03-10)
parents aadee5047c4e
children ba1e68274f76
line source
1 # SliTaz package receipt.
3 PACKAGE="iptables-template"
4 VERSION="20140704"
5 CATEGORY="system-tools"
6 SHORT_DESC="Template for iptables setup."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://gist.github.com/jirutka/3742890"
10 EXTRA_SOURCE_FILES="rules-both.iptables rules-ipv4.iptables rules-ipv6.ip6tables"
12 BUILD_DEPENDS="wget"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 mkdir -p $install/usr/share/iptables
18 while read dir file ; do
19 [ -s "$SOURCES_REPOSITORY/$file" ] ||
20 wget --no-check-certificate -P $SOURCES_REPOSITORY \
21 $WEB_SITE/raw/$dir/$file
22 cp $SOURCES_REPOSITORY/$file $install/usr/share/iptables/
23 done <<EOT
24 c025b0b8c58af49aa9644982c459314c9adba157 rules-both.iptables
25 622104b0e46e0e7134a69bb7ce24850943b8d2a7 rules-ipv4.iptables
26 3b92a873bf750a6df32331657c641078adc5906e rules-ipv6.ip6tables
27 EOT
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 cp -a $install/* $fs
34 }