aboutsummaryrefslogtreecommitdiffstats
path: root/emulators
diff options
context:
space:
mode:
authormbr <mbr@FreeBSD.org>2004-03-03 18:12:22 +0800
committermbr <mbr@FreeBSD.org>2004-03-03 18:12:22 +0800
commit48b14ddccf29ad661936504d36b8b3ba8ce9d10b (patch)
treecb17627f4d6fd36a93994a9b072e2664cfbfcf63 /emulators
parente329dc8889ad4ac2addfcb02ab95065d6c9a36cd (diff)
downloadfreebsd-ports-gnome-48b14ddccf29ad661936504d36b8b3ba8ce9d10b.tar.gz
freebsd-ports-gnome-48b14ddccf29ad661936504d36b8b3ba8ce9d10b.tar.zst
freebsd-ports-gnome-48b14ddccf29ad661936504d36b8b3ba8ce9d10b.zip
Fix the cdev patch to work correctly with FreeBSD4. One check has
been wrong. Bump portrevision.
Diffstat (limited to 'emulators')
-rw-r--r--emulators/vmware3/Makefile2
-rw-r--r--emulators/vmware3/files/freebsd5.patch23
2 files changed, 11 insertions, 14 deletions
diff --git a/emulators/vmware3/Makefile b/emulators/vmware3/Makefile
index cde2e4f9c125..7c3d433f1fc7 100644
--- a/emulators/vmware3/Makefile
+++ b/emulators/vmware3/Makefile
@@ -7,7 +7,7 @@
PORTNAME= vmware3
PORTVERSION= 3.2.1.2242
-PORTREVISION= 4
+PORTREVISION= 5
PORTEPOCH= 1
CATEGORIES= emulators linux
MASTER_SITES= http://www4.vmware.com/software/ \
diff --git a/emulators/vmware3/files/freebsd5.patch b/emulators/vmware3/files/freebsd5.patch
index f02364800620..2fb3f71e1da9 100644
--- a/emulators/vmware3/files/freebsd5.patch
+++ b/emulators/vmware3/files/freebsd5.patch
@@ -1,6 +1,6 @@
--- vmnet-only/freebsd/vmnet.c Sun Feb 29 11:17:28 2004
+++ vmnet-only/freebsd/vmnet.c Sun Feb 29 10:52:01 2004
-@@ -104,6 +104,10 @@
+@@ -104,14 +104,22 @@
static struct cdevsw vmnet_cdevsw = {
#if __FreeBSD_version >= 500104
@@ -11,12 +11,14 @@
.d_open = vmnet_open,
.d_close = vmnet_close,
.d_read = vmnet_read,
-@@ -111,7 +115,9 @@
+ .d_write = vmnet_write,
.d_ioctl = vmnet_ioctl,
.d_poll = vmnet_poll,
++#if __FreeBSD_version < 502104
.d_name = DEVICE_NAME,
-+#if __FreeBSD_version > 502104
.d_maj = CDEV_MAJOR
++#else
++ .d_name = DEVICE_NAME
+#endif
#else
/* open */ vmnet_open,
@@ -48,7 +50,7 @@
.include <bsd.kmod.mk>
--- vmmon-only/freebsd/driver.c Sun Feb 29 11:17:28 2004
+++ vmmon-only/freebsd/driver.c Sun Feb 29 10:58:11 2004
-@@ -163,6 +163,10 @@
+@@ -163,9 +163,15 @@
static struct cdevsw vmmon_cdevsw = {
#if __FreeBSD_version >= 500104
@@ -58,14 +60,9 @@
+#endif
.d_open = FreeBSD_Driver_Open,
.d_name = DEVICE_NAME,
++#if __FreeBSD_version < 502104
.d_maj = CDEV_MAJOR
-@@ -172,7 +176,9 @@
- /* read */ noread,
- /* psize */ nopsize,
- /* flags */ 0,
-+#if __FreeBSD_version > 502104
- /* bmaj */ -1
+#endif
- #endif
- };
-
+ #else
+ /* open */ FreeBSD_Driver_Open,
+ /* close */ noclose,