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.

105 lines
2.5 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.1.1
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://rsync.samba.org/ftp/rsync/src
  13. PKG_MD5SUM:=43bd6676f0b404326eee2d63be3cdcfe
  14. PKG_LICENSE:=GPL-3.0
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_MAINTAINER:=Maxim Storchak <m.storchak@gmail.com>
  17. PKG_LICENSE:=GPL-3.0
  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 +RSYNC_xattr:libattr +RSYNC_acl:libacl +RSYNC_zlib:zlib
  27. URL:=http://rsync.samba.org/
  28. MENU:=1
  29. endef
  30. define Package/rsync/config
  31. source "$(SOURCE)/Config.in"
  32. endef
  33. CONFIGURE_ARGS += \
  34. --with-included-popt=no \
  35. --disable-debug \
  36. --disable-locale \
  37. ifeq ($(CONFIG_RSYNC_xattr),y)
  38. CONFIGURE_ARGS+= --enable-xattr-support
  39. else
  40. CONFIGURE_ARGS+= --disable-xattr-support
  41. endif
  42. ifeq ($(CONFIG_RSYNC_acl),y)
  43. CONFIGURE_ARGS+= --enable-acl-support
  44. else
  45. CONFIGURE_ARGS+= --disable-acl-support
  46. endif
  47. ifeq ($(CONFIG_RSYNC_zlib),y)
  48. CONFIGURE_ARGS+= --with-included-zlib=no
  49. else
  50. CONFIGURE_ARGS+= --with-included-zlib=yes
  51. endif
  52. define Package/rsyncd
  53. SECTION:=net
  54. CATEGORY:=Network
  55. SUBMENU:=File Transfer
  56. TITLE:=Rsync daemon
  57. DEPENDS:=+rsync
  58. URL:=http://rsync.samba.org/
  59. endef
  60. define Package/rsync/description
  61. rsync is a program that allows files to be copied to and from remote machines
  62. in much the same way as rcp. It has many more options than rcp, and uses the
  63. rsync remote-update protocol to greatly speed up file transfers when the
  64. destination file already exists.
  65. The rsync remote-update protocol allows rsync to transfer just the differences
  66. between two sets of files across the network link.
  67. endef
  68. define Package/rsync/install
  69. $(INSTALL_DIR) $(1)/usr/bin
  70. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
  71. endef
  72. define Package/rsyncd/description
  73. rsyncd is a configuration file and initscript to utilize rsync as a daemon. It
  74. uses the same binary as rsync.
  75. endef
  76. define Package/rsyncd/conffiles
  77. /etc/rsyncd.conf
  78. endef
  79. define Package/rsyncd/install
  80. $(INSTALL_DIR) $(1)/etc
  81. $(INSTALL_DATA) ./files/rsyncd.conf $(1)/etc/
  82. $(INSTALL_DIR) $(1)/etc/init.d
  83. $(INSTALL_BIN) ./files/rsyncd.init $(1)/etc/init.d/rsyncd
  84. endef
  85. $(eval $(call BuildPackage,rsync))
  86. $(eval $(call BuildPackage,rsyncd))