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:
parent
f3c862d4ac
commit
aef81ecac3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=27998
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user