1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-18 05:13:56 +02:00

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>
This commit is contained in:
Rosen Penev 2020-06-25 16:01:34 -07:00
parent f10023094e
commit 3f00aed153
No known key found for this signature in database
GPG Key ID: 36D31CFA845F0E3B
2 changed files with 36 additions and 30 deletions

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

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