mirror of
https://git.freebsd.org/ports.git
synced 2025-07-07 04:19:17 -04:00
(contacts) server, that: Shares calendars through CalDAV, WebDAV and HTTP. Shares contacts through CardDAV, WebDAV and HTTP. Supports events, todos, journal entries and business cards. Works out-of-the-box, no installation nor configuration required. Can warn users on concurrent editing. Can limit access by authentication. Can secure connections. Works with many CalDAV and CardDAV clients. Is GPLv3-licensed free software. WWW: http://radicale.org/ WWW: https://github.com/Kozea/Radicale PR: 222657 Submitted by: Alexandre C. Guimaraes <lebarondemerde@privacychain.ch>
45 lines
881 B
Bash
45 lines
881 B
Bash
#!/bin/sh
|
|
# Created by: Mark Felder <feld@FreeBSD.org>
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: radicale
|
|
# REQUIRE: DAEMON
|
|
# BEFORE: LOGIN
|
|
# KEYWORD: shutdown
|
|
|
|
#
|
|
# Add the following lines to /etc/rc.conf to enable radicale:
|
|
# radicale_enable (bool): Set to "NO" by default.
|
|
# Set it to "YES" to enable radicale.
|
|
#
|
|
|
|
. /etc/rc.subr
|
|
|
|
name=radicale
|
|
rcvar=radicale_enable
|
|
|
|
# set defaults
|
|
|
|
load_rc_config $name
|
|
|
|
: ${radicale_enable:=NO}
|
|
: ${radicale_config=%%ETCDIR%%/config}
|
|
: ${radicale_user=%%USERS%%}
|
|
: ${radicale_group=%%GROUPS%%}
|
|
|
|
pidfile=/var/run/radicale/radicale.pid
|
|
command=%%PREFIX%%/bin/radicale
|
|
command_args="-d -p ${pidfile} -C ${radicale_config}"
|
|
command_interpreter=%%PYTHON_CMD%%
|
|
required_files=${radicale_config}
|
|
start_precmd=do_precmd
|
|
|
|
do_precmd()
|
|
{
|
|
if [ ! -d ${pidfile%/*} ]; then
|
|
install -d -o ${radicale_user} ${pidfile%/*}
|
|
fi
|
|
}
|
|
|
|
run_rc_command "$1"
|