diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /www-apps/radicale/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'www-apps/radicale/files')
-rw-r--r-- | www-apps/radicale/files/radicale-1.1.1-config.patch | 34 | ||||
-rw-r--r-- | www-apps/radicale/files/radicale.init.d | 26 |
2 files changed, 60 insertions, 0 deletions
diff --git a/www-apps/radicale/files/radicale-1.1.1-config.patch b/www-apps/radicale/files/radicale-1.1.1-config.patch new file mode 100644 index 000000000000..4eb286f8d400 --- /dev/null +++ b/www-apps/radicale/files/radicale-1.1.1-config.patch @@ -0,0 +1,34 @@ +diff --git a/config b/config +index 453a45e..10c1595 100644 +--- a/config ++++ b/config +@@ -146,7 +146,7 @@ http_password_parameter = + #custom_handler = + + # File for rights management from_file +-#file = ~/.config/radicale/rights ++file = /etc/radicale/rights + + + [storage] +@@ -163,7 +163,7 @@ file = ~/.config/radicale/rights + #custom_handler = + + # Folder for storing local collections, created if not present +-#filesystem_folder = ~/.config/radicale/collections ++filesystem_folder = /var/lib/radicale/ + + # Database URL for SQLAlchemy + # dialect+driver://user:password@host/dbname[?key=value..] +diff --git a/logging b/logging +--- a/logging ++++ b/logging +@@ -45,7 +45,7 @@ formatter = simple + [handler_file] + # File handler + class = FileHandler +-args = ('/var/log/radicale',) ++args = ('/var/log/radicale/radicale.log',) + formatter = full + + diff --git a/www-apps/radicale/files/radicale.init.d b/www-apps/radicale/files/radicale.init.d new file mode 100644 index 000000000000..a59e8d387093 --- /dev/null +++ b/www-apps/radicale/files/radicale.init.d @@ -0,0 +1,26 @@ +#!/sbin/openrc-run +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +PIDFILE=/var/run/radicale.pid + +depend() { + use net + need localmount +} + +start() { + ebegin "Starting radicale" + start-stop-daemon --start --quiet --background \ + --user radicale \ + --pidfile ${PIDFILE} --make-pidfile \ + --exec /usr/bin/radicale -- --foreground + eend $? +} + +stop() { + ebegin "Stopping radicale" + start-stop-daemon --stop --quiet \ + --pidfile ${PIDFILE} + eend $? +} |