2023-03-03 20:06:09 +03:00
|
|
|
distributable:
|
2023-10-02 03:41:57 +03:00
|
|
|
url: https://rsync.samba.org/ftp/rsync/rsync-{{version}}.tar.gz
|
|
|
|
strip-components: 1
|
2023-03-03 20:06:09 +03:00
|
|
|
|
|
|
|
versions:
|
|
|
|
github: WayneD/rsync/tags
|
|
|
|
|
|
|
|
dependencies:
|
|
|
|
zlib.net: ^1
|
|
|
|
facebook.com/zstd: ^1
|
|
|
|
lz4.org: ^1
|
|
|
|
|
|
|
|
build:
|
|
|
|
script: |
|
|
|
|
./configure $ARGS
|
|
|
|
make --jobs {{ hw.concurrency }} install
|
|
|
|
env:
|
|
|
|
ARGS:
|
|
|
|
- --disable-debug
|
|
|
|
- --prefix={{prefix}}
|
2023-10-02 03:41:57 +03:00
|
|
|
- --with-rsyncd-conf={{prefix}}/rsyncd.conf #FIXME
|
|
|
|
- --with-included-popt=yes #FIXME
|
2023-03-03 20:06:09 +03:00
|
|
|
- --with-included-zlib=no
|
2023-10-02 03:41:57 +03:00
|
|
|
- --disable-openssl #FIXME rsync still builds with encryption, but it is not hardware-accelerated
|
2023-03-03 20:06:09 +03:00
|
|
|
- --enable-ipv6
|
2023-10-02 03:41:57 +03:00
|
|
|
- --disable-xxhash #FIXME
|
2023-03-03 20:06:09 +03:00
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/rsync
|
|
|
|
- bin/rsync-ssl
|
|
|
|
|
|
|
|
test: |
|
|
|
|
mkdir a
|
|
|
|
|
|
|
|
echo foo > a/1.txt
|
|
|
|
echo bar > a/2.txt
|
|
|
|
echo baz > a/3.txt
|
|
|
|
|
|
|
|
rsync -artv a/ b
|
|
|
|
|
|
|
|
for x in $(cd a && ls); do
|
|
|
|
test -f b/$x
|
|
|
|
test $(cat a/$x) = $(cat b/$x)
|
|
|
|
done
|