aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/virtualbox-ose-kmod
diff options
context:
space:
mode:
authorbeat <beat@FreeBSD.org>2009-12-09 20:31:45 +0800
committerbeat <beat@FreeBSD.org>2009-12-09 20:31:45 +0800
commit03900d86730764491ff64b11a54f9e731498b524 (patch)
treec287ffbbb1134b6564f524cb2f2a93162cff764c /emulators/virtualbox-ose-kmod
parentce38250d3204a2dc5fe8eeddde5f79351d863249 (diff)
downloadfreebsd-ports-gnome-03900d86730764491ff64b11a54f9e731498b524.tar.gz
freebsd-ports-gnome-03900d86730764491ff64b11a54f9e731498b524.tar.zst
freebsd-ports-gnome-03900d86730764491ff64b11a54f9e731498b524.zip
- Fix loading of vboxnetadp.ko kernel module without loading vboxnetflt.ko
kernel module first. - Bump PORTREVISION. PR: ports/141013 Reported / tested by: Scot Hetzel <swhetzel AT gmail.com> Submitted by: Fredrik Lindberg <fli AT shapeshifter.se>
Diffstat (limited to 'emulators/virtualbox-ose-kmod')
-rw-r--r--emulators/virtualbox-ose-kmod/Makefile2
-rw-r--r--emulators/virtualbox-ose-kmod/files/patch-src-VBox-HostDrivers-VBoxNetAdp-freebsd-VBoxNetAdp-freebsd.c11
-rw-r--r--emulators/virtualbox-ose-kmod/files/patch-src-VBox-HostDrivers-VBoxNetFlt-freebsd-VBoxNetFlt-freebsd.c9
3 files changed, 21 insertions, 1 deletions
diff --git a/emulators/virtualbox-ose-kmod/Makefile b/emulators/virtualbox-ose-kmod/Makefile
index 635e8c3ceba8..46617a1b64b8 100644
--- a/emulators/virtualbox-ose-kmod/Makefile
+++ b/emulators/virtualbox-ose-kmod/Makefile
@@ -7,7 +7,7 @@
PORTNAME= virtualbox
DISTVERSION= 3.0.51r22902
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= emulators kld
MASTER_SITES= http://tmp.chruetertee.ch/ \
http://freebsd.unixfreunde.de/sources/ \
diff --git a/emulators/virtualbox-ose-kmod/files/patch-src-VBox-HostDrivers-VBoxNetAdp-freebsd-VBoxNetAdp-freebsd.c b/emulators/virtualbox-ose-kmod/files/patch-src-VBox-HostDrivers-VBoxNetAdp-freebsd-VBoxNetAdp-freebsd.c
new file mode 100644
index 000000000000..0e223c4b9039
--- /dev/null
+++ b/emulators/virtualbox-ose-kmod/files/patch-src-VBox-HostDrivers-VBoxNetAdp-freebsd-VBoxNetAdp-freebsd.c
@@ -0,0 +1,11 @@
+--- src/VBox/HostDrivers/VBoxNetAdp/freebsd/VBoxNetAdp-freebsd.c.orig 2009-12-07 12:20:44.000000000 +0100
++++ src/VBox/HostDrivers/VBoxNetAdp/freebsd/VBoxNetAdp-freebsd.c 2009-12-07 12:21:00.000000000 +0100
+@@ -92,7 +92,7 @@
+ DECLARE_MODULE(vboxnetadp, g_VBoxNetAdpFreeBSDModule, SI_SUB_PSEUDO, SI_ORDER_ANY);
+ MODULE_VERSION(vboxnetadp, 1);
+ MODULE_DEPEND(vboxnetadp, vboxdrv, 1, 1, 1);
+-MODULE_DEPEND(vboxnetadp, ng_vboxnetflt, 1, 1, 1);
++MODULE_DEPEND(vboxnetadp, vboxnetflt, 1, 1, 1);
+
+ /**
+ * Module event handler
diff --git a/emulators/virtualbox-ose-kmod/files/patch-src-VBox-HostDrivers-VBoxNetFlt-freebsd-VBoxNetFlt-freebsd.c b/emulators/virtualbox-ose-kmod/files/patch-src-VBox-HostDrivers-VBoxNetFlt-freebsd-VBoxNetFlt-freebsd.c
index bc23fb14a545..f23fedbf0ec0 100644
--- a/emulators/virtualbox-ose-kmod/files/patch-src-VBox-HostDrivers-VBoxNetFlt-freebsd-VBoxNetFlt-freebsd.c
+++ b/emulators/virtualbox-ose-kmod/files/patch-src-VBox-HostDrivers-VBoxNetFlt-freebsd-VBoxNetFlt-freebsd.c
@@ -31,6 +31,15 @@ Index: src/VBox/HostDrivers/VBoxNetFlt/freebsd/VBoxNetFlt-freebsd.c
.rcvmsg = ng_vboxnetflt_rcvmsg,
.shutdown = ng_vboxnetflt_shutdown,
.newhook = ng_vboxnetflt_newhook,
+@@ -122,7 +122,7 @@
+ .cmdlist = ng_vboxnetflt_cmdlist,
+ };
+ NETGRAPH_INIT(vboxnetflt, &ng_vboxnetflt_typestruct);
+-MODULE_VERSION(ng_vboxnetflt, 1);
++MODULE_VERSION(vboxnetflt, 1);
+ MODULE_DEPEND(ng_vboxnetflt, vboxdrv, 1, 1, 1);
+
+ /**
@@ -267,16 +267,12 @@
if (strcmp(name, NG_VBOXNETFLT_HOOK_IN) == 0)
{