aboutsummaryrefslogtreecommitdiffstats
path: root/emulators
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2000-04-25 22:23:37 +0800
committerknu <knu@FreeBSD.org>2000-04-25 22:23:37 +0800
commite3b1dd51c22e3d62d4fc8aa2a24b5ea117057636 (patch)
tree27bc3537be17d91c9739293ba40589310198f6b8 /emulators
parent412376b022254fe466a7fdfcd2e38252960ec213 (diff)
downloadfreebsd-ports-gnome-e3b1dd51c22e3d62d4fc8aa2a24b5ea117057636.tar.gz
freebsd-ports-gnome-e3b1dd51c22e3d62d4fc8aa2a24b5ea117057636.tar.zst
freebsd-ports-gnome-e3b1dd51c22e3d62d4fc8aa2a24b5ea117057636.zip
Show an error message and exit when vmware is invoked without Linux procfs
mounted on /compat/linux/proc. I hope that would reduce FAQ.
Diffstat (limited to 'emulators')
-rw-r--r--emulators/vmware2/Makefile1
-rw-r--r--emulators/vmware2/files/vmware10
-rw-r--r--emulators/vmware3/Makefile1
-rw-r--r--emulators/vmware3/files/vmware10
4 files changed, 22 insertions, 0 deletions
diff --git a/emulators/vmware2/Makefile b/emulators/vmware2/Makefile
index ee9f2c7e8912..8c3e94090f8a 100644
--- a/emulators/vmware2/Makefile
+++ b/emulators/vmware2/Makefile
@@ -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
diff --git a/emulators/vmware2/files/vmware b/emulators/vmware2/files/vmware
index 8bf4e133d6c7..7109da2fdb63 100644
--- a/emulators/vmware2/files/vmware
+++ b/emulators/vmware2/files/vmware
@@ -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
diff --git a/emulators/vmware3/Makefile b/emulators/vmware3/Makefile
index ee9f2c7e8912..8c3e94090f8a 100644
--- a/emulators/vmware3/Makefile
+++ b/emulators/vmware3/Makefile
@@ -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
diff --git a/emulators/vmware3/files/vmware b/emulators/vmware3/files/vmware
index 8bf4e133d6c7..7109da2fdb63 100644
--- a/emulators/vmware3/files/vmware
+++ b/emulators/vmware3/files/vmware
@@ -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