1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

New port: www/radicale

The Radicale Project is a complete CalDAV (calendar) and CardDAV
(contact) server solution.

Approved by:	crees (mentor)
This commit is contained in:
Mark Felder 2013-09-23 12:34:10 +00:00
parent 6e98d31966
commit 30976c339b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=327988
6 changed files with 172 additions and 0 deletions

View File

@ -1700,6 +1700,7 @@
SUBDIR += quickie
SUBDIR += quixote
SUBDIR += qupzilla
SUBDIR += radicale
SUBDIR += red5
SUBDIR += redaxo
SUBDIR += redmine

50
www/radicale/Makefile Normal file
View File

@ -0,0 +1,50 @@
# Created by: Mark Felder <feld@FreeBSD.org>
# $FreeBSD$
PORTNAME= radicale
PORTVERSION= 0.8
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= Radicale-${PORTVERSION}
MAINTAINER= feld@FreeBSD.org
COMMENT= Python based CalDAV/CardDAV server
LICENSE= GPLv3
USE_PYTHON= 2.7+
USE_PYDISTUTILS= yes
PYDISTUTILS_PKGNAME= Radicale
USERS= radicale
GROUPS= radicale
USE_RC_SUBR= radicale
SUB_LIST+= USERS="${USERS}"
OPTIONS_DEFINE= HTTP LDAP
HTTP_DESC= HTTP authentication support
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MHTTP}
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}requests>=0:${PORTSDIR}/www/py-requests
USE_PYTHON= -2.7
.endif
.if ${PORT_OPTIONS:MLDAP}
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}ldap2>=0:${PORTSDIR}/net/py-ldap2
USE_PYTHON= -2.7
.endif
post-patch:
${REINPLACE_CMD} 's,= /etc,= ${PREFIX}/etc,g' ${WRKSRC}/config
${REINPLACE_CMD} 's,~/.config/radicale,${DATADIR},g' ${WRKSRC}/config
post-install:
${MKDIR} ${ETCDIR}
${INSTALL} -d -o ${USERS} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/config ${ETCDIR}/config.sample
${INSTALL_DATA} ${WRKSRC}/logging ${ETCDIR}/logging.sample
.include <bsd.port.mk>

2
www/radicale/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (Radicale-0.8.tar.gz) = e8c0df5239c22f2687a09eca7d53c318706648aff72b620849ed3f7540bc1941
SIZE (Radicale-0.8.tar.gz) = 39813

View File

@ -0,0 +1,44 @@
#!/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=%%PREFIX%%/etc/radicale/config}
: ${radicale_user=%%USERS%%}
pidfile=/var/run/radicale/radicale.pid
command=%%PREFIX%%/bin/radicale
command_args="-d -p ${pidfile} -C ${radicale_config}"
command_interpreter=python
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"

4
www/radicale/pkg-descr Normal file
View File

@ -0,0 +1,4 @@
The Radicale Project is a complete CalDAV (calendar) and CardDAV (contact)
server solution.
WWW: http://radicale.org/

71
www/radicale/pkg-plist Normal file
View File

@ -0,0 +1,71 @@
bin/radicale
%%ETCDIR%%/config.sample
%%ETCDIR%%/logging.sample
%%PYTHON_LIBDIR%%/site-packages/radicale/__init__.py
%%PYTHON_LIBDIR%%/site-packages/radicale/__init__.pyc
%%PYTHON_LIBDIR%%/site-packages/radicale/__init__.pyo
%%PYTHON_LIBDIR%%/site-packages/radicale/__main__.py
%%PYTHON_LIBDIR%%/site-packages/radicale/__main__.pyc
%%PYTHON_LIBDIR%%/site-packages/radicale/__main__.pyo
%%PYTHON_LIBDIR%%/site-packages/radicale/auth/IMAP.py
%%PYTHON_LIBDIR%%/site-packages/radicale/auth/IMAP.pyc
%%PYTHON_LIBDIR%%/site-packages/radicale/auth/IMAP.pyo
%%PYTHON_LIBDIR%%/site-packages/radicale/auth/LDAP.py
%%PYTHON_LIBDIR%%/site-packages/radicale/auth/LDAP.pyc
%%PYTHON_LIBDIR%%/site-packages/radicale/auth/LDAP.pyo
%%PYTHON_LIBDIR%%/site-packages/radicale/auth/PAM.py
%%PYTHON_LIBDIR%%/site-packages/radicale/auth/PAM.pyc
%%PYTHON_LIBDIR%%/site-packages/radicale/auth/PAM.pyo
%%PYTHON_LIBDIR%%/site-packages/radicale/auth/__init__.py
%%PYTHON_LIBDIR%%/site-packages/radicale/auth/__init__.pyc
%%PYTHON_LIBDIR%%/site-packages/radicale/auth/__init__.pyo
%%PYTHON_LIBDIR%%/site-packages/radicale/auth/courier.py
%%PYTHON_LIBDIR%%/site-packages/radicale/auth/courier.pyc
%%PYTHON_LIBDIR%%/site-packages/radicale/auth/courier.pyo
%%PYTHON_LIBDIR%%/site-packages/radicale/auth/htpasswd.py
%%PYTHON_LIBDIR%%/site-packages/radicale/auth/htpasswd.pyc
%%PYTHON_LIBDIR%%/site-packages/radicale/auth/htpasswd.pyo
%%PYTHON_LIBDIR%%/site-packages/radicale/auth/http.py
%%PYTHON_LIBDIR%%/site-packages/radicale/auth/http.pyc
%%PYTHON_LIBDIR%%/site-packages/radicale/auth/http.pyo
%%PYTHON_LIBDIR%%/site-packages/radicale/config.py
%%PYTHON_LIBDIR%%/site-packages/radicale/config.pyc
%%PYTHON_LIBDIR%%/site-packages/radicale/config.pyo
%%PYTHON_LIBDIR%%/site-packages/radicale/ical.py
%%PYTHON_LIBDIR%%/site-packages/radicale/ical.pyc
%%PYTHON_LIBDIR%%/site-packages/radicale/ical.pyo
%%PYTHON_LIBDIR%%/site-packages/radicale/log.py
%%PYTHON_LIBDIR%%/site-packages/radicale/log.pyc
%%PYTHON_LIBDIR%%/site-packages/radicale/log.pyo
%%PYTHON_LIBDIR%%/site-packages/radicale/rights/__init__.py
%%PYTHON_LIBDIR%%/site-packages/radicale/rights/__init__.pyc
%%PYTHON_LIBDIR%%/site-packages/radicale/rights/__init__.pyo
%%PYTHON_LIBDIR%%/site-packages/radicale/rights/from_file.py
%%PYTHON_LIBDIR%%/site-packages/radicale/rights/from_file.pyc
%%PYTHON_LIBDIR%%/site-packages/radicale/rights/from_file.pyo
%%PYTHON_LIBDIR%%/site-packages/radicale/rights/owner_only.py
%%PYTHON_LIBDIR%%/site-packages/radicale/rights/owner_only.pyc
%%PYTHON_LIBDIR%%/site-packages/radicale/rights/owner_only.pyo
%%PYTHON_LIBDIR%%/site-packages/radicale/rights/owner_write.py
%%PYTHON_LIBDIR%%/site-packages/radicale/rights/owner_write.pyc
%%PYTHON_LIBDIR%%/site-packages/radicale/rights/owner_write.pyo
%%PYTHON_LIBDIR%%/site-packages/radicale/storage/__init__.py
%%PYTHON_LIBDIR%%/site-packages/radicale/storage/__init__.pyc
%%PYTHON_LIBDIR%%/site-packages/radicale/storage/__init__.pyo
%%PYTHON_LIBDIR%%/site-packages/radicale/storage/database.py
%%PYTHON_LIBDIR%%/site-packages/radicale/storage/database.pyc
%%PYTHON_LIBDIR%%/site-packages/radicale/storage/database.pyo
%%PYTHON_LIBDIR%%/site-packages/radicale/storage/filesystem.py
%%PYTHON_LIBDIR%%/site-packages/radicale/storage/filesystem.pyc
%%PYTHON_LIBDIR%%/site-packages/radicale/storage/filesystem.pyo
%%PYTHON_LIBDIR%%/site-packages/radicale/xmlutils.py
%%PYTHON_LIBDIR%%/site-packages/radicale/xmlutils.pyc
%%PYTHON_LIBDIR%%/site-packages/radicale/xmlutils.pyo
@dirrmtry %%DATADIR%%
@dirrmtry %%ETCDIR%%
@dirrm %%PYTHON_LIBDIR%%/site-packages/radicale
@dirrm %%PYTHON_LIBDIR%%/site-packages/radicale/auth
@dirrm %%PYTHON_LIBDIR%%/site-packages/radicale/rights
@dirrm %%PYTHON_LIBDIR%%/site-packages/radicale/storage
@dirrmtry %%PYTHON_LIBDIR%%/site-packages
@dirrmtry %%PYTHON_LIBDIR%%