FreeBSD Bugzilla – Attachment 94988 Details for
Bug 133267
[PATCH] sysutils/watchfolder: provide rc_subr script
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.44 KB, created by
Alexander Logvinov
on 2009-04-01 12:00:04 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Alexander Logvinov
Created:
2009-04-01 12:00:04 UTC
Size:
1.44 KB
patch
obsolete
>Index: Makefile >=================================================================== >RCS file: /home/pcvs/ports/sysutils/watchfolder/Makefile,v >retrieving revision 1.6 >diff -u -r1.6 Makefile >--- Makefile 27 Mar 2009 09:53:34 -0000 1.6 >+++ Makefile 1 Apr 2009 10:51:19 -0000 >@@ -7,6 +7,7 @@ > > PORTNAME= watchfolder > PORTVERSION= 0.3.3 >+PORTREVISION= 1 > CATEGORIES= sysutils > MASTER_SITES= http://dstunrea.sdf-eu.org/files/ \ > CRITICAL >@@ -17,6 +18,7 @@ > MAKE_JOBS_SAFE= yes > > WRKSRC= ${WRKDIR}/watchd-${PORTVERSION} >+USE_RC_SUBR= watchd > > post-patch: > @${REINPLACE_CMD} -e 's|gcc $$(OPT)|${CC} ${CFLAGS}|' \ >Index: files/watchd.in >=================================================================== >RCS file: files/watchd.in >diff -N files/watchd.in >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ files/watchd.in 1 Apr 2009 10:51:19 -0000 >@@ -0,0 +1,29 @@ >+#!/bin/sh >+# >+# $FreeBSD$ >+# >+# PROVIDE: watchd >+# REQUIRE: DAEMON >+# KEYWORD: shutdown >+# >+# Add the following line to /etc/rc.conf[.local] to enable watchd >+# >+# watchd_enable (bool): Set to "NO" by default. >+# Set it to "YES" to enable watchd. >+ >+. %%RC_SUBR%% >+ >+name="watchd" >+rcvar=${name}_enable >+ >+load_rc_config $name >+ >+: ${watchd_enable="NO"} >+: ${watchd_config="%%PREFIX%%/etc/watchd.conf"} >+: ${watchd_log="/var/log/watchd.log"} >+ >+command="%%PREFIX%%/bin/watchd" >+command_args="${watchd_config} >> ${watchd_log}" >+required_files="${watchd_config}" >+ >+run_rc_command "$1"
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 133267
: 94988