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.

79 lines
2.3 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:=3
  10. PKG_SOURCE:=Radicale-$(PKG_VERSION).tar.gz
  11. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/R/Radicale
  12. PKG_HASH:=c007198ea45ef797344672c681d4c13f8b4aa85c15c41a1156225767a405c92b
  13. PKG_BUILD_DIR:=$(BUILD_DIR)/Radicale-$(PKG_VERSION)
  14. PKG_MAINTAINER:=
  15. PKG_LICENSE:=GPL-3.0
  16. PKG_LICENSE_FILES:=COPYING
  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. VARIANT:=python3
  35. endef
  36. define Package/radicale/description
  37. The Radicale Project is a CalDAV (calendar) and CardDAV (contact) server. It
  38. aims to be a light solution, easy to use, easy to install, easy to configure.
  39. As a consequence, it requires few software dependances and is pre-configured to
  40. work out-of-the-box.
  41. endef
  42. define Package/radicale/conffiles
  43. /etc/config/radicale
  44. /etc/radicale/users
  45. /etc/radicale/rights
  46. endef
  47. define Py3Package/radicale/install
  48. $(INSTALL_DIR) $(1)/etc/init.d
  49. $(INSTALL_BIN) ./files/radicale.init $(1)/etc/init.d/radicale
  50. $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
  51. $(INSTALL_BIN) ./files/radicale.hotplug $(1)/etc/hotplug.d/iface/80-radicale
  52. $(INSTALL_DIR) $(1)/etc/config
  53. $(INSTALL_CONF) ./files/radicale.config $(1)/etc/config/radicale
  54. $(INSTALL_DIR) $(1)/etc/radicale/ssl
  55. $(INSTALL_DATA) ./files/config.template $(1)/etc/radicale/config.template
  56. $(INSTALL_DATA) ./files/logging.template $(1)/etc/radicale/logging.template
  57. $(INSTALL_DATA) ./files/radicale.users $(1)/etc/radicale/users
  58. $(INSTALL_DATA) ./files/radicale.rights $(1)/etc/radicale/rights
  59. $(INSTALL_DIR) $(1)/usr/bin
  60. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/radicale $(1)/usr/bin/
  61. endef
  62. $(eval $(call Py3Package,radicale))
  63. $(eval $(call BuildPackage,radicale))
  64. $(eval $(call BuildPackage,radicale-src))