summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Koltsov <maksbotan@gentoo.org>2016-01-26 23:02:09 +0300
committerMaxim Koltsov <maksbotan@gentoo.org>2016-01-26 23:05:46 +0300
commit3ab430380cf9887c09753890e28bfb96c05e367a (patch)
tree7c1420b70d86d1ad38bd8e986f63aec2e4b608d6 /www-apps/radicale/files
parentnet-analyzer/metasploit: fix repoman warning (diff)
downloadgentoo-3ab430380cf9887c09753890e28bfb96c05e367a.tar.gz
gentoo-3ab430380cf9887c09753890e28bfb96c05e367a.tar.bz2
gentoo-3ab430380cf9887c09753890e28bfb96c05e367a.zip
www-apps/radicale: add to tree, reworking Sunrise ebuild
Package-Manager: portage-2.2.27
Diffstat (limited to 'www-apps/radicale/files')
-rw-r--r--www-apps/radicale/files/radicale-1.1.1-config.patch34
-rw-r--r--www-apps/radicale/files/radicale.init.d27
2 files changed, 61 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..8e3e94a6494c
--- /dev/null
+++ b/www-apps/radicale/files/radicale.init.d
@@ -0,0 +1,27 @@
+#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+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 $?
+}