diff options
author | qwence | 2016-10-29 02:53:57 -0400 |
---|---|---|
committer | qwence | 2016-10-29 02:53:57 -0400 |
commit | ecad9ddc22994dd7f9d1054b29d18a8d0a1f9229 (patch) | |
tree | d243014f97d8166778ce8dd64ef6cdc3816ca006 | |
download | aur-ecad9ddc22994dd7f9d1054b29d18a8d0a1f9229.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 36 | ||||
-rw-r--r-- | PKGBUILD | 59 | ||||
-rw-r--r-- | rsync.xinetd | 11 | ||||
-rw-r--r-- | rsyncd.conf | 10 | ||||
-rw-r--r-- | rsyncd.service | 10 | ||||
-rw-r--r-- | rsyncd.socket | 10 | ||||
-rw-r--r-- | rsyncd@.service | 11 |
7 files changed, 147 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..ca3e3ef5ccff --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,36 @@ +pkgbase = rsync-fadvise + pkgdesc = Patched version of rsync that prevents it from using disk cache through parameter --drop-cache + pkgver = 3.1.2 + pkgrel = 1 + url = http://rsync.samba.org/ + arch = i686 + arch = x86_64 + license = GPL3 + depends = perl + depends = popt + depends = acl + depends = zlib + provides = rsync + conflicts = rsync + backup = etc/rsyncd.conf + backup = etc/xinetd.d/rsync + source = http://rsync.samba.org/ftp/rsync/src/rsync-3.1.2.tar.gz + source = http://rsync.samba.org/ftp/rsync/src/rsync-3.1.2.tar.gz.asc + source = https://tobi.oetiker.ch/patches/rsync-3.1.2-1-fadvise.patch + source = rsyncd.conf + source = rsync.xinetd + source = rsyncd.service + source = rsyncd.socket + source = rsyncd@.service + validpgpkeys = 0048C8B026D4C96F0E589C2F6C859FB14B96A8C5 + md5sums = 0f758d7e000c0f7f7d3792610fad70cb + md5sums = SKIP + md5sums = b055468e7cbc5d829aa943f07916d458 + md5sums = bce64d122a8e0f86872a4a21a03bc7f3 + md5sums = ea3e9277dc908bc51f9eddc0f6b935c1 + md5sums = f90ba7f3717028769d6f230a2402b5aa + md5sums = ae4c381e0c02d6132c7f6ded3f473041 + md5sums = 53f94e613e0bc502d38dd61bd2cd7636 + +pkgname = rsync-fadvise + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5e5ecc19263d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,59 @@ +# Maintainer: qwence <queen.wenceslas@gmail.com> +# Contributor: Francesc Ortiz <francescortiz@gmail.com> +pkgname=rsync-fadvise +_pkgname=rsync +pkgver=3.1.2 +pkgrel=1 +patchver=$pkgver +patchrel=1 +pkgdesc="Patched version of rsync that prevents it from using disk cache through parameter --drop-cache" +#pkgdesc="Patched version of rsync that prevents it from using disk cache through parameter --drop-cache + slowdown patch (allow to specify a delay between links and sorts file operation based on inode)" +arch=('i686' 'x86_64') +url="http://rsync.samba.org/" +license=('GPL3') +depends=('perl' 'popt' 'acl' 'zlib') +backup=('etc/rsyncd.conf' 'etc/xinetd.d/rsync') +conflicts=('rsync') +provides=('rsync') +validpgpkeys=('0048C8B026D4C96F0E589C2F6C859FB14B96A8C5') # Wayne Davison <wayned@samba.org> +source=("http://rsync.samba.org/ftp/rsync/src/$_pkgname-$pkgver.tar.gz" + "http://rsync.samba.org/ftp/rsync/src/$_pkgname-$pkgver.tar.gz.asc" + "https://tobi.oetiker.ch/patches/rsync-$patchver-$patchrel-fadvise.patch" + #"http://tobi.oetiker.ch/patches/rsync-$patchver-slowdown.patch" + 'rsyncd.conf' 'rsync.xinetd' 'rsyncd.service' + 'rsyncd.socket' 'rsyncd@.service') +md5sums=('0f758d7e000c0f7f7d3792610fad70cb' + 'SKIP' + 'b055468e7cbc5d829aa943f07916d458' + 'bce64d122a8e0f86872a4a21a03bc7f3' + 'ea3e9277dc908bc51f9eddc0f6b935c1' + 'f90ba7f3717028769d6f230a2402b5aa' + 'ae4c381e0c02d6132c7f6ded3f473041' + '53f94e613e0bc502d38dd61bd2cd7636') + +build() { + cd "$srcdir/$_pkgname-$pkgver" + patch < $srcdir/rsync-$patchver-$patchrel-fadvise.patch || return 1 + #patch < $srcdir/rsync-$patchver-slowdown.patch || return 1 + ./configure --prefix=/usr \ + --with-included-popt=no \ + --disable-debug + make reconfigure + make +} + +check() { + cd "$srcdir/$_pkgname-$pkgver" + make test +} + +package() { + cd "$srcdir/$_pkgname-$pkgver" + make DESTDIR="$pkgdir" install + install -Dm644 ../rsyncd.conf "$pkgdir/etc/rsyncd.conf" + install -Dm644 ../rsync.xinetd "$pkgdir/etc/xinetd.d/rsync" + install -Dm644 ../rsyncd.service "$pkgdir/usr/lib/systemd/system/rsyncd.service" + install -m644 ../rsyncd.socket "$pkgdir/usr/lib/systemd/system/rsyncd.socket" + install -m644 ../rsyncd@.service "$pkgdir/usr/lib/systemd/system/rsyncd@.service" + install -Dm755 support/rrsync "$pkgdir/usr/lib/rsync/rrsync" +} diff --git a/rsync.xinetd b/rsync.xinetd new file mode 100644 index 000000000000..f5b6b1ed59b5 --- /dev/null +++ b/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/rsyncd.conf b/rsyncd.conf new file mode 100644 index 000000000000..152106091f32 --- /dev/null +++ b/rsyncd.conf @@ -0,0 +1,10 @@ +uid = nobody +gid = nobody +use chroot = no +max connections = 4 +syslog facility = local5 +pid file = /run/rsyncd.pid + +[ftp] + path = /srv/ftp + comment = ftp area diff --git a/rsyncd.service b/rsyncd.service new file mode 100644 index 000000000000..cd45687685a1 --- /dev/null +++ b/rsyncd.service @@ -0,0 +1,10 @@ +[Unit] +Description=A file transfer program to keep remote files in sync +After=network.target + +[Service] +ExecStart=/usr/bin/rsync --daemon --no-detach +RestartSec=1 + +[Install] +WantedBy=multi-user.target diff --git a/rsyncd.socket b/rsyncd.socket new file mode 100644 index 000000000000..2b9a9643ba14 --- /dev/null +++ b/rsyncd.socket @@ -0,0 +1,10 @@ +[Unit] +Description=Rsync Socket +Conflicts=rsyncd.service + +[Socket] +ListenStream=873 +Accept=true + +[Install] +WantedBy=sockets.target diff --git a/rsyncd@.service b/rsyncd@.service new file mode 100644 index 000000000000..33db95c4c113 --- /dev/null +++ b/rsyncd@.service @@ -0,0 +1,11 @@ +[Unit] +Description=A file transfer program to keep remote files in sync +After=network.target + +[Service] +ExecStart=-/usr/bin/rsync --daemon +StandardInput=socket +StandardOutput=inherit +StandardError=journal +User=nobody +Group=nobody |