[Packages] net/rsync: Fix compilation
[openwrt/svn-archive/archive.git] / utils / rsync / Makefile
1 #
2 # Copyright (C) 2006 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.5
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://rsync.samba.org/ftp/rsync/
17 PKG_MD5SUM:=3691cdf1540d0649ba679edce6bae8fc
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/rsync
25 SECTION:=utils
26 CATEGORY:=Utilities
27 DEPENDS:=+libpopt
28 TITLE:=A fast incremental file transfer utility
29 URL:=http://rsync.samba.org/
30 endef
31
32 define Build/Configure
33 $(call Build/Configure/Default, \
34 --with-included-popt=no \
35 --disable-debug \
36 --disable-ipv6 \
37 --disable-locale \
38 )
39 endef
40
41 define Build/Compile
42 $(MAKE) -C $(PKG_BUILD_DIR) \
43 DESTDIR="$(PKG_INSTALL_DIR)" \
44 all install
45 endef
46
47 define Package/rsync/install
48 $(INSTALL_DIR) $(1)/usr/bin
49 $(CP) $(PKG_INSTALL_DIR)/usr/bin/rsync $(1)/usr/bin/
50 endef
51
52 $(eval $(call BuildPackage,rsync))