wok rev 16798

iptables-template: add compile_rules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jul 04 13:41:43 2014 +0200 (2014-07-04)
parents 845cb0b3d966
children 1e7b80a9c5a2
files iptables-template/receipt luksus/receipt
line diff
     1.1 --- a/iptables-template/receipt	Fri Jul 04 13:03:36 2014 +0200
     1.2 +++ b/iptables-template/receipt	Fri Jul 04 13:41:43 2014 +0200
     1.3 @@ -10,15 +10,21 @@
     1.4  
     1.5  BUILD_DEPENDS="wget"
     1.6  
     1.7 -# Rules to gen a SliTaz package suitable for Tazpkg.
     1.8 -genpkg_rules()
     1.9 +# Rules to configure and make the package.
    1.10 +compile_rules()
    1.11  {
    1.12 -	mkdir -p $fs/usr/share/iptables
    1.13 +	mkdir -p $install/usr/share/iptables
    1.14  	for i in c025b0b8c58af49aa9644982c459314c9adba157/rules-both.iptables \
    1.15  		 622104b0e46e0e7134a69bb7ce24850943b8d2a7/rules-ipv4.iptables \
    1.16  		 3b92a873bf750a6df32331657c641078adc5906e/rules-ipv6.ip6tables
    1.17  	do
    1.18  		wget --no-check-certificate \
    1.19 -		     -O $fs/usr/share/iptables/$(basename $i) $WEB_SITE/raw/$i
    1.20 +		     -O $install/usr/share/iptables/$(basename $i) $WEB_SITE/raw/$i
    1.21  	done
    1.22  }
    1.23 +
    1.24 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.25 +genpkg_rules()
    1.26 +{
    1.27 +	cp -a $install/* $fs
    1.28 +}
     2.1 --- a/luksus/receipt	Fri Jul 04 13:03:36 2014 +0200
     2.2 +++ b/luksus/receipt	Fri Jul 04 13:41:43 2014 +0200
     2.3 @@ -11,6 +11,7 @@
     2.4  WGET_URL="https://github.com/thomasfrivold/luksus/archive/v$VERSION.tar.gz"
     2.5  
     2.6  DEPENDS="bash dialog cryptsetup tcplay gnupg openssl"
     2.7 +BUILD_DEPENDS="wget"
     2.8  
     2.9  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.10  genpkg_rules()