diff options
Diffstat (limited to 'testing/rsync')
-rw-r--r-- | testing/rsync/ChangeLog | 39 | ||||
-rw-r--r-- | testing/rsync/PKGBUILD | 41 | ||||
-rw-r--r-- | testing/rsync/rsync.xinetd | 11 | ||||
-rw-r--r-- | testing/rsync/rsyncd | 43 | ||||
-rw-r--r-- | testing/rsync/rsyncd.conf | 16 |
5 files changed, 150 insertions, 0 deletions
diff --git a/testing/rsync/ChangeLog b/testing/rsync/ChangeLog new file mode 100644 index 000000000..d07e4ad5a --- /dev/null +++ b/testing/rsync/ChangeLog @@ -0,0 +1,39 @@ +2011-05-17 Angel Velasquez <angvp@archlinux.org> + * rsync 3.0.8-2 + * Added call_rsync func to rsyncd to support pass arguments to the daemon + +2010-01-01 Eric Belanger <eric@archlinux.org> + + * rsync 3.0.7-1 + * Upstream update + +2009-05-08 Eric Belanger <eric@archlinux.org> + + * rsync 3.0.6-1 + * Upstream update + +2008-12-29 Eric Belanger <eric@archlinux.org> + + * rsync 3.0.5-1 + * Upstream update + +2008-09-06 Eric Belanger <eric@archlinux.org> + + * rsync 3.0.4-1 + * Upstream update + +2008-07-05 Eric Belanger <eric@archlinux.org> + + * rsync 3.0.3-1 + * Upstream update + +2008-04-13 Eric Belanger <eric@archlinux.org> + + * rsync 3.0.2-1 + * Upstream update + +2008-03-01 Eric Belanger <eric@archlinux.org> + + * rsync 3.0.0-1 + * Upstream update + * Updated license diff --git a/testing/rsync/PKGBUILD b/testing/rsync/PKGBUILD new file mode 100644 index 000000000..98521398b --- /dev/null +++ b/testing/rsync/PKGBUILD @@ -0,0 +1,41 @@ +# $Id: PKGBUILD 138511 2011-09-26 18:43:51Z angvp $ +# Maintainer: Angel Velasquez <angvp@archlinux.org> +# Contributor: Eric Belanger <eric@archlinux.org> +# Contributor: Judd Vinet <jvinet@zeroflux.org> +# Contributor: Daniel J Griffiths <ghost1227@archlinux.us> +pkgname=rsync +pkgver=3.0.9 +pkgrel=1 +pkgdesc="A file transfer program to keep remote files in sync" +arch=('i686' 'x86_64') +url="http://samba.anu.edu.au/rsync/" +license=('GPL3') +depends=('acl') +backup=('etc/rsyncd.conf' 'etc/xinetd.d/rsync') +changelog=ChangeLog +source=(http://rsync.samba.org/ftp/rsync/${pkgname}-${pkgver}.tar.gz \ + rsyncd.conf rsyncd rsync.xinetd) +md5sums=('5ee72266fe2c1822333c407e1761b92b' + '4395c0591638349b1a7aeaaa4da1f03a' + '7a9ce3b5de97f3aae29b906f93e1d157' + 'ea3e9277dc908bc51f9eddc0f6b935c1') +sha1sums=('c64c8341984aea647506eb504496999fd968ddfc' + '48be09294134dfed888818872fe552a59c29147a' + 'eda623c31d9def454cf8e3e88dcf63de4ca5c08b' + 'fdb99785bc87ee13d77aa90dc1804f3f75dd7fc1') + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + ./prepare-source + ./configure --prefix=/usr --with-included-popt \ + --enable-acl-support --enable-xattr-support + make +} + +package() { + cd ${srcdir}/${pkgname}-${pkgver} + make DESTDIR=${pkgdir} install + install -Dm755 ../rsyncd ${pkgdir}/etc/rc.d/rsyncd + install -Dm644 ../rsyncd.conf ${pkgdir}/etc/rsyncd.conf + install -Dm644 ../rsync.xinetd ${pkgdir}/etc/xinetd.d/rsync +} diff --git a/testing/rsync/rsync.xinetd b/testing/rsync/rsync.xinetd new file mode 100644 index 000000000..f5b6b1ed5 --- /dev/null +++ b/testing/rsync/rsync.xinetd @@ -0,0 +1,11 @@ +service rsync +{ + socket_type = stream + wait = no + user = root + server = /usr/bin/rsync + server_args = --daemon + log_on_success += HOST DURATION + log_on_failure += HOST + disable = yes +} diff --git a/testing/rsync/rsyncd b/testing/rsync/rsyncd new file mode 100644 index 000000000..d7a772e8e --- /dev/null +++ b/testing/rsync/rsyncd @@ -0,0 +1,43 @@ +#!/bin/bash + +. /etc/rc.conf +. /etc/rc.d/functions + +[ -f /etc/conf.d/rsyncd ] && . /etc/conf.d/rsyncd + +function call_rsyncd() { + /usr/bin/rsync --daemon $RSYNCD_ARGS +} + +case "$1" in + start) + stat_busy "Starting rsyncd" + [ ! -f /var/run/daemons/rsyncd ] && call_rsyncd + if [ $? -gt 0 ]; then + stat_fail + else + #pgrep -of "/usr/bin/rsync --daemon" > /var/run/rsyncd.pid # Removed FS#20942 + add_daemon rsyncd + stat_done + fi + ;; + + stop) + stat_busy "Stopping rsyncd" + [ -f /var/run/rsyncd.pid ] && kill `cat /var/run/rsyncd.pid` + if [ $? -gt 0 ]; then + stat_fail + else + rm_daemon rsyncd + stat_done + fi + ;; + restart) + $0 stop + sleep 1 + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" +esac +exit 0 diff --git a/testing/rsync/rsyncd.conf b/testing/rsync/rsyncd.conf new file mode 100644 index 000000000..f7161f3f8 --- /dev/null +++ b/testing/rsync/rsyncd.conf @@ -0,0 +1,16 @@ +uid = nobody +gid = nobody +use chroot = no +max connections = 4 +syslog facility = local5 +pid file = /var/run/rsyncd.pid + +[ftp] + path = /home/ftp + comment = ftp area + +#[cvs] +# path = /data/cvs +# comment = CVS repository (requires authentication) +# auth users = tridge, susan +# secrets file = /etc/rsyncd.secrets |