Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 45E9337B43D for ; Thu, 6 Feb 2003 01:10:23 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B43143FDD for ; Thu, 6 Feb 2003 01:10:16 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h169AGNS023045 for ; Thu, 6 Feb 2003 01:10:16 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h169AG0E023044; Thu, 6 Feb 2003 01:10:16 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CCEF337B401 for ; 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 ; 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 Reply-To: Matt Peterson To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/47994: [maintainer-update] sysutils/linux-acu (strict Makefile) Sender: owner-freebsd-ports-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 47994 >Category: ports >Synopsis: [maintainer-update] sysutils/linux-acu (strict Makefile) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Thu Feb 06 01:10:15 PST 2003 >Closed-Date: >Last-Modified: >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 -#.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 >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports-bugs" in the body of the message