PORTNAME= radicale PORTVERSION= 3.1.8 PORTREVISION= 1 CATEGORIES= www python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= Radicale-${PORTVERSION} MAINTAINER= decke@FreeBSD.org COMMENT= Python based CalDAV/CardDAV server WWW= https://radicale.org/ LICENSE= GPLv3+ LICENSE_FILE= ${WRKSRC}/COPYING.md BUILD_DEPENDS= ${PY_SETUPTOOLS} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}bcrypt>=0:security/py-bcrypt@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}passlib>=0:security/py-passlib@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}vobject>=0.9.6:deskutils/py-vobject@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}dateutil>=2.7.3:devel/py-dateutil@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}defusedxml>0:devel/py-defusedxml@${PY_FLAVOR} USES= cpe python shebangfix USE_PYTHON= autoplist distutils USERS= radicale GROUPS= radicale USE_RC_SUBR= radicale NO_ARCH= yes SHEBANG_FILES= radicale.wsgi SUB_LIST= USERS="${USERS}" GROUPS="${GROUPS}" PYTHON_CMD="${PYTHON_CMD}" post-patch: @${REINPLACE_CMD} 's,/etc/radicale,${ETCDIR},g' \ ${WRKSRC}/config \ ${WRKSRC}/radicale/config.py @${REINPLACE_CMD} 's,/etc/ssl,${ETCDIR},g' \ ${WRKSRC}/config \ ${WRKSRC}/radicale/config.py @${REINPLACE_CMD} 's,/var/lib/radicale,${DATADIR},g' \ ${WRKSRC}/config \ ${WRKSRC}/radicale/config.py post-install: @${MKDIR} ${STAGEDIR}/${ETCDIR} ${STAGEDIR}/${DATADIR} ${STAGEDIR}/${WWWDIR} ${INSTALL_DATA} ${WRKSRC}/config ${STAGEDIR}/${ETCDIR}/config.sample ${INSTALL_DATA} ${WRKSRC}/rights ${STAGEDIR}/${ETCDIR}/rights.sample ${INSTALL_SCRIPT} ${WRKSRC}/radicale.wsgi ${STAGEDIR}${WWWDIR}/radicale.wsgi .include