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.

124 lines
3.5 KiB

  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=subversion
  7. PKG_VERSION:=1.14.0
  8. PKG_RELEASE:=2
  9. PKG_SOURCE_URL:=@APACHE/subversion
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  11. PKG_HASH:=6ba8e218f9f97a83a799e58a3c6da1221d034b18d9d8cbbcb6ec52ab11722102
  12. PKG_MAINTAINER:=Val Kulkov <val.kulkov@gmail.com>
  13. PKG_LICENSE:=Apache-2.0
  14. PKG_LICENSE_FILES:=LICENSE
  15. PKG_CPE_ID:=cpe:/a:apache:subversion
  16. PKG_FIXUP:=autoreconf
  17. PKG_MACRO_PATHS:=build/ac-macros
  18. PKG_BUILD_PARALLEL:=1
  19. PKG_INSTALL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. include $(INCLUDE_DIR)/nls.mk
  22. define Package/subversion/Default
  23. SECTION:=net
  24. CATEGORY:=Network
  25. SUBMENU:=Version Control Systems
  26. TITLE:=A compelling replacement for CVS
  27. DEPENDS:=+PACKAGE_unixodbc:unixodbc +libaprutil +libmagic +libsqlite3 $(ICONV_DEPENDS) $(INTL_DEPENDS)
  28. URL:=https://subversion.apache.org/
  29. endef
  30. define Package/subversion/Default/description
  31. Subversion is a free/open-source version control system. That is,
  32. Subversion manages files and directories, and the changes made to them,
  33. over time. This allows you to recover older versions of your data, or
  34. examine the history of how your data changed. In this regard, many
  35. people think of a version control system as a sort of time machine.
  36. endef
  37. define Package/subversion-libs
  38. $(call Package/subversion/Default)
  39. TITLE:=subversion libs
  40. endef
  41. define Package/subversion-libs/description
  42. $(call Package/subversion/Default/description)
  43. This package contains the Subversion libraries.
  44. endef
  45. define Package/subversion-client
  46. $(call Package/subversion/Default)
  47. DEPENDS:=+subversion-libs
  48. TITLE:=subversion client tools
  49. endef
  50. define Package/subversion-client/description
  51. $(call Package/subversion/Default/description)
  52. This package contains the Subversion client tools.
  53. endef
  54. define Package/subversion-server
  55. $(call Package/subversion/Default)
  56. DEPENDS:=+subversion-libs
  57. TITLE:=subversion server
  58. endef
  59. define Package/subversion-server/description
  60. $(call Package/subversion/Default/description)
  61. This package contains the Subversion server.
  62. endef
  63. define Package/subversion-server/conffiles
  64. /etc/config/subversion
  65. endef
  66. CONFIGURE_ARGS += \
  67. --disable-mod-activation \
  68. --without-ruby-sitedir \
  69. --without-swig \
  70. --without-jikes \
  71. --without-junit \
  72. --without-berkeley-db \
  73. --without-apxs \
  74. --without-sasl \
  75. --with-lz4=internal \
  76. --with-utf8proc=internal \
  77. $(call autoconf_bool,INTL_FULL,nls)
  78. TARGET_LDFLAGS += $(if $(INTL_FULL),-lintl)
  79. define Package/subversion-libs/install
  80. $(INSTALL_DIR) $(1)/usr/lib
  81. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsvn_*.so.* $(1)/usr/lib/
  82. endef
  83. define Package/subversion-client/install
  84. $(INSTALL_DIR) $(1)/usr/bin
  85. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{svn,svnversion,svnsync} $(1)/usr/bin/
  86. endef
  87. define Package/subversion-server/install
  88. $(INSTALL_DIR) $(1)/usr/bin
  89. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/svn{look,admin,dumpfilter,serve} $(1)/usr/bin/
  90. $(INSTALL_DIR) $(1)/etc/config
  91. $(INSTALL_CONF) ./files/subversion.config $(1)/etc/config/subversion
  92. $(INSTALL_DIR) $(1)/etc/init.d
  93. $(INSTALL_BIN) ./files/subversion.init $(1)/etc/init.d/subversion
  94. endef
  95. define Package/subversion-server/prerm
  96. #!/bin/sh
  97. ps | grep '\(/svnserve$\| svnserve\)' | grep -cvq grep >/dev/null && /etc/init.d/subversion stop
  98. /etc/init.d/subversion disable
  99. endef
  100. $(eval $(call BuildPackage,subversion-libs))
  101. $(eval $(call BuildPackage,subversion-client))
  102. $(eval $(call BuildPackage,subversion-server))