summaryrefslogtreecommitdiff
path: root/emulators/doscmd
diff options
context:
space:
mode:
authortsarna <tsarna@pkgsrc.org>1998-07-18 04:58:17 +0000
committertsarna <tsarna@pkgsrc.org>1998-07-18 04:58:17 +0000
commit1e5f78bc9c52575f173ed9f83d8cbef0f7861bdb (patch)
treed8ad87fd628de56a582b67716a87dda82d2a59ec /emulators/doscmd
parentd461e99bc3dbf10e1eee8cf31abe8ccf5e96fdd0 (diff)
downloadpkgsrc-1e5f78bc9c52575f173ed9f83d8cbef0f7861bdb.tar.gz
An MS-DOS emulator (NetBSD/i386 only)
Diffstat (limited to 'emulators/doscmd')
-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
8 files changed, 79 insertions, 0 deletions
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
+