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.

91 lines
3.0 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:=3
  7. PKG_LICENSE:=GPL-3.0-or-later
  8. PKG_LICENSE_FILES:=COPYING
  9. PKG_CPE_ID:=cpe:/a:radicale:radicale
  10. PYPI_NAME:=Radicale
  11. PKG_HASH:=02273fcc6ae10e0f74aa12652e24d0001eec8dbf467d54ddb4dfcc2af7d7a5db
  12. include ../../lang/python/pypi.mk
  13. include $(INCLUDE_DIR)/package.mk
  14. include ../../lang/python/python3-package.mk
  15. define Package/radicale2/Default
  16. SECTION:=net
  17. CATEGORY:=Network
  18. SUBMENU:=Web Servers/Proxies
  19. URL:=https://radicale.org/
  20. TITLE:=Radicale 2.x CalDAV/CardDAV server
  21. endef
  22. define Package/radicale2
  23. $(call Package/radicale2/Default)
  24. USERID:=radicale2=225:radicale2=225
  25. DEPENDS:=+python3 +python3-dateutil +python3-vobject +python3-setuptools
  26. CONFLICTS:=radicale
  27. endef
  28. define Package/radicale2-examples
  29. $(call Package/radicale2/Default)
  30. TITLE:=Radicale v2 example configs
  31. endef
  32. define Package/radicale2-meta/description
  33. 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.
  34. 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.
  35. endef
  36. define Package/radicale2/description
  37. $(call Package/radicale2-meta/description)
  38. This package contains the python files.
  39. Note that md5 encryption of passwords requires passlib, and
  40. bcrypt encryption requires passlib + bcrypt. These are not
  41. added as hard dependencies as users may be running radicale2
  42. with a web server doing the authentication instead of radicale2.
  43. endef
  44. define Package/radicale2-examples/description
  45. $(call Package/radicale2-meta/description)
  46. .
  47. This package contains upstream configs for example purposes.
  48. endef
  49. define Package/radicale2/conffiles
  50. /etc/config/radicale2
  51. /etc/radicale2/config
  52. /etc/radicale2/users
  53. /etc/radicale2/rights
  54. /etc/radicale2/logging
  55. endef
  56. define Py3Package/radicale2/install
  57. $(INSTALL_DIR) $(1)/usr/bin
  58. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/radicale $(1)/usr/bin/radicale2
  59. $(INSTALL_DIR) $(1)/etc/config $(1)/etc/init.d
  60. $(INSTALL_CONF) ./files/radicale2.config $(1)/etc/config/radicale2
  61. $(INSTALL_BIN) ./files/radicale2.init $(1)/etc/init.d/radicale2
  62. endef
  63. define Package/radicale2-examples/install
  64. $(INSTALL_DIR) $(1)/usr/share/radicale2
  65. $(INSTALL_DATA) $(PKG_BUILD_DIR)/config $(1)/usr/share/radicale2/config.example
  66. $(INSTALL_DATA) $(PKG_BUILD_DIR)/rights $(1)/usr/share/radicale2/rights.example
  67. $(INSTALL_DATA) $(PKG_BUILD_DIR)/logging $(1)/usr/share/radicale2/logging.example
  68. endef
  69. $(eval $(call Py3Package,radicale2))
  70. $(eval $(call BuildPackage,radicale2))
  71. $(eval $(call BuildPackage,radicale2-src))
  72. $(eval $(call BuildPackage,radicale2-examples))