cvs commit: ports/mail/quickml/files quickml.in
Doug Barton
dougb at FreeBSD.org
Fri Dec 18 00:28:49 UTC 2009
This script is missing several things, including PROVIDE/REQUIRE and
at minimum a default for _enable. I also believe (although I have not
tested it) that command_interpreter should be set rather than using
command=ruby and command_args the way that it was.
The attached patch fixes these issues, although the command stuff
should be tested.
Doug
Philip M. Gollucci wrote:
> pgollucci 2009-12-17 23:24:25 UTC
>
> FreeBSD ports repository
>
> Added files:
> mail/quickml/files quickml.in
> Log:
> - missed the rc.d file
>
> Revision Changes Path
> 1.1 +18 -0 ports/mail/quickml/files/quickml.in (new)
>
> http://www.FreeBSD.org/cgi/cvsweb.cgi/ports/mail/quickml/files/quickml.in
>
--
Improve the effectiveness of your Internet presence with
a domain name makeover! http://SupersetSolutions.com/
-------------- next part --------------
Index: quickml.in
===================================================================
RCS file: /home/pcvs/ports/mail/quickml/files/quickml.in,v
retrieving revision 1.1
diff -u -r1.1 quickml.in
--- quickml.in 17 Dec 2009 23:24:25 -0000 1.1
+++ quickml.in 18 Dec 2009 00:27:28 -0000
@@ -3,16 +3,26 @@
# $FreeBSD: ports/mail/quickml/files/quickml.in,v 1.1 2009/12/17 23:24:25 pgollucci Exp $
#
-. %%RC_SUBR%%
+# PROVIDE: quickml
+# REQUIRE: LOGIN
+#
+# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
+# to enable this service:
+#
+# quickml_enable (bool): Set to NO by default.
+
+. /etc/rc.subr
name="quickml"
rcvar=`set_rcvar`
-command="%%RUBY%%"
-command_args="%%PREFIX%%/sbin/${name}"
+command="%%PREFIX%%/sbin/${name}"
+command_interpreter="%%RUBY%%"
pidfile="/var/run/${name}.pid"
required_files=%%PREFIX%%/etc/quickmlrc
load_rc_config $name
+: ${quickml_enable="NO"}
+
run_rc_command "$1"
More information about the cvs-all
mailing list