blob: 47d389f81afdaf37afb55c25596d5a56ce1ac649 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# 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
NO_STAGE= 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>
|