Date: 6 Feb 2003 01:08:25 -0800 From: Matt Peterson <matt@peterson.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/47994: [maintainer-update] sysutils/linux-acu (strict Makefile) Message-ID: <20030206090825.88792.qmail@mail.forko.com>
next in thread | raw e-mail | index | archive | help
>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 <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: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030206090825.88792.qmail>