wok-tiny diff rsync/receipt @ rev 86

Add lpd-config
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Aug 21 19:04:10 2012 +0200 (2012-08-21)
parents 998910ee725e
children c952624a764f
line diff
     1.1 --- a/rsync/receipt	Fri Jul 20 12:32:58 2012 +0200
     1.2 +++ b/rsync/receipt	Tue Aug 21 19:04:10 2012 +0200
     1.3 @@ -17,7 +17,7 @@
     1.4  compile_rules()
     1.5  {
     1.6  	cd $src
     1.7 -sed -i 's/cross_compiling=no/cross_compiling=yes/' configure.sh
     1.8 +	sed -i 's/cross_compiling=no/cross_compiling=yes/' configure.sh
     1.9  	./configure CC=uclibc-$TARGET-cc --host=i486-pc-linux-gnu \
    1.10  		--prefix=/usr \
    1.11  		--mandir=/usr/share/man \
    1.12 @@ -121,6 +121,11 @@
    1.13  		cat > $1/etc/rsyncd.motd <<EOT
    1.14  $RSYNCD_MOTD
    1.15  EOT
    1.16 +		grep -q inetd $1/etc/rcS.conf ||
    1.17 +		sed -i 's/^RUN_DAEMONS="/&inetd /' $1/etc/rcS.conf
    1.18 +		grep -q rsync $1/etc/inetd.conf || cat >> $1/etc/inetd.conf <<EOT
    1.19 +rsync	stream	tcp	nowait	root	/usr/bin/rsync	/usr/bin/rsync --daemon
    1.20 +EOT
    1.21  	else
    1.22  		rm -f $1/etc/rsyncd.conf $1/etc/rsyncd.secrets \
    1.23  			$1/etc/init.d/rsyncd