Date: Mon, 23 Sep 2013 12:34:10 +0000 (UTC) From: Mark Felder <feld@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r327988 - in head/www: . radicale radicale/files Message-ID: <201309231234.r8NCYAae082876@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: feld Date: Mon Sep 23 12:34:10 2013 New Revision: 327988 URL: http://svnweb.freebsd.org/changeset/ports/327988 Log: New port: www/radicale The Radicale Project is a complete CalDAV (calendar) and CardDAV (contact) server solution. Approved by: crees (mentor) Added: head/www/radicale/ head/www/radicale/Makefile (contents, props changed) head/www/radicale/distinfo (contents, props changed) head/www/radicale/files/ head/www/radicale/files/radicale.in (contents, props changed) head/www/radicale/pkg-descr (contents, props changed) head/www/radicale/pkg-plist (contents, props changed) Modified: head/www/Makefile Modified: head/www/Makefile ============================================================================== --- head/www/Makefile Mon Sep 23 12:25:22 2013 (r327987) +++ head/www/Makefile Mon Sep 23 12:34:10 2013 (r327988) @@ -1700,6 +1700,7 @@ SUBDIR += quickie SUBDIR += quixote SUBDIR += qupzilla + SUBDIR += radicale SUBDIR += red5 SUBDIR += redaxo SUBDIR += redmine Added: head/www/radicale/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/radicale/Makefile Mon Sep 23 12:34:10 2013 (r327988) @@ -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> Added: head/www/radicale/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/radicale/distinfo Mon Sep 23 12:34:10 2013 (r327988) @@ -0,0 +1,2 @@ +SHA256 (Radicale-0.8.tar.gz) = e8c0df5239c22f2687a09eca7d53c318706648aff72b620849ed3f7540bc1941 +SIZE (Radicale-0.8.tar.gz) = 39813 Added: head/www/radicale/files/radicale.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/radicale/files/radicale.in Mon Sep 23 12:34:10 2013 (r327988) @@ -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" Added: head/www/radicale/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/radicale/pkg-descr Mon Sep 23 12:34:10 2013 (r327988) @@ -0,0 +1,4 @@ +The Radicale Project is a complete CalDAV (calendar) and CardDAV (contact) +server solution. + +WWW: http://radicale.org/ Added: head/www/radicale/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/radicale/pkg-plist Mon Sep 23 12:34:10 2013 (r327988) @@ -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%%
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309231234.r8NCYAae082876>