aboutsummaryrefslogtreecommitdiff
path: root/sysutils/linux-acu
diff options
context:
space:
mode:
authorDoug Ambrisko <ambrisko@FreeBSD.org>2003-02-18 00:31:54 +0000
committerDoug Ambrisko <ambrisko@FreeBSD.org>2003-02-18 00:31:54 +0000
commit58e9eb676e759ce730a9619fd7d9046cc7d464fc (patch)
tree4da51c72e14edb85bb294319fa30de1408311a58 /sysutils/linux-acu
parent46a108b61778c7d644539c0d94db28656ffa4df6 (diff)
downloadports-58e9eb676e759ce730a9619fd7d9046cc7d464fc.tar.gz
ports-58e9eb676e759ce730a9619fd7d9046cc7d464fc.zip
Notes
Diffstat (limited to 'sysutils/linux-acu')
-rw-r--r--sysutils/linux-acu/Makefile28
-rw-r--r--sysutils/linux-acu/pkg-message2
2 files changed, 22 insertions, 8 deletions
diff --git a/sysutils/linux-acu/Makefile b/sysutils/linux-acu/Makefile
index 55210b28c7c2..82f8fc71b41c 100644
--- a/sysutils/linux-acu/Makefile
+++ b/sysutils/linux-acu/Makefile
@@ -19,10 +19,6 @@ RUN_DEPENDS= ${LINUXBASE}/lib/libc.so.6:${PORTSDIR}/emulators/linux_base \
.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,6 +34,26 @@ NO_WRKSUBDIR= yes
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
@@ -48,10 +64,8 @@ post-install:
@${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} " /compat/linux/etc/eth?.cfg"
@${ECHO} " and will use that over the current card's settings."
.include <bsd.port.post.mk>
diff --git a/sysutils/linux-acu/pkg-message b/sysutils/linux-acu/pkg-message
index ab0229b334f7..83aa3bff6992 100644
--- a/sysutils/linux-acu/pkg-message
+++ b/sysutils/linux-acu/pkg-message
@@ -4,5 +4,5 @@ acu installed under ${PREFIX}/bin
acu will not run with linprocfs since it needs to see:
/compact/linux/proc/aironet
acu annoyingly creates
- /compat/linux/etc/eth2.cfg
+ /compat/linux/etc/eth?.cfg
and will use that over the current card's settings.