Browse Source

rsync: update to 3.2.1

Disable several options to enable compilation.

Simplified several configure options.

Remove pointless configure var.

Added ssh hinting patch. Some SSH incompatibility.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
lilik-openwrt-22.03
Rosen Penev 5 years ago
parent
commit
3f00aed153
No known key found for this signature in database GPG Key ID: 36D31CFA845F0E3B
2 changed files with 36 additions and 30 deletions
  1. +17
    -30
      net/rsync/Makefile
  2. +19
    -0
      net/rsync/patches/010-disable-ssh-46-hint.patch

+ 17
- 30
net/rsync/Makefile View File

@ -8,12 +8,12 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=rsync
PKG_VERSION:=3.1.3
PKG_RELEASE:=3
PKG_VERSION:=3.2.1
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://download.samba.org/pub/rsync/src
PKG_HASH:=55cc554efec5fdaad70de921cd5a5eeb6c29a95524c715f3bbf849235b0800c0
PKG_HASH:=95f2dd62979b500a99b34c1a6453a0787ada0330e4bec7fcffad37b9062d58d3
PKG_MAINTAINER:=Maxim Storchak <m.storchak@gmail.com>
PKG_LICENSE:=GPL-3.0-or-later
@ -40,35 +40,22 @@ define Package/rsync/config
endef
CONFIGURE_ARGS += \
--with-included-popt=no \
--without-included-popt \
--disable-debug \
--disable-asm \
--disable-iconv \
--disable-iconv-open \
--disable-lz4 \
--disable-locale \
ifeq ($(CONFIG_RSYNC_xattr),y)
CONFIGURE_ARGS+= --enable-xattr-support
else
CONFIGURE_ARGS+= --disable-xattr-support
endif
ifeq ($(CONFIG_RSYNC_acl),y)
CONFIGURE_ARGS+= --enable-acl-support
else
CONFIGURE_ARGS+= --disable-acl-support
endif
ifeq ($(CONFIG_RSYNC_zlib),y)
CONFIGURE_ARGS+= --with-included-zlib=no
else
CONFIGURE_ARGS+= --with-included-zlib=yes
endif
ifeq ($(CONFIG_IPV6),y)
TARGET_CFLAGS+= -DINET6
else
CONFIGURE_ARGS+= --disable-ipv6
endif
CONFIGURE_VARS += rsync_cv_HAVE_GETTIMEOFDAY_TZ=yes
--disable-md2man \
--disable-openssl \
--disable-simd \
--disable-xxhash \
--disable-zstd \
--$(if $(CONFIG_RSYNC_xattr),en,dis)able-xattr-support \
--$(if $(CONFIG_RSYNC_acl),en,dis)able-acl-support \
--with$(if $(CONFIG_RSYNC_zlib),,out)-included-zlib \
--$(if $(CONFIG_IPV6),en,dis)able-ipv6
define Package/rsyncd
SECTION:=net


+ 19
- 0
net/rsync/patches/010-disable-ssh-46-hint.patch View File

@ -0,0 +1,19 @@
diff --git a/main.c b/main.c
index b41a394..dd49f87 100644
--- a/main.c
+++ b/main.c
@@ -572,14 +572,6 @@ static pid_t do_cmd(char *cmd, char *machine, char *user, char **remote_argv, in
args[argc++] = "-l";
args[argc++] = user;
}
-#ifdef AF_INET
- if (default_af_hint == AF_INET && strcmp(t, "ssh") == 0)
- args[argc++] = "-4"; /* we're using ssh so we can add a -4 option */
-#endif
-#ifdef AF_INET6
- if (default_af_hint == AF_INET6 && strcmp(t, "ssh") == 0)
- args[argc++] = "-6"; /* we're using ssh so we can add a -6 option */
-#endif
args[argc++] = machine;
#endif

Loading…
Cancel
Save