diff options
author | xiota | 2022-10-02 22:52:44 -0700 |
---|---|---|
committer | xiota | 2022-10-02 22:52:44 -0700 |
commit | a3027e52fb358bec4332a2c5307dceda5fa508de (patch) | |
tree | e064d593c8f6149d85007fd723c09837efad7f9c | |
download | aur-a3027e52fb358bec4332a2c5307dceda5fa508de.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 32 | ||||
-rw-r--r-- | .gitignore | 6 | ||||
-rw-r--r-- | PKGBUILD | 77 | ||||
-rw-r--r-- | rsyncd.conf | 10 |
4 files changed, 125 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..7d3aaace437a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,32 @@ +pkgbase = rsync-reflink-git + pkgdesc = A fast and versatile file copying tool for remote and local files - git checkout with reflink support + pkgver = 3.2.7pre1.r2.g00b361db + pkgrel = 1 + url = https://github.com/WayneD/rsync/issues/153 + arch = i686 + arch = x86_64 + license = GPL3 + makedepends = git + makedepends = python-commonmark + depends = acl + depends = libacl.so + depends = lz4 + depends = openssl + depends = perl + depends = popt + depends = xxhash + depends = libxxhash.so + depends = zlib + depends = zstd + provides = rsync + conflicts = rsync + backup = etc/rsyncd.conf + backup = etc/xinetd.d/rsync + source = rsync-git::git+https://github.com/WayneD/rsync + source = https://github.com/WayneD/rsync-patches/raw/master/clone-dest.diff + source = rsyncd.conf + sha256sums = SKIP + sha256sums = 59fbf061d372ef4e6ce9ed89da2cfb8dc7cdbf4a009b99d2b80b17db34e01dac + sha256sums = 733ccb571721433c3a6262c58b658253ca6553bec79c2bdd0011810bb4f2156b + +pkgname = rsync-reflink-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..4c1117c95089 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +pkg +src +*.pkg.* +*.log +clone-dest.diff +rsync-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8dd9a1bfe304 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,77 @@ +_pkgname=rsync-git +pkgname=rsync-reflink-git +pkgver=3.2.7pre1.r2.g00b361db +pkgrel=1 +pkgdesc='A fast and versatile file copying tool for remote and local files - git checkout with reflink support' +arch=('i686' 'x86_64') +url='https://github.com/WayneD/rsync/issues/153' +license=('GPL3') +depends=('acl' 'libacl.so' 'lz4' 'openssl' 'perl' 'popt' 'xxhash' 'libxxhash.so' 'zlib' 'zstd') +makedepends=('git' 'python-commonmark') +provides=('rsync') +conflicts=('rsync') +backup=( + 'etc/rsyncd.conf' + 'etc/xinetd.d/rsync' +) +source=( + "$_pkgname"::"git+https://github.com/WayneD/rsync" + 'https://github.com/WayneD/rsync-patches/raw/master/clone-dest.diff' + 'rsyncd.conf' +) +sha256sums=( + 'SKIP' + 'SKIP' + '733ccb571721433c3a6262c58b658253ca6553bec79c2bdd0011810bb4f2156b' +) + +pkgver() { + cd "$srcdir/$_pkgname" + + if GITTAG="$(git describe --abbrev=0 --tags 2>/dev/null)"; then + printf '%s.r%s.g%s' \ + "$(sed -e "s/^${_pkgname%%-git}//" -e 's/^[-_/a-zA-Z]\+//' -e 's/[-_+]/./g' <<< ${GITTAG})" \ + "$(git rev-list --count ${GITTAG}..)" \ + "$(git rev-parse --short HEAD)" + else + printf '0.r%s.g%s' \ + "$(git rev-list --count master)" \ + "$(git rev-parse --short HEAD)" + fi +} + +prepare() { + cd "$srcdir/$_pkgname" + patch -p1 < "$srcdir/clone-dest.diff" +} + +build() { + cd "$srcdir/$_pkgname" + + ./configure \ + --prefix=/usr \ + --disable-debug \ + --with-included-popt=no \ + --with-included-zlib=no + make +} + +check() { + cd "$srcdir/$_pkgname" + make test +} + + +package() { + cd "$srcdir/$_pkgname" + + make DESTDIR="${pkgdir}" install + + make DESTDIR="$pkgdir" install + install -Dm0644 ../rsyncd.conf "$pkgdir/etc/rsyncd.conf" + install -Dm0644 packaging/lsb/rsync.xinetd "$pkgdir/etc/xinetd.d/rsync" + install -Dm0644 packaging/systemd/rsync.service "$pkgdir/usr/lib/systemd/system/rsyncd.service" + install -Dm0644 packaging/systemd/rsync.socket "$pkgdir/usr/lib/systemd/system/rsyncd.socket" + install -Dm0644 packaging/systemd/rsync@.service "$pkgdir/usr/lib/systemd/system/rsyncd@.service" + install -Dm0755 support/rrsync "$pkgdir/usr/lib/rsync/rrsync" +} 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 |