From 68ac72eec5b800e19805af5e14a31f3609ae68ab Mon Sep 17 00:00:00 2001 From: todd Date: Tue, 5 Oct 2004 18:32:27 +0000 Subject: [PATCH] Proprietary/commercial x86 machine emulator for x86. based on work from others. --- emulators/vmware/3/Makefile | 112 ++++++ emulators/vmware/3/distinfo | 6 + emulators/vmware/3/files/README.OpenBSD | 60 ++++ emulators/vmware/3/files/config | 9 + .../vmware/3/files/vmware-linuxrtc_unload.sh | 11 + emulators/vmware/3/files/vmware-modules.sh | 67 ++++ .../vmware/3/files/vmware-vmmon_unload.sh | 11 + .../vmware/3/files/vmware-vmnet_unload.sh | 14 + emulators/vmware/3/files/vmware.sh | 13 + emulators/vmware/3/patches/patch-Makefile | 7 + .../vmware/3/patches/patch-source_Makefile | 8 + .../3/patches/patch-source_linuxrtc_Makefile | 10 + .../3/patches/patch-source_vmmon_Makefile | 12 + .../patch-source_vmmon_openbsd_driver_h | 13 + .../patches/patch-source_vmmon_openbsd_rmem_h | 25 ++ .../3/patches/patch-source_vmnet_Makefile | 11 + .../vmware/3/patches/patch-util_vmware-run_c | 12 + emulators/vmware/3/pkg/DESCR | 1 + emulators/vmware/3/pkg/PLIST | 322 ++++++++++++++++++ 19 files changed, 724 insertions(+) create mode 100644 emulators/vmware/3/Makefile create mode 100644 emulators/vmware/3/distinfo create mode 100644 emulators/vmware/3/files/README.OpenBSD create mode 100644 emulators/vmware/3/files/config create mode 100644 emulators/vmware/3/files/vmware-linuxrtc_unload.sh create mode 100755 emulators/vmware/3/files/vmware-modules.sh create mode 100644 emulators/vmware/3/files/vmware-vmmon_unload.sh create mode 100644 emulators/vmware/3/files/vmware-vmnet_unload.sh create mode 100644 emulators/vmware/3/files/vmware.sh create mode 100644 emulators/vmware/3/patches/patch-Makefile create mode 100644 emulators/vmware/3/patches/patch-source_Makefile create mode 100644 emulators/vmware/3/patches/patch-source_linuxrtc_Makefile create mode 100644 emulators/vmware/3/patches/patch-source_vmmon_Makefile create mode 100644 emulators/vmware/3/patches/patch-source_vmmon_openbsd_driver_h create mode 100644 emulators/vmware/3/patches/patch-source_vmmon_openbsd_rmem_h create mode 100644 emulators/vmware/3/patches/patch-source_vmnet_Makefile create mode 100644 emulators/vmware/3/patches/patch-util_vmware-run_c create mode 100644 emulators/vmware/3/pkg/DESCR create mode 100644 emulators/vmware/3/pkg/PLIST diff --git a/emulators/vmware/3/Makefile b/emulators/vmware/3/Makefile new file mode 100644 index 00000000000..65a10ed8fdb --- /dev/null +++ b/emulators/vmware/3/Makefile @@ -0,0 +1,112 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2004/10/05 18:32:27 todd Exp $ + +ONLY_FOR_ARCHS= i386 + +COMMENT= "VMware emulator" +DISTNAME= VMware-workstation-3.2.1-2242 +PKGNAME= vmware-3.2.1_2242p1 +CATEGORIES= emulators +MASTER_SITES= http://vmware-chil.www.conxion.com/software/ \ + http://vmware-svca.www.conxion.com/software/ \ + http://vmware-heva.www.conxion.com/software/ +MASTER_SITES0= http://monkey.org/~marius/vmware-openbsd/ +DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ + vmware-openbsd-1.3${EXTRACT_SUFX}:0 + +HOMEPAGE= http://www.vmware.com/ + +MAINTAINER= Todd T. Fries + +# Restrictive +PERMIT_DISTFILES_CDROM= No +PERMIT_DISTFILES_FTP= No +PERMIT_PACKAGE_CDROM= No +PERMIT_PACKAGE_FTP= No + +#NO_BUILD= Yes +NO_REGRESS= Yes +USE_X11= Yes + +BUILD_DEPENDS+= ::emulators/redhat/base +RUN_DEPENDS+= ${BUILD_DEPENDS} + +WRKDIST= ${WRKDIR}/vmware-openbsd +VMWARE_DISTRIB= ${WRKDIR}/vmware-distrib + +LIB_DATA_DIRS= configurator \ + isoimages \ + messages/chef \ + messages/ja \ + messages/jive \ + smb/codepages \ + help \ + xkeymap + +post-patch: + @chmod 755 ${VMWARE_DISTRIB}/bin/vmware + @if [ x`sysctl -n kern.emul.linux` = x1 ]; then \ + ${WRKDIST}/vmware-any-any-update37/update ${VMWARE_DISTRIB}/bin/vmware; \ + else \ + echo "need to set kern.emul.linux=1"; \ + exit 1; \ + fi + +do-configure: + @perl -pi -e 's|_PREFIX_|${PREFIX}|g' ${WRKSRC}/util/vmware-run.c + +pre-install: + @sed -e "s|@PREFIX@|${TRUEPREFIX}|g" ${FILESDIR}/vmware-modules.sh > \ + ${WRKBUILD}/vmware-modules.sh + +do-install: + ${INSTALL_DATA_DIR} ${PREFIX}/lib/vmware + ${INSTALL_PROGRAM_DIR} ${PREFIX}/lib/vmware/bin + ${INSTALL_SCRIPT} ${VMWARE_DISTRIB}/bin/vmware \ + ${PREFIX}/lib/vmware/bin + ${INSTALL_SCRIPT} ${VMWARE_DISTRIB}/bin/vmnet-netifup ${PREFIX}/bin + ${INSTALL_SCRIPT} ${VMWARE_DISTRIB}/lib/bin/* ${PREFIX}/lib/vmware/bin + @sed -e "s|@PREFIX@|${TRUEPREFIX}|g" ${FILESDIR}/vmware.sh > \ + ${PREFIX}/bin/vmware + @chown ${BINOWN} ${PREFIX}/bin/vmware + @chgrp ${BINGRP} ${PREFIX}/bin/vmware + @chmod ${BINMODE} ${PREFIX}/bin/vmware + ${INSTALL_DATA_DIR} ${PREFIX}/lib/vmware/licenses/{site,user} +.for d in ${LIB_DATA_DIRS} + ${INSTALL_DATA_DIR} ${PREFIX}/lib/vmware/${d} + ${INSTALL_DATA} ${VMWARE_DISTRIB}/lib/${d}/* ${PREFIX}/lib/vmware/${d} +.endfor + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/vmware + ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/vmware + ${INSTALL_DATA} ${FILESDIR}/README.OpenBSD ${PREFIX}/share/doc/vmware + @sed -e "s|@PREFIX@|${TRUEPREFIX}|g" ${FILESDIR}/config > \ + ${PREFIX}/share/examples/vmware/config + + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/vmware + ${INSTALL_DATA_DIR} ${PREFIX}/lib/vmware/modules + ${INSTALL_DATA_DIR} ${PREFIX}/lib/vmware/bin + ${INSTALL_DATA_DIR} ${PREFIX}/libexec + ${INSTALL_DATA} ${WRKBUILD}/README \ + ${PREFIX}/share/doc/vmware/README.NetBSD + ${INSTALL_DATA} ${WRKBUILD}/README.OpenBSD \ + ${PREFIX}/share/doc/vmware/README.OpenBSD.Modules + ${INSTALL_DATA} ${WRKBUILD}/source/linuxrtc/linuxrtc.o \ + ${WRKBUILD}/source/vmmon/vmmon.o \ + ${WRKBUILD}/source/vmnet/if_hub.o \ + ${PREFIX}/lib/vmware/modules + ${INSTALL_PROGRAM} ${WRKBUILD}/vmware-any-any-update37/update \ + ${PREFIX}/lib/vmware/bin + ${INSTALL_PROGRAM} ${WRKBUILD}/util/vmware-run ${PREFIX}/lib/vmware/bin + ${INSTALL_SCRIPT} ${WRKBUILD}/source/linuxrtc/linuxrtc_post.sh \ + ${PREFIX}/libexec/vmware-linuxrtc_load.sh + ${INSTALL_SCRIPT} ${WRKBUILD}/source/vmmon/vmmon_post.sh \ + ${PREFIX}/libexec/vmware-vmmon_load.sh + ${INSTALL_SCRIPT} ${WRKBUILD}/source/vmnet/if_hub_post.sh \ + ${PREFIX}/libexec/vmware-vmnet_load.sh +.for S in linuxrtc vmmon vmnet + ${INSTALL_SCRIPT} ${FILESDIR}/vmware-${S}_unload.sh \ + ${PREFIX}/libexec +.endfor + ${INSTALL_SCRIPT} ${WRKBUILD}/vmware-modules.sh \ + ${PREFIX}/bin/vmware-modules + +.include diff --git a/emulators/vmware/3/distinfo b/emulators/vmware/3/distinfo new file mode 100644 index 00000000000..2663aae2574 --- /dev/null +++ b/emulators/vmware/3/distinfo @@ -0,0 +1,6 @@ +MD5 (VMware-workstation-3.2.1-2242.tar.gz) = 56dccf022582a374cf2eac06796115cf +MD5 (vmware-openbsd-1.3.tar.gz) = b4bc61fa2d641b9102976b4ff5c8aa55 +RMD160 (VMware-workstation-3.2.1-2242.tar.gz) = f2a6c3cc38f3c3851446e8902237b958367293a1 +RMD160 (vmware-openbsd-1.3.tar.gz) = 2d9ce113b2841152fedc13ddcdc3b77e4e10f8e0 +SHA1 (VMware-workstation-3.2.1-2242.tar.gz) = 3f3c8539270707087525e220264a38639bf17547 +SHA1 (vmware-openbsd-1.3.tar.gz) = 7ad688e9aec12f3347e3dbadad2c057f1b8310cb diff --git a/emulators/vmware/3/files/README.OpenBSD b/emulators/vmware/3/files/README.OpenBSD new file mode 100644 index 00000000000..f95ac3d9718 --- /dev/null +++ b/emulators/vmware/3/files/README.OpenBSD @@ -0,0 +1,60 @@ +# $OpenBSD: README.OpenBSD,v 1.1.1.1 2004/10/05 18:32:28 todd Exp $ + +Pre-requisites +-------------- + +1) Linux emulation must be enabled: + + # sysctl kern.emul.linux=1 + +2) procfs mounted with Linux compatibility: + + # mkdir /proc + # mount_procfs -o linux /proc /proc + +3) Update /emul/linux/dev: + + # cd /emul/linux/dev + # ln -sf tty1 tty0 + +Configuration / Execution +------------------------- + +1) Edit /etc/vmware/config to suit your needs. + +2) Load the LKMs: + + # vmware-modules load + +3) Bring up the vmware network interface(s): + + # vmnet-netifup -d /var/run/vmnet1.pid /dev/vmnet1 vmnet1 + +4) Configure the network interface(s) (must match /etc/vmware/config): + + # ifconfig vmnet1 192.168.0.20 + +5) Run vmware-run: + + # vmware + +Deinstallation / Shutdown +------------------------- + +1) Shutdown vmnet-netifup: + + # kill -INT `cat /var/run/vmnet1.pid` + +2) Unload LKMs: + + # vmware-modules unload + +Bugs / Known Issues +------------------- + +1) Virtual machines can only use "host networking", and you must bridge + vmnet1 to a real interface for it to work. + +2) vmware3 doesn't respect ${SYSCONFDIR} due to paths being hardcoded. + +3) These instructions are not complete ;) diff --git a/emulators/vmware/3/files/config b/emulators/vmware/3/files/config new file mode 100644 index 00000000000..5635b78df3f --- /dev/null +++ b/emulators/vmware/3/files/config @@ -0,0 +1,9 @@ +vmware.fullpath = "@PREFIX@/bin/vmware" +wizard.fullpath = "@PREFIX@/bin/vmware-wizard" +dhcpd.fullpath = "@PREFIX@/bin/vmnet-dhcpd" +loop.fullpath = "@PREFIX@/bin/vmware-loop" +control.fullpath = "@PREFIX@/bin/vmware-control" +libdir = "@PREFIX@/lib/vmware" +vmnet1.HostOnlyAddress = "192.168.0.20" +vmnet1.HostOnlyNetMask = "255.255.255.0" +xinfo.noSHM = "true" diff --git a/emulators/vmware/3/files/vmware-linuxrtc_unload.sh b/emulators/vmware/3/files/vmware-linuxrtc_unload.sh new file mode 100644 index 00000000000..506fbaba257 --- /dev/null +++ b/emulators/vmware/3/files/vmware-linuxrtc_unload.sh @@ -0,0 +1,11 @@ +#!/bin/sh +# $OpenBSD: vmware-linuxrtc_unload.sh,v 1.1.1.1 2004/10/05 18:32:28 todd Exp $ + +dev=/dev/rtc +rm=/bin/rm + +if [ -c $dev ]; then + $rm $dev +fi + +exit 0 diff --git a/emulators/vmware/3/files/vmware-modules.sh b/emulators/vmware/3/files/vmware-modules.sh new file mode 100755 index 00000000000..c86cfdcb136 --- /dev/null +++ b/emulators/vmware/3/files/vmware-modules.sh @@ -0,0 +1,67 @@ +#!/bin/sh +# $OpenBSD: vmware-modules.sh,v 1.1.1.1 2004/10/05 18:32:28 todd Exp $ + +modload=/sbin/modload +modunload=/sbin/modunload +prefix=@PREFIX@ +lkmbase=$prefix/lib/vmware/modules +scriptbase=$prefix/libexec/vmware +sysctl=/sbin/sysctl + +sl=`$sysctl -n kern.securelevel` + +check_perms() +{ + if [ `id -u` -ne 0 ]; then + echo "ERROR: You must be root to run this script." + exit 1 + fi +} + +check_securelevel() +{ +if [ "$sl" -gt 0 ]; then + echo "ERROR: The system's securelevel is currently $sl. It must be" + echo " less than or equal to 0 to load kernel modules." + echo " Consult securelevel(7) and rc(8) for more information" + echo " on lowering the securelevel and its effects." +fi +} + +load_modules() +{ + TMPFILE1=`mktemp /tmp/linuxrtc.XXXXXXXXXX` || exit 1 + TMPFILE2=`mktemp /tmp/vmmon.XXXXXXXXXX` || exit 1 + TMPFILE3=`mktemp /tmp/if_hub.XXXXXXXXXX` || exit 1 + $modload -e rtc_lkmentry -o $TMPFILE1 \ + -p $scriptbase-linuxrtc_load.sh $lkmbase/linuxrtc.o + $modload -e vmmon_lkmentry -o $TMPFILE2 \ + -p $scriptbase-vmmon_load.sh $lkmbase/vmmon.o + $modload -e vmnet_lkmentry -o $TMPFILE3 \ + -p $scriptbase-vmnet_load.sh $lkmbase/if_hub.o +} + +unload_modules() +{ + $modunload -n linuxrtc -p $scriptbase-linuxrtc_unload.sh + $modunload -n vmmon -p $scriptbase-vmmon_unload.sh + $modunload -n vmnet -p $scriptbase-vmnet_unload.sh +} + +check_perms +check_securelevel + +case $1 in + load) + load_modules + ;; + unload) + unload_modules + ;; + *) + echo "usage: $0 $1 [ load | unload ]" + exit 1 + ;; +esac + +exit 0 diff --git a/emulators/vmware/3/files/vmware-vmmon_unload.sh b/emulators/vmware/3/files/vmware-vmmon_unload.sh new file mode 100644 index 00000000000..d252c082308 --- /dev/null +++ b/emulators/vmware/3/files/vmware-vmmon_unload.sh @@ -0,0 +1,11 @@ +#!/bin/sh +# $OpenBSD: vmware-vmmon_unload.sh,v 1.1.1.1 2004/10/05 18:32:27 todd Exp $ + +dev=/dev/vmmon +rm=/bin/rm + +if [ -c $dev ]; then + $rm $dev +fi + +exit 0 diff --git a/emulators/vmware/3/files/vmware-vmnet_unload.sh b/emulators/vmware/3/files/vmware-vmnet_unload.sh new file mode 100644 index 00000000000..6a65ae34ed8 --- /dev/null +++ b/emulators/vmware/3/files/vmware-vmnet_unload.sh @@ -0,0 +1,14 @@ +#!/bin/sh +# $OpenBSD: vmware-vmnet_unload.sh,v 1.1.1.1 2004/10/05 18:32:28 todd Exp $ + +dev=/dev/vmnet +rm=/bin/rm + +for i in 0 1 2 3 + do + if [ -c "$dev""$i" ]; then + $rm -f "$dev""$i" + fi + done + +exit 0 diff --git a/emulators/vmware/3/files/vmware.sh b/emulators/vmware/3/files/vmware.sh new file mode 100644 index 00000000000..de9039a44ce --- /dev/null +++ b/emulators/vmware/3/files/vmware.sh @@ -0,0 +1,13 @@ +#! /bin/sh + +PREFIX=@PREFIX@ + +if [ ! -e /proc/cpuinfo ]; then + echo "ERROR: procfs must be mounted with the linux option in order" + echo " for VMware to run." + echo " Consult mount_procfs(8) for more information." + exit 1 +fi + +exec ${PREFIX}/lib/vmware/bin/vmware-run "$@" + diff --git a/emulators/vmware/3/patches/patch-Makefile b/emulators/vmware/3/patches/patch-Makefile new file mode 100644 index 00000000000..a143ae91524 --- /dev/null +++ b/emulators/vmware/3/patches/patch-Makefile @@ -0,0 +1,7 @@ +$OpenBSD: patch-Makefile,v 1.1.1.1 2004/10/05 18:32:28 todd Exp $ +--- Makefile.orig 2003-09-13 22:53:12.000000000 -0500 ++++ Makefile 2003-09-13 22:54:32.000000000 -0500 +@@ -0,0 +1,3 @@ ++SUBDIR+=source ++SUBDIR+=util ++.include diff --git a/emulators/vmware/3/patches/patch-source_Makefile b/emulators/vmware/3/patches/patch-source_Makefile new file mode 100644 index 00000000000..a4bf3f96253 --- /dev/null +++ b/emulators/vmware/3/patches/patch-source_Makefile @@ -0,0 +1,8 @@ +$OpenBSD: patch-source_Makefile,v 1.1.1.1 2004/10/05 18:32:28 todd Exp $ +--- source/Makefile.orig 2003-09-13 22:55:33.000000000 -0500 ++++ source/Makefile 2003-09-13 22:56:28.000000000 -0500 +@@ -0,0 +1,4 @@ ++SUBDIR+=linuxrtc ++SUBDIR+=vmmon ++SUBDIR+=vmnet ++.include diff --git a/emulators/vmware/3/patches/patch-source_linuxrtc_Makefile b/emulators/vmware/3/patches/patch-source_linuxrtc_Makefile new file mode 100644 index 00000000000..109aac2e109 --- /dev/null +++ b/emulators/vmware/3/patches/patch-source_linuxrtc_Makefile @@ -0,0 +1,10 @@ +$OpenBSD: patch-source_linuxrtc_Makefile,v 1.1.1.1 2004/10/05 18:32:28 todd Exp $ +--- source/linuxrtc/Makefile.orig 2003-07-21 14:38:46.000000000 -0500 ++++ source/linuxrtc/Makefile 2003-09-13 22:57:22.000000000 -0500 +@@ -1,5 +1,5 @@ + MODOBJ= linuxrtc.o +-CFLAGS= -D_KERNEL -I/sys ++CFLAGS+= -D_KERNEL -I/sys + SRCS= rtc.c + OBJS= ${SRCS:.c=.o} + diff --git a/emulators/vmware/3/patches/patch-source_vmmon_Makefile b/emulators/vmware/3/patches/patch-source_vmmon_Makefile new file mode 100644 index 00000000000..da63f582875 --- /dev/null +++ b/emulators/vmware/3/patches/patch-source_vmmon_Makefile @@ -0,0 +1,12 @@ +$OpenBSD: patch-source_vmmon_Makefile,v 1.1.1.1 2004/10/05 18:32:28 todd Exp $ +--- source/vmmon/Makefile.orig 2003-07-26 14:29:03.000000000 -0500 ++++ source/vmmon/Makefile 2004-02-05 11:10:33.000000000 -0600 +@@ -1,7 +1,7 @@ + MODOBJ= vmmon.o + + CFLAGS+= -D_KERNEL -I/sys -I. -I${.CURDIR}/include \ +- -I${.CURDIR}/common -I${.CURDIR}/openbsd -DMODULE ++ -I${.CURDIR}/common -I${.CURDIR}/openbsd -I${.CURDIR}/../ -DMODULE + + .PATH: ${.CURDIR}/common + .PATH: ${.CURDIR}/openbsd diff --git a/emulators/vmware/3/patches/patch-source_vmmon_openbsd_driver_h b/emulators/vmware/3/patches/patch-source_vmmon_openbsd_driver_h new file mode 100644 index 00000000000..fae6133e2a4 --- /dev/null +++ b/emulators/vmware/3/patches/patch-source_vmmon_openbsd_driver_h @@ -0,0 +1,13 @@ +$OpenBSD: patch-source_vmmon_openbsd_driver_h,v 1.1.1.1 2004/10/05 18:32:28 todd Exp $ +--- source/vmmon/openbsd/driver.h.orig 2003-07-26 14:29:03.000000000 -0500 ++++ source/vmmon/openbsd/driver.h 2004-02-05 11:10:33.000000000 -0600 +@@ -67,7 +67,7 @@ struct vmmon_softc { + char buf[NETBSDLOG_BUFFER_SIZE]; + }; + +-#define VMNUM(dev) (minor(dev) - 1) +-#define MAKEVMDEV(m,v) (makedev(major(m),(v)+1)) ++#define VMNUM(dev) (minor(dev) - 2) ++#define MAKEVMDEV(m,v) (makedev(major(m),(v) + 2)) + + #endif diff --git a/emulators/vmware/3/patches/patch-source_vmmon_openbsd_rmem_h b/emulators/vmware/3/patches/patch-source_vmmon_openbsd_rmem_h new file mode 100644 index 00000000000..96c316da3c4 --- /dev/null +++ b/emulators/vmware/3/patches/patch-source_vmmon_openbsd_rmem_h @@ -0,0 +1,25 @@ +$OpenBSD: patch-source_vmmon_openbsd_rmem_h,v 1.1.1.1 2004/10/05 18:32:28 todd Exp $ +--- source/vmmon/openbsd/rmem.h.orig 2004-02-05 11:10:33.000000000 -0600 ++++ source/vmmon/openbsd/rmem.h 2004-02-05 11:10:33.000000000 -0600 +@@ -0,0 +1,21 @@ ++/* ++ * rmem.h ++ * ++ * Copyright (c) 2004 Marius Aamodt Eriksen ++ * All rights reserved. ++ * ++ * $Id: patch-source_vmmon_openbsd_rmem_h,v 1.1.1.1 2004/10/05 18:32:28 todd Exp $ ++ */ ++ ++#ifndef _RMEM_H ++#define _RMEM_H ++ ++struct rmem_pgrange { ++ TAILQ_ENTRY(rmem_pgrange) rp_entry; ++ paddr_t rp_paddr; ++ u_int rp_npages; ++}; ++ ++TAILQ_HEAD(rmem_pglist, rmem_pgrange); ++ ++#endif /* _RMEM_H */ diff --git a/emulators/vmware/3/patches/patch-source_vmnet_Makefile b/emulators/vmware/3/patches/patch-source_vmnet_Makefile new file mode 100644 index 00000000000..1de79059f9e --- /dev/null +++ b/emulators/vmware/3/patches/patch-source_vmnet_Makefile @@ -0,0 +1,11 @@ +$OpenBSD: patch-source_vmnet_Makefile,v 1.1.1.1 2004/10/05 18:32:28 todd Exp $ +--- source/vmnet/Makefile.orig 2003-07-26 16:07:47.000000000 -0500 ++++ source/vmnet/Makefile 2003-09-13 22:57:42.000000000 -0500 +@@ -1,6 +1,6 @@ + MODOBJ= if_hub.o + +-CFLAGS= -D_KERNEL -DNBPFILTER=1 -DINET -I/sys ++CFLAGS+= -D_KERNEL -DNBPFILTER=1 -DINET -I/sys + #-fno-stack-protector + + SRCS= if_hubmod.c diff --git a/emulators/vmware/3/patches/patch-util_vmware-run_c b/emulators/vmware/3/patches/patch-util_vmware-run_c new file mode 100644 index 00000000000..bac12c2e74d --- /dev/null +++ b/emulators/vmware/3/patches/patch-util_vmware-run_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-util_vmware-run_c,v 1.1.1.1 2004/10/05 18:32:28 todd Exp $ +--- util/vmware-run.c.orig 2003-08-08 14:42:51.000000000 -0600 ++++ util/vmware-run.c 2003-10-14 00:47:05.000000000 -0600 +@@ -15,7 +15,7 @@ main(int argc, char **argv) + { + int fd; + +- argv[0] = "/usr/local/bin/vmware"; ++ argv[0] = "_PREFIX_/lib/vmware/bin/vmware"; + + fd = open("/dev/vmmon", O_RDWR, 0); + if (fd == -1) diff --git a/emulators/vmware/3/pkg/DESCR b/emulators/vmware/3/pkg/DESCR new file mode 100644 index 00000000000..43f221b4e8d --- /dev/null +++ b/emulators/vmware/3/pkg/DESCR @@ -0,0 +1 @@ +Proprietary/commercial x86 machine emulator. diff --git a/emulators/vmware/3/pkg/PLIST b/emulators/vmware/3/pkg/PLIST new file mode 100644 index 00000000000..d1199340eb8 --- /dev/null +++ b/emulators/vmware/3/pkg/PLIST @@ -0,0 +1,322 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2004/10/05 18:32:27 todd Exp $ +bin/vmnet-netifup +bin/vmware +bin/vmware-modules +lib/vmware/ +lib/vmware/bin/ +lib/vmware/bin/update +lib/vmware/bin/vmware +lib/vmware/bin/vmware-mks +lib/vmware/bin/vmware-run +lib/vmware/bin/vmware-ui +lib/vmware/configurator/ +lib/vmware/configurator/vmnet-dhcpd.conf +lib/vmware/configurator/vmnet-nat.conf +lib/vmware/configurator/vmnet-smb.conf +lib/vmware/help/ +lib/vmware/help/CUSTOM-NETWORK.gif +lib/vmware/help/ConfigWiz.htm +lib/vmware/help/FullScreen.gif +lib/vmware/help/Help.gif +lib/vmware/help/PowerOff.gif +lib/vmware/help/PowerOn.gif +lib/vmware/help/PowerReset.gif +lib/vmware/help/Resume.gif +lib/vmware/help/Suspend.gif +lib/vmware/help/Wizcd.htm +lib/vmware/help/Wizcongrats.htm +lib/vmware/help/Wizdisk.htm +lib/vmware/help/Wizdisk3.htm +lib/vmware/help/WizdiskType.htm +lib/vmware/help/Wizfloppy.htm +lib/vmware/help/Wizguestkit.htm +lib/vmware/help/Wiznetwork.htm +lib/vmware/help/Wizos.htm +lib/vmware/help/Wizpath.htm +lib/vmware/help/about_this_help.htm +lib/vmware/help/commandref_linux.htm +lib/vmware/help/config_editor.htm +lib/vmware/help/config_editor_newvm.htm +lib/vmware/help/configvm.htm +lib/vmware/help/configvm_adv.htm +lib/vmware/help/configvm_automation.htm +lib/vmware/help/configvm_debug.htm +lib/vmware/help/configvm_disableaccel.htm +lib/vmware/help/configvm_display-problems.htm +lib/vmware/help/configvm_displayname.htm +lib/vmware/help/configvm_guestos.htm +lib/vmware/help/configvm_logs.htm +lib/vmware/help/configvm_memory.htm +lib/vmware/help/configvm_options.htm +lib/vmware/help/configvm_state.htm +lib/vmware/help/configvm_virtualdisk.htm +lib/vmware/help/configvmware-disablemem.htm +lib/vmware/help/configvmware-inputgrab.htm +lib/vmware/help/configvmware-maxmemory.htm +lib/vmware/help/configvmware-shift.htm +lib/vmware/help/configvmware.htm +lib/vmware/help/configvmware_copy_paste.htm +lib/vmware/help/devices.htm +lib/vmware/help/devices_autostart.htm +lib/vmware/help/devices_cdrom-changeconnect.htm +lib/vmware/help/devices_cdrom-disable.htm +lib/vmware/help/devices_cdrom-issues-linux.htm +lib/vmware/help/devices_cdrom-issues.htm +lib/vmware/help/devices_cdrom-removable.htm +lib/vmware/help/devices_cdrom-remove.htm +lib/vmware/help/devices_cdrom.htm +lib/vmware/help/devices_floppy.htm +lib/vmware/help/devices_floppy_changeconnect.htm +lib/vmware/help/devices_genscsi.htm +lib/vmware/help/devices_genscsi_linux.htm +lib/vmware/help/devices_modem.htm +lib/vmware/help/devices_mouse.htm +lib/vmware/help/devices_netadapter.htm +lib/vmware/help/devices_parallel-info.htm +lib/vmware/help/devices_parallel-onguestos.htm +lib/vmware/help/devices_parallel.htm +lib/vmware/help/devices_parallel_changeconnect.htm +lib/vmware/help/devices_pcmcia.htm +lib/vmware/help/devices_plaindisk-info.htm +lib/vmware/help/devices_plaindisk.htm +lib/vmware/help/devices_printer.htm +lib/vmware/help/devices_rawdisk.htm +lib/vmware/help/devices_remove_netadapter.htm +lib/vmware/help/devices_scanner.htm +lib/vmware/help/devices_scsi-bios.htm +lib/vmware/help/devices_scsi-guestos.htm +lib/vmware/help/devices_scsi.htm +lib/vmware/help/devices_scsi_info.htm +lib/vmware/help/devices_scsi_vs-ide.htm +lib/vmware/help/devices_serial.htm +lib/vmware/help/devices_sound-issues.htm +lib/vmware/help/devices_sound.htm +lib/vmware/help/devices_sound_changeconn.htm +lib/vmware/help/devices_usb-info.htm +lib/vmware/help/devices_usb.htm +lib/vmware/help/devices_video-linux-res.htm +lib/vmware/help/devices_video-linux.htm +lib/vmware/help/devices_video-win2000.htm +lib/vmware/help/devices_video-win95.htm +lib/vmware/help/devices_video-win98.htm +lib/vmware/help/devices_virtualdrive-consolidate.htm +lib/vmware/help/devices_virtualdrive-diskmode.htm +lib/vmware/help/devices_virtualdrive-virtualdisk-physical.htm +lib/vmware/help/devices_virtualdrive-virtualdisk-reuse.htm +lib/vmware/help/devices_virtualdrive-virtualdisk.htm +lib/vmware/help/devices_virtualdrive.htm +lib/vmware/help/devices_zipdrive.htm +lib/vmware/help/glossary.htm +lib/vmware/help/grab.htm +lib/vmware/help/guestos-corellinux.htm +lib/vmware/help/guestos-dos.htm +lib/vmware/help/guestos-freebsd.htm +lib/vmware/help/guestos-kit.htm +lib/vmware/help/guestos-mandrake-linux.htm +lib/vmware/help/guestos-mandrake-linux8081.htm +lib/vmware/help/guestos-mandrake-linux82.htm +lib/vmware/help/guestos-novell-4.htm +lib/vmware/help/guestos-novell-5.htm +lib/vmware/help/guestos-novell-6.htm +lib/vmware/help/guestos-novell-zenwrks.htm +lib/vmware/help/guestos-openlinux.htm +lib/vmware/help/guestos-rawdisk.htm +lib/vmware/help/guestos-redhat-linux.htm +lib/vmware/help/guestos-redhat-linux6.x.htm +lib/vmware/help/guestos-redhat-linux7.0.htm +lib/vmware/help/guestos-redhat-linux7.1.htm +lib/vmware/help/guestos-redhat-linux7.3.htm +lib/vmware/help/guestos-solaris7.htm +lib/vmware/help/guestos-suse-linux-6.x.htm +lib/vmware/help/guestos-suse-linux-7.0.htm +lib/vmware/help/guestos-suse-linux-7.1.htm +lib/vmware/help/guestos-suse-linux-8.0.htm +lib/vmware/help/guestos-suse-linux.htm +lib/vmware/help/guestos-turbolinux-6.0.htm +lib/vmware/help/guestos-turbolinux-7.0.htm +lib/vmware/help/guestos-turbolinux.htm +lib/vmware/help/guestos-win2000.htm +lib/vmware/help/guestos-win95.htm +lib/vmware/help/guestos-win98.htm +lib/vmware/help/guestos-winNETSvr.htm +lib/vmware/help/guestos-winXP.htm +lib/vmware/help/guestos-winme.htm +lib/vmware/help/guestos-winnt.htm +lib/vmware/help/guestos.htm +lib/vmware/help/hotkey.htm +lib/vmware/help/image001.gif +lib/vmware/help/index.htm +lib/vmware/help/install_apps.htm +lib/vmware/help/introduction.htm +lib/vmware/help/keyboard_issus.htm +lib/vmware/help/lock_files.htm +lib/vmware/help/memory.htm +lib/vmware/help/migratevm-toupgrade.htm +lib/vmware/help/migratevm-uninstall.htm +lib/vmware/help/migratevm-upgrade.htm +lib/vmware/help/migratevm.htm +lib/vmware/help/migratevm_buildno.htm +lib/vmware/help/migratevm_pc.htm +lib/vmware/help/migrating.htm +lib/vmware/help/movefiles.htm +lib/vmware/help/networking-components.htm +lib/vmware/help/networking-onguestos.htm +lib/vmware/help/networking-onhost.htm +lib/vmware/help/networking-promiscuous.htm +lib/vmware/help/networking.htm +lib/vmware/help/networking_assignip.htm +lib/vmware/help/networking_bridged-onguestos.htm +lib/vmware/help/networking_bridged-second.htm +lib/vmware/help/networking_bridged.htm +lib/vmware/help/networking_changing.htm +lib/vmware/help/networking_custom.htm +lib/vmware/help/networking_host-onguestos.htm +lib/vmware/help/networking_host-twointerfaces.htm +lib/vmware/help/networking_host.htm +lib/vmware/help/networking_host_ipleaks.htm +lib/vmware/help/networking_host_issues-linux.htm +lib/vmware/help/networking_host_routing.htm +lib/vmware/help/networking_host_samba.htm +lib/vmware/help/networking_ipmasqerade.htm +lib/vmware/help/networking_ipmasqerade_firewallrh.htm +lib/vmware/help/networking_ipmasqerade_fwconfig.htm +lib/vmware/help/networking_macaddr.htm +lib/vmware/help/networking_nat.htm +lib/vmware/help/networking_nat_intro.htm +lib/vmware/help/networking_proxy.htm +lib/vmware/help/networking_wireless.htm +lib/vmware/help/newvm-diskpartition.htm +lib/vmware/help/newvm-diskpartition_access.htm +lib/vmware/help/newvm-diskpartition_hide.htm +lib/vmware/help/newvm-dualboot-hdwr.htm +lib/vmware/help/newvm-dualboot-scsi.htm +lib/vmware/help/newvm-dualboot.htm +lib/vmware/help/newvm-virtualdisk.htm +lib/vmware/help/newvm.htm +lib/vmware/help/newvm_wizard.htm +lib/vmware/help/newvm_wizard_process_cdrom.htm +lib/vmware/help/newvm_wizard_process_directory.htm +lib/vmware/help/newvm_wizard_process_disksize.htm +lib/vmware/help/newvm_wizard_process_disktype.htm +lib/vmware/help/newvm_wizard_process_floppy.htm +lib/vmware/help/newvm_wizard_process_guestos.htm +lib/vmware/help/newvm_wizard_process_network.htm +lib/vmware/help/perform-guestos-linux.htm +lib/vmware/help/perform-guestos-win2000.htm +lib/vmware/help/perform-guestos-win95-98.htm +lib/vmware/help/perform-linuxhost.htm +lib/vmware/help/perform.htm +lib/vmware/help/screensavers.htm +lib/vmware/help/serialnumber.htm +lib/vmware/help/sharefiles_hos_gos.htm +lib/vmware/help/sharevm.htm +lib/vmware/help/sizewin.htm +lib/vmware/help/sizewin_fullscreen.htm +lib/vmware/help/startvm.htm +lib/vmware/help/startvmware.htm +lib/vmware/help/statevm.htm +lib/vmware/help/statevm_off.htm +lib/vmware/help/statevm_on.htm +lib/vmware/help/statevm_repeat_resume.htm +lib/vmware/help/statevm_reset.htm +lib/vmware/help/statevm_resume.htm +lib/vmware/help/statevm_suspend.htm +lib/vmware/help/support.htm +lib/vmware/help/switching.htm +lib/vmware/help/sysreqs.htm +lib/vmware/help/toc.htm +lib/vmware/help/user-permissions-linux.htm +lib/vmware/help/vm_common.htm +lib/vmware/help/vmtools-copypaste.htm +lib/vmware/help/vmtools-defrag.htm +lib/vmware/help/vmtools-shrink.htm +lib/vmware/help/vmtools.htm +lib/vmware/help/vmtools_install.htm +lib/vmware/help/vmtools_install_freebsd.htm +lib/vmware/help/vmtools_install_linux.htm +lib/vmware/help/vmtools_install_win.htm +lib/vmware/help/vmtools_prefs.htm +lib/vmware/help/whatsnew.htm +lib/vmware/isoimages/ +lib/vmware/isoimages/freebsd.iso +lib/vmware/isoimages/linux.iso +lib/vmware/isoimages/windows.iso +lib/vmware/licenses/ +lib/vmware/licenses/site/ +lib/vmware/licenses/user/ +lib/vmware/messages/ +lib/vmware/messages/chef/ +lib/vmware/messages/chef/vmware-mks.vmsg +lib/vmware/messages/chef/vmware-ui.vmsg +lib/vmware/messages/chef/vmware.vmsg +lib/vmware/messages/ja/ +lib/vmware/messages/ja/vmware-mks.vmsg +lib/vmware/messages/ja/vmware-ui.vmsg +lib/vmware/messages/ja/vmware.vmsg +lib/vmware/messages/jive/ +lib/vmware/messages/jive/vmware-mks.vmsg +lib/vmware/messages/jive/vmware-ui.vmsg +lib/vmware/messages/jive/vmware.vmsg +lib/vmware/modules/ +lib/vmware/modules/if_hub.o +lib/vmware/modules/linuxrtc.o +lib/vmware/modules/vmmon.o +lib/vmware/smb/ +lib/vmware/smb/codepages/ +lib/vmware/smb/codepages/codepage.437 +lib/vmware/smb/codepages/codepage.737 +lib/vmware/smb/codepages/codepage.850 +lib/vmware/smb/codepages/codepage.852 +lib/vmware/smb/codepages/codepage.861 +lib/vmware/smb/codepages/codepage.866 +lib/vmware/smb/codepages/codepage.932 +lib/vmware/smb/codepages/codepage.936 +lib/vmware/smb/codepages/codepage.949 +lib/vmware/smb/codepages/codepage.950 +lib/vmware/xkeymap/ +lib/vmware/xkeymap/be101 +lib/vmware/xkeymap/be104 +lib/vmware/xkeymap/chde101 +lib/vmware/xkeymap/chde104 +lib/vmware/xkeymap/chfr101 +lib/vmware/xkeymap/chfr104 +lib/vmware/xkeymap/de101 +lib/vmware/xkeymap/de104 +lib/vmware/xkeymap/dk101 +lib/vmware/xkeymap/dk104 +lib/vmware/xkeymap/es101 +lib/vmware/xkeymap/es104 +lib/vmware/xkeymap/fi101 +lib/vmware/xkeymap/fi104 +lib/vmware/xkeymap/fr101 +lib/vmware/xkeymap/fr104 +lib/vmware/xkeymap/gb101 +lib/vmware/xkeymap/gb104 +lib/vmware/xkeymap/is101 +lib/vmware/xkeymap/is104 +lib/vmware/xkeymap/it101 +lib/vmware/xkeymap/it104 +lib/vmware/xkeymap/jp106 +lib/vmware/xkeymap/jp109 +lib/vmware/xkeymap/no101 +lib/vmware/xkeymap/no104 +lib/vmware/xkeymap/pt101 +lib/vmware/xkeymap/pt104 +lib/vmware/xkeymap/se101 +lib/vmware/xkeymap/se104 +lib/vmware/xkeymap/us101 +lib/vmware/xkeymap/us104 +libexec/vmware-linuxrtc_load.sh +libexec/vmware-linuxrtc_unload.sh +libexec/vmware-vmmon_load.sh +libexec/vmware-vmmon_unload.sh +libexec/vmware-vmnet_load.sh +libexec/vmware-vmnet_unload.sh +share/doc/vmware/ +share/doc/vmware/README.NetBSD +share/doc/vmware/README.OpenBSD +share/doc/vmware/README.OpenBSD.Modules +share/examples/vmware/ +@sample /etc/vmware/ +share/examples/vmware/config +@sample /etc/vmware/config