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

(-)Makefile (-1 / +6 lines)
Lines 45-54 Link Here
45
		${WRKSRC}/radicale/config.py
45
		${WRKSRC}/radicale/config.py
46
46
47
post-install:
47
post-install:
48
	@${MKDIR} ${STAGEDIR}/${ETCDIR} ${STAGEDIR}/${DATADIR} ${STAGEDIR}/${WWWDIR}
48
	@${MKDIR} ${STAGEDIR}/${ETCDIR} ${STAGEDIR}/${DATADIR} ${STAGEDIR}/${WWWDIR} \
49
		${STAGEDIR}${PREFIX}/etc/newsyslog.conf.d \
50
		${STAGEDIR}${PREFIX}/etc/syslog.d \
51
		${STAGEDIR}${EXAMPLESDIR}
49
	${INSTALL_DATA} ${WRKSRC}/config ${STAGEDIR}/${ETCDIR}/config.sample
52
	${INSTALL_DATA} ${WRKSRC}/config ${STAGEDIR}/${ETCDIR}/config.sample
50
	${INSTALL_DATA} ${WRKSRC}/rights ${STAGEDIR}/${ETCDIR}/rights.sample
53
	${INSTALL_DATA} ${WRKSRC}/rights ${STAGEDIR}/${ETCDIR}/rights.sample
51
	${INSTALL_SCRIPT} ${WRKSRC}/radicale.wsgi ${STAGEDIR}${WWWDIR}/radicale.wsgi
54
	${INSTALL_SCRIPT} ${WRKSRC}/radicale.wsgi ${STAGEDIR}${WWWDIR}/radicale.wsgi
55
	${INSTALL_DATA} ${FILESDIR}/newsyslog.conf ${STAGEDIR}${EXAMPLESDIR}/newsyslog.conf
56
	${INSTALL_DATA} ${FILESDIR}/syslog.conf ${STAGEDIR}${EXAMPLESDIR}/syslog.conf
52
57
53
do-test:
58
do-test:
54
	@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
59
	@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
(-)files/newsyslog.conf (+2 lines)
Line 0 Link Here
1
# logfilename          [owner:group]    mode count size when  flags [/pid_file] [sig_num]
2
/var/log/radicale			640  7     *    @T00  J
(-)files/radicale.in (-1 / +1 lines)
Lines 30-36 Link Here
30
30
31
pidfile=/var/run/radicale/radicale.pid
31
pidfile=/var/run/radicale/radicale.pid
32
command=/usr/sbin/daemon
32
command=/usr/sbin/daemon
33
command_args="-P ${pidfile} %%PREFIX%%/bin/radicale -C ${radicale_config}"
33
command_args="-T radicale -s info -P ${pidfile} %%PREFIX%%/bin/radicale -C ${radicale_config}"
34
required_files=${radicale_config}
34
required_files=${radicale_config}
35
start_precmd=do_precmd
35
start_precmd=do_precmd
36
36
(-)files/syslog.conf (+2 lines)
Line 0 Link Here
1
!radicale
2
*.*						/var/log/radicale
(-)pkg-message (-2 / +47 lines)
Lines 1-11 Link Here
1
[
1
[
2
{ type: install
3
  message: <<EOM
4
By default, radicale logs to stderr. This port is configured to redirect
5
that to syslog and write all messages to /var/log/radicale, which is also
6
rotated daily by newsyslog. To make this work, you need to do the following
7
before (re)starting radicale:
8
9
# touch /var/log/radicale (if it doesn't already exist)
10
# service syslogd reload
11
12
Note that the default log level is "warning", which may not log aynthing
13
during normal operation. To test logging, you can change this to "info" or
14
"debug".
15
16
To change the default logging target or log rotation, see:
17
  /usr/local/etc/syslog.d/radicale.conf
18
  /usr/local/etc/newsyslog.d/radicale.conf
19
EOM
20
}
2
{ type: upgrade
21
{ type: upgrade
22
  maximum_version: 3.0
23
  message: <<EOM
24
There are some breaking changes from radicale 2.x to 3.x:
25
26
- The syntax for rights configuration has changed. See the new syntax here:
27
  https://radicale.org/3.0.html#documentation/authentication-and-rights
28
29
- radicale 3.x no longer writes any log files on its own. Instead, all logging
30
  goes to stderr. This port is configured to redirect that to syslog and write
31
  all messages to /var/log/radicale, which is also rotated daily by newsyslog.
32
  To make this work, you need to do the following before (re)starting radicale:
33
34
  # touch /var/log/radicale (if it doesn't already exist)
35
  # service syslogd reload
36
37
  Note that the default log level is "warning", which may not log aynthing
38
  during normal operation. To test logging, you can change this to "info" or
39
  "debug".
40
41
  To change the default logging target or log rotation, see:
42
  /usr/local/etc/syslog.d/radicale.conf
43
  /usr/local/etc/newsyslog.d/radicale.conf
44
EOM
45
}
46
{ type: upgrade
3
  maximum_version: 2.0
47
  maximum_version: 2.0
4
  message: <<EOM
48
  message: <<EOM
5
Migration from radicale 1.x to 2.x requires that you export the storage
49
Migration from radicale 1.x to 2.x/3.x requires that you export the storage
6
with radicale 1.1.x before it can be used.
50
with radicale 1.1.x before it can be used.
7
51
8
Migration instructions: https://web.archive.org/web/20190314225402/https://radicale.org/1to2/
52
Migration instructions can be found here:
53
https://web.archive.org/web/20190314225402/https://radicale.org/1to2/
9
EOM
54
EOM
10
}
55
}
11
]
56
]
(-)pkg-plist (+4 lines)
Lines 2-4 Link Here
2
@sample %%ETCDIR%%/rights.sample
2
@sample %%ETCDIR%%/rights.sample
3
@dir(radicale,radicale,0755) %%DATADIR%%
3
@dir(radicale,radicale,0755) %%DATADIR%%
4
%%WWWDIR%%/radicale.wsgi
4
%%WWWDIR%%/radicale.wsgi
5
@dir etc/syslog.d
6
@dir etc/newsyslog.conf.d
7
@sample %%EXAMPLESDIR%%/syslog.conf etc/syslog.d/radicale.conf
8
@sample %%EXAMPLESDIR%%/newsyslog.conf etc/newsyslog.conf.d/radicale.conf

Return to bug 249102