aboutsummaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authorJuergen Lock <nox@FreeBSD.org>2006-12-25 19:49:52 +0000
committerJuergen Lock <nox@FreeBSD.org>2006-12-25 19:49:52 +0000
commit332215d9710ee807af8b43ab416968ce99ee2a3a (patch)
tree7c8cf60a45d4277e04dbf5fd24da2c9d2eef2e05 /emulators
parentcaf6c22ef40336f2caffdecd661b17c1a15aa93f (diff)
downloadports-332215d9710ee807af8b43ab416968ce99ee2a3a.tar.gz
ports-332215d9710ee807af8b43ab416968ce99ee2a3a.zip
Notes
Diffstat (limited to 'emulators')
-rw-r--r--emulators/qemu-devel/Makefile4
-rw-r--r--emulators/qemu-devel/distinfo6
-rw-r--r--emulators/qemu-devel/files/patch-bg25
-rw-r--r--emulators/qemu-devel/files/patch-block-raw.c13
-rw-r--r--emulators/qemu-devel/files/patch-vl.c2
-rw-r--r--emulators/qemu/Makefile4
-rw-r--r--emulators/qemu/distinfo6
-rw-r--r--emulators/qemu/files/patch-bg25
-rw-r--r--emulators/qemu/files/patch-block-raw.c13
-rw-r--r--emulators/qemu/files/patch-vl.c2
10 files changed, 48 insertions, 52 deletions
diff --git a/emulators/qemu-devel/Makefile b/emulators/qemu-devel/Makefile
index ad3c412abc67..dd567cfe04ee 100644
--- a/emulators/qemu-devel/Makefile
+++ b/emulators/qemu-devel/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= qemu
-PORTVERSION= 0.8.2s.20061216
+PORTVERSION= 0.8.2s.20061225
CATEGORIES= emulators
MASTER_SITES= http://www.qemu.org/:release \
http://qemu-forum.ipi.fi/qemu-snapshots/:snapshot \
@@ -14,7 +14,7 @@ MASTER_SITES= http://www.qemu.org/:release \
http://www.volny.cz/xnavara/qemu/:snapshot \
http://people.brandeis.edu/~jcoiner/qemu_idedma/:idedma \
http://people.freebsd.org/~maho/qemu/:misc
-DISTNAME= ${PORTNAME}-snapshot-2006-12-16_05
+DISTNAME= ${PORTNAME}-snapshot-2006-12-25_05
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:snapshot
DIST_SUBDIR= qemu
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
diff --git a/emulators/qemu-devel/distinfo b/emulators/qemu-devel/distinfo
index a31990655ffc..bf414272147f 100644
--- a/emulators/qemu-devel/distinfo
+++ b/emulators/qemu-devel/distinfo
@@ -1,6 +1,6 @@
-MD5 (qemu/qemu-snapshot-2006-12-16_05.tar.bz2) = 95be2bf3a0a76506bef0d71de025014f
-SHA256 (qemu/qemu-snapshot-2006-12-16_05.tar.bz2) = 1e431b37ce64ba1c982e620eb2f89bc653f891fbf6a99edc28b27726eb92ac8d
-SIZE (qemu/qemu-snapshot-2006-12-16_05.tar.bz2) = 1502556
+MD5 (qemu/qemu-snapshot-2006-12-25_05.tar.bz2) = 2d1b1ab8d36467e5d4b6b382516273b8
+SHA256 (qemu/qemu-snapshot-2006-12-25_05.tar.bz2) = 98c2f8a4f629b59d40ad09a168dc546927a3c70ea14a8d35e82456cfd9e726d2
+SIZE (qemu/qemu-snapshot-2006-12-25_05.tar.bz2) = 1507659
MD5 (qemu/patch3_cirrus) = ebe7ed9fce804c49e024bc93bfdfc810
SHA256 (qemu/patch3_cirrus) = e862371834b7d895a896fbdb84fd9f70d17b5729a6f6789a48a61504fc941e11
SIZE (qemu/patch3_cirrus) = 8817
diff --git a/emulators/qemu-devel/files/patch-bg b/emulators/qemu-devel/files/patch-bg
index 57a9ef32df97..52ac15628020 100644
--- a/emulators/qemu-devel/files/patch-bg
+++ b/emulators/qemu-devel/files/patch-bg
@@ -4,22 +4,21 @@ Index: qemu/Makefile.target
#########################################################
-DEFINES+=-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-+DEFINES+=-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DSMBD=\"${LOCALBASE}/sbin/smbd\"
++DEFINES+=-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DSMBD_COMMAND=\"${LOCALBASE}/sbin/smbd\"
LIBS+=-lm
ifndef CONFIG_USER_ONLY
LIBS+=-lz
Index: qemu/vl.c
-@@ -1560,8 +1560,13 @@
- fclose(f);
- atexit(smb_exit);
+@@ -89,10 +89,12 @@
+ #include "exec-all.h"
-+#ifdef __FreeBSD__
-+ snprintf(smb_cmdline, sizeof(smb_cmdline), SMBD " -s %s",
-+ smb_conf);
-+#else
- snprintf(smb_cmdline, sizeof(smb_cmdline), "/usr/sbin/smbd -s %s",
- smb_conf);
+ #define DEFAULT_NETWORK_SCRIPT "/etc/qemu-ifup"
++#ifndef SMBD_COMMAND
+ #ifdef __sun__
+ #define SMBD_COMMAND "/usr/sfw/sbin/smbd"
+ #else
+ #define SMBD_COMMAND "/usr/sbin/smbd"
+#endif
-
- slirp_add_exec(0, smb_cmdline, 4, 139);
- }
+ #endif
+
+ //#define DEBUG_UNUSED_IOPORT
diff --git a/emulators/qemu-devel/files/patch-block-raw.c b/emulators/qemu-devel/files/patch-block-raw.c
index e4690530bf43..de3e8b712f0d 100644
--- a/emulators/qemu-devel/files/patch-block-raw.c
+++ b/emulators/qemu-devel/files/patch-block-raw.c
@@ -1,15 +1,14 @@
Index: qemu/block-raw.c
-@@ -51,6 +51,9 @@
+@@ -51,7 +51,7 @@
#include <linux/cdrom.h>
#include <linux/fd.h>
#endif
+-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) && __FreeBSD__ > 4
-+#include <sys/disk.h>
-+#endif
-
- //#define DEBUG_FLOPPY
+ #include <sys/disk.h>
+ #endif
-@@ -164,9 +164,20 @@
+@@ -167,9 +167,20 @@
static int aio_sig_num = SIGUSR2;
static RawAIOCB *first_aio; /* AIO issued */
static int aio_initialized = 0;
@@ -30,7 +29,7 @@ Index: qemu/block-raw.c
#ifndef QEMU_TOOL
CPUState *env = cpu_single_env;
if (env) {
-@@ -281,9 +292,17 @@
+@@ -284,9 +295,17 @@
if (qemu_bh_poll())
return;
#endif
diff --git a/emulators/qemu-devel/files/patch-vl.c b/emulators/qemu-devel/files/patch-vl.c
index 53d8063f7a31..437dafe471b2 100644
--- a/emulators/qemu-devel/files/patch-vl.c
+++ b/emulators/qemu-devel/files/patch-vl.c
@@ -5,7 +5,7 @@ Index: qemu/vl.c
-#if defined(__linux__)
+#if defined(__linux__) || defined(__FreeBSD__)
- CharDriverState *qemu_chr_open_pty(void)
+ static CharDriverState *qemu_chr_open_pty(void)
{
struct termios tty;
@@ -1665,6 +1665,7 @@
diff --git a/emulators/qemu/Makefile b/emulators/qemu/Makefile
index ad3c412abc67..dd567cfe04ee 100644
--- a/emulators/qemu/Makefile
+++ b/emulators/qemu/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= qemu
-PORTVERSION= 0.8.2s.20061216
+PORTVERSION= 0.8.2s.20061225
CATEGORIES= emulators
MASTER_SITES= http://www.qemu.org/:release \
http://qemu-forum.ipi.fi/qemu-snapshots/:snapshot \
@@ -14,7 +14,7 @@ MASTER_SITES= http://www.qemu.org/:release \
http://www.volny.cz/xnavara/qemu/:snapshot \
http://people.brandeis.edu/~jcoiner/qemu_idedma/:idedma \
http://people.freebsd.org/~maho/qemu/:misc
-DISTNAME= ${PORTNAME}-snapshot-2006-12-16_05
+DISTNAME= ${PORTNAME}-snapshot-2006-12-25_05
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:snapshot
DIST_SUBDIR= qemu
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
diff --git a/emulators/qemu/distinfo b/emulators/qemu/distinfo
index a31990655ffc..bf414272147f 100644
--- a/emulators/qemu/distinfo
+++ b/emulators/qemu/distinfo
@@ -1,6 +1,6 @@
-MD5 (qemu/qemu-snapshot-2006-12-16_05.tar.bz2) = 95be2bf3a0a76506bef0d71de025014f
-SHA256 (qemu/qemu-snapshot-2006-12-16_05.tar.bz2) = 1e431b37ce64ba1c982e620eb2f89bc653f891fbf6a99edc28b27726eb92ac8d
-SIZE (qemu/qemu-snapshot-2006-12-16_05.tar.bz2) = 1502556
+MD5 (qemu/qemu-snapshot-2006-12-25_05.tar.bz2) = 2d1b1ab8d36467e5d4b6b382516273b8
+SHA256 (qemu/qemu-snapshot-2006-12-25_05.tar.bz2) = 98c2f8a4f629b59d40ad09a168dc546927a3c70ea14a8d35e82456cfd9e726d2
+SIZE (qemu/qemu-snapshot-2006-12-25_05.tar.bz2) = 1507659
MD5 (qemu/patch3_cirrus) = ebe7ed9fce804c49e024bc93bfdfc810
SHA256 (qemu/patch3_cirrus) = e862371834b7d895a896fbdb84fd9f70d17b5729a6f6789a48a61504fc941e11
SIZE (qemu/patch3_cirrus) = 8817
diff --git a/emulators/qemu/files/patch-bg b/emulators/qemu/files/patch-bg
index 57a9ef32df97..52ac15628020 100644
--- a/emulators/qemu/files/patch-bg
+++ b/emulators/qemu/files/patch-bg
@@ -4,22 +4,21 @@ Index: qemu/Makefile.target
#########################################################
-DEFINES+=-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-+DEFINES+=-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DSMBD=\"${LOCALBASE}/sbin/smbd\"
++DEFINES+=-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DSMBD_COMMAND=\"${LOCALBASE}/sbin/smbd\"
LIBS+=-lm
ifndef CONFIG_USER_ONLY
LIBS+=-lz
Index: qemu/vl.c
-@@ -1560,8 +1560,13 @@
- fclose(f);
- atexit(smb_exit);
+@@ -89,10 +89,12 @@
+ #include "exec-all.h"
-+#ifdef __FreeBSD__
-+ snprintf(smb_cmdline, sizeof(smb_cmdline), SMBD " -s %s",
-+ smb_conf);
-+#else
- snprintf(smb_cmdline, sizeof(smb_cmdline), "/usr/sbin/smbd -s %s",
- smb_conf);
+ #define DEFAULT_NETWORK_SCRIPT "/etc/qemu-ifup"
++#ifndef SMBD_COMMAND
+ #ifdef __sun__
+ #define SMBD_COMMAND "/usr/sfw/sbin/smbd"
+ #else
+ #define SMBD_COMMAND "/usr/sbin/smbd"
+#endif
-
- slirp_add_exec(0, smb_cmdline, 4, 139);
- }
+ #endif
+
+ //#define DEBUG_UNUSED_IOPORT
diff --git a/emulators/qemu/files/patch-block-raw.c b/emulators/qemu/files/patch-block-raw.c
index e4690530bf43..de3e8b712f0d 100644
--- a/emulators/qemu/files/patch-block-raw.c
+++ b/emulators/qemu/files/patch-block-raw.c
@@ -1,15 +1,14 @@
Index: qemu/block-raw.c
-@@ -51,6 +51,9 @@
+@@ -51,7 +51,7 @@
#include <linux/cdrom.h>
#include <linux/fd.h>
#endif
+-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) && __FreeBSD__ > 4
-+#include <sys/disk.h>
-+#endif
-
- //#define DEBUG_FLOPPY
+ #include <sys/disk.h>
+ #endif
-@@ -164,9 +164,20 @@
+@@ -167,9 +167,20 @@
static int aio_sig_num = SIGUSR2;
static RawAIOCB *first_aio; /* AIO issued */
static int aio_initialized = 0;
@@ -30,7 +29,7 @@ Index: qemu/block-raw.c
#ifndef QEMU_TOOL
CPUState *env = cpu_single_env;
if (env) {
-@@ -281,9 +292,17 @@
+@@ -284,9 +295,17 @@
if (qemu_bh_poll())
return;
#endif
diff --git a/emulators/qemu/files/patch-vl.c b/emulators/qemu/files/patch-vl.c
index 53d8063f7a31..437dafe471b2 100644
--- a/emulators/qemu/files/patch-vl.c
+++ b/emulators/qemu/files/patch-vl.c
@@ -5,7 +5,7 @@ Index: qemu/vl.c
-#if defined(__linux__)
+#if defined(__linux__) || defined(__FreeBSD__)
- CharDriverState *qemu_chr_open_pty(void)
+ static CharDriverState *qemu_chr_open_pty(void)
{
struct termios tty;
@@ -1665,6 +1665,7 @@