[Packages] net/rsync: Fix compilation
[openwrt/svn-archive/archive.git] / net / rsync / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8 #
9
10 include $(TOPDIR)/rules.mk
11
12 PKG_NAME:=rsync
13 PKG_VERSION:=2.6.9
14 PKG_RELEASE:=1
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=http://rsync.samba.org/ftp/rsync
18 PKG_MD5SUM:=996d8d8831dbca17910094e56dcb5942
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/rsync
23 SECTION:=net
24 CATEGORY:=Network
25 TITLE:=Fast remote file copy program (like rcp)
26 URL:=http://rsync.samba.org/
27 endef
28
29 define Package/rsync/description
30 sync is a program that allows files to be copied to
31 and from remote machines in much the same way as rcp.
32 It has many more options than rcp, and uses the rsync
33 remote-update protocol to greatly speed up file
34 transfers when the destination file already exists.
35
36 The rsync remote-update protocol allows rsync to
37 transfer just the differences between two sets of files
38 across the network link.
39 endef
40
41 MAKE_FLAGS += \
42 PREFIX="/usr" \
43
44 define Package/rsync/install
45 $(INSTALL_DIR) $(1)/usr/bin
46 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin/
47 endef
48
49 $(eval $(call BuildPackage,rsync))