[packages] rsync: Add initscript for rsync daemon
[openwrt/svn-archive/archive.git] / net / rsync / Makefile
1 #
2 # Copyright (C) 2007-2010 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.8
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://rsync.samba.org/ftp/rsync/src
16 PKG_MD5SUM:=0ee8346ce16bdfe4c88a236e94c752b4
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/rsync/description
33 rsync is a program that allows files to be copied to
34 and from remote machines in much the same way as rcp.
35 It has many more options than rcp, and uses the rsync
36 remote-update protocol to greatly speed up file
37 transfers when the destination file already exists.
38
39 The rsync remote-update protocol allows rsync to
40 transfer just the differences between two sets of files
41 across the network link.
42 endef
43
44 CONFIGURE_ARGS += \
45 --with-included-popt=no \
46 --disable-debug \
47 --disable-locale \
48 --disable-xattr-support \
49 --disable-acl-support \
50
51 define Package/rsync/install
52 $(INSTALL_DIR) $(1)/etc
53 $(INSTALL_DATA) ./files/rsyncd.conf $(1)/etc/
54 $(INSTALL_DIR) $(1)/etc/init.d
55 $(INSTALL_BIN) ./files/rsyncd.init $(1)/etc/init.d/rsyncd
56 $(INSTALL_DIR) $(1)/usr/bin
57 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
58 endef
59
60 $(eval $(call BuildPackage,rsync))