fix -smb option, from viq at viq dot ath dot cx

This commit is contained in:
todd 2008-03-31 14:25:59 +00:00
parent 2f08e80c7d
commit 09533e9ce4
3 changed files with 35 additions and 14 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.26 2008/03/31 06:49:27 todd Exp $
# $OpenBSD: Makefile,v 1.27 2008/03/31 14:25:59 todd Exp $
# no success building on other archs yet
ONLY_FOR_ARCHS= amd64 arm i386 powerpc
@ -6,7 +6,7 @@ ONLY_FOR_ARCHS= amd64 arm i386 powerpc
COMMENT= multi system emulator
DISTNAME= qemu-0.9.0
PKGNAME= ${DISTNAME}p2
PKGNAME= ${DISTNAME}p3
CATEGORIES= emulators
HOMEPAGE= http://fabrice.bellard.free.fr/qemu/
@ -51,6 +51,9 @@ USE_X11= Yes
WANTLIB+= X11 Xext pthread usbhid
.endif
pre-configure:
@perl -pi -e "s,!!LOCALBASE!!,${LOCALBASE},g;" ${WRKSRC}/vl.c ${WRKSRC}/qemu-doc.texi
post-install:
@${INSTALL_DATA_DIR} ${PREFIX}/share/examples/qemu
@${INSTALL_SCRIPT} ${FILESDIR}/qemu-ifup ${PREFIX}/share/examples/qemu

View File

@ -1,10 +1,21 @@
$OpenBSD: patch-qemu-doc_texi,v 1.1 2008/01/21 20:40:20 sthen Exp $
--- qemu-doc.texi.orig Mon Jan 21 14:11:49 2008
+++ qemu-doc.texi Mon Jan 21 14:11:51 2008
@@ -513,6 +513,16 @@ Use @var{file} as initial ram disk.
$OpenBSD: patch-qemu-doc_texi,v 1.2 2008/03/31 14:26:00 todd Exp $
--- qemu-doc.texi.orig Tue Feb 6 00:01:54 2007
+++ qemu-doc.texi Sun Feb 10 02:32:12 2008
@@ -461,7 +461,7 @@ or @file{C:\WINNT\SYSTEM32\DRIVERS\ETC\LMHOSTS} (Windo
Then @file{dir} can be accessed in @file{\\smbserver\qemu}.
@end table
Note that a SAMBA server must be installed on the host OS in
-@file{/usr/sbin/smbd}. QEMU was tested successfully with smbd version
+@file{!!LOCALBASE!!/libexec/smbd}. QEMU was tested successfully with smbd version
2.2.7a from the Red Hat 9 and version 3.0.10-1.fc3 from Fedora Core 3.
@item -redir [tcp|udp]:host-port:[guest-host]:guest-port
@@ -511,6 +511,16 @@ Use @var{cmdline} as kernel command line
@item -initrd file
Use @var{file} as initial ram disk.
+@end table
+
+Kernel QEMU options:
+@table @option
+
@ -13,8 +24,6 @@ $OpenBSD: patch-qemu-doc_texi,v 1.1 2008/01/21 20:40:20 sthen Exp $
+
+@item -no-kqemu
+Disable KQEMU kernel module usage.
+@end table
+
Debug/Expert options:
@table @option
@end table
Debug/Expert options:

View File

@ -1,6 +1,6 @@
$OpenBSD: patch-vl_c,v 1.14 2007/05/01 12:55:14 todd Exp $
--- vl.c.orig Mon Feb 5 17:01:54 2007
+++ vl.c Sat Apr 21 19:48:30 2007
$OpenBSD: patch-vl_c,v 1.15 2008/03/31 14:26:00 todd Exp $
--- vl.c.orig Tue Feb 6 00:01:54 2007
+++ vl.c Sun Feb 10 02:30:48 2008
@@ -44,7 +44,8 @@
#include <netdb.h>
#ifdef _BSD
@ -11,6 +11,15 @@ $OpenBSD: patch-vl_c,v 1.14 2007/05/01 12:55:14 todd Exp $
#include <libutil.h>
#endif
#else
@@ -92,7 +93,7 @@
#ifdef __sun__
#define SMBD_COMMAND "/usr/sfw/sbin/smbd"
#else
-#define SMBD_COMMAND "/usr/sbin/smbd"
+#define SMBD_COMMAND "!!LOCALBASE!!/libexec/smbd"
#endif
//#define DEBUG_UNUSED_IOPORT
@@ -168,6 +169,7 @@ const char *vnc_display;
int acpi_enabled = 1;
int fd_bootchk = 1;