From nobody@FreeBSD.org  Wed Sep 27 14:35:06 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 9195916A40F
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 27 Sep 2006 14:35:06 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 16A5643D60
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 27 Sep 2006 14:35:05 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k8REZ4Si034751
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 27 Sep 2006 14:35:04 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k8REZ4O7034750;
	Wed, 27 Sep 2006 14:35:04 GMT
	(envelope-from nobody)
Message-Id: <200609271435.k8REZ4O7034750@www.freebsd.org>
Date: Wed, 27 Sep 2006 14:35:04 GMT
From: Ulrich Spoerlein <uspoerlein@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [PATCH] make sysutils/lmmon regocnize SMB support
X-Send-Pr-Version: www-2.3

>Number:         103718
>Category:       ports
>Synopsis:       [PATCH] make sysutils/lmmon regocnize SMB support
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    stas
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 27 14:40:20 GMT 2006
>Closed-Date:    Tue Oct 03 13:47:35 GMT 2006
>Last-Modified:  Tue Oct 03 13:47:35 GMT 2006
>Originator:     Ulrich Spoerlein
>Release:        RELENG_6
>Organization:
>Environment:
>Description:
The configure script/source code tries to include <machine/smb.h>. This file has changed location at least in RELENG_6
>How-To-Repeat:
cd /usr/ports/sysutils/lmmon && make configure
..
checking for machine/smb.h... no

Consequently, lmmon falls back to using /dev/io.
>Fix:
Could be fixed with two patches, but I opted for the four line change to the Makefile, I hope the patch will not get mangled by the web interface.

--- sysutils/lmmon/Makefile	Wed Sep 27 13:27:25 2006
+++ sysutils/lmmon/Makefile	Wed Sep 27 13:25:23 2006
@@ -20,4 +20,9 @@
 MANCOMPRESSED=	yes
 PLIST_FILES=	bin/lmmon
 
+post-patch:
+.for i in configure configure.in lmmon.c
+	${REINPLACE_CMD} 's,machine/smb.h,dev/smbus/smb.h,' ${WRKSRC}/$i
+.endfor
+
 .include <bsd.port.mk>

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->stas 
Responsible-Changed-By: stas 
Responsible-Changed-When: Mon Oct 2 09:44:48 UTC 2006 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=103718 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/103718: commit references a PR
Date: Tue,  3 Oct 2006 13:26:35 +0000 (UTC)

 stas        2006-10-03 13:25:37 UTC
 
   FreeBSD ports repository
 
   Modified files:
     sysutils/lmmon       Makefile 
   Log:
   - Fix port to configure correctly on OSVERSION > 5.x (smb.h include file has
     changed it's location)
   
   PR:             ports/103718
   Submitted by:   Ulrich Spoerlein <uspoerlein@gmail.com> (based on)
   Approved by:    sem (mentor)
   
   Revision  Changes    Path
   1.17      +12 -1     ports/sysutils/lmmon/Makefile
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: stas 
State-Changed-When: Tue Oct 3 13:47:34 UTC 2006 
State-Changed-Why:  
Committed with changes, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=103718 
>Unformatted:
