rsync: support xxhash and lz4
authorMaxim Storchak <m.storchak@gmail.com>
Sun, 14 Apr 2024 12:27:28 +0000 (15:27 +0300)
committerTianling Shen <cnsztl@gmail.com>
Fri, 19 Apr 2024 13:51:40 +0000 (21:51 +0800)
Signed-off-by: Maxim Storchak <m.storchak@gmail.com>
net/rsync/Config.in
net/rsync/Makefile

index f5e3b67b13ebd0bf66f16e2e0b394ebf6edb1dfb..30e86261fca5aa528769df078248addd7bbfce15 100644 (file)
@@ -17,4 +17,14 @@ if PACKAGE_rsync
                prompt "Enable zstd stream compression"
                default n
 
+       config RSYNC_lz4
+               bool
+               prompt "Enable lz4, extremely fast compression"
+               default n
+
+       config RSYNC_xxhash
+               bool
+               prompt "Enable xxhash, extremely fast hash"
+               default n
+
 endif
index e943ac841540246ff55cc562455fb5a0d2ab0be3..723eaa348f2ed5bb59a303dc6fdf1a8b425b8178 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=rsync
 PKG_VERSION:=3.3.0
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://download.samba.org/pub/$(PKG_NAME)/src
@@ -30,8 +30,8 @@ define Package/rsync
   SECTION:=net
   CATEGORY:=Network
   SUBMENU:=File Transfer
-  TITLE:=Fast remote file copy program (like rcp)
-  DEPENDS:=+libpopt +zlib +RSYNC_xattr:libattr +RSYNC_acl:libacl +RSYNC_zstd:libzstd $(ICONV_DEPENDS)
+  TITLE:=an open source utility that provides fast incremental file transfer
+  DEPENDS:=+libpopt +zlib +RSYNC_xattr:libattr +RSYNC_acl:libacl +RSYNC_zstd:libzstd +RSYNC_xxhash:libxxhash +RSYNC_lz4:liblz4 $(ICONV_DEPENDS)
   URL:=https://rsync.samba.org/
   MENU:=1
 endef
@@ -47,18 +47,18 @@ CONFIGURE_ARGS += \
        --without-included-zlib \
        --disable-debug \
        --disable-asm \
-       --disable-lz4 \
        --disable-locale \
        --disable-md2man \
        --disable-openssl \
        --disable-simd \
        --disable-roll-simd \
-       --disable-xxhash \
        --$(if $(CONFIG_BUILD_NLS),en,dis)able-iconv \
        --$(if $(CONFIG_BUILD_NLS),en,dis)able-iconv-open \
        --$(if $(CONFIG_RSYNC_zstd),en,dis)able-zstd \
+       --$(if $(CONFIG_RSYNC_lz4),en,dis)able-lz4 \
        --$(if $(CONFIG_RSYNC_xattr),en,dis)able-xattr-support \
        --$(if $(CONFIG_RSYNC_acl),en,dis)able-acl-support \
+       --$(if $(CONFIG_RSYNC_xxhash),en,dis)able-xxhash \
        $(if $(CONFIG_IPV6),,--disable-ipv6)
 
 define Package/rsyncd