Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Sep 2008 07:39:11 GMT
From:      Zhen REN <bg1tpt@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/127060: [FIX BUG] fix a bug in ports net/pxe
Message-ID:  <200809030739.m837dBax051530@www.freebsd.org>
Resent-Message-ID: <200809030740.m837e1M5054638@freefall.freebsd.org>

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

>Number:         127060
>Category:       ports
>Synopsis:       [FIX BUG] fix a bug in ports net/pxe
>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:   Wed Sep 03 07:40:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Zhen REN
>Release:        7.0-STABLE
>Organization:
>Environment:
FreeBSD razor 7.0-STABLE FreeBSD 7.0-STABLE #0: Tue May 22 10:54:26 CST 2008 root@razor:/usr/obj/usr/src/sys/GENERIC i386
>Description:
There is a bug in /usr/local/etc/rc.d/pxe. The script can't find the pidfile. 
>How-To-Repeat:
/usr/local/etc/rc.d/pxe onestop
>Fix:
Change the "/var/pxe/${name}.pid" to "/var/run/${name}.pid" to fix it. I think this may be a typo.

Patch attached with submission follows:

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/net/pxe/Makefile,v
retrieving revision 1.10
diff -u -r1.10 Makefile
--- Makefile	3 Jun 2007 20:41:09 -0000	1.10
+++ Makefile	3 Sep 2008 07:30:12 -0000
@@ -7,7 +7,7 @@
 
 PORTNAME=	pxe
 PORTVERSION=	1.4.2
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	net
 MASTER_SITES=	http://www.kano.org.uk/projects/pxe/ \
 		ftp://ftp.nuug.no/pub/anders/distfiles/
Index: files/pxe.sh.in
===================================================================
RCS file: /home/ncvs/ports/net/pxe/files/pxe.sh.in,v
retrieving revision 1.1
diff -u -r1.1 pxe.sh.in
--- files/pxe.sh.in	3 Jun 2007 20:41:10 -0000	1.1
+++ files/pxe.sh.in	3 Sep 2008 07:29:16 -0000
@@ -20,7 +20,7 @@
 command="%%PREFIX%%/sbin/pxe"
 required_files=%%PREFIX%%/etc/pxe.conf
 command_args="-c ${required_files}"
-pidfile=/var/pxe/${name}.pid
+pidfile=/var/run/${name}.pid
 
 # set defaults
 pxe_enable=${pxe_enable:-"NO"}


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



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