wok-current annotate iptables-template/receipt @ rev 24906
updated minidlna (1.2.1 -> 1.3.0)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Apr 09 14:37:52 2022 +0100 (2022-04-09) |
parents | ba1e68274f76 |
children |
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@22338 | 10 TARBALL="rules-both.iptables" |
pascal@22338 | 11 WGET_URL="$WEB_SITE/raw/c025b0b8c58af49aa9644982c459314c9adba157/$TARBALL" |
pascal@22338 | 12 EXTRA_SOURCE_FILES="rules-ipv4.iptables rules-ipv6.ip6tables" |
pascal@16797 | 13 |
pascal@16797 | 14 BUILD_DEPENDS="wget" |
pascal@16797 | 15 |
pascal@24744 | 16 # What is the latest version available today? |
pascal@24744 | 17 current_version() |
pascal@24744 | 18 { |
pascal@24744 | 19 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24744 | 20 sed '/archive/!d;s|.*archive/||;s|.zip.*||;q' | cut -c1-7 |
pascal@24744 | 21 } |
pascal@24744 | 22 |
pascal@16798 | 23 # Rules to configure and make the package. |
pascal@16798 | 24 compile_rules() |
pascal@16797 | 25 { |
pascal@16798 | 26 mkdir -p $install/usr/share/iptables |
pascal@22338 | 27 cp rules-both.iptables $install/usr/share/iptables |
pascal@18931 | 28 while read dir file ; do |
pascal@18931 | 29 [ -s "$SOURCES_REPOSITORY/$file" ] || |
pascal@18931 | 30 wget --no-check-certificate -P $SOURCES_REPOSITORY \ |
pascal@18931 | 31 $WEB_SITE/raw/$dir/$file |
pascal@18931 | 32 cp $SOURCES_REPOSITORY/$file $install/usr/share/iptables/ |
pascal@18931 | 33 done <<EOT |
pascal@18931 | 34 622104b0e46e0e7134a69bb7ce24850943b8d2a7 rules-ipv4.iptables |
pascal@18931 | 35 3b92a873bf750a6df32331657c641078adc5906e rules-ipv6.ip6tables |
pascal@18931 | 36 EOT |
pascal@16797 | 37 } |
pascal@16798 | 38 |
pascal@16798 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@16798 | 40 genpkg_rules() |
pascal@16798 | 41 { |
pascal@16798 | 42 cp -a $install/* $fs |
pascal@16798 | 43 } |