wok view iptables-template/receipt @ rev 24093

Up squashfs (4.5)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jul 27 16:57:54 2021 +0000 (2021-07-27)
parents 5b16e60b3d24
children 4ce52a0b72fd
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 TARBALL="rules-both.iptables"
11 WGET_URL="$WEB_SITE/raw/c025b0b8c58af49aa9644982c459314c9adba157/$TARBALL"
12 EXTRA_SOURCE_FILES="rules-ipv4.iptables rules-ipv6.ip6tables"
14 BUILD_DEPENDS="wget"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 mkdir -p $install/usr/share/iptables
20 cp rules-both.iptables $install/usr/share/iptables
21 while read dir file ; do
22 [ -s "$SOURCES_REPOSITORY/$file" ] ||
23 wget --no-check-certificate -P $SOURCES_REPOSITORY \
24 $WEB_SITE/raw/$dir/$file
25 cp $SOURCES_REPOSITORY/$file $install/usr/share/iptables/
26 done <<EOT
27 622104b0e46e0e7134a69bb7ce24850943b8d2a7 rules-ipv4.iptables
28 3b92a873bf750a6df32331657c641078adc5906e rules-ipv6.ip6tables
29 EOT
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 cp -a $install/* $fs
36 }