View | Details | Raw Unified | Return to bug 196768
Collapse All | Expand All

(-)Makefile (-2 / +4 lines)
Lines 2-8 Link Here
2
2
3
PORTNAME=	calendarserver
3
PORTNAME=	calendarserver
4
PORTVERSION=	5.1
4
PORTVERSION=	5.1
5
PORTREVISION=	2
5
PORTREVISION=	3
6
CATEGORIES=	www python
6
CATEGORIES=	www python
7
MASTER_SITES=	LOCAL/wg
7
MASTER_SITES=	LOCAL/wg
8
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
8
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
Lines 31-36 Link Here
31
OPTIONS_DEFINE=	EXAMPLES DOCS
31
OPTIONS_DEFINE=	EXAMPLES DOCS
32
EXAMPLES_DESC=	Install configuration examples
32
EXAMPLES_DESC=	Install configuration examples
33
DOCS_DESC=	Install additional documentation
33
DOCS_DESC=	Install additional documentation
34
OPTIONS_DEFAULT=	EXAMPLES DOCS
35
.include <bsd.port.options.mk>
34
36
35
NEED_ROOT=	yes
37
NEED_ROOT=	yes
36
USES=		shebangfix pgsql:9.0+ python \
38
USES=		shebangfix pgsql:9.0+ python \
Lines 91-97 Link Here
91
	@${REINPLACE_CMD} -e 's|/usr/share/caldavd/lib/python/txdav/common/datastore|${SHAREDIR}|' ${WRKSRC}/calendarserver/tools/bootstrapdatabase.py
93
	@${REINPLACE_CMD} -e 's|/usr/share/caldavd/lib/python/txdav/common/datastore|${SHAREDIR}|' ${WRKSRC}/calendarserver/tools/bootstrapdatabase.py
92
	@${REINPLACE_CMD} -e 's|"_postgres"|"pgsql"|' ${WRKSRC}/calendarserver/tools/bootstrapdatabase.py
94
	@${REINPLACE_CMD} -e 's|"_postgres"|"pgsql"|' ${WRKSRC}/calendarserver/tools/bootstrapdatabase.py
93
95
94
post-install:
96
post-stage:
95
	@${MKDIR} ${STAGEDIR}${ETCDIR}/auth
97
	@${MKDIR} ${STAGEDIR}${ETCDIR}/auth
96
	(cd ${WRKSRC}/bin && ${COPYTREE_BIN} . ${STAGEDIR}${PREFIX}/bin)
98
	(cd ${WRKSRC}/bin && ${COPYTREE_BIN} . ${STAGEDIR}${PREFIX}/bin)
97
	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
99
	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(-)files/caldavd.in (-7 / +11 lines)
Lines 13-37 Link Here
13
#                                Default is "/usr/local/etc/caldavd.conf".
13
#                                Default is "/usr/local/etc/caldavd.conf".
14
# caldavd_flags (string):          Flags to pass to caldavd.
14
# caldavd_flags (string):          Flags to pass to caldavd.
15
#                                Default is empty.
15
#                                Default is empty.
16
# caldavd_pidfile (string):        Set path to the pid file.
17
#                                Default is /var/db/caldavd/caldavd.pid
16
#
18
#
17
19
18
. /etc/rc.subr
20
. /etc/rc.subr
19
21
20
: ${caldavd_enable="NO"}
21
: ${caldavd_conf="%%PREFIX%%/etc/caldavd/caldavd.plist"}
22
23
24
name="caldavd"
22
name="caldavd"
23
rcvar=caldavd_enable
25
24
26
command="%%PREFIX%%/bin/caldavd"
25
load_rc_config $name
27
command_args=" -f ${caldavd_conf} -R kqueue"
26
: ${caldavd_enable:=no}
27
: ${caldavd_conf="%%PREFIX%%/etc/caldavd/caldavd.plist"}
28
: ${caldavd_pidfile="/var/run/${name}.pid"}
28
29
29
pidfile="/var/db/${name}/${name}.pid"
30
pidfile="/var/db/${name}/${name}.pid"
30
required_files="${caldavd_conf}"
31
required_files="${caldavd_conf}"
31
32
32
procname="%%PYTHON_CMD%%"    
33
procname="%%PYTHON_CMD%%"
33
PATH=${PATH}:%%PREFIX%%/bin
34
PATH=${PATH}:%%PREFIX%%/bin
34
35
36
command="%%PREFIX%%/bin/caldavd"
37
command_args=" -f ${caldavd_conf} -R kqueue"
38
35
start_precmd="install -d -o caldavd /var/db/caldavd/Data/Documents /var/db/caldavd/Documents && install -d /var/log/caldavd"
39
start_precmd="install -d -o caldavd /var/db/caldavd/Data/Documents /var/db/caldavd/Documents && install -d /var/log/caldavd"
36
40
37
run_rc_command "$1"
41
run_rc_command "$1"
(-)pkg-plist (+1 lines)
Lines 119-121 Link Here
119
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/servertoserver.dtd
119
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/servertoserver.dtd
120
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sudoers.plist
120
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sudoers.plist
121
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test/accounts.xml
121
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test/accounts.xml
122
@dir etc/caldavd/auth

Return to bug 196768