1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

Show an error message and exit when vmware is invoked without Linux procfs

mounted on /compat/linux/proc.

I hope that would reduce FAQ.
This commit is contained in:
Akinori MUSHA 2000-04-25 14:23:37 +00:00
parent f3c862d4ac
commit aef81ecac3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=27998
4 changed files with 22 additions and 0 deletions

View File

@ -76,6 +76,7 @@ setoptions:
${FILESDIR}/vmware.sh > ${WRKDIR}/vmware.sh
${SED} -e 's;@@PREFIX@@;${PREFIX};' \
-e 's;@@LINUX_DIR@@;${LINUX_DIR};' \
${FILESDIR}/vmware > ${WRKDIR}/vmware
pre-install: setoptions

View File

@ -4,6 +4,16 @@
#
# $FreeBSD$
if [ ! -e @@LINUX_DIR@@/proc/cpuinfo ]; then
echo "************************************************************"
echo "It seems Linux procfs is not mounted on @@LINUX_DIR@@/proc."
echo "VMware does not work without Linux procfs mounted."
echo
echo "For details, see linprocfs(5) manpage."
echo "************************************************************"
exit 1
fi
LANG=C
PATH=/bin:$PATH

View File

@ -76,6 +76,7 @@ setoptions:
${FILESDIR}/vmware.sh > ${WRKDIR}/vmware.sh
${SED} -e 's;@@PREFIX@@;${PREFIX};' \
-e 's;@@LINUX_DIR@@;${LINUX_DIR};' \
${FILESDIR}/vmware > ${WRKDIR}/vmware
pre-install: setoptions

View File

@ -4,6 +4,16 @@
#
# $FreeBSD$
if [ ! -e @@LINUX_DIR@@/proc/cpuinfo ]; then
echo "************************************************************"
echo "It seems Linux procfs is not mounted on @@LINUX_DIR@@/proc."
echo "VMware does not work without Linux procfs mounted."
echo
echo "For details, see linprocfs(5) manpage."
echo "************************************************************"
exit 1
fi
LANG=C
PATH=/bin:$PATH