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.

77 lines
2.2 KiB

  1. #
  2. # Copyright (C) 2008-2017 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. #
  6. include $(TOPDIR)/rules.mk
  7. PKG_NAME:=radicale
  8. PKG_VERSION:=1.1.6
  9. PKG_RELEASE:=5
  10. PYPI_NAME:=Radicale
  11. PKG_HASH:=c007198ea45ef797344672c681d4c13f8b4aa85c15c41a1156225767a405c92b
  12. PKG_MAINTAINER:=
  13. PKG_LICENSE:=GPL-3.0
  14. PKG_LICENSE_FILES:=COPYING
  15. PKG_CPE_ID:=cpe:/a:radicale:radicale
  16. include ../../lang/python/pypi.mk
  17. include $(INCLUDE_DIR)/package.mk
  18. include ../../lang/python/python3-package.mk
  19. define Package/radicale
  20. SECTION:=net
  21. CATEGORY:=Network
  22. SUBMENU:=Web Servers/Proxies
  23. TITLE:=Radicale CalDAV/CardDAV server
  24. URL:=https://radicale.org/
  25. DEPENDS:= \
  26. +python3-light \
  27. +python3-codecs \
  28. +python3-logging \
  29. +python3-openssl \
  30. +python3-urllib \
  31. +python3-xml
  32. USERID:=radicale=5232:radicale=5232
  33. PROVIDES:=radicale-py2 radicale-py3
  34. endef
  35. define Package/radicale/description
  36. The Radicale Project is a CalDAV (calendar) and CardDAV (contact) server. It
  37. aims to be a light solution, easy to use, easy to install, easy to configure.
  38. As a consequence, it requires few software dependances and is pre-configured to
  39. work out-of-the-box.
  40. endef
  41. define Package/radicale/conffiles
  42. /etc/config/radicale
  43. /etc/radicale/users
  44. /etc/radicale/rights
  45. endef
  46. define Py3Package/radicale/install
  47. $(INSTALL_DIR) $(1)/etc/init.d
  48. $(INSTALL_BIN) ./files/radicale.init $(1)/etc/init.d/radicale
  49. $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
  50. $(INSTALL_BIN) ./files/radicale.hotplug $(1)/etc/hotplug.d/iface/80-radicale
  51. $(INSTALL_DIR) $(1)/etc/config
  52. $(INSTALL_CONF) ./files/radicale.config $(1)/etc/config/radicale
  53. $(INSTALL_DIR) $(1)/etc/radicale/ssl
  54. $(INSTALL_DATA) ./files/config.template $(1)/etc/radicale/config.template
  55. $(INSTALL_DATA) ./files/logging.template $(1)/etc/radicale/logging.template
  56. $(INSTALL_DATA) ./files/radicale.users $(1)/etc/radicale/users
  57. $(INSTALL_DATA) ./files/radicale.rights $(1)/etc/radicale/rights
  58. $(INSTALL_DIR) $(1)/usr/bin
  59. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/radicale $(1)/usr/bin/
  60. endef
  61. $(eval $(call Py3Package,radicale))
  62. $(eval $(call BuildPackage,radicale))
  63. $(eval $(call BuildPackage,radicale-src))