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