liburcu: Update to 0.8.6
[feed/packages.git] / net / rsync / Makefile
1 #
2 # Copyright (C) 2007-2014 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=rsync
11 PKG_VERSION:=3.1.1
12 PKG_RELEASE:=1
13
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_LICENSE:=GPL-3.0
18 PKG_LICENSE_FILES:=COPYING
19 PKG_MAINTAINER:=Maxim Storchak <m.storchak@gmail.com>
20 PKG_LICENSE:=GPL-3.0
21
22 PKG_INSTALL:=1
23 PKG_BUILD_PARALLEL:=1
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/rsync
28 SECTION:=net
29 CATEGORY:=Network
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/
34 MENU:=1
35 endef
36
37 define Package/rsync/config
38 source "$(SOURCE)/Config.in"
39 endef
40
41 CONFIGURE_ARGS += \
42 --with-included-popt=no \
43 --disable-debug \
44 --disable-locale \
45
46 ifeq ($(CONFIG_RSYNC_xattr),y)
47 CONFIGURE_ARGS+= --enable-xattr-support
48 else
49 CONFIGURE_ARGS+= --disable-xattr-support
50 endif
51
52 ifeq ($(CONFIG_RSYNC_acl),y)
53 CONFIGURE_ARGS+= --enable-acl-support
54 else
55 CONFIGURE_ARGS+= --disable-acl-support
56 endif
57
58 ifeq ($(CONFIG_RSYNC_zlib),y)
59 CONFIGURE_ARGS+= --with-included-zlib=no
60 else
61 CONFIGURE_ARGS+= --with-included-zlib=yes
62 endif
63
64 define Package/rsyncd
65 SECTION:=net
66 CATEGORY:=Network
67 SUBMENU:=File Transfer
68 TITLE:=Rsync daemon
69 DEPENDS:=+rsync
70 URL:=http://rsync.samba.org/
71 endef
72
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.
78
79 The rsync remote-update protocol allows rsync to transfer just the differences
80 between two sets of files across the network link.
81 endef
82
83 define Package/rsync/install
84 $(INSTALL_DIR) $(1)/usr/bin
85 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
86 endef
87
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.
91 endef
92
93 define Package/rsyncd/conffiles
94 /etc/rsyncd.conf
95 endef
96
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
102 endef
103
104 $(eval $(call BuildPackage,rsync))
105 $(eval $(call BuildPackage,rsyncd))