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
:=https
://download.samba.org
/pub
/rsync
/src
16 PKG_HASH
:=644bd3841779507665211fd7db8359c8a10670c57e305b4aab61b4e40037afa8
18 PKG_MAINTAINER
:=Maxim Storchak
<m.storchak@gmail.com
>
19 PKG_LICENSE
:=GPL-3.0
-or-later
20 PKG_LICENSE_FILES
:=COPYING
21 PKG_CPE_ID
:=cpe
:/a
:rsync
:rsync
26 include $(INCLUDE_DIR
)/package.mk
31 SUBMENU
:=File Transfer
32 TITLE
:=Fast remote file copy program
(like rcp
)
33 DEPENDS
:=+libpopt
+RSYNC_xattr
:libattr
+RSYNC_acl
:libacl
+RSYNC_zlib
:zlib
34 URL
:=https
://rsync.samba.org
/
38 define Package
/rsync
/config
39 source
"$(SOURCE)/Config.in"
42 TARGET_CFLAGS
+= $(if
$(CONFIG_IPV6
),-DINET6
,)
45 --without-included-popt \
49 --disable-iconv-open \
57 --$(if
$(CONFIG_RSYNC_xattr
),en
,dis
)able-xattr-support \
58 --$(if
$(CONFIG_RSYNC_acl
),en
,dis
)able-acl-support \
59 --with
$(if
$(CONFIG_RSYNC_zlib
),,out
)-included-zlib \
60 $(if
$(CONFIG_IPV6
),,--disable-ipv6
)
65 SUBMENU
:=File Transfer
68 URL
:=https
://rsync.samba.org
/
71 define Package
/rsync
/description
72 rsync is a program that allows files to be copied to and from remote machines
73 in much the same way
as rcp. It has many more options than rcp
, and uses the
74 rsync remote-update protocol to greatly speed up file transfers when the
75 destination file already exists.
77 The rsync remote-update protocol allows rsync to transfer just the differences
78 between two sets of files across the network link.
81 define Package
/rsync
/install
82 $(INSTALL_DIR
) $(1)/usr
/bin
83 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/$(PKG_NAME
) $(1)/usr
/bin
/
86 define Package
/rsyncd
/description
87 rsyncd is a configuration file and initscript to utilize rsync
as a daemon. It
88 uses the same binary
as rsync.
91 define Package
/rsyncd
/conffiles
95 define Package
/rsyncd
/install
96 $(INSTALL_DIR
) $(1)/etc
97 $(INSTALL_DATA
) .
/files
/rsyncd.conf
$(1)/etc
/
98 $(INSTALL_DIR
) $(1)/etc
/init.d
99 $(INSTALL_BIN
) .
/files
/rsyncd.init
$(1)/etc
/init.d
/rsyncd
102 $(eval
$(call BuildPackage
,rsync
))
103 $(eval
$(call BuildPackage
,rsyncd
))