Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jun 2018 14:19:17 +0000 (UTC)
From:      Bernhard Froehlich <decke@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r472256 - in head/www: . radicale2 radicale2/files
Message-ID:  <201806121419.w5CEJHYf022618@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: decke
Date: Tue Jun 12 14:19:16 2018
New Revision: 472256
URL: https://svnweb.freebsd.org/changeset/ports/472256

Log:
  Radicale is a small but powerful CalDAV (calendars, todo-lists) and CardDAV
  (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>

Added:
  head/www/radicale2/
  head/www/radicale2/Makefile   (contents, props changed)
  head/www/radicale2/distinfo   (contents, props changed)
  head/www/radicale2/files/
  head/www/radicale2/files/radicale.in   (contents, props changed)
  head/www/radicale2/pkg-descr   (contents, props changed)
  head/www/radicale2/pkg-message   (contents, props changed)
  head/www/radicale2/pkg-plist   (contents, props changed)
Modified:
  head/www/Makefile

Modified: head/www/Makefile
==============================================================================
--- head/www/Makefile	Tue Jun 12 14:18:39 2018	(r472255)
+++ head/www/Makefile	Tue Jun 12 14:19:16 2018	(r472256)
@@ -1914,6 +1914,7 @@
     SUBDIR += qupzilla-qt5
     SUBDIR += qutebrowser
     SUBDIR += radicale
+    SUBDIR += radicale2
     SUBDIR += red5
     SUBDIR += redaxo
     SUBDIR += redmine

Added: head/www/radicale2/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/radicale2/Makefile	Tue Jun 12 14:19:16 2018	(r472256)
@@ -0,0 +1,53 @@
+# Created by: Mark Felder <feld@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	radicale2
+PORTVERSION=	2.1.9
+CATEGORIES=	www python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	Radicale-${PORTVERSION}
+
+MAINTAINER=	decke@FreeBSD.org
+COMMENT=	Python based CalDAV/CardDAV server
+
+LICENSE=	GPLv3
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}bcrypt>=0:security/py-bcrypt@${FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}passlib>=0:security/py-passlib@${FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}vobject>=0:deskutils/py-vobject@${FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}flake8>=0:devel/py-flake8@${FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}isort>=0:devel/py-isort@${FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-cov>=0:devel/py-pytest-cov@${FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-runner>=0:devel/py-pytest-runner@${FLAVOR}
+
+CONFLICTS=	radicale-1.[0-9]*
+
+USES=		python:3.3+ shebangfix
+USE_PYTHON=	autoplist distutils
+USERS=		radicale
+GROUPS=		radicale
+USE_RC_SUBR=	radicale
+NO_ARCH=	yes
+SHEBANG_FILES=	radicale.fcgi radicale.wsgi
+
+SUB_LIST=	USERS="${USERS}" GROUPS="${GROUPS}" PYTHON_CMD="${PYTHON_CMD}"
+
+post-patch:
+	${REINPLACE_CMD} 's,= /etc,= ${PREFIX}/etc,g' ${WRKSRC}/config
+	${REINPLACE_CMD} 's,~/.config/radicale,${DATADIR},g' ${WRKSRC}/config
+
+post-install:
+	${MKDIR} ${STAGEDIR}/${ETCDIR}
+	${MKDIR} ${STAGEDIR}/${DATADIR}
+	${MKDIR} ${STAGEDIR}/${WWWDIR}
+	${INSTALL_DATA} ${WRKSRC}/config ${STAGEDIR}/${ETCDIR}/config.sample
+	${INSTALL_DATA} ${WRKSRC}/logging ${STAGEDIR}/${ETCDIR}/logging.sample
+	${INSTALL_SCRIPT} ${WRKSRC}/radicale.fcgi ${STAGEDIR}${WWWDIR}/radicale.fcgi
+	${INSTALL_SCRIPT} ${WRKSRC}/radicale.wsgi ${STAGEDIR}${WWWDIR}/radicale.wsgi
+
+do-test:
+	@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
+
+.include <bsd.port.mk>

Added: head/www/radicale2/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/radicale2/distinfo	Tue Jun 12 14:19:16 2018	(r472256)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1526561113
+SHA256 (Radicale-2.1.9.tar.gz) = 41241d9aaae1990ceb7a716d6a47d7c99d09fdc76b2e1f36e3de4554664bcc63
+SIZE (Radicale-2.1.9.tar.gz) = 77098

Added: head/www/radicale2/files/radicale.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/radicale2/files/radicale.in	Tue Jun 12 14:19:16 2018	(r472256)
@@ -0,0 +1,45 @@
+#!/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"

Added: head/www/radicale2/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/radicale2/pkg-descr	Tue Jun 12 14:19:16 2018	(r472256)
@@ -0,0 +1,15 @@
+Radicale is a small but powerful CalDAV (calendars, todo-lists) and CardDAV
+(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

Added: head/www/radicale2/pkg-message
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/radicale2/pkg-message	Tue Jun 12 14:19:16 2018	(r472256)
@@ -0,0 +1,4 @@
+Migration from radicale 1.x to 2.x requires that you export the storage
+with radicale 1.1.x before it can be used.
+
+Migration instructions: https://radicale.org/1to2/

Added: head/www/radicale2/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/radicale2/pkg-plist	Tue Jun 12 14:19:16 2018	(r472256)
@@ -0,0 +1,5 @@
+@sample %%ETCDIR%%/config.sample
+@sample %%ETCDIR%%/logging.sample
+@dir(radicale,radicale,0755) %%DATADIR%%
+%%WWWDIR%%/radicale.fcgi
+%%WWWDIR%%/radicale.wsgi



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806121419.w5CEJHYf022618>