From matt@mail.forko.com  Thu Feb  6 01:08:43 2003
Return-Path: <matt@mail.forko.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id CCEF337B401
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  6 Feb 2003 01:08:43 -0800 (PST)
Received: from mail.forko.com (forko.com [206.14.189.156])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 8A51843F75
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  6 Feb 2003 01:08:43 -0800 (PST)
	(envelope-from matt@mail.forko.com)
Received: (qmail 88793 invoked by uid 1000); 6 Feb 2003 01:08:25 -0800
Message-Id: <20030206090825.88792.qmail@mail.forko.com>
Date: 6 Feb 2003 01:08:25 -0800
From: Matt Peterson <matt@peterson.org>
Reply-To: Matt Peterson <matt@peterson.org>
To: FreeBSD-gnats-submit@freebsd.org
Subject: [maintainer-update] sysutils/linux-acu (strict Makefile)
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         47994
>Category:       ports
>Synopsis:       [maintainer-update] sysutils/linux-acu (strict Makefile)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ambrisko
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 06 01:10:15 PST 2003
>Closed-Date:    Mon Feb 17 16:33:24 PST 2003
>Last-Modified:  Mon Feb 17 16:33:24 PST 2003
>Originator:     Matt Peterson
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
Bay Area Wireless Users Group
>Environment:

>Description:

	Updated Makefile contains more strict testing prior to installation

>How-To-Repeat:
>Fix:

--- Makefile.old	Thu Feb  6 00:44:50 2003
+++ Makefile	Thu Feb  6 00:54:50 2003
@@ -19,10 +19,6 @@
 
 .include <bsd.port.pre.mk>
 
-#.if ${OSVERSION} < 460000
-#BROKEN=         "${PORTNAME} is not available for your version of FreeBSD.  Please upgrade."
-#.endif
-
 .if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
 IGNORE=		may not be automatically fetched due to licensing\
 		restrictions.  You MUST manually fetch the tarball after\
@@ -38,9 +34,29 @@
 NO_BUILD=	yes
 NO_CDROM=	"Redistribution not allowed"
 
+LINPROCFS!=	/sbin/mount | ${GREP} linprocfs | ${AWK} '{print $1}'
+
+pre-fetch:
+.if ${OSVERSION} < 460000
+	@${ECHO}
+	@${ECHO} "OS-VERSION ${OSVERSION} too low"
+	@${ECHO}
+	@${ECHO} "acu needs some important sys/dev/an changes"
+	@${ECHO} "Please upgrade to 4.6-STABLE or greater"
+	@${FALSE}
+.endif
+
+post-extract:
+.if ${LINPROCFS}
+	@${ECHO}
+	@${ECHO} "linprocfs is mounted, please umount this filesystem"
+	@${ECHO} "becauce acu needs to read ${LINUXBASE}/proc/aironet"
+	@${FALSE}
+.endif
+
 do-install:
 	@${MKDIR} ${PREFIX}/bin
-#	@${MKDIR} ${LINUXBASE}/proc/aironet
+	@${MKDIR} ${LINUXBASE}/proc/aironet
 	@${INSTALL} ${WRKSRC}/utilities/acu ${PREFIX}/bin
 
 post-install:
@@ -48,10 +64,7 @@
 	@${ECHO} "notes: acu will only run from the root super-user account"
 	@${ECHO} "       to allow root access to your X session,"
 	@${ECHO} "       run 'xhost localhost' or use sudo."
-	@${ECHO} "       acu will not run with linprocfs since it needs to see:"
-	@${ECHO} "	        ${LINUXBASE}/proc/aironet""
 	@${ECHO} "	acu annoyingly creates"
 	@${ECHO} "		/compat/linux/etc/eth2.cfg"
 	@${ECHO} "	and will use that over the current card's settings."
-
 .include <bsd.port.post.mk>
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->ambrisko 
Responsible-Changed-By: ambrisko 
Responsible-Changed-When: Fri Feb 14 08:30:41 PST 2003 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=47994 
State-Changed-From-To: open->closed 
State-Changed-By: ambrisko 
State-Changed-When: Mon Feb 17 16:32:16 PST 2003 
State-Changed-Why:  
Committed thanks, 

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