Ticket #9119: radicale.patch

File radicale.patch, 3.5 KB (added by tuigje, 6 years ago)

Fix error in Makefile

  • feeds/packages/lang/python-radicale/files/radicale.init

     
     1#!/bin/sh /etc/rc.common 
     2# Copyright (C) 2006-2008 OpenWrt.org 
     3 
     4START=99 
     5 
     6#RUN_D=/var/run/radicale 
     7#PID_F=$RUN_D/master.pid 
     8 
     9start() { 
     10        #mkdir -p $RUN_D 
     11        radicale -d 
     12} 
     13 
     14stop() { 
     15        killall -9 radicale 
     16} 
  • feeds/packages/lang/python-radicale/files/radicale.config

     
     1# Config file for Radicale - A simple calendar server 
     2# 
     3# Place it into /etc/radicale/config (global)  
     4# or ~/.config/radicale/config (user) 
     5# 
     6# The current values are the default ones 
     7 
     8[server] 
     9# CalDAV server hostname, empty for all hostnames 
     10host = 
     11# CalDAV server port 
     12port = 5232 
     13 
     14# Daemon flag 
     15#daemon = True 
     16 
     17# SSL flag, enable HTTPS protocol 
     18ssl = False 
     19# SSL certificate path (if needed) 
     20#certificate = /etc/apache2/ssl/server.crt 
     21# SSL private key (if needed) 
     22#key = /etc/apache2/ssl/server.key 
     23 
     24[encoding] 
     25# Encoding for responding requests 
     26request = utf-8 
     27# Encoding for storing local calendars 
     28stock = utf-8 
     29 
     30[acl] 
     31# Access method 
     32# Value: fake | htpasswd 
     33type = fake 
     34 
     35# Personal calendars only available for logged in users (if needed) 
     36personal = True 
     37# Htpasswd filename (if needed) 
     38filename = /etc/radicale/users 
     39# Htpasswd encryption method (if needed) 
     40# Value: plain | sha1 | crypt 
     41encryption = sha1 
     42 
     43[storage] 
     44# Folder for storing local calendars, 
     45# created if not present 
     46#folder = ~/.radicale/calendars 
     47folder = /home 
     48 
     49# vim:ft=cfg 
  • feeds/packages/lang/python-radicale/Makefile

     
     1# 
     2# Copyright (C) 2010 OpenWrt.org 
     3# 
     4# This is free software, licensed under the GNU General Public License v2. 
     5# See /LICENSE for more information. 
     6# 
     7 
     8include $(TOPDIR)/rules.mk 
     9 
     10PKG_NAME:=Radicale 
     11PKG_VERSION:=0.4 
     12PKG_RELEASE:=1 
     13 
     14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     15PKG_SOURCE_URL:=http://www.radicale.org/src/radicale/ 
     16PKG_MD5SUM:= 
     17 
     18include $(INCLUDE_DIR)/package.mk 
     19$(call include_mk, python-package.mk) 
     20 
     21define Package/python-radicale 
     22  SECTION:=language-python 
     23  CATEGORY:=Languages 
     24  SUBMENU:=Python 
     25  TITLE:=python-radicale (calDav server) 
     26  URL:=http://www.radicale.org/ 
     27  DEPENDS:=+python +libexpat 
     28endef 
     29 
     30define Package/python-radicale/description 
     31A Simple Calendar Server (caldav) 
     32endef 
     33 
     34define Build/Compile 
     35        $(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR)) 
     36endef 
     37 
     38define Package/python-radicale/install 
     39        $(INSTALL_DIR) $(1)/etc/init.d 
     40        $(INSTALL_BIN) ./files/radicale.init $(1)/etc/init.d/radicale 
     41        $(INSTALL_DIR) $(1)/etc/radicale 
     42        $(INSTALL_CONF) ./files/radicale.config $(1)/etc/radicale/config 
     43        $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR) 
     44        $(CP) \ 
     45                $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \ 
     46                $(1)$(PYTHON_PKG_DIR) 
     47        $(INSTALL_DIR) $(1)/usr/bin 
     48        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/ 
     49endef 
     50 
     51$(eval $(call BuildPackage,python-radicale)) 
     52