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
17 PKG_MAINTAINER
:=Maxim Storchak
<m.storchak@gmail.com
>
19 PKG_LICENSE_FILES
:=COPYING
24 include $(INCLUDE_DIR
)/package.mk
29 SUBMENU
:=File Transfer
30 TITLE
:=Fast remote file copy program
(like rcp
)
31 DEPENDS
:=+libpopt
+RSYNC_xattr
:libattr
+RSYNC_acl
:libacl
+RSYNC_zlib
:zlib
32 URL
:=http
://rsync.samba.org
/
36 define Package
/rsync
/config
37 source
"$(SOURCE)/Config.in"
41 --with-included-popt
=no \
45 ifeq ($(CONFIG_RSYNC_xattr
),y
)
46 CONFIGURE_ARGS
+= --enable-xattr-support
48 CONFIGURE_ARGS
+= --disable-xattr-support
51 ifeq ($(CONFIG_RSYNC_acl
),y
)
52 CONFIGURE_ARGS
+= --enable-acl-support
54 CONFIGURE_ARGS
+= --disable-acl-support
57 ifeq ($(CONFIG_RSYNC_zlib
),y
)
58 CONFIGURE_ARGS
+= --with-included-zlib
=no
60 CONFIGURE_ARGS
+= --with-included-zlib
=yes
66 SUBMENU
:=File Transfer
69 URL
:=http
://rsync.samba.org
/
72 define Package
/rsync
/description
73 rsync is a program that allows files to be copied to and from remote machines
74 in much the same way
as rcp. It has many more options than rcp
, and uses the
75 rsync remote-update protocol to greatly speed up file transfers when the
76 destination file already exists.
78 The rsync remote-update protocol allows rsync to transfer just the differences
79 between two sets of files across the network link.
82 define Package
/rsync
/install
83 $(INSTALL_DIR
) $(1)/usr
/bin
84 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/$(PKG_NAME
) $(1)/usr
/bin
/
87 define Package
/rsyncd
/description
88 rsyncd is a configuration file and initscript to utilize rsync
as a daemon. It
89 uses the same binary
as rsync.
92 define Package
/rsyncd
/conffiles
96 define Package
/rsyncd
/install
97 $(INSTALL_DIR
) $(1)/etc
98 $(INSTALL_DATA
) .
/files
/rsyncd.conf
$(1)/etc
/
99 $(INSTALL_DIR
) $(1)/etc
/init.d
100 $(INSTALL_BIN
) .
/files
/rsyncd.init
$(1)/etc
/init.d
/rsyncd
103 $(eval
$(call BuildPackage
,rsync
))
104 $(eval
$(call BuildPackage
,rsyncd
))