diff options
author | Akinori MUSHA <knu@FreeBSD.org> | 2000-09-22 17:22:24 +0000 |
---|---|---|
committer | Akinori MUSHA <knu@FreeBSD.org> | 2000-09-22 17:22:24 +0000 |
commit | 8b3cd773ff016fff7057a1a40ce23df371e5fbbe (patch) | |
tree | 8ea908c5ea8d4ab894559c97b5aae2897bb1a4fd /emulators/vmware3 | |
parent | fd944e00244c3343a905596b71aa921fc85a123c (diff) | |
download | ports-8b3cd773ff016fff7057a1a40ce23df371e5fbbe.tar.gz ports-8b3cd773ff016fff7057a1a40ce23df371e5fbbe.zip |
Notes
Diffstat (limited to 'emulators/vmware3')
-rw-r--r-- | emulators/vmware3/Makefile | 7 | ||||
-rw-r--r-- | emulators/vmware3/files/vmware | 4 | ||||
-rw-r--r-- | emulators/vmware3/files/vmware.sh | 2 | ||||
-rw-r--r-- | emulators/vmware3/pkg-plist | 20 | ||||
-rw-r--r-- | emulators/vmware3/scripts/pre-install | 2 |
5 files changed, 18 insertions, 17 deletions
diff --git a/emulators/vmware3/Makefile b/emulators/vmware3/Makefile index 84bbe96a9771..4453cdcb5bff 100644 --- a/emulators/vmware3/Makefile +++ b/emulators/vmware3/Makefile @@ -60,10 +60,11 @@ BROKEN= "Kernel source files required" .include "${WRKDIRPREFIX}${.CURDIR}/work/Makefile.inc.net" .endif -SCRIPTS_ENV+= LINUX_DIR="${LINUXBASE}" \ +SCRIPTS_ENV+= LINUXBASE="${LINUXBASE}" \ VMNET_HOST_IP="${VMNET_HOST_IP}" \ VMNET_NETMASK="${VMNET_NETMASK}" MAKE_ARGS= KMODDIR="${VMDIR}/lib/modules" +PLIST_SUB= LINUXBASE="${LINUXBASE}" post-patch: ${CP} ${FILESDIR}/Makefile ${WRKSRC} @@ -81,14 +82,14 @@ setoptions: ${FILESDIR}/config > ${WRKDIR}/config ${SED} -e 's;@@PREFIX@@;${PREFIX};' \ - -e 's;@@LINUX_DIR@@;${LINUXBASE};' \ + -e 's;@@LINUXBASE@@;${LINUXBASE};' \ -e 's;@@NETWORKING@@;${VMNET_NETWORKING};' \ -e 's;@@HOST_IP@@;${VMNET_HOST_IP};' \ -e 's;@@NETMASK@@;${VMNET_NETMASK};' \ ${FILESDIR}/vmware.sh > ${WRKDIR}/vmware.sh ${SED} -e 's;@@PREFIX@@;${PREFIX};' \ - -e 's;@@LINUX_DIR@@;${LINUXBASE};' \ + -e 's;@@LINUXBASE@@;${LINUXBASE};' \ ${FILESDIR}/vmware > ${WRKDIR}/vmware pre-install: setoptions diff --git a/emulators/vmware3/files/vmware b/emulators/vmware3/files/vmware index bb98527690c2..6693fad91f09 100644 --- a/emulators/vmware3/files/vmware +++ b/emulators/vmware3/files/vmware @@ -4,9 +4,9 @@ # # $FreeBSD$ -if [ ! -e @@LINUX_DIR@@/proc/cpuinfo ]; then +if [ ! -e @@LINUXBASE@@/proc/cpuinfo ]; then echo "************************************************************" - echo "It seems Linux procfs is not mounted on @@LINUX_DIR@@/proc." + echo "It seems Linux procfs is not mounted on @@LINUXBASE@@/proc." echo "VMware does not work without Linux procfs mounted." echo echo "For details, see linprocfs(5) manpage." diff --git a/emulators/vmware3/files/vmware.sh b/emulators/vmware3/files/vmware.sh index e375434044a4..93c8c4e33be8 100644 --- a/emulators/vmware3/files/vmware.sh +++ b/emulators/vmware3/files/vmware.sh @@ -25,7 +25,7 @@ start) if [ $networking -eq 1 ]; then sysctl net.link.ether.bridge_refresh && bridge="_bridge" kldload if_tap.ko - echo -n >@@LINUX_DIR@@/dev/vmnet1 + echo -n >@@LINUXBASE@@/dev/vmnet1 ifconfig vmnet1 $host_ip netmask $netmask if [ _$bridge != _ ]; then sysctl -w net.link.ether.bridge_refresh=1 diff --git a/emulators/vmware3/pkg-plist b/emulators/vmware3/pkg-plist index 20c1c47c410c..a96657129cf9 100644 --- a/emulators/vmware3/pkg-plist +++ b/emulators/vmware3/pkg-plist @@ -112,17 +112,17 @@ share/doc/vmware/INSTALL share/doc/vmware/README share/doc/vmware/README.FreeBSD share/doc/vmware/SAMBA-LICENSE -@exec mkdir -p /compat/linux/dev;for n in 0 1 2 3 4 5 6 7 8 9; do ln -s /dev/ttyv$n /compat/linux/dev/tty$n;done -@exec ln -s /dev/ttyva /compat/linux/dev/tty10 -@exec ln -s /dev/ttyvb /compat/linux/dev/tty11 -@exec mknod /compat/linux/dev/null c 2 2 -@exec chmod 666 /compat/linux/dev/null -@exec mknod /compat/linux/dev/hda b 0 0x00010002 -@exec mknod /compat/linux/dev/hdb b 0 0x0001000a +@exec mkdir -p %%LINUXBASE%%/dev;for n in 0 1 2 3 4 5 6 7 8 9; do ln -s /dev/ttyv$n %%LINUXBASE%%/dev/tty$n;done +@exec ln -s /dev/ttyva %%LINUXBASE%%/dev/tty10 +@exec ln -s /dev/ttyvb %%LINUXBASE%%/dev/tty11 +@exec mknod %%LINUXBASE%%/dev/null c 2 2 +@exec chmod 666 %%LINUXBASE%%/dev/null +@exec mknod %%LINUXBASE%%/dev/hda b 0 0x00010002 +@exec mknod %%LINUXBASE%%/dev/hdb b 0 0x0001000a @exec ln -s %D/etc/vmware /etc/vmware -@exec mknod /compat/linux/dev/vmmon c 200 0 -@exec mknod /compat/linux/dev/vmnet1 c 149 65537 -@unexec rm -f /etc/vmware /compat/linux/dev/vmmon /compat/linux/dev/vmnet1 /compat/linux/bin/df /compat/linux/dev/tty[0-9]* /compat/linux/dev/hd? /compat/linux/dev/null +@exec mknod %%LINUXBASE%%/dev/vmmon c 200 0 +@exec mknod %%LINUXBASE%%/dev/vmnet1 c 149 65537 +@unexec rm -f /etc/vmware %%LINUXBASE%%/dev/vmmon %%LINUXBASE%%/dev/vmnet1 %%LINUXBASE%%/bin/df %%LINUXBASE%%/dev/tty[0-9]* %%LINUXBASE%%/dev/hd? %%LINUXBASE%%/dev/null @dirrm etc/vmware @dirrm lib/vmware/bin @dirrm lib/vmware/lib/floppies diff --git a/emulators/vmware3/scripts/pre-install b/emulators/vmware3/scripts/pre-install index ac9ecea947a5..3b6a1f8eb30c 100644 --- a/emulators/vmware3/scripts/pre-install +++ b/emulators/vmware3/scripts/pre-install @@ -1,7 +1,7 @@ #!/bin/sh echo Setup Linux compatible /dev directory -linux_dev=${LINUX_DIR}/dev +linux_dev=${LINUXBASE}/dev if [ ! -d $linux_dev ]; then echo Creating $linux_dev mkdir $linux_dev |