mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 23:18:42 +01:00
rsync: enable selecting bundled or system zlib
rsync, by default, includes a patched zlib within its source tarball. The patch enables a better compression ratio for rsync streams. However, the client and server need the same featureset in their zlib in order to understand the compression stream, or the server will abort the transfer. Older versions have no understanding of the new compression standard used. This patch allows the builder to choose whether to use the bundled or system zlib. It defautls to using the system zlib, as is the default before this patch. Signed-off-by: Ian Leonard <antonlacon@gmail.com>
This commit is contained in:
+12
-7
@@ -29,7 +29,7 @@ define Package/rsync
|
||||
CATEGORY:=Network
|
||||
SUBMENU:=File Transfer
|
||||
TITLE:=Fast remote file copy program (like rcp)
|
||||
DEPENDS:=+libpopt +zlib +RSYNC_xattr:libattr +RSYNC_acl:libacl
|
||||
DEPENDS:=+libpopt +RSYNC_xattr:libattr +RSYNC_acl:libacl +RSYNC_zlib:zlib
|
||||
URL:=http://rsync.samba.org/
|
||||
MENU:=1
|
||||
endef
|
||||
@@ -38,6 +38,11 @@ define Package/rsync/config
|
||||
source "$(SOURCE)/Config.in"
|
||||
endef
|
||||
|
||||
CONFIGURE_ARGS += \
|
||||
--with-included-popt=no \
|
||||
--disable-debug \
|
||||
--disable-locale \
|
||||
|
||||
ifeq ($(CONFIG_RSYNC_xattr),y)
|
||||
CONFIGURE_ARGS+= --enable-xattr-support
|
||||
else
|
||||
@@ -50,6 +55,12 @@ 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
|
||||
|
||||
define Package/rsyncd
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
@@ -69,12 +80,6 @@ define Package/rsync/description
|
||||
between two sets of files across the network link.
|
||||
endef
|
||||
|
||||
CONFIGURE_ARGS += \
|
||||
--with-included-popt=no \
|
||||
--with-included-zlib=no \
|
||||
--disable-debug \
|
||||
--disable-locale \
|
||||
|
||||
define Package/rsync/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
|
||||
|
||||
Reference in New Issue
Block a user