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.

110 lines
3.6 KiB

  1. # This is free software, licensed under the GNU General Public License v2.
  2. # See /LICENSE for more information.
  3. include $(TOPDIR)/rules.mk
  4. PKG_NAME:=radicale2
  5. PKG_VERSION:=2.1.11
  6. PKG_RELEASE:=1
  7. PKG_MAINTAINER:=Daniel Dickinson <cshored@thecshore.com>
  8. PKG_LICENSE:=GPL-3.0
  9. PKG_LICENSE_FILES:=COPYING
  10. PKG_CPE_ID:=cpe:/a:radicale:radicale
  11. PYPI_NAME:=Radicale
  12. PKG_HASH:=02273fcc6ae10e0f74aa12652e24d0001eec8dbf467d54ddb4dfcc2af7d7a5db
  13. include ../../lang/python/pypi.mk
  14. include $(INCLUDE_DIR)/package.mk
  15. include ../../lang/python/python3-package.mk
  16. define Package/radicale2/Default
  17. SECTION:=net
  18. CATEGORY:=Network
  19. SUBMENU:=Web Servers/Proxies
  20. URL:=http://radicale.org/
  21. TITLE:=Radicale 2.x CalDAV/CardDAV server
  22. MAINTAINER:=Daniel Dickinson <cshored@thecshore.com>
  23. endef
  24. define Package/radicale2
  25. $(call Package/radicale2/Default)
  26. USERID:=radicale2=225:radicale2=225
  27. DEPENDS:=+python3 +python3-dateutil +python3-vobject +python3-setuptools
  28. CONFLICTS:=radicale
  29. VARIANT:=python3
  30. endef
  31. define Package/radicale2-examples
  32. $(call Package/radicale2/Default)
  33. TITLE:=Radicale v2 example configs
  34. endef
  35. define Package/radicale2-meta/description
  36. The Radicale Project is a CalDAV (calendar) and CardDAV (contact) server. It aims to be a light solution, easy to use, easy to install, easy to configure. As a consequence, it requires few software dependances and is pre-configured to work out-of-the-box.
  37. The Radicale Project runs on most of the UNIX-like platforms (Linux, BSD, MacOS X) and Windows. It is known to work with Evolution, Lightning, iPhone and Android clients. It is free and open-source software, released under GPL version 3.
  38. endef
  39. define Package/radicale2/description
  40. $(call Package/radicale2-meta/description)
  41. This package contains the python files.
  42. Note that md5 encryption of passwords requires passlib, and
  43. bcrypt encryption requires passlib + bcrypt. These are not
  44. added as hard dependencies as users may be running radicale2
  45. with a web server doing the authentication instead of radicale2.
  46. endef
  47. define Package/radicale2-examples/description
  48. $(call Package/radicale2-meta/description)
  49. .
  50. This package contains upstream configs for example purposes.
  51. endef
  52. define Package/radicale2/conffiles
  53. /etc/config/radicale2
  54. /etc/radicale2/config
  55. /etc/radicale2/users
  56. /etc/radicale2/rights
  57. /etc/radicale2/logging
  58. endef
  59. define Package/radicale2/preinst
  60. #!/bin/sh
  61. [ -n "$${IPKG_INSTROOT}" ] && exit 0 # if run within buildroot exit
  62. # stop service if PKG_UPGRADE
  63. [ "$${PKG_UPGRADE}" = "1" ] && /etc/init.d/radicale2 stop >/dev/null 2>&1
  64. exit 0 # suppress errors from stop command
  65. endef
  66. define Py3Package/radicale2/filespec
  67. +|$(PYTHON3_PKG_DIR)
  68. +|/usr/bin/radicale2|0755
  69. endef
  70. define Py3Package/radicale2/install
  71. $(INSTALL_DIR) $(1)/usr/bin
  72. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/radicale $(PKG_INSTALL_DIR)/usr/bin/radicale2
  73. $(SED) 's,^#!.*python.*,#!/usr/bin/python$(PYTHON3_VERSION),' $(PKG_INSTALL_DIR)/usr/bin/radicale2
  74. $(INSTALL_DIR) $(1)/etc/config $(1)/etc/init.d
  75. $(INSTALL_CONF) ./files/radicale2.config $(1)/etc/config/radicale2
  76. $(INSTALL_BIN) ./files/radicale2.init $(1)/etc/init.d/radicale2
  77. endef
  78. define Package/radicale2-examples/install
  79. $(INSTALL_DIR) $(1)/usr/share/radicale2
  80. $(INSTALL_DATA) $(PKG_BUILD_DIR)/config $(1)/usr/share/radicale2/config.example
  81. $(INSTALL_DATA) $(PKG_BUILD_DIR)/rights $(1)/usr/share/radicale2/rights.example
  82. $(INSTALL_DATA) $(PKG_BUILD_DIR)/logging $(1)/usr/share/radicale2/logging.example
  83. endef
  84. $(eval $(call Py3Package,radicale2))
  85. $(eval $(call BuildPackage,radicale2))
  86. $(eval $(call BuildPackage,radicale2-src))
  87. $(eval $(call BuildPackage,radicale2-examples))