summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authortsarna <tsarna>1998-07-18 04:58:17 +0000
committertsarna <tsarna>1998-07-18 04:58:17 +0000
commita3935a0cd0f093b911c94f3f187a9edaa8462dbd (patch)
treed8ad87fd628de56a582b67716a87dda82d2a59ec /emulators
parent3db541ecb457d3609b1c38d66c0549a1f80945a1 (diff)
downloadpkgsrc-a3935a0cd0f093b911c94f3f187a9edaa8462dbd.tar.gz
An MS-DOS emulator (NetBSD/i386 only)
Diffstat (limited to 'emulators')
-rw-r--r--emulators/Makefile3
-rw-r--r--emulators/doscmd/files/md51
-rw-r--r--emulators/doscmd/patches/patch-aa11
-rw-r--r--emulators/doscmd/patches/patch-ab30
-rw-r--r--emulators/doscmd/patches/patch-ac11
-rw-r--r--emulators/doscmd/patches/patch-ad11
-rw-r--r--emulators/doscmd/pkg/COMMENT1
-rw-r--r--emulators/doscmd/pkg/DESCR7
-rw-r--r--emulators/doscmd/pkg/PLIST7
9 files changed, 81 insertions, 1 deletions
diff --git a/emulators/Makefile b/emulators/Makefile
index 88690da0e60..c5a43291021 100644
--- a/emulators/Makefile
+++ b/emulators/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 1998/05/26 21:20:07 tron Exp $
+# $NetBSD: Makefile,v 1.9 1998/07/18 04:59:11 tsarna Exp $
# FreeBSD Id: Makefile,v 1.14 1997/07/31 07:23:58 max Exp
#
@@ -8,6 +8,7 @@
SUBDIR += compat12
# SUBDIR += cpmemu
# SUBDIR += cpmtools
+ SUBDIR += doscmd
# SUBDIR += fmsx
# SUBDIR += hfs
# SUBDIR += ines
diff --git a/emulators/doscmd/files/md5 b/emulators/doscmd/files/md5
new file mode 100644
index 00000000000..00f05429f0f
--- /dev/null
+++ b/emulators/doscmd/files/md5
@@ -0,0 +1 @@
+MD5 (doscmd-19960502-2.tar.gz) = dc3f8a703d821bf7035438df58c961d0
diff --git a/emulators/doscmd/patches/patch-aa b/emulators/doscmd/patches/patch-aa
new file mode 100644
index 00000000000..b18d131f73b
--- /dev/null
+++ b/emulators/doscmd/patches/patch-aa
@@ -0,0 +1,11 @@
+--- signal.c.orig Fri Jul 17 23:00:17 1998
++++ signal.c Fri Jul 17 23:00:34 1998
+@@ -98,7 +98,7 @@
+ if (s >= 0 && s < NSIG) {
+ handler[s] = h;
+
+- sa.sa_handler = generichandler;
++ sa.sa_handler = (void (*)())generichandler;
+ sa.sa_mask = sigmask(SIGIO) | sigmask(SIGALRM);
+ sa.sa_flags = SA_ONSTACK;
+ sigaction(s, &sa, NULL);
diff --git a/emulators/doscmd/patches/patch-ab b/emulators/doscmd/patches/patch-ab
new file mode 100644
index 00000000000..3ebdea8841f
--- /dev/null
+++ b/emulators/doscmd/patches/patch-ab
@@ -0,0 +1,30 @@
+--- Makefile.orig Thu May 2 12:55:19 1996
++++ Makefile Fri Jul 17 23:30:12 1998
+@@ -8,20 +8,23 @@
+ int1a.c int2f.c intff.c \
+ mem.c mouse.c net.c null.c port.c setver.c signal.c timer.c trace.c trap.c tty.c xms.c
+
++BINDIR= ${PREFIX}/bin
++MANDIR= ${PREFIX}/man
++
+ BINGRP= kmem
+ EXEGRP= bin
+ BINMODE=2555
+ EXEMODE=444
+-CFLAGS+=-I/usr/X11/include -DDISASSEMBLER -g
+-LDFLAGS+=-L/usr/X11/lib
++CFLAGS+=-I${X11BASE}/include -DDISASSEMBLER
++LDFLAGS+=-L${X11BASE}/lib
+ LDADD+= -lX11 -li386 -lgcc -lc -lgcc
+ DPADD+= /usr/X11/lib/libX11.a ${LIBC} ${LIBGCC}
+
+ afterinstall:
+ install ${COPY} -o ${BINOWN} -g ${EXEGRP} -m ${EXEMODE} \
+- doscmd.kernel ${DESTDIR}/usr/libexec/doscmd.kernel
++ doscmd.kernel ${PREFIX}/libexec/doscmd.kernel
+ install -c -o ${BINOWN} -g ${EXEGRP} -m ${EXEMODE} \
+- ${.CURDIR}/instbsdi.exe ${DESTDIR}/usr/dos/
++ ${.CURDIR}/instbsdi.exe ${PREFIX}/libexec/
+
+ doscmd: doscmd.kernel ${LIBCRT0} doscmd_loader.o
+ ld -N -Bstatic -o doscmd ${LDFLAGS} ${LIBCRT0} doscmd_loader.o ${LDADD}
diff --git a/emulators/doscmd/patches/patch-ac b/emulators/doscmd/patches/patch-ac
new file mode 100644
index 00000000000..e21fa2dd8cc
--- /dev/null
+++ b/emulators/doscmd/patches/patch-ac
@@ -0,0 +1,11 @@
+--- doscmd.1.orig Wed Apr 10 02:38:59 1996
++++ doscmd.1 Fri Jul 17 23:30:00 1998
+@@ -305,7 +305,7 @@
+ .Fl ro
+ flag is specified, it is a read only file system.
+ These assignments will not take place when booting DOS until the
+-.Pa /usr/dos/instbsdi.exe
++.Pa %PREFIX%/libexec/instbsdi.exe
+ binary is run.
+ .\"
+ .\"
diff --git a/emulators/doscmd/patches/patch-ad b/emulators/doscmd/patches/patch-ad
new file mode 100644
index 00000000000..539d00a4ee9
--- /dev/null
+++ b/emulators/doscmd/patches/patch-ad
@@ -0,0 +1,11 @@
+--- doscmd_loader.c.orig Fri Jul 17 23:38:10 1998
++++ doscmd_loader.c Fri Jul 17 23:38:28 1998
+@@ -38,7 +38,7 @@
+ */
+ static const char filler[4096] = { 0, };
+
+-#define _PATH_DOS_KERNEL_DIR "/usr/libexec/"
++#define _PATH_DOS_KERNEL_DIR "%PREFIX%/libexec/"
+ #define _PATH_DOS_KERNEL "doscmd.kernel"
+
+ int
diff --git a/emulators/doscmd/pkg/COMMENT b/emulators/doscmd/pkg/COMMENT
new file mode 100644
index 00000000000..6e8aaca4dd0
--- /dev/null
+++ b/emulators/doscmd/pkg/COMMENT
@@ -0,0 +1 @@
+An MS-DOS emulator (NetBSD/i386 only)
diff --git a/emulators/doscmd/pkg/DESCR b/emulators/doscmd/pkg/DESCR
new file mode 100644
index 00000000000..a1fe631ab84
--- /dev/null
+++ b/emulators/doscmd/pkg/DESCR
@@ -0,0 +1,7 @@
+doscmd, an MS-DOS emulator (NetBSD/i386 only)
+
+Doscmd simulates an MS-DOS environment for running DOS software. Rather
+than provide a software emulation of the 8086 CPU, it uses the
+NetBSD/i386 system call i386_vm86() call using the VM86 mode of i386 and
+later CPUs, so it runs much more quickly, at the cost of not running on
+other architectures.
diff --git a/emulators/doscmd/pkg/PLIST b/emulators/doscmd/pkg/PLIST
new file mode 100644
index 00000000000..2a8f4e65a00
--- /dev/null
+++ b/emulators/doscmd/pkg/PLIST
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.1 1998/07/18 04:58:18 tsarna Exp $
+bin/doscmd
+man/man1/doscmd.1
+man/cat1/doscmd.0
+libexec/doscmd.kernel
+libexec/instbsdi.exe
+