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.

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