Merge pull request #275 from antonlacon/rsync-zlib

rsync: optionally enable builtin zlib and add logfile to rsyncd
This commit is contained in:
champtar 2014-09-06 11:34:54 +02:00
commit a256d99be8
3 changed files with 26 additions and 7 deletions

View file

@ -9,4 +9,17 @@ if PACKAGE_rsync
bool bool
prompt "Enable ACL support" prompt "Enable ACL support"
default n default n
config RSYNC_zlib
bool
prompt "Enable system zlib"
help
Use the system's zlib library instead of rsync's internal copy. Enabling
this may create compatibility errors when using compression with older
clients, or those using the current default of the bundled zlib.
rsync's upstream default is to use their bundled zlib. OpenWrt uses the
system zlib for space reasons. The system zlib will eventually become
default for upstream as well.
default y
endif endif

View file

@ -29,7 +29,7 @@ define Package/rsync
CATEGORY:=Network CATEGORY:=Network
SUBMENU:=File Transfer SUBMENU:=File Transfer
TITLE:=Fast remote file copy program (like rcp) 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/ URL:=http://rsync.samba.org/
MENU:=1 MENU:=1
endef endef
@ -38,6 +38,11 @@ define Package/rsync/config
source "$(SOURCE)/Config.in" source "$(SOURCE)/Config.in"
endef endef
CONFIGURE_ARGS += \
--with-included-popt=no \
--disable-debug \
--disable-locale \
ifeq ($(CONFIG_RSYNC_xattr),y) ifeq ($(CONFIG_RSYNC_xattr),y)
CONFIGURE_ARGS+= --enable-xattr-support CONFIGURE_ARGS+= --enable-xattr-support
else else
@ -50,6 +55,12 @@ else
CONFIGURE_ARGS+= --disable-acl-support CONFIGURE_ARGS+= --disable-acl-support
endif endif
ifeq ($(CONFIG_RSYNC_zlib),y)
CONFIGURE_ARGS+= --with-included-zlib=no
else
CONFIGURE_ARGS+= --with-included-zlib=yes
endif
define Package/rsyncd define Package/rsyncd
SECTION:=net SECTION:=net
CATEGORY:=Network CATEGORY:=Network
@ -69,12 +80,6 @@ define Package/rsync/description
between two sets of files across the network link. between two sets of files across the network link.
endef endef
CONFIGURE_ARGS += \
--with-included-popt=no \
--with-included-zlib=no \
--disable-debug \
--disable-locale \
define Package/rsync/install define Package/rsync/install
$(INSTALL_DIR) $(1)/usr/bin $(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/

View file

@ -3,6 +3,7 @@
# Next line required for init script # Next line required for init script
pid file = /var/run/rsyncd.pid pid file = /var/run/rsyncd.pid
log file = /var/log/rsyncd.log
use chroot = yes use chroot = yes
uid = nobody uid = nobody
gid = nogroup gid = nogroup