Mercurial > vanilla
changeset 1292:19f67093409b
system/rsync: upgrade to 3.2.3
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 16 Nov 2021 15:20:49 +0100 |
parents | a9335125bc38 |
children | 6b8ed869b739 |
files | system/rsync/rsync.sh system/rsync/rsync.sha1 |
diffstat | 2 files changed, 41 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/system/rsync/rsync.sh Tue Nov 16 15:11:48 2021 +0100 +++ b/system/rsync/rsync.sh Tue Nov 16 15:20:49 2021 +0100 @@ -16,14 +16,14 @@ # PKGNAME=rsync -PKGVERSION=3.1.3 +PKGVERSION=3.2.3 PKGREVISION=1 PKGLICENSE="GPLv30" PKGSUMMARY="versatile copy tool" PKGWWW="https://rsync.samba.org" PKGDOWNLOAD="https://download.samba.org/pub/$PKGNAME/src/$PKGNAME-$PKGVERSION.tar.gz" PKGDEPENDS="acl attr popt zlib" -PKGOPTIONS="IPV6" +PKGOPTIONS="IPV6 LZ4 SSL ZSTD" PKGPROTECT="etc/rsyncd.conf" : ${CHOST:=$(uname -m)-linux-musl} @@ -35,6 +35,36 @@ : ${LDFLAGS:=} : ${LIBS:=} : ${IPV6:=yes} +: ${LZ4:=yes} +: ${SSL:=yes} +: ${ZSTD:=yes} + +if [ "$IPV6" = "yes" ]; then + with_ipv6="--enable-ipv6" +else + with_ipv6="--disable-ipv6" +fi + +if [ "$LZ4" = "yes" ]; then + PKGDEPENDS="lz4 $PKGDEPENDS" + with_lz4="--enable-lz4" +else + with_lz4="--disable-lz4" +fi + +if [ "$SSL" = "yes" ]; then + PKGDEPENDS="libressl $PKGDEPENDS" + with_ssl="--enable-openssl" +else + with_ssl="--disable-openssl" +fi + +if [ "$ZSTD" = "yes" ]; then + PKGDEPENDS="zstd $PKGDEPENDS" + with_zstd="--enable-zstd" +else + with_zstd="--disable-zstd" +fi build() { @@ -42,6 +72,7 @@ tar -xvf $PKGNAME-$PKGVERSION.tar.gz cd $PKGNAME-$PKGVERSION + # --disable-xxhash: not available yet. CC="$CC" \ CFLAGS="$CFLAGS" \ CXX="$CXX" \ @@ -52,8 +83,13 @@ --build=$CBUILD \ --host=$CHOST \ --prefix= \ - --with-included-popt \ - --with-included-zlib + --disable-xxhash \ + --without-included-popt \ + --without-included-zlib \ + $with_ipv6 \ + $with_lz4 \ + $with_ssl \ + $with_zstd make make install DESTDIR=$DESTDIR