2 # Copyright (C) 2007-2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://rsync.samba.org
/ftp
/rsync
/src
16 PKG_MD5SUM
:=43bd6676f0b404326eee2d63be3cdcfe
18 PKG_LICENSE_FILES
:=COPYING
19 PKG_MAINTAINER
:=Maxim Storchak
<m.storchak@gmail.com
>
25 include $(INCLUDE_DIR
)/package.mk
30 SUBMENU
:=File Transfer
31 TITLE
:=Fast remote file copy program
(like rcp
)
32 DEPENDS
:=+libpopt
+RSYNC_xattr
:libattr
+RSYNC_acl
:libacl
+RSYNC_zlib
:zlib
33 URL
:=http
://rsync.samba.org
/
37 define Package
/rsync
/config
38 source
"$(SOURCE)/Config.in"
42 --with-included-popt
=no \
46 ifeq ($(CONFIG_RSYNC_xattr
),y
)
47 CONFIGURE_ARGS
+= --enable-xattr-support
49 CONFIGURE_ARGS
+= --disable-xattr-support
52 ifeq ($(CONFIG_RSYNC_acl
),y
)
53 CONFIGURE_ARGS
+= --enable-acl-support
55 CONFIGURE_ARGS
+= --disable-acl-support
58 ifeq ($(CONFIG_RSYNC_zlib
),y
)
59 CONFIGURE_ARGS
+= --with-included-zlib
=no
61 CONFIGURE_ARGS
+= --with-included-zlib
=yes
67 SUBMENU
:=File Transfer
70 URL
:=http
://rsync.samba.org
/
73 define Package
/rsync
/description
74 rsync is a program that allows files to be copied to and from remote machines
75 in much the same way
as rcp. It has many more options than rcp
, and uses the
76 rsync remote-update protocol to greatly speed up file transfers when the
77 destination file already exists.
79 The rsync remote-update protocol allows rsync to transfer just the differences
80 between two sets of files across the network link.
83 define Package
/rsync
/install
84 $(INSTALL_DIR
) $(1)/usr
/bin
85 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/$(PKG_NAME
) $(1)/usr
/bin
/
88 define Package
/rsyncd
/description
89 rsyncd is a configuration file and initscript to utilize rsync
as a daemon. It
90 uses the same binary
as rsync.
93 define Package
/rsyncd
/conffiles
97 define Package
/rsyncd
/install
98 $(INSTALL_DIR
) $(1)/etc
99 $(INSTALL_DATA
) .
/files
/rsyncd.conf
$(1)/etc
/
100 $(INSTALL_DIR
) $(1)/etc
/init.d
101 $(INSTALL_BIN
) .
/files
/rsyncd.init
$(1)/etc
/init.d
/rsyncd
104 $(eval
$(call BuildPackage
,rsync
))
105 $(eval
$(call BuildPackage
,rsyncd
))