87eab6ed37
Split rsyncd into a separate package Make rsyncd a separate config option so that people who don't want an rsync daemon using up RAM can still select the rsync client. Depends on rsync for the binary, the rsyncd package just consists of the init script and configuration files. Signed-off-by: Russell Senior <seniorr at aracnet.com> git-svn-id: svn://svn.openwrt.org/openwrt/packages@26852 3c298f89-4303-0410-b956-a3cf2f4a3e73
73 lines
1.7 KiB
Makefile
73 lines
1.7 KiB
Makefile
#
|
|
# Copyright (C) 2007-2011 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=rsync
|
|
PKG_VERSION:=3.0.8
|
|
PKG_RELEASE:=2
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=http://rsync.samba.org/ftp/rsync/src
|
|
PKG_MD5SUM:=0ee8346ce16bdfe4c88a236e94c752b4
|
|
|
|
PKG_INSTALL:=1
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/rsync
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
SUBMENU:=File Transfer
|
|
TITLE:=Fast remote file copy program (like rcp)
|
|
DEPENDS:=+libpopt
|
|
URL:=http://rsync.samba.org/
|
|
endef
|
|
|
|
define Package/rsyncd
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
SUBMENU:=File Transfer
|
|
TITLE:=Rsync daemon
|
|
DEPENDS:=+rsync
|
|
endef
|
|
|
|
define Package/rsync/description
|
|
rsync is a program that allows files to be copied to
|
|
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
|
|
|
|
CONFIGURE_ARGS += \
|
|
--with-included-popt=no \
|
|
--disable-debug \
|
|
--disable-locale \
|
|
--disable-xattr-support \
|
|
--disable-acl-support \
|
|
|
|
define Package/rsync/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
|
|
endef
|
|
|
|
define Package/rsyncd/install
|
|
$(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
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,rsync))
|
|
$(eval $(call BuildPackage,rsyncd))
|