Skip site navigation (1)Skip section navigation (2)
Date:      Sat,  5 Mar 2011 00:14:01 +0100 (CET)
From:      Dimitri Aivaliotis <aglarond@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/155279: [patch] sysutils/rubygem-chef: %%RC_SUBR%% not getting replaced
Message-ID:  <20110304231401.BE48D5C48@home.aivaliotis.org>
Resent-Message-ID: <201103042340.p24Ne9lq096721@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         155279
>Category:       ports
>Synopsis:       [patch] sysutils/rubygem-chef: %%RC_SUBR%% not getting replaced
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 04 23:40:09 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Dimitri Aivaliotis
>Release:        FreeBSD 8.2-RELEASE i386
>Organization:
>Environment:
System: FreeBSD freebsd-build-82 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Feb 18 02:24:46 UTC 2011 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:
The %%RC_SUBR%% variable in the rc script source files/chef_client.in isn't getting replaced by default. Rather than adding this variable to SUB_LIST, it makes more sense to explicitly replace it in the source file itself. This is done in numerous other rc script source files as well as in the example in the Porter's Handbook.

	
>How-To-Repeat:
	
>Fix:

	

--- chef_client.in.diff begins here ---
--- chef_client.in.orig	2011-01-18 13:00:11.000000000 +0100
+++ chef_client.in	2011-03-04 23:48:22.000000000 +0100
@@ -12,7 +12,7 @@
 #
 #  chef_client_enable="YES"
 
-. %%RC_SUBR%%
+. /etc/rc.subr
 
 name="chef_client"
 rcvar=`set_rcvar`
--- chef_client.in.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110304231401.BE48D5C48>