FreeBSD Bugzilla – Attachment 163443 Details for
Bug 204757
[PATCH] deskutils/taskd: Add rc.d script, pkg-message, and taskd user
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Preliminary patch
taskd-1.1.0_1.diff (text/plain), 3.10 KB, created by
Ike Eichorn
on 2015-11-23 01:57:45 UTC
(
hide
)
Description:
Preliminary patch
Filename:
MIME Type:
Creator:
Ike Eichorn
Created:
2015-11-23 01:57:45 UTC
Size:
3.10 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 402246) >+++ Makefile (working copy) >@@ -16,6 +16,11 @@ > RUN_DEPENDS= bash:${PORTSDIR}/shells/bash > > USES= cmake:outsource compiler:c++11-lib shebangfix >+USE_RC_SUBR= taskd >+ >+USERS= taskd >+GROUPS= taskd >+ > SHEBANG_FILES= demo/client/case* \ > demo/client/malformed* \ > demo/client/run \ >Index: files/taskd.in >=================================================================== >--- files/taskd.in (nonexistent) >+++ files/taskd.in (working copy) >@@ -0,0 +1,35 @@ >+#!/bin/sh >+ >+# $FreeBSD$ >+# >+# PROVIDE: taskd >+# REQUIRE: LOGIN >+# KEYWORD: shutdown >+# >+# Add these lines to /etc/rc.conf.local or /etc/rc.conf >+# to enable this service: >+# >+# taskd_enable (bool): Set to NO by default. >+# Set it to YES to enable taskd. >+# taskd_data (path): Set to /var/taskd by default. >+# Taskd data directory (TASKDDATA) >+# taskd_user (str): Set to taskd by default. >+# User to run taskd as. >+ >+. /etc/rc.subr >+ >+name=taskd >+rcvar=taskd_enable >+ >+load_rc_config $name >+ >+: ${taskd_enable="NO"} >+: ${taskd_data="/var/taskd"} >+: ${taskd_user="taskd"} >+ >+command=%%PREFIX%%/bin/${name} >+pidfile=$(${command} config --data $taskd_data | grep pid.file | awk '{print $2}') >+ >+command_args="server --data $taskd_data --daemon" >+ >+run_rc_command "$1" > >Property changes on: files/taskd.in >___________________________________________________________________ >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:executable >## -0,0 +1 ## >+* >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: pkg-message >=================================================================== >--- pkg-message (nonexistent) >+++ pkg-message (working copy) >@@ -0,0 +1,22 @@ >+======================================================================= >+taskd requires user directed configuration prior to use. >+ >+See taskwarror.org/docs/taskserver/configure.html for configuration >+information. The generate script has been installed to >+/usr/local/share/taskd. >+ >+After completing configuration to start taskd at system startup add >+taskd_enable="YES" to rc.conf. If you configured taskd with a TASKDDATA >+other than /var/taskd you will also need to set taskd_data in rc.conf >+to that path. >+ >+The rc script will start taskd as the unprivileged user taskd, this >+requires that your TASKDDATA directory and /var/log/taskd.log be owned >+by taskd:taskd. If you prefer to use another user specify this in >+rc.conf using taskd_user. >+ >+To add users see: taskwarrior.org/docs/taskserver/user.html >+ >+To configure taskwarrior to use your taskd server see: >+taskwarrior.org/docs/taskserver/taskwarrior.html >+======================================================================= > >Property changes on: pkg-message >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 204757
: 163443