[Packages] net/rsync: Fix compilation
git-svn-id: svn://svn.openwrt.org/openwrt/packages@9671 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@ -6,10 +6,12 @@
|
|||||||
#
|
#
|
||||||
# $Id$
|
# $Id$
|
||||||
#
|
#
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=rsync
|
PKG_NAME:=rsync
|
||||||
PKG_VERSION:=2.6.9
|
PKG_VERSION:=2.6.9
|
||||||
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=http://rsync.samba.org/ftp/rsync
|
PKG_SOURCE_URL:=http://rsync.samba.org/ftp/rsync
|
||||||
@ -20,22 +22,28 @@ include $(INCLUDE_DIR)/package.mk
|
|||||||
define Package/rsync
|
define Package/rsync
|
||||||
SECTION:=net
|
SECTION:=net
|
||||||
CATEGORY:=Network
|
CATEGORY:=Network
|
||||||
TITLE:=fast incremental file transfer
|
TITLE:=Fast remote file copy program (like rcp)
|
||||||
URL:=http://rsync.samba.org/
|
URL:=http://rsync.samba.org/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Compile
|
define Package/rsync/description
|
||||||
$(call Build/Compile/Default, \
|
sync is a program that allows files to be copied to
|
||||||
PREFIX="/usr" \
|
and from remote machines in much the same way as rcp.
|
||||||
)
|
It has many more options than rcp, and uses the rsync
|
||||||
|
remote-update protocol to greatly speed up file
|
||||||
|
transfers when the destination file already exists.
|
||||||
|
|
||||||
|
The rsync remote-update protocol allows rsync to
|
||||||
|
transfer just the differences between two sets of files
|
||||||
|
across the network link.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
MAKE_FLAGS += \
|
||||||
|
PREFIX="/usr" \
|
||||||
|
|
||||||
define Package/rsync/install
|
define Package/rsync/install
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
$(INSTALL_DIR) $(1)/usr/bin
|
||||||
DESTDIR="$(1)" \
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin/
|
||||||
PREFIX="/usr" \
|
|
||||||
install-strip
|
|
||||||
rm -rf $(1)/usr/man
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,rsync))
|
$(eval $(call BuildPackage,rsync))
|
||||||
|
Reference in New Issue
Block a user