aboutsummaryrefslogtreecommitdiff
path: root/emulators/vmware2
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2000-09-22 16:55:01 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2000-09-22 16:55:01 +0000
commite20b8f349973bf2bc4d5e492041f0be9c232b369 (patch)
tree3fef21d7f3ec792940b4225aeb56523db976f309 /emulators/vmware2
parentd2a1700331fff6c4c78ad5a5992326410665eed8 (diff)
downloadports-e20b8f349973bf2bc4d5e492041f0be9c232b369.tar.gz
ports-e20b8f349973bf2bc4d5e492041f0be9c232b369.zip
Notes
Diffstat (limited to 'emulators/vmware2')
-rw-r--r--emulators/vmware2/Makefile15
-rw-r--r--emulators/vmware2/files/patch-bd6
2 files changed, 11 insertions, 10 deletions
diff --git a/emulators/vmware2/Makefile b/emulators/vmware2/Makefile
index 212e1906b76a..84bbe96a9771 100644
--- a/emulators/vmware2/Makefile
+++ b/emulators/vmware2/Makefile
@@ -8,7 +8,7 @@
PORTNAME= vmware2
PORTVERSION= 2.0.2.621
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= emulators linux
MASTER_SITES= http://www4.vmware.com/software/ \
http://vmware-svca.www.conxion.com/software/ \
@@ -29,12 +29,11 @@ PATCHFILES= vmmon-freebsd-0.98.tar.gz \
# freebsd-emulation mailing list with the following maintainer address CC'ed.
MAINTAINER= vns@delta.odessa.ua
-RUN_DEPENDS= ${LINUX_DIR}/lib/libc.so.6:${PORTSDIR}/emulators/linux_base \
- ${LINUX_DIR}/dev/rtc:${PORTSDIR}/emulators/rtc
+RUN_DEPENDS= ${LINUXBASE}/dev/rtc:${PORTSDIR}/emulators/rtc
RESTRICTED= "Not sure if we can redistribute it"
-LINUX_DIR= /compat/linux
+USE_LINUX= yes
VMDIR= ${PREFIX}/lib/vmware
ONLY_FOR_ARCHS= i386
@@ -61,7 +60,7 @@ BROKEN= "Kernel source files required"
.include "${WRKDIRPREFIX}${.CURDIR}/work/Makefile.inc.net"
.endif
-SCRIPTS_ENV+= LINUX_DIR="${LINUX_DIR}" \
+SCRIPTS_ENV+= LINUX_DIR="${LINUXBASE}" \
VMNET_HOST_IP="${VMNET_HOST_IP}" \
VMNET_NETMASK="${VMNET_NETMASK}"
MAKE_ARGS= KMODDIR="${VMDIR}/lib/modules"
@@ -82,14 +81,14 @@ setoptions:
${FILESDIR}/config > ${WRKDIR}/config
${SED} -e 's;@@PREFIX@@;${PREFIX};' \
- -e 's;@@LINUX_DIR@@;${LINUX_DIR};' \
+ -e 's;@@LINUX_DIR@@;${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@@;${LINUX_DIR};' \
+ -e 's;@@LINUX_DIR@@;${LINUXBASE};' \
${FILESDIR}/vmware > ${WRKDIR}/vmware
pre-install: setoptions
@@ -103,7 +102,7 @@ pre-install: setoptions
${MKDIR} ${VMDIR}/bin
${INSTALL_SCRIPT} ${FILESDIR}/df ${VMDIR}/bin
- [ -f ${LINUX_DIR}/bin/df ] || ${LN} -s ${VMDIR}/bin/df ${LINUX_DIR}/bin/
+ [ -f ${LINUXBASE}/bin/df ] || ${LN} -s ${VMDIR}/bin/df ${LINUXBASE}/bin/
${INSTALL_SCRIPT} ${WRKSRC}/bin/*.pl ${VMDIR}/bin
for i in \
vmnet-bridge vmnet-dhcpd vmnet-sniffer \
diff --git a/emulators/vmware2/files/patch-bd b/emulators/vmware2/files/patch-bd
index e88a69bf5af5..ff0ea92d6a36 100644
--- a/emulators/vmware2/files/patch-bd
+++ b/emulators/vmware2/files/patch-bd
@@ -1,6 +1,6 @@
--- vmmon-only/freebsd/driver.c.orig Thu Jun 29 21:06:18 2000
-+++ vmmon-only/freebsd/driver.c Thu Sep 14 14:03:42 2000
-@@ -73,6 +73,22 @@
++++ vmmon-only/freebsd/driver.c Sat Sep 23 01:41:34 2000
+@@ -73,6 +73,24 @@
#include "private.h"
#endif
@@ -18,6 +18,8 @@
+ INTR_EXCL = 256, /* exclusive interrupt */
+ INTR_MPSAFE = 512 /* this interrupt is SMP safe */
+};
++
++typedef void driver_intr_t(void*);
+#endif
+
#ifdef SUPPORT_PASSTHROUGH