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.

97 lines
2.3 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_MAINTAINER:=Maxim Storchak <m.storchak@gmail.com>
  15. PKG_INSTALL:=1
  16. PKG_BUILD_PARALLEL:=1
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/rsync
  19. SECTION:=net
  20. CATEGORY:=Network
  21. SUBMENU:=File Transfer
  22. TITLE:=Fast remote file copy program (like rcp)
  23. DEPENDS:=+libpopt +zlib +RSYNC_xattr:libattr +RSYNC_acl:libacl
  24. URL:=http://rsync.samba.org/
  25. MENU:=1
  26. endef
  27. define Package/rsync/config
  28. source "$(SOURCE)/Config.in"
  29. endef
  30. ifeq ($(CONFIG_RSYNC_xattr),y)
  31. CONFIGURE_ARGS+= --enable-xattr-support
  32. else
  33. CONFIGURE_ARGS+= --disable-xattr-support
  34. endif
  35. ifeq ($(CONFIG_RSYNC_acl),y)
  36. CONFIGURE_ARGS+= --enable-acl-support
  37. else
  38. CONFIGURE_ARGS+= --disable-acl-support
  39. endif
  40. define Package/rsyncd
  41. SECTION:=net
  42. CATEGORY:=Network
  43. SUBMENU:=File Transfer
  44. TITLE:=Rsync daemon
  45. DEPENDS:=+rsync
  46. URL:=http://rsync.samba.org/
  47. endef
  48. define Package/rsync/description
  49. rsync is a program that allows files to be copied to and from remote machines
  50. in much the same way as rcp. It has many more options than rcp, and uses the
  51. rsync remote-update protocol to greatly speed up file transfers when the
  52. destination file already exists.
  53. The rsync remote-update protocol allows rsync to transfer just the differences
  54. between two sets of files across the network link.
  55. endef
  56. CONFIGURE_ARGS += \
  57. --with-included-popt=no \
  58. --with-included-zlib=no \
  59. --disable-debug \
  60. --disable-locale \
  61. define Package/rsync/install
  62. $(INSTALL_DIR) $(1)/usr/bin
  63. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
  64. endef
  65. define Package/rsyncd/description
  66. rsyncd is a configuration file and initscript to utilize rsync as a daemon. It
  67. uses the same binary as rsync.
  68. endef
  69. define Package/rsyncd/conffiles
  70. /etc/rsyncd.conf
  71. endef
  72. define Package/rsyncd/install
  73. $(INSTALL_DIR) $(1)/etc
  74. $(INSTALL_DATA) ./files/rsyncd.conf $(1)/etc/
  75. $(INSTALL_DIR) $(1)/etc/init.d
  76. $(INSTALL_BIN) ./files/rsyncd.init $(1)/etc/init.d/rsyncd
  77. endef
  78. $(eval $(call BuildPackage,rsync))
  79. $(eval $(call BuildPackage,rsyncd))