View | Details | Raw Unified | Return to bug 106728
Collapse All | Expand All

(-)Makefile (-1 / +3 lines)
Lines 7-13 Link Here
7
7
8
PORTNAME=	kqemu
8
PORTNAME=	kqemu
9
PORTVERSION=	1.3.0.p9
9
PORTVERSION=	1.3.0.p9
10
PORTREVISION=	1
10
PORTREVISION=	2
11
CATEGORIES=	emulators
11
CATEGORIES=	emulators
12
MASTER_SITES=	http://qemu.org/
12
MASTER_SITES=	http://qemu.org/
13
PKGNAMESUFFIX=	-kmod
13
PKGNAMESUFFIX=	-kmod
Lines 20-25 Link Here
20
ONLY_FOR_ARCHS=	i386 amd64
20
ONLY_FOR_ARCHS=	i386 amd64
21
NO_PACKAGE=	Depends on kernel, and module not redistributable
21
NO_PACKAGE=	Depends on kernel, and module not redistributable
22
22
23
USE_RC_SUBR=	kqemu
24
23
.include <bsd.port.pre.mk>
25
.include <bsd.port.pre.mk>
24
26
25
PLIST_FILES=	"include/kqemu/kqemu.h"
27
PLIST_FILES=	"include/kqemu/kqemu.h"
(-)files/patch-kqemu-freebsd.c (+11 lines)
Lines 7-9 Link Here
7
 static struct kqemu_global_state *kqemu_gs = NULL;
7
 static struct kqemu_global_state *kqemu_gs = NULL;
8
 
8
 
9
 #if __FreeBSD_version < 500000
9
 #if __FreeBSD_version < 500000
10
@@ -321,6 +321,9 @@
11
 #if __FreeBSD_version >= 500000
12
     dev->si_drv1 = NULL;
13
     TAILQ_REMOVE(&kqemuhead, ks, kqemu_ent);
14
+#if __FreeBSD_version >= 700024
15
+    dev_relthread(dev); 
16
+#endif
17
     destroy_dev(dev);
18
 #endif
19
     free(ks, M_KQEMU);
20
(-)files/kqemu.in (+49 lines)
Line 0 Link Here
1
#!/bin/sh
2
# $FreeBSD: $
3
#
4
# PROVIDE: kqemu
5
# KEYWORD: nojail
6
#
7
# Add the following line to /etc/rc.conf[.local] to enable kqemu
8
#
9
# kqemu_enable="YES"
10
#
11
12
. /etc/rc.subr
13
14
name="kqemu"
15
load_rc_config $name
16
rcvar=`set_rcvar`
17
start_cmd=kqemu_start
18
stop_cmd=kqemu_stop
19
20
kqemu_start()
21
{
22
	# load aio if needed
23
	if ! kldstat -qm aio; then
24
		if kldload aio; then
25
			info 'aio module loaded.'
26
		else
27
			warn 'aio module failed to load.'
28
			return 1
29
		fi
30
	fi
31
	if ! kldstat -qm kqemu; then
32
		if kldload kqemu; then
33
			echo 'kqemu module loaded.'
34
		else
35
			warn 'kqemu module failed to load.'
36
			return 1
37
		fi
38
	fi
39
	return 0
40
}
41
42
kqemu_stop()
43
{
44
	if kldstat -qm kqemu && kldunload kqemu; then
45
		echo 'kqemu module unloaded.'
46
	fi
47
}
48
49
run_rc_command "$1"

Return to bug 106728