Index: www/Makefile =================================================================== --- www/Makefile (revision 465416) +++ www/Makefile (working copy) @@ -1912,6 +1912,7 @@ SUBDIR += qupzilla-qt5 SUBDIR += qutebrowser SUBDIR += radicale + SUBDIR += radicale2 SUBDIR += red5 SUBDIR += redaxo SUBDIR += redmine @@ -2358,7 +2359,6 @@ SUBDIR += trac-wysiwyg SUBDIR += trac-xmlrpc SUBDIR += trafficserver - SUBDIR += transmission-web SUBDIR += transproxy SUBDIR += trytond28_google_maps SUBDIR += tt-rss Index: www/radicale2/Makefile =================================================================== --- www/radicale2/Makefile (nonexistent) +++ www/radicale2/Makefile (working copy) @@ -0,0 +1,47 @@ +# Created by: Mark Felder +# $FreeBSD$ + +PORTNAME= radicale2 +PORTVERSION= 2.1.8 +CATEGORIES= www python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= Radicale-${PORTVERSION} + +MAINTAINER= sunpoet@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} + +USES= python:3.3+ +USE_PYTHON= autoplist distutils +USERS= radicale +GROUPS= radicale +USE_RC_SUBR= radicale +NO_ARCH= yes + +SUB_LIST= USERS="${USERS}" 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} + ${INSTALL_DATA} ${WRKSRC}/config ${STAGEDIR}/${ETCDIR}/config.sample + ${INSTALL_DATA} ${WRKSRC}/logging ${STAGEDIR}/${ETCDIR}/logging.sample + +do-test: + @cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test + +.include Property changes on: www/radicale2/Makefile ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: www/radicale2/distinfo =================================================================== --- www/radicale2/distinfo (nonexistent) +++ www/radicale2/distinfo (working copy) @@ -0,0 +1,3 @@ +TIMESTAMP = 1521340337 +SHA256 (Radicale-2.1.8.tar.gz) = 720d7c63faa9b9ce9f019067cb846cb2ca593a3c13af343a65cd40b4e381cde8 +SIZE (Radicale-2.1.8.tar.gz) = 76348 Property changes on: www/radicale2/distinfo ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: www/radicale2/files/radicale.in =================================================================== --- www/radicale2/files/radicale.in (nonexistent) +++ www/radicale2/files/radicale.in (working copy) @@ -0,0 +1,45 @@ +#!/bin/sh +# Created by: Mark Felder +# $FreeBSD: head/www/radicale/files/radicale.in 440516 2017-05-09 21:25:26Z zi $ +# + +# 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%%} +: ${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" Property changes on: www/radicale2/files/radicale.in ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: www/radicale2/pkg-descr =================================================================== --- www/radicale2/pkg-descr (nonexistent) +++ www/radicale2/pkg-descr (working copy) @@ -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 Property changes on: www/radicale2/pkg-descr ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: www/radicale2/pkg-plist =================================================================== --- www/radicale2/pkg-plist (nonexistent) +++ www/radicale2/pkg-plist (working copy) @@ -0,0 +1,3 @@ +@sample %%ETCDIR%%/config.sample +@sample %%ETCDIR%%/logging.sample +@dir(radicale,radicale,0755) %%DATADIR%% Property changes on: www/radicale2/pkg-plist ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property