================================ rsync:source=3.0.6-1 cvc rdiff rsync -1 /weasel.rpath.org@wgl:3-devel/3.0.6-1 ================================ 3.0.6-1 Filip Brcic (brcha@xxxxxxx) Sat Jan 2 14:43:18 2010 rsync 3.0.6 rsyncd.xinetd: new --- /dev/null +++ rsyncd.xinetd @@ -0,0 +10 @@ +service rsync +{ + socket_type = stream + protocol = tcp + wait = no + user = root + server = /usr/bin/rsync + server_args = --daemon + disable = yes +} rsyncd.init.d: new --- /dev/null +++ rsyncd.init.d @@ -0,0 +23 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/rsync/files/rsyncd.init.d,v 1.5 2007/02/23 11:33:59 uberlord Exp $ + +depend() { + use net +} + +start() { + ebegin "Starting rsyncd" + start-stop-daemon --start --exec /usr/bin/rsync \ + --pidfile /var/run/rsyncd.pid \ + -- --daemon ${RSYNC_OPTS} + eend $? +} + +stop() { + ebegin "Stopping rsyncd" + start-stop-daemon --stop --exec /usr/bin/rsync \ + --pidfile /var/run/rsyncd.pid + eend $? +} rsyncd.conf.d: new --- /dev/null +++ rsyncd.conf.d @@ -0,0 +5 @@ +# /etc/conf.d/rsyncd: config file for /etc/init.d/rsyncd + +# see man pages for rsync or run `rsync --help` +# for valid cmdline options +#RSYNC_OPTS="" rsync-3.0.6.tar.gz: new rsyncd.conf: new --- /dev/null +++ rsyncd.conf @@ -0,0 +15 @@ +# /etc/rsyncd.conf + +# Minimal configuration file for rsync daemon +# See rsync(1) and rsyncd.conf(5) man pages for help + +# This line is required by the /etc/init.d/rsyncd script +pid file = /var/run/rsyncd.pid +use chroot = yes +read only = yes + +# Simple example for enabling your own local rsync server +#[gentoo-portage] +# path = /usr/portage +# comment = Gentoo Portage tree +# exclude = /distfiles /packages rsyncd.logrotate: new --- /dev/null +++ rsyncd.logrotate @@ -0,0 +9 @@ +/var/log/rsync.log { + compress + maxage 365 + rotate 7 + size=+1024k + notifempty + missingok + copytruncate +} rsync.recipe: new --- /dev/null +++ rsync.recipe @@ -0,0 +47 @@ +# +# Copyright (c) 2010 Filip Brcic <brcha@xxxxxxx> +# Distributed under the terms of the GNU General Public License v3 +# + +class Rsync(AutoPackageRecipe): + name = 'rsync' + version = '3.0.6' + + buildRequires = [ + 'acl:devel', 'popt:devel', 'attr:devel', + ] + + shortDesc = 'Rsync synchronization program' + longDesc = 'File transfer program to keep remote files into sync' + url = 'http://rsync.samba.org/' + licenses = [ 'GPL-3' ] + categories = [ 'System' ] + + def unpack(r): + r.addArchive('http://rsync.samba.org/ftp/rsync/src/') + + def configure(r): + r.Configure( + ' --without-included-popt' + ' --enable-acl-support' + ' --enable-xattr-support' + ' --enable-ipv6' + ' --enable-iconv' + ' --with-rsyncd-conf=%(sysconfdir)s/rsync.conf' + ) + + def policy(r): + r.addSource('rsyncd.init.d', + dest='%(initdir)s/rsyncd', + mode=0755) + r.addSource('rsyncd.conf.d', + dest='%(sysconfdir)s/conf.d/rsyncd') + + r.Doc('NEWS', 'OLDNEWS', 'README', 'TODO', 'tech_report.tex') + + r.addSource('rsyncd.conf', dest='%(sysconfdir)s/') + + r.addSource('rsyncd.logrotate', + dest='%(sysconfdir)s/logrotate.d/rsyncd') + r.addSource('rsyncd.xinetd', + dest='%(sysconfdir)s/xinetd.d/rsyncd') Committed by: brcha