Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Jun 2011 23:13:15 -0700 (PDT)
From:      Douglas William Thrift <douglas@douglasthrift.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/158375: Update port: net/isc-dhcp41-server rc.d/isc-dhcpd6 ignores dhcpd6_withuser
Message-ID:  <201106280613.p5S6DF8c088912@slowhand.douglasthrift.net>
Resent-Message-ID: <201106280700.p5S70Mii077708@freefall.freebsd.org>

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

>Number:         158375
>Category:       ports
>Synopsis:       Update port: net/isc-dhcp41-server rc.d/isc-dhcpd6 ignores dhcpd6_withuser
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 28 07:00:22 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Douglas William Thrift
>Release:        FreeBSD 8.2-RELEASE-p2 amd64
>Organization:
>Environment:
System: FreeBSD justonenight.douglasthrift.net 8.2-RELEASE-p2 FreeBSD 8.2-RELEASE-p2 #3: Sat May 28 04:53:38 PDT 2011 root@justonenight.douglasthrift.net:/usr/obj/usr/src/sys/FURTHERONUPTHEROAD amd64
>Description:
Jasper Jongmans reports:

    The port net/isc-dhcp41-server includes an rc.d script that can be used
    to start both dhcpd and dhcpd6 by replacing occurences of dhcpd with
    ${name}. In files/isc-dhcpd.in version "1.3 2011/02/14 02:21:27 wxs" on
    line 435, this replace was omitted, causing the nonzero-test to fail and
    dhcpd6 to start without -user and run as root. Attached is a patch to
    resolve this issue.

I have applied his patch and bumped the PORTREVISION.
>How-To-Repeat:
>Fix:
--- isc-dhcp41-server.patch begins here ---
diff -Nrux .svn -x work /usr/ports/net/isc-dhcp41-server/Makefile isc-dhcp41-server/Makefile
--- /usr/ports/net/isc-dhcp41-server/Makefile	2011-06-21 10:08:11.000000000 -0700
+++ isc-dhcp41-server/Makefile	2011-06-27 22:44:47.381491889 -0700
@@ -22,7 +22,7 @@
 LICENSE=	ISCL
 
 PATCHLEVEL=	R2
-PORTREVISION_SERVER=	0
+PORTREVISION_SERVER=	1
 PORTREVISION_CLIENT=	0
 PORTREVISION_RELAY=	2
 
diff -Nrux .svn -x work /usr/ports/net/isc-dhcp41-server/files/isc-dhcpd.in isc-dhcp41-server/files/isc-dhcpd.in
--- /usr/ports/net/isc-dhcp41-server/files/isc-dhcpd.in	2011-02-13 18:21:27.000000000 -0800
+++ isc-dhcp41-server/files/isc-dhcpd.in	2011-06-27 22:14:43.882341451 -0700
@@ -432,7 +432,7 @@
 	if eval "[ -n \"\${${name}_pidfile}\" ]"; then
 		eval "rc_flags=\"\${rc_flags} -pf \${${name}_pidfile}\""
 	fi
-	if eval "[ -n \"\${dhcpd_withuser}\" ]"; then
+	if eval "[ -n \"\${${name}_withuser}\" ]"; then
 		eval "rc_flags=\"\${rc_flags} -user \${${name}_withuser}\""
 	fi
 	if eval "[ -n \"\${${name}_withgroup}\" ]"; then
--- isc-dhcp41-server.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



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