packages: add rsync package
[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 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=rsync
12 PKG_VERSION:=2.6.9
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://rsync.samba.org/ftp/rsync
16 PKG_MD5SUM:=996d8d8831dbca17910094e56dcb5942
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/rsync
21 SECTION:=net
22 CATEGORY:=Network
23 TITLE:=fast incremental file transfer
24 URL:=http://rsync.samba.org/
25 endef
26
27 define Build/Compile
28 $(call Build/Compile/Default, \
29 PREFIX="/usr" \
30 )
31 endef
32
33 define Package/rsync/install
34 $(MAKE) -C $(PKG_BUILD_DIR) \
35 DESTDIR="$(1)" \
36 PREFIX="/usr" \
37 install-strip
38 rm -rf $(1)/usr/man
39 endef
40
41 $(eval $(call BuildPackage,rsync))