summaryrefslogtreecommitdiff
path: root/emulators/plex86
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/plex86')
-rw-r--r--emulators/plex86/Makefile48
-rw-r--r--emulators/plex86/files/md54
-rw-r--r--emulators/plex86/files/patch-sum5
-rw-r--r--emulators/plex86/patches/patch-aa12
-rw-r--r--emulators/plex86/patches/patch-ab11
-rw-r--r--emulators/plex86/patches/patch-ac13
-rw-r--r--emulators/plex86/pkg/COMMENT1
-rw-r--r--emulators/plex86/pkg/DESCR18
-rw-r--r--emulators/plex86/pkg/MESSAGE16
-rw-r--r--emulators/plex86/pkg/PLIST1
10 files changed, 129 insertions, 0 deletions
diff --git a/emulators/plex86/Makefile b/emulators/plex86/Makefile
new file mode 100644
index 00000000000..1e5c0e5b7e1
--- /dev/null
+++ b/emulators/plex86/Makefile
@@ -0,0 +1,48 @@
+# $NetBSD: Makefile,v 1.1.1.1 2000/12/14 04:25:52 hubertf Exp $
+#
+
+DISTNAME= plex86
+PKGNAME= plex86-0.20001214
+CATEGORIES= emulators
+MASTER_SITES= ftp://ftp.netbsd.org/pub/NetBSD/misc/fvdl/
+DISTFILES= plex86-20001214.tgz plex86.tgz
+
+MAINTAINER= hubertf@netbsd.org
+HOMEPAGE= http://www.plex86.org/
+
+BUILD_DEPENDS+= autoconf:../../devel/autoconf
+
+DIST_SUBDIR= plex86-20001214
+WRKSRC= ${WRKDIR}/plex86
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+=--with-NetBSD \
+ --with-netbsd-source=/sys
+BSDSRCDIR?= /usr/src
+USE_GMAKE= yes
+NO_PKG_REGISTER= yes # ONLY until we really install files!!!
+NO_PACKAGE= Incomplete # ONLY until we really install files!!!
+
+pre-extract:
+ @if [ ! -f ${BSDSRCDIR}/sys/sys/param.h ]; then \
+ ${ECHO_MSG} Need a kernel source tree in ${BSDSRCDIR}/sys ; \
+ ${ECHO_MSG} "(set BSDSRCDIR accordingly in /etc/mk.conf!)" ; \
+ exit 1 ; \
+ fi
+
+pre-patch:
+ cd ${WRKSRC} ; \
+ ${PATCH} ${PATCH_ARGS} <${WRKDIR}/plex86.diff
+ ${CP} ${WRKDIR}/kernel/host-netbsd.c ${WRKSRC}/kernel
+ ${CP} ${WRKDIR}/misc/netbsd_post.sh ${WRKSRC}/misc
+
+pre-configure:
+ cd ${WRKSRC} ; autoconf
+
+do-install:
+ @${CAT} ${MESSAGE_FILE}
+ @${ECHO_MSG} Package NOT recorded as installed!
+ @# Remove the NO_PKG_REGISTER/NO_PACKAGE above if this does something!!!
+ @# Remove the NO_PKG_REGISTER/NO_PACKAGE above if this does something!!!
+ @# Remove the NO_PKG_REGISTER/NO_PACKAGE above if this does something!!!
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/emulators/plex86/files/md5 b/emulators/plex86/files/md5
new file mode 100644
index 00000000000..cf530f565e3
--- /dev/null
+++ b/emulators/plex86/files/md5
@@ -0,0 +1,4 @@
+$NetBSD: md5,v 1.1.1.1 2000/12/14 04:25:52 hubertf Exp $
+
+MD5 (plex86-20001214/plex86-20001214.tgz) = 73962c5a8946a2fbc6630244f97c965a
+MD5 (plex86-20001214/plex86.tgz) = f9fe0a3928ef9b79c14f1d9c027dc63c
diff --git a/emulators/plex86/files/patch-sum b/emulators/plex86/files/patch-sum
new file mode 100644
index 00000000000..5330877fb99
--- /dev/null
+++ b/emulators/plex86/files/patch-sum
@@ -0,0 +1,5 @@
+$NetBSD: patch-sum,v 1.1.1.1 2000/12/14 04:25:52 hubertf Exp $
+
+MD5 (patch-aa) = a3c72b3b53f35e40de60f21493f5a2f0
+MD5 (patch-ab) = c289ee7def1b937c554b9b02022a8b0a
+MD5 (patch-ac) = 61debdcad5c960fcc1dadf24c7f02b04
diff --git a/emulators/plex86/patches/patch-aa b/emulators/plex86/patches/patch-aa
new file mode 100644
index 00000000000..a6f44763342
--- /dev/null
+++ b/emulators/plex86/patches/patch-aa
@@ -0,0 +1,12 @@
+$NetBSD: patch-aa,v 1.1.1.1 2000/12/14 04:25:52 hubertf Exp $
+
+--- configure.in.orig Sun Dec 10 23:29:39 2000
++++ configure.in
+@@ -20,6 +20,7 @@
+ AC_CHECK_SIZEOF(unsigned int, 0)
+ AC_CHECK_SIZEOF(unsigned long, 0)
+ AC_CHECK_SIZEOF(unsigned long long, 0)
++AC_CHECK_HEADER(uvm/uvm_param.h, HAVE_UVM_PARAM_H=1)
+ AC_CHECK_FUNCS(select, AC_DEFINE(HAVE_SELECT))
+ AC_CHECK_LIB(dl, dlopen,
+ LIBDL='-ldl',
diff --git a/emulators/plex86/patches/patch-ab b/emulators/plex86/patches/patch-ab
new file mode 100644
index 00000000000..b8a4c1dbb2c
--- /dev/null
+++ b/emulators/plex86/patches/patch-ab
@@ -0,0 +1,11 @@
+$NetBSD: patch-ab,v 1.1.1.1 2000/12/14 04:25:52 hubertf Exp $
+
+--- config.h.in.orig Thu Dec 14 04:28:34 2000
++++ config.h.in
+@@ -138,3 +138,6 @@
+ #define BX_WITH_SDL 0
+
+ #define USE_LOADER 0
++
++/* This is only present on post-1.5 NetBSD-current systems: */
++/* #undef HAVE_UVM_PARAM_H */
diff --git a/emulators/plex86/patches/patch-ac b/emulators/plex86/patches/patch-ac
new file mode 100644
index 00000000000..706094a5967
--- /dev/null
+++ b/emulators/plex86/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1.1.1 2000/12/14 04:25:52 hubertf Exp $
+
+--- kernel/host-netbsd.c.orig Thu Dec 14 04:29:42 2000
++++ kernel/host-netbsd.c
+@@ -25,7 +25,7 @@
+
+ #undef NETBSD_PLEX86_DEBUG
+
+-#if __NetBSD_Version__ > 105000000
++#if __NetBSD_Version__ > 105000000 && defined(HAVE_UVM_PARAM_H)
+ #include <uvm/uvm_extern.h>
+ #include <uvm/uvm_param.h>
+ #else
diff --git a/emulators/plex86/pkg/COMMENT b/emulators/plex86/pkg/COMMENT
new file mode 100644
index 00000000000..a37291c28aa
--- /dev/null
+++ b/emulators/plex86/pkg/COMMENT
@@ -0,0 +1 @@
+Extensible open source PC virtualization software (free VMware)
diff --git a/emulators/plex86/pkg/DESCR b/emulators/plex86/pkg/DESCR
new file mode 100644
index 00000000000..4a671de699a
--- /dev/null
+++ b/emulators/plex86/pkg/DESCR
@@ -0,0 +1,18 @@
+ The goal of the Plex86 project is to create an extensible open source
+ PC virtualization software program which will allow PC and workstation
+ users to run multiple operating systems concurrently on the same
+ machine.
+
+ Plex86 will run as much of the operating system and application
+ software natively as possible, the rest being emulated by the PC
+ virtualization monitor.
+
+ A highly visible and often requested use, would be to allow for
+ Windows software to be run inside of GNU/Linux or other UNIX like
+ operating system. This gives users a migration path towards UNIX,
+ allowing them to run legacy software until native ports or
+ alternatives are available. It also provides a transitionary step for
+ software vendors who plan to port their product to UNIX, but have not
+ yet done so. Users could buy the Windows version product and run it at
+ near native speeds on UNIX, using Plex86, until a UNIX native version
+ is ready.
diff --git a/emulators/plex86/pkg/MESSAGE b/emulators/plex86/pkg/MESSAGE
new file mode 100644
index 00000000000..1ab97db571f
--- /dev/null
+++ b/emulators/plex86/pkg/MESSAGE
@@ -0,0 +1,16 @@
+===========================================================================
+
+plex86 has been compiled, but must be run in-place for now. To do so, do:
+
+ * su
+ * cd work*/plex86/.
+ * cd misc
+ * modload -e plex86_lkmentry -p netbsd_post.sh ../kernel/plex86.o
+ * mkfontdir `pwd`
+ * xset fp+ `pwd`
+ * cd ../conf
+ * Set up a config file (manuall edit necessary!)
+ * cd ../user
+ * ./plex86 -f ../conf/yourconfigfile
+
+===========================================================================
diff --git a/emulators/plex86/pkg/PLIST b/emulators/plex86/pkg/PLIST
new file mode 100644
index 00000000000..87c3bd5469a
--- /dev/null
+++ b/emulators/plex86/pkg/PLIST
@@ -0,0 +1 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2000/12/14 04:25:52 hubertf Exp $