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.

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