Merge pull request #12742 from datafl4sh/datafl4sh/add_gnuplot_package
[feed/packages.git] / net / rsync / Makefile
1 #
2 # Copyright (C) 2007-2014 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=rsync
11 PKG_VERSION:=3.2.2
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://download.samba.org/pub/rsync/src
16 PKG_HASH:=644bd3841779507665211fd7db8359c8a10670c57e305b4aab61b4e40037afa8
17
18 PKG_MAINTAINER:=Maxim Storchak <m.storchak@gmail.com>
19 PKG_LICENSE:=GPL-3.0-or-later
20 PKG_LICENSE_FILES:=COPYING
21 PKG_CPE_ID:=cpe:/a:rsync:rsync
22
23 PKG_INSTALL:=1
24 PKG_BUILD_PARALLEL:=1
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/rsync
29 SECTION:=net
30 CATEGORY:=Network
31 SUBMENU:=File Transfer
32 TITLE:=Fast remote file copy program (like rcp)
33 DEPENDS:=+libpopt +RSYNC_xattr:libattr +RSYNC_acl:libacl +RSYNC_zlib:zlib
34 URL:=https://rsync.samba.org/
35 MENU:=1
36 endef
37
38 define Package/rsync/config
39 source "$(SOURCE)/Config.in"
40 endef
41
42 TARGET_CFLAGS += $(if $(CONFIG_IPV6),-DINET6,)
43
44 CONFIGURE_ARGS += \
45 --without-included-popt \
46 --disable-debug \
47 --disable-asm \
48 --disable-iconv \
49 --disable-iconv-open \
50 --disable-lz4 \
51 --disable-locale \
52 --disable-md2man \
53 --disable-openssl \
54 --disable-simd \
55 --disable-xxhash \
56 --disable-zstd \
57 --$(if $(CONFIG_RSYNC_xattr),en,dis)able-xattr-support \
58 --$(if $(CONFIG_RSYNC_acl),en,dis)able-acl-support \
59 --with$(if $(CONFIG_RSYNC_zlib),,out)-included-zlib \
60 $(if $(CONFIG_IPV6),,--disable-ipv6)
61
62 define Package/rsyncd
63 SECTION:=net
64 CATEGORY:=Network
65 SUBMENU:=File Transfer
66 TITLE:=Rsync daemon
67 DEPENDS:=+rsync
68 URL:=https://rsync.samba.org/
69 endef
70
71 define Package/rsync/description
72 rsync is a program that allows files to be copied to and from remote machines
73 in much the same way as rcp. It has many more options than rcp, and uses the
74 rsync remote-update protocol to greatly speed up file transfers when the
75 destination file already exists.
76
77 The rsync remote-update protocol allows rsync to transfer just the differences
78 between two sets of files across the network link.
79 endef
80
81 define Package/rsync/install
82 $(INSTALL_DIR) $(1)/usr/bin
83 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
84 endef
85
86 define Package/rsyncd/description
87 rsyncd is a configuration file and initscript to utilize rsync as a daemon. It
88 uses the same binary as rsync.
89 endef
90
91 define Package/rsyncd/conffiles
92 /etc/rsyncd.conf
93 endef
94
95 define Package/rsyncd/install
96 $(INSTALL_DIR) $(1)/etc
97 $(INSTALL_DATA) ./files/rsyncd.conf $(1)/etc/
98 $(INSTALL_DIR) $(1)/etc/init.d
99 $(INSTALL_BIN) ./files/rsyncd.init $(1)/etc/init.d/rsyncd
100 endef
101
102 $(eval $(call BuildPackage,rsync))
103 $(eval $(call BuildPackage,rsyncd))