wok diff rsync/receipt @ rev 17046

Add tcpd
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Aug 20 12:09:19 2014 +0200 (2014-08-20)
parents f20bb2aafa21
children 17d8c8de40bf
line diff
     1.1 --- a/rsync/receipt	Sat Mar 15 19:56:28 2014 +0100
     1.2 +++ b/rsync/receipt	Wed Aug 20 12:09:19 2014 +0200
     1.3 @@ -9,7 +9,7 @@
     1.4  TARBALL="$PACKAGE-$VERSION.tar.gz"
     1.5  WEB_SITE="http://rsync.samba.org/"
     1.6  WGET_URL="${WEB_SITE}ftp/rsync/$TARBALL"
     1.7 -CONFIG_FILES="/etc/rsyncd.conf /etc/rsyncd.secrets"
     1.8 +CONFIG_FILES="/etc/rsyncd.conf /etc/rsyncd.secrets /etc/inetd.conf"
     1.9  TAGS="sync copy secure"
    1.10  HOST_ARCH="i486 arm"
    1.11  
    1.12 @@ -46,5 +46,12 @@
    1.13  	cp -a $stuff/etc $fs
    1.14  	chown root.root $fs/etc/init.d/*
    1.15  	chmod 0644 $fs/etc/rsyncd.conf
    1.16 +	grep -q rsync $1/etc/inetd.conf || cat >> $1/etc/inetd.conf <<EOT
    1.17 +#rsync	stream	tcp	nowait	root	rsync	rsync	-daemon
    1.18 +EOT
    1.19 +}
    1.20  
    1.21 +post_remove()
    1.22 +{
    1.23 +	grep -q rsync $1/etc/inetd.conf && sed -i '/rsync/d' $1/etc/inetd.conf
    1.24  }