You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

103 lines
2.6 KiB

  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=rsync
  9. PKG_VERSION:=3.2.3
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://download.samba.org/pub/rsync/src
  13. PKG_HASH:=becc3c504ceea499f4167a260040ccf4d9f2ef9499ad5683c179a697146ce50e
  14. PKG_MAINTAINER:=Maxim Storchak <m.storchak@gmail.com>
  15. PKG_LICENSE:=GPL-3.0-or-later
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_CPE_ID:=cpe:/a:rsync:rsync
  18. PKG_INSTALL:=1
  19. PKG_BUILD_PARALLEL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/rsync
  22. SECTION:=net
  23. CATEGORY:=Network
  24. SUBMENU:=File Transfer
  25. TITLE:=Fast remote file copy program (like rcp)
  26. DEPENDS:=+libpopt +zlib +RSYNC_xattr:libattr +RSYNC_acl:libacl +RSYNC_zstd:libzstd
  27. URL:=https://rsync.samba.org/
  28. MENU:=1
  29. endef
  30. define Package/rsync/config
  31. source "$(SOURCE)/Config.in"
  32. endef
  33. TARGET_CFLAGS += $(if $(CONFIG_IPV6),-DINET6,)
  34. CONFIGURE_ARGS += \
  35. --without-included-popt \
  36. --without-included-zlib \
  37. --disable-debug \
  38. --disable-asm \
  39. --disable-iconv \
  40. --disable-iconv-open \
  41. --disable-lz4 \
  42. --disable-locale \
  43. --disable-md2man \
  44. --disable-openssl \
  45. --disable-simd \
  46. --disable-xxhash \
  47. --$(if $(CONFIG_RSYNC_zstd),en,dis)able-zstd \
  48. --$(if $(CONFIG_RSYNC_xattr),en,dis)able-xattr-support \
  49. --$(if $(CONFIG_RSYNC_acl),en,dis)able-acl-support \
  50. $(if $(CONFIG_IPV6),,--disable-ipv6)
  51. define Package/rsyncd
  52. SECTION:=net
  53. CATEGORY:=Network
  54. SUBMENU:=File Transfer
  55. TITLE:=Rsync daemon
  56. DEPENDS:=+rsync
  57. URL:=https://rsync.samba.org/
  58. endef
  59. define Package/rsync/description
  60. rsync is a program that allows files to be copied to and from remote machines
  61. in much the same way as rcp. It has many more options than rcp, and uses the
  62. rsync remote-update protocol to greatly speed up file transfers when the
  63. destination file already exists.
  64. The rsync remote-update protocol allows rsync to transfer just the differences
  65. between two sets of files across the network link.
  66. endef
  67. define Package/rsync/install
  68. $(INSTALL_DIR) $(1)/usr/bin
  69. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
  70. endef
  71. define Package/rsyncd/description
  72. rsyncd is a configuration file and initscript to utilize rsync as a daemon. It
  73. uses the same binary as rsync.
  74. endef
  75. define Package/rsyncd/conffiles
  76. /etc/rsyncd.conf
  77. endef
  78. define Package/rsyncd/install
  79. $(INSTALL_DIR) $(1)/etc
  80. $(INSTALL_DATA) ./files/rsyncd.conf $(1)/etc/
  81. $(INSTALL_DIR) $(1)/etc/init.d
  82. $(INSTALL_BIN) ./files/rsyncd.init $(1)/etc/init.d/rsyncd
  83. endef
  84. $(eval $(call BuildPackage,rsync))
  85. $(eval $(call BuildPackage,rsyncd))