Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Mar 2005 22:13:18 -0700 (MST)
From:      Jie Gao <gaoj@cpsc.ucalgary.ca>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        portmgr@FreeBSD.org
Subject:   ports/79243: [patch] net/mDNSResponder: Fix typos in the new rcNG script and unbreak it
Message-ID:  <200503260513.j2Q5DIrx054697@localhost.cpsc.ucalgary.ca>
Resent-Message-ID: <200503260520.j2Q5K2vh071170@freefall.freebsd.org>

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

>Number:         79243
>Category:       ports
>Synopsis:       [patch] net/mDNSResponder: Fix typos in the new rcNG script and unbreak it
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 26 05:20:02 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Jie Gao
>Release:        FreeBSD 5.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD aibsd 5.3-STABLE FreeBSD 5.3-STABLE #3: Sat Jan 15 20:23:09 MST 2005 root@aibsd:/usr/obj/usr/src/sys/AIBSD i386


	
>Description:
	
The rcNG script that was newly added in mDNSResponder actually does not
work due to a serious typo. Fix this typo and also another typo in the header.

>How-To-Repeat:
	
install net/mDNSResponder, make sure there is no

mdnsd_enable="YES"

in /etc/rc.conf, and run as root:

/usr/local/etc/rc.d/mdnsd.sh start

You will get message that mdnsd is starting and you can see the process mdnsd
from the result of "ps -auxw" command.

The expected result should be mdnsd not being started.

>Fix:

	
Apply the following patch to the ports directory.

--- patch-mDNSResponder-files-mdnsd.sh.in begins here ---
--- mDNSResponder/files/mdnsd.sh.in.orig	Fri Mar 25 22:03:44 2005
+++ mDNSResponder/files/mdnsd.sh.in	Fri Mar 25 22:04:12 2005
@@ -2,7 +2,7 @@
 # $FreeBSD: ports/net/mDNSResponder/files/mdnsd.sh.in,v 1.1 2005/03/25 17:24:13 brooks Exp $
 
 # PROVIDE: mdnsd
-# REQIORE: DAEMON
+# REQUIRE: DAEMON
 # KEYWORD: FreeBSD shutdown
 
 mdnsd_enable="NO"
@@ -10,7 +10,7 @@
 . %%RC_SUBR%%
 
 name=mdnsd
-rc_var=`set_rcvar`
+rcvar=`set_rcvar`
 command="%%PREFIX%%/sbin/${name}"
 pidfile="/var/run/${name}.pid"
 
--- patch-mDNSResponder-files-mdnsd.sh.in ends here ---


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



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