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

(-)Makefile (+5 lines)
Lines 16-21 Link Here
16
RUN_DEPENDS=	bash:${PORTSDIR}/shells/bash
16
RUN_DEPENDS=	bash:${PORTSDIR}/shells/bash
17
17
18
USES=		cmake:outsource compiler:c++11-lib shebangfix
18
USES=		cmake:outsource compiler:c++11-lib shebangfix
19
USE_RC_SUBR=	taskd
20
21
USERS=		taskd
22
GROUPS=	taskd
23
19
SHEBANG_FILES=	demo/client/case* \
24
SHEBANG_FILES=	demo/client/case* \
20
		demo/client/malformed* \
25
		demo/client/malformed* \
21
		demo/client/run \
26
		demo/client/run \
(-)files/taskd.in (+35 lines)
Line 0 Link Here
1
#!/bin/sh
2
3
# $FreeBSD$
4
#
5
# PROVIDE: taskd
6
# REQUIRE: LOGIN
7
# KEYWORD: shutdown
8
#
9
# Add these lines to /etc/rc.conf.local or /etc/rc.conf
10
# to enable this service:
11
#
12
# taskd_enable (bool):		Set to NO by default.
13
#				Set it to YES to enable taskd.
14
# taskd_data (path):		Set to /var/taskd by default.
15
#				Taskd data directory (TASKDDATA)
16
# taskd_user (str):		Set to taskd by default.
17
#				User to run taskd as.
18
19
. /etc/rc.subr
20
21
name=taskd
22
rcvar=taskd_enable
23
24
load_rc_config $name
25
26
: ${taskd_enable="NO"}
27
: ${taskd_data="/var/taskd"}
28
: ${taskd_user="taskd"}
29
30
command=%%PREFIX%%/bin/${name}
31
pidfile=$(${command} config --data $taskd_data | grep pid.file | awk '{print $2}')
32
33
command_args="server --data $taskd_data --daemon"
34
35
run_rc_command "$1"
(-)pkg-message (+22 lines)
Line 0 Link Here
1
=======================================================================
2
taskd requires user directed configuration prior to use.
3
4
See taskwarror.org/docs/taskserver/configure.html for configuration
5
information. The generate script has been installed to
6
/usr/local/share/taskd.
7
8
After completing configuration to start taskd at system startup add
9
taskd_enable="YES" to rc.conf. If you configured taskd with a TASKDDATA
10
other than /var/taskd you will also need to set taskd_data in rc.conf
11
to that path.
12
13
The rc script will start taskd as the unprivileged user taskd, this
14
requires that your TASKDDATA directory and /var/log/taskd.log be owned
15
by taskd:taskd. If you prefer to use another user specify this in
16
rc.conf using taskd_user.
17
18
To add users see: taskwarrior.org/docs/taskserver/user.html
19
20
To configure taskwarrior to use your taskd server see:
21
taskwarrior.org/docs/taskserver/taskwarrior.html
22
=======================================================================

Return to bug 204757