wok-current rev 17047

Add tcpd (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Aug 20 12:19:17 2014 +0200 (2014-08-20)
parents 227b2c1214c2
children 95ae6a87842c
files tcpd/receipt
line diff
     1.1 --- a/tcpd/receipt	Wed Aug 20 12:09:19 2014 +0200
     1.2 +++ b/tcpd/receipt	Wed Aug 20 12:19:17 2014 +0200
     1.3 @@ -9,16 +9,19 @@
     1.4  WANTED="libwrap"
     1.5  WEB_SITE="ftp://ftp.porcupine.org/pub/security/index.html"
     1.6  HOST_ARCH="i486 arm"
     1.7 +CONFIG_FILES="/etc/hosts.allow /etc/hosts.deny"
     1.8  
     1.9  DEPENDS="libwrap"
    1.10  
    1.11  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.12  genpkg_rules()
    1.13  {
    1.14 -	mkdir -p $fs/usr/sbin
    1.15 +	mkdir -p $fs/usr/sbin $fs/etc
    1.16  	cp -a $src/tcpd $fs/usr/sbin
    1.17  	cp -a $src/tcpdchk $fs/usr/sbin
    1.18  	cp -a $src/tcpdmatch $fs/usr/sbin
    1.19  	cp -a $src/try-from $fs/usr/sbin
    1.20  	cp -a $src/safe_finger $fs/usr/sbin
    1.21 +	echo "ALL : 127.0.0.1, 192.168." > $fs/etc/hosts.allow
    1.22 +	touch $fs/etc/hosts.deny
    1.23  }