noddos: Noddos v0.5.0 with mDNS / DNS-SD support
[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.2
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://download.samba.org/pub/rsync/src
16 PKG_MD5SUM:=0f758d7e000c0f7f7d3792610fad70cb
17 PKG_MAINTAINER:=Maxim Storchak <m.storchak@gmail.com>
18 PKG_LICENSE:=GPL-3.0
19 PKG_LICENSE_FILES:=COPYING
20
21 PKG_INSTALL:=1
22 PKG_BUILD_PARALLEL:=1
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/rsync
27 SECTION:=net
28 CATEGORY:=Network
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/
33 MENU:=1
34 endef
35
36 define Package/rsync/config
37 source "$(SOURCE)/Config.in"
38 endef
39
40 CONFIGURE_ARGS += \
41 --with-included-popt=no \
42 --disable-debug \
43 --disable-locale \
44
45 ifeq ($(CONFIG_RSYNC_xattr),y)
46 CONFIGURE_ARGS+= --enable-xattr-support
47 else
48 CONFIGURE_ARGS+= --disable-xattr-support
49 endif
50
51 ifeq ($(CONFIG_RSYNC_acl),y)
52 CONFIGURE_ARGS+= --enable-acl-support
53 else
54 CONFIGURE_ARGS+= --disable-acl-support
55 endif
56
57 ifeq ($(CONFIG_RSYNC_zlib),y)
58 CONFIGURE_ARGS+= --with-included-zlib=no
59 else
60 CONFIGURE_ARGS+= --with-included-zlib=yes
61 endif
62
63 define Package/rsyncd
64 SECTION:=net
65 CATEGORY:=Network
66 SUBMENU:=File Transfer
67 TITLE:=Rsync daemon
68 DEPENDS:=+rsync
69 URL:=http://rsync.samba.org/
70 endef
71
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.
77
78 The rsync remote-update protocol allows rsync to transfer just the differences
79 between two sets of files across the network link.
80 endef
81
82 define Package/rsync/install
83 $(INSTALL_DIR) $(1)/usr/bin
84 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
85 endef
86
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.
90 endef
91
92 define Package/rsyncd/conffiles
93 /etc/rsyncd.conf
94 endef
95
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
101 endef
102
103 $(eval $(call BuildPackage,rsync))
104 $(eval $(call BuildPackage,rsyncd))