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