$OpenBSD: patch-radicale_config_py,v 1.6 2013/03/08 10:38:01 jasper Exp $
--- radicale/config.py.orig	Fri Aug  3 14:04:39 2012
+++ radicale/config.py	Sun Feb 24 17:39:19 2013
@@ -43,8 +43,8 @@ INITIAL_CONFIG = {
         "daemon": "False",
         "pid": "",
         "ssl": "False",
-        "certificate": "/etc/apache2/ssl/server.crt",
-        "key": "/etc/apache2/ssl/server.key",
+        "certificate": "${SYSCONFDIR}/radicale/server.crt",
+        "key": "${SYSCONFDIR}/radicale/private/server.key",
         "dns_lookup": "True"},
     "encoding": {
         "request": "utf-8",
@@ -53,7 +53,7 @@ INITIAL_CONFIG = {
         "type": "None",
         "public_users": "public",
         "private_users": "private",
-        "htpasswd_filename": "/etc/radicale/users",
+        "htpasswd_filename": "${SYSCONFDIR}/radicale/users",
         "htpasswd_encryption": "crypt",
         "imap_auth_host_name": "localhost",
         "imap_auth_host_port": "143",
@@ -68,12 +68,10 @@ INITIAL_CONFIG = {
         "courier_socket": ""},
     "storage": {
         "type": "filesystem",
-        "filesystem_folder": os.path.expanduser(
-            "~/.config/radicale/collections"),
-        "git_folder": os.path.expanduser(
-            "~/.config/radicale/collections")},
+        "filesystem_folder": "/var/db//radicale/calendars",
+        "git_folder": "/var/db/radicale/calendars"},
     "logging": {
-        "config": "/etc/radicale/logging",
+        "config": "${SYSCONFDIR}/radicale/logging",
         "debug": "False",
         "full_environment": "False"}}
 
@@ -85,7 +83,7 @@ for section, values in INITIAL_CONFIG.items():
     for key, value in values.items():
         _CONFIG_PARSER.set(section, key, value)
 
-_CONFIG_PARSER.read("/etc/radicale/config")
+_CONFIG_PARSER.read("${SYSCONFDIR}/radicale/config")
 _CONFIG_PARSER.read(os.path.expanduser("~/.config/radicale/config"))
 if "RADICALE_CONFIG" in os.environ:
     _CONFIG_PARSER.read(os.environ["RADICALE_CONFIG"])
