FreeBSD Bugzilla – Attachment 179961 Details for
Bug 217083
[PATCH] databases/kyototycoon: add rc.d script and daemon
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
v2 patch
kyoto.diff (text/plain), 3.46 KB, created by
Dave Cottlehuber
on 2017-02-13 20:28:22 UTC
(
hide
)
Description:
v2 patch
Filename:
MIME Type:
Creator:
Dave Cottlehuber
Created:
2017-02-13 20:28:22 UTC
Size:
3.46 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 434049) >+++ Makefile (working copy) >@@ -3,7 +3,7 @@ > > PORTNAME= kyototycoon > PORTVERSION= 0.9.56 >-PORTREVISION= 3 >+PORTREVISION= 4 > CATEGORIES= databases > MASTER_SITES= http://fallabs.com/${PORTNAME}/pkg/ \ > LOCAL/sunpoet >@@ -18,6 +18,8 @@ > > OPTIONS_DEFINE= DOCS LZO > >+USE_RC_SUBR= ${PORTNAME} >+ > CONFIGURE_ARGS= --enable-uyield > CPPFLAGS+= -fPIC > GNU_CONFIGURE= yes >@@ -28,6 +30,33 @@ > USE_LDCONFIG= yes > USES= gmake pkgconfig > >+SUB_FILES= ${PORTNAME} >+SUB_LIST+= KYOTOTYCOON_USER=${KYOTOTYCOON_USER} \ >+ KYOTOTYCOON_GROUP=${KYOTOTYCOON_GROUP} \ >+ KYOTOTYCOON_PIDFILE=${KYOTOTYCOON_PIDFILE} \ >+ KYOTOTYCOON_DBDIR=${KYOTOTYCOON_DBDIR} \ >+ KYOTOTYCOON_LOGDIR=${KYOTOTYCOON_LOGDIR} >+ >+PLIST_SUB= KYOTOTYCOON_USER=${KYOTOTYCOON_USER} \ >+ KYOTOTYCOON_GROUP=${KYOTOTYCOON_GROUP} \ >+ KYOTOTYCOON_PIDFILE=${KYOTOTYCOON_PIDFILE} \ >+ KYOTOTYCOON_DBDIR=${KYOTOTYCOON_DBDIR} \ >+ KYOTOTYCOON_LOGDIR=${KYOTOTYCOON_LOGDIR} >+ >+KYOTOTYCOON_USER?= ${PORTNAME} >+KYOTOTYCOON_GROUP?= ${PORTNAME} >+ >+.if ${KYOTOTYCOON_USER} == "${PORTNAME}" >+USERS= ${PORTNAME} >+.endif >+.if ${KYOTOTYCOON_GROUP} == "${PORTNAME}" >+GROUPS= ${PORTNAME} >+.endif >+ >+KYOTOTYCOON_LOGDIR= /var/log/${PORTNAME} >+KYOTOTYCOON_DBDIR= /var/db/${PORTNAME} >+KYOTOTYCOON_PIDFILE= /var/run/${PORTNAME}.pid >+ > PORTDOCS= * > > LZO_CONFIGURE_OFF= ac_cv_lib_lzo2_main=no >Index: files/kyototycoon.in >=================================================================== >--- files/kyototycoon.in (nonexistent) >+++ files/kyototycoon.in (working copy) >@@ -0,0 +1,55 @@ >+#!/bin/sh >+ >+# $FreeBSD$ >+# >+# PROVIDE: kyototycoon >+# REQUIRE: LOGIN NETWORKING SERVERS >+# KEYWORD: shutdown >+# >+# Add the following lines to /etc/rc.conf.local or /etc/rc.conf >+# to enable this service: >+# >+# kyototycoon_enable (bool): Set to NO by default. >+# Set it to YES to enable kyototycoon. >+# >+# kyototycoon_user (user): Set to kyototycoon by default. >+# kyototycoon_group (group): Set to kyototycoon by default. >+# kyototycoon_log (path): Path to log file. >+# kyototycoon_dbdir (path): Path to database files. >+# kyototycoon_sid (int): ServerID - 0-65535 >+# kyototycoon_opts (args): Additional command-line arguments. >+. /etc/rc.subr >+ >+name="kyototycoon" >+rcvar=kyototycoon_enable >+ >+load_rc_config $name >+ >+: ${kyototycoon_enable="NO"} >+: ${kyototycoon_user:="%%KYOTOTYCOON_USER%%"} >+: ${kyototycoon_group:="%%KYOTOTYCOON_GROUP%%"} >+: ${kyototycoon_log="%%KYOTOTYCOON_LOGDIR%%/kyoto.log"} >+: ${kyototycoon_dbdir="%%KYOTOTYCOON_DBDIR%%"} >+: ${kyototycoon_sid="1"} >+: ${kyototycoon_opts:=" -li"} >+ >+pidfile="%%KYOTOTYCOON_PIDFILE%%" >+command="/usr/sbin/daemon" >+command_args="-f -c -r -t ${name} -P ${pidfile} \ >+ %%PREFIX%%/bin/ktserver \ >+ -sid ${kyototycoon_sid} \ >+ -log ${kyototycoon_log} \ >+ -bgs ${kyototycoon_dbdir}/snapshots \ >+ -ulog ${kyototycoon_dbdir}/updates \ >+ ${kyototycoon_opts}" >+ >+required_dirs="${kyototycoon_dbdir}/snapshots ${kyototycoon_dbdir}/updates" >+required_files="${kyototycoon_log}" >+ >+kyototycoon_prestart() >+{ >+ install -o ${kyototycoon_user} /dev/null ${pidfile} >+} >+start_precmd=${name}_prestart >+ >+run_rc_command "$1" > >Property changes on: files/kyototycoon.in >___________________________________________________________________ >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 217083
:
179960
|
179961
|
179988
|
179991