2014-06-24 13:50:35 +00:00
|
|
|
#
|
|
|
|
# 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
|
2022-10-21 17:36:52 +00:00
|
|
|
PKG_VERSION:=3.2.7
|
treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.
The following temporary change was made to the core:
diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))
COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
all:
FORCE: ;
And this command used to fix affected packages:
for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/download
done
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-21 16:32:27 +00:00
|
|
|
PKG_RELEASE:=1
|
2014-06-24 13:50:35 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2022-08-13 11:18:48 +00:00
|
|
|
PKG_SOURCE_URL:=https://download.samba.org/pub/$(PKG_NAME)/src
|
2022-10-21 17:36:52 +00:00
|
|
|
PKG_HASH:=4e7d9d3f6ed10878c58c5fb724a67dacf4b6aac7340b13e488fb2dc41346f2bb
|
2019-07-04 01:25:50 +00:00
|
|
|
|
2014-06-24 13:53:09 +00:00
|
|
|
PKG_MAINTAINER:=Maxim Storchak <m.storchak@gmail.com>
|
2019-07-04 01:25:50 +00:00
|
|
|
PKG_LICENSE:=GPL-3.0-or-later
|
2014-12-14 10:58:21 +00:00
|
|
|
PKG_LICENSE_FILES:=COPYING
|
2019-09-12 12:13:21 +00:00
|
|
|
PKG_CPE_ID:=cpe:/a:rsync:rsync
|
2014-06-24 13:50:35 +00:00
|
|
|
|
|
|
|
PKG_INSTALL:=1
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2021-01-02 20:15:58 +00:00
|
|
|
include $(INCLUDE_DIR)/nls.mk
|
2014-06-24 13:50:35 +00:00
|
|
|
|
|
|
|
define Package/rsync
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
SUBMENU:=File Transfer
|
|
|
|
TITLE:=Fast remote file copy program (like rcp)
|
2021-01-02 20:15:58 +00:00
|
|
|
DEPENDS:=+libpopt +zlib +RSYNC_xattr:libattr +RSYNC_acl:libacl +RSYNC_zstd:libzstd $(ICONV_DEPENDS)
|
2019-07-04 01:25:50 +00:00
|
|
|
URL:=https://rsync.samba.org/
|
2014-06-27 07:50:05 +00:00
|
|
|
MENU:=1
|
2014-06-24 13:50:35 +00:00
|
|
|
endef
|
|
|
|
|
2014-06-27 07:50:05 +00:00
|
|
|
define Package/rsync/config
|
|
|
|
source "$(SOURCE)/Config.in"
|
|
|
|
endef
|
|
|
|
|
2020-07-06 14:08:48 +00:00
|
|
|
TARGET_CFLAGS += $(if $(CONFIG_IPV6),-DINET6,)
|
|
|
|
|
2014-09-04 00:33:03 +00:00
|
|
|
CONFIGURE_ARGS += \
|
2020-06-25 23:01:34 +00:00
|
|
|
--without-included-popt \
|
2020-07-26 07:01:27 +00:00
|
|
|
--without-included-zlib \
|
2014-09-04 00:33:03 +00:00
|
|
|
--disable-debug \
|
2020-06-25 23:01:34 +00:00
|
|
|
--disable-asm \
|
|
|
|
--disable-lz4 \
|
2014-09-04 00:33:03 +00:00
|
|
|
--disable-locale \
|
2020-06-25 23:01:34 +00:00
|
|
|
--disable-md2man \
|
|
|
|
--disable-openssl \
|
|
|
|
--disable-simd \
|
2022-04-18 20:17:58 +00:00
|
|
|
--disable-roll-simd \
|
2020-06-25 23:01:34 +00:00
|
|
|
--disable-xxhash \
|
2021-01-02 20:15:58 +00:00
|
|
|
--$(if $(CONFIG_BUILD_NLS),en,dis)able-iconv \
|
|
|
|
--$(if $(CONFIG_BUILD_NLS),en,dis)able-iconv-open \
|
2020-08-14 19:22:43 +00:00
|
|
|
--$(if $(CONFIG_RSYNC_zstd),en,dis)able-zstd \
|
2020-06-25 23:01:34 +00:00
|
|
|
--$(if $(CONFIG_RSYNC_xattr),en,dis)able-xattr-support \
|
|
|
|
--$(if $(CONFIG_RSYNC_acl),en,dis)able-acl-support \
|
2020-07-06 14:08:48 +00:00
|
|
|
$(if $(CONFIG_IPV6),,--disable-ipv6)
|
2020-06-28 11:54:18 +00:00
|
|
|
|
2014-06-24 13:50:35 +00:00
|
|
|
define Package/rsyncd
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
SUBMENU:=File Transfer
|
|
|
|
TITLE:=Rsync daemon
|
|
|
|
DEPENDS:=+rsync
|
2019-07-04 01:25:50 +00:00
|
|
|
URL:=https://rsync.samba.org/
|
2014-06-24 13:50:35 +00:00
|
|
|
endef
|
|
|
|
|
2021-05-12 13:28:22 +00:00
|
|
|
define Package/rrsync
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
SUBMENU:=File Transfer
|
|
|
|
TITLE:=Restricted rsync script
|
|
|
|
DEPENDS:=+rsync +perlbase-file +perl @(PACKAGE_openssh-server||PACKAGE_openssh-server-pam)
|
|
|
|
URL:=https://www.samba.org/ftp/unpacked/rsync/support/rrsync
|
|
|
|
endef
|
|
|
|
|
2014-06-24 13:50:35 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2021-05-12 13:28:22 +00:00
|
|
|
define Package/rrsync/description
|
|
|
|
rrsync is a script which wraps around rsync to restrict its permission to a
|
|
|
|
particular subdirectory via ~/.ssh/authorized_keys and/or to read-only
|
|
|
|
or write-only mode
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/rrsync/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/support/rrsync $(1)/usr/bin
|
|
|
|
endef
|
|
|
|
|
2014-06-24 13:50:35 +00:00
|
|
|
$(eval $(call BuildPackage,rsync))
|
|
|
|
$(eval $(call BuildPackage,rsyncd))
|
2021-05-12 13:28:22 +00:00
|
|
|
$(eval $(call BuildPackage,rrsync))
|