rsync: moved to github
[openwrt.org/packages.git] / net / Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#
# Copyright (C) 2007-2014 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.1.0
PKG_RELEASE:=2
 
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://rsync.samba.org/ftp/rsync/src
PKG_MD5SUM:=3be148772a33224771a8d4d2a028b132
 
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 +zlib
  URL:=http://rsync.samba.org/
endef
 
define Package/rsyncd
  SECTION:=net
  CATEGORY:=Network
  SUBMENU:=File Transfer
  TITLE:=Rsync daemon
  DEPENDS:=+rsync
  URL:=http://rsync.samba.org/
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 \
        --with-included-zlib=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/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
 
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))
 
comments