packages/rsync: update to 3.0.9
[packages.git] / net / rsync / Makefile
1 #
2 # Copyright (C) 2007-2011 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.0.9
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:=5ee72266fe2c1822333c407e1761b92b
17
18 PKG_INSTALL:=1
19 PKG_BUILD_PARALLEL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/rsync
24   SECTION:=net
25   CATEGORY:=Network
26   SUBMENU:=File Transfer
27   TITLE:=Fast remote file copy program (like rcp)
28   DEPENDS:=+libpopt
29   URL:=http://rsync.samba.org/
30 endef
31
32 define Package/rsyncd
33   SECTION:=net
34   CATEGORY:=Network
35   SUBMENU:=File Transfer
36   TITLE:=Rsync daemon
37   DEPENDS:=+rsync
38 endef
39
40 define Package/rsync/description
41         rsync is a program that allows files to be copied to
42         and from remote machines in much the same way as rcp.
43         It has many more options than rcp, and uses the rsync
44         remote-update protocol to greatly speed up file
45         transfers when the destination file already exists.
46
47         The rsync remote-update protocol allows rsync to
48         transfer just the differences between two sets of files
49         across the network link.
50 endef
51
52 CONFIGURE_ARGS += \
53         --with-included-popt=no \
54         --disable-debug \
55         --disable-locale \
56         --disable-xattr-support \
57         --disable-acl-support \
58
59 define Package/rsync/install
60         $(INSTALL_DIR) $(1)/usr/bin
61         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
62 endef
63
64 define Package/rsyncd/description
65         rsyncd is a configuration file and initscript to
66         utilize rsync as a daemon. It uses the same binary
67         as rsync.
68 endef
69
70 define Package/rsyncd/conffiles
71 /etc/rsyncd.conf
72 endef
73
74 define Package/rsyncd/install
75         $(INSTALL_DIR) $(1)/etc
76         $(INSTALL_DATA) ./files/rsyncd.conf $(1)/etc/
77         $(INSTALL_DIR) $(1)/etc/init.d
78         $(INSTALL_BIN) ./files/rsyncd.init $(1)/etc/init.d/rsyncd
79 endef
80
81 $(eval $(call BuildPackage,rsync))
82 $(eval $(call BuildPackage,rsyncd))