Date: Sat, 12 Mar 2011 16:08:08 GMT From: Marin Atanasov Nikolov <dnaeon@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/155495: [PATCH] Fix rc.d scripts for sysutils/cfengine3 Message-ID: <201103121608.p2CG88Ch077948@red.freebsd.org> Resent-Message-ID: <201103121610.p2CGABwM022432@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 155495 >Category: ports >Synopsis: [PATCH] Fix rc.d scripts for sysutils/cfengine3 >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sat Mar 12 16:10:10 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Marin Atanasov Nikolov >Release: FreeBSD 8.2-PRERELEASE >Organization: www.unix-heaven.org >Environment: FreeBSD xxx.unix-heaven.org 8.2-PRERELEASE FreeBSD 8.2-PRERELEASE #1: Sat Nov 27 14:54:29 EET 2010 root@xxx.unix-heaven.org:/usr/obj/usr/src/sys/GENERIC amd64 >Description: The rc.d scripts provided with sysutils/cfengine3 are using a hyphen for the name of the rcvar in the cf-serverd and cf-execd rc.d scripts. This is preventing cf-serverd and cf-execd from starting up. Please update the port with the provided patch, which replaces the hyphens to underscores in the rc.d scripts. >How-To-Repeat: 1. Install sysutils/cfengine3 2. Execute the cf-serverd and cf-execd scripts from /usr/local/etc.rc.d >Fix: Patch attached with submission follows: diff -ruN cfengine3.orig/files/cf-execd.in cfengine3/files/cf-execd.in --- cfengine3.orig/files/cf-execd.in 2011-02-06 04:46:17.000000000 +0200 +++ cfengine3/files/cf-execd.in 2011-03-12 17:53:17.000000000 +0200 @@ -8,18 +8,18 @@ # # Add the following line to /etc/rc.conf[.local] to enable cf-execd(8) # -# cf-execd_enable (bool): Set to "NO" by default. +# cf_execd_enable (bool): Set to "NO" by default. # Set it to "YES" to enable cf-execd. -# cf-execd_flags (str): Custom additional arguments to be passed +# cf_execd_flags (str): Custom additional arguments to be passed # to cf-execd (default empty). # . /etc/rc.subr -name="cf-execd" +name="cf_execd" rcvar=${name}_enable -command="%%PREFIX%%/sbin/${name}" +command="%%PREFIX%%/sbin/cf-execd" load_rc_config $name diff -ruN cfengine3.orig/files/cf-serverd.in cfengine3/files/cf-serverd.in --- cfengine3.orig/files/cf-serverd.in 2011-02-06 04:46:17.000000000 +0200 +++ cfengine3/files/cf-serverd.in 2011-03-12 17:53:38.000000000 +0200 @@ -8,18 +8,18 @@ # # Add the following line to /etc/rc.conf[.local] to enable cf-serverd(8) # -# cf-serverd_enable (bool): Set to "NO" by default. +# cf_serverd_enable (bool): Set to "NO" by default. # Set it to "YES" to enable cf-serverd. -# cf-serverd_flags (str): Custom additional arguments to be passed +# cf_serverd_flags (str): Custom additional arguments to be passed # to cf-serverd (default empty). # . /etc/rc.subr -name="cf-serverd" +name="cf_serverd" rcvar=${name}_enable -command="%%PREFIX%%/sbin/${name}" +command="%%PREFIX%%/sbin/cf-serverd" load_rc_config $name >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103121608.p2CG88Ch077948>