2007-11-30 09:41:18 +00:00
|
|
|
#
|
2011-04-12 23:18:43 +00:00
|
|
|
# Copyright (C) 2007-2011 OpenWrt.org
|
2007-11-30 09:41:18 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2007-12-08 00:03:39 +00:00
|
|
|
|
2007-11-30 09:41:18 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=rsync
|
2011-12-14 10:16:37 +00:00
|
|
|
PKG_VERSION:=3.0.9
|
|
|
|
PKG_RELEASE:=1
|
2007-11-30 09:41:18 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2010-01-15 23:04:06 +00:00
|
|
|
PKG_SOURCE_URL:=http://rsync.samba.org/ftp/rsync/src
|
2011-12-14 10:16:37 +00:00
|
|
|
PKG_MD5SUM:=5ee72266fe2c1822333c407e1761b92b
|
2010-01-15 23:04:06 +00:00
|
|
|
|
|
|
|
PKG_INSTALL:=1
|
2010-09-07 10:04:42 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2007-11-30 09:41:18 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/rsync
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2011-03-12 05:50:28 +00:00
|
|
|
SUBMENU:=File Transfer
|
2007-12-08 00:03:39 +00:00
|
|
|
TITLE:=Fast remote file copy program (like rcp)
|
2007-12-08 11:21:14 +00:00
|
|
|
DEPENDS:=+libpopt
|
2007-11-30 09:41:18 +00:00
|
|
|
URL:=http://rsync.samba.org/
|
|
|
|
endef
|
|
|
|
|
2011-05-08 11:05:21 +00:00
|
|
|
define Package/rsyncd
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
SUBMENU:=File Transfer
|
|
|
|
TITLE:=Rsync daemon
|
|
|
|
DEPENDS:=+rsync
|
|
|
|
endef
|
|
|
|
|
2007-12-08 00:03:39 +00:00
|
|
|
define Package/rsync/description
|
2009-08-08 14:05:16 +00:00
|
|
|
rsync is a program that allows files to be copied to
|
2007-12-08 00:03:39 +00:00
|
|
|
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.
|
2008-04-22 23:32:32 +00:00
|
|
|
|
2007-12-08 00:03:39 +00:00
|
|
|
The rsync remote-update protocol allows rsync to
|
2008-04-22 23:32:32 +00:00
|
|
|
transfer just the differences between two sets of files
|
|
|
|
across the network link.
|
2007-11-30 09:41:18 +00:00
|
|
|
endef
|
|
|
|
|
2007-12-08 11:21:14 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--with-included-popt=no \
|
|
|
|
--disable-debug \
|
|
|
|
--disable-locale \
|
2008-04-22 23:32:32 +00:00
|
|
|
--disable-xattr-support \
|
|
|
|
--disable-acl-support \
|
2007-12-08 00:03:39 +00:00
|
|
|
|
2007-11-30 09:41:18 +00:00
|
|
|
define Package/rsync/install
|
2011-05-08 11:05:21 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
2011-06-19 22:52:19 +00:00
|
|
|
define Package/rsyncd/description
|
|
|
|
rsyncd is a configuration file and initscript to
|
|
|
|
utilize rsync as a daemon. It uses the same binary
|
|
|
|
as rsync.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/rsyncd/conffiles
|
|
|
|
/etc/rsyncd.conf
|
|
|
|
endef
|
|
|
|
|
2011-05-08 11:05:21 +00:00
|
|
|
define Package/rsyncd/install
|
2011-04-12 23:18:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc
|
|
|
|
$(INSTALL_DATA) ./files/rsyncd.conf $(1)/etc/
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/rsyncd.init $(1)/etc/init.d/rsyncd
|
2007-11-30 09:41:18 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,rsync))
|
2011-05-08 11:05:21 +00:00
|
|
|
$(eval $(call BuildPackage,rsyncd))
|