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.

80 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. PKG_CPE_ID:=cpe:/a:radicale:radicale
  18. include $(INCLUDE_DIR)/package.mk
  19. include ../../lang/python/python3-package.mk
  20. define Package/radicale
  21. SECTION:=net
  22. CATEGORY:=Network
  23. SUBMENU:=Web Servers/Proxies
  24. TITLE:=Radicale CalDAV/CardDAV server
  25. URL:=https://radicale.org/
  26. DEPENDS:= \
  27. +python3-light \
  28. +python3-codecs \
  29. +python3-logging \
  30. +python3-openssl \
  31. +python3-urllib \
  32. +python3-xml
  33. USERID:=radicale=5232:radicale=5232
  34. PROVIDES:=radicale-py2 radicale-py3
  35. VARIANT:=python3
  36. endef
  37. define Package/radicale/description
  38. The Radicale Project is a CalDAV (calendar) and CardDAV (contact) server. It
  39. aims to be a light solution, easy to use, easy to install, easy to configure.
  40. As a consequence, it requires few software dependances and is pre-configured to
  41. work out-of-the-box.
  42. endef
  43. define Package/radicale/conffiles
  44. /etc/config/radicale
  45. /etc/radicale/users
  46. /etc/radicale/rights
  47. endef
  48. define Py3Package/radicale/install
  49. $(INSTALL_DIR) $(1)/etc/init.d
  50. $(INSTALL_BIN) ./files/radicale.init $(1)/etc/init.d/radicale
  51. $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
  52. $(INSTALL_BIN) ./files/radicale.hotplug $(1)/etc/hotplug.d/iface/80-radicale
  53. $(INSTALL_DIR) $(1)/etc/config
  54. $(INSTALL_CONF) ./files/radicale.config $(1)/etc/config/radicale
  55. $(INSTALL_DIR) $(1)/etc/radicale/ssl
  56. $(INSTALL_DATA) ./files/config.template $(1)/etc/radicale/config.template
  57. $(INSTALL_DATA) ./files/logging.template $(1)/etc/radicale/logging.template
  58. $(INSTALL_DATA) ./files/radicale.users $(1)/etc/radicale/users
  59. $(INSTALL_DATA) ./files/radicale.rights $(1)/etc/radicale/rights
  60. $(INSTALL_DIR) $(1)/usr/bin
  61. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/radicale $(1)/usr/bin/
  62. endef
  63. $(eval $(call Py3Package,radicale))
  64. $(eval $(call BuildPackage,radicale))
  65. $(eval $(call BuildPackage,radicale-src))