diff --git a/ChangeLog b/ChangeLog index 13cde2fa..191adb8e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -57,6 +57,11 @@ v0.61.3 25-Jul-2004 script: Changed bbsdoor.sh so that it works for dosemu 1.2.0 and later. + Created new runvirtual.sh so that we have door scripts with and + without virual comport support. + Changed all locations for dosemu so that we run in the mbse + environment with dropped privileges of the user running the + door. lang: Added language prompts 26 and 27. diff --git a/Makefile b/Makefile index 2bf2ea99..264bb4ff 100644 --- a/Makefile +++ b/Makefile @@ -207,6 +207,18 @@ install: ${CHOWN} ${OWNER}:${GROUP} ${PREFIX}/var/arealists ; \ chmod 0750 ${PREFIX}/var/arealists ; \ fi + @if [ ! -d ${PREFIX}/var/dosemu ]; then \ + mkdir ${PREFIX}/var/dosemu ; \ + chmod 0770 ${PREFIX}/var/dosemu ; \ + fi + @if [ ! -d ${PREFIX}/var/dosemu/c ]; then \ + mkdir ${PREFIX}/var/dosemu/c ; \ + chmod 0770 ${PREFIX}/var/dosemu/c ; \ + fi + @if [ ! -d ${PREFIX}/etc/dosemu ]; then \ + mkdir ${PREFIX}/etc/dosemu ; \ + chmod 0750 ${PREFIX}/etc/dosemu ; \ + fi @if [ -x ${BINDIR}/mbtelnetd ]; then \ rm ${BINDIR}/mbtelnetd ; \ echo "removed ${BINDIR}/mbtelnetd"; \ diff --git a/html/basic.html.in b/html/basic.html.in index 7ddb4aea..6104ac09 100644 --- a/html/basic.html.in +++ b/html/basic.html.in @@ -14,7 +14,7 @@
-+Last update 20-Jun-2004
Last update 09-Aug-2004
MBSE BBS Basic Installation
Introduction.
@@ -50,6 +50,7 @@ layout looks like this:
/opt/mbse/english/menus 0755 Default english menu files /opt/mbse/english/txtfiles 0755 Default english ANSI files /opt/mbse/etc 0775 System configuration files +/opt/mbse/etc/dosemu 0750 DOSemu configuration files /opt/mbse/fdb 0775 Files database /opt/mbse/ftp/pub 0775 Default FTP root for download areas. /opt/mbse/galego/macro 0755 Galego macro files @@ -78,6 +79,8 @@ layout looks like this:
/opt/mbse/var/boxes 0750 Base for nodes fileboxes /opt/mbse/var/bso 0750 Binkley Style Outbound directory /opt/mbse/var/bso/outbound 0750 Default outbound for main aka +/opt/mbse/var/dosemu 0770 Base for DOS drives +/opt/mbse/var/dosemu/c 0770 DOS drive C: /opt/mbse/var/inbound 0750 Protected inbound directory /opt/mbse/var/mail 0770 JAM messagebase root /opt/mbse/var/msgs 0750 *.msgs netmail directory (not yet in use). diff --git a/html/doors.html b/html/doors.html new file mode 100644 index 00000000..9074b06a --- /dev/null +++ b/html/doors.html @@ -0,0 +1,25 @@ + + + + + + + + + + + +Running DOS doors on MBSE BBS. + + + +++ + diff --git a/html/index.htm.in b/html/index.htm.in index 17bdafe0..fab38b4c 100644 --- a/html/index.htm.in +++ b/html/index.htm.in @@ -16,7 +16,7 @@+Last update 09-Aug-2004
+ + + +Go Back +MBSE BBS - Running DOS doors.
-MBSE BBS System Guide @VERSION@
+Last update 01-Jul-2004
Last update 09-Aug-2004
Introduction
@@ -118,6 +118,7 @@Email Gateway - Postfix setup. Nodediff and Nodelist processing Using UPS semafore's +Running DOS doors on MBSE BBS
diff --git a/script/Makefile b/script/Makefile index 8787b752..0596fa76 100644 --- a/script/Makefile +++ b/script/Makefile @@ -4,7 +4,7 @@ include ../Makefile.global OTHER = Makefile README maint midnight weekly monthly installinit.sh setup.mbse \ - bbsdoor.sh rundoor.sh init.Debian init.RedHat init.FreeBSD init.NetBSD \ + bbsdoor.sh rundoor.sh runvirtual.sh init.Debian init.RedHat init.FreeBSD init.NetBSD \ init.Slackware init.SuSE init.Gentoo hatch editor.in bbsjoerc bbsjmacsrc #################################################################################################### @@ -75,11 +75,15 @@ install: echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0755 bbsdoor.sh ${BINDIR}" ; \ ${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0755 rundoor.sh ${BINDIR} ; \ echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0755 rundoor.sh ${BINDIR}" ; \ + ${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0755 runvirtual.sh ${BINDIR} ; \ + echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0755 runvirtual.sh ${BINDIR}" ; \ else \ ${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0644 bbsdoor.sh ${BINDIR}/bbsdoor.sh.new ; \ echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0644 bbsdoor.sh ${BINDIR}/bbsdoor.sh.new" ; \ ${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0644 rundoor.sh ${BINDIR}/rundoor.sh.new ; \ echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0644 rundoor.sh ${BINDIR}/rundoor.sh.new" ; \ + ${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0644 runvirtual.sh ${BINDIR}/runvirtual.sh.new ; \ + echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0644 runvirtual.sh ${BINDIR}/runvirtual.sh.new" ; \ fi @bash ./installinit.sh diff --git a/script/bbsdoor.sh b/script/bbsdoor.sh index e0ae1bf2..eee5f05a 100644 --- a/script/bbsdoor.sh +++ b/script/bbsdoor.sh @@ -7,8 +7,9 @@ # $2 = the nodenumber for this session # # by Redy Rodriguez, 22-Oct-2001 +# Revised for dosemu 1.2.0 by Michiel Broek. -DOSDRIVE=/dos/c +DOSDRIVE=/opt/mbse/var/dosemu/c if [ "$1" != "" ]; then if [ "$2" != "" ]; then diff --git a/script/rundoor.sh b/script/rundoor.sh index d6263bc6..11e35d83 100644 --- a/script/rundoor.sh +++ b/script/rundoor.sh @@ -4,19 +4,21 @@ # # rundoor.sh - Never call this script directly, create a symlink # to this file with the name of the door. For example -# tu run the door ilord do: +# to run the door ilord do: # cd /opt/mbse/bin # ln -s rundoor.sh ilord +# In the menu use the following line for Optional Data: +# /opt/mbse/bin/ilord /N +# +# This version DOES NOT have virtual COMport support, see runvirtual.sh # # by Redy Rodriguez and Michiel Broek. # DOOR=`basename $0` -COMMANDO="\" doors $DOOR $*\r\"" +COMMANDO="\"doors $DOOR $*\r\"" /usr/bin/sudo /opt/mbse/bin/bbsdoor.sh $DOOR $1 -/usr/bin/sudo /opt/dosemu/bin/dosemu.bin \ - -F /var/lib/dosemu/global.conf \ - -I "`echo -e serial { com 1 virtual }"\n" keystroke $COMMANDO`" +/usr/bin/sudo /usr/bin/dosemu.bin -f /opt/mbse/etc/dosemu/dosemu.conf -I "`echo -e keystroke $COMMANDO`" reset tput reset stty sane diff --git a/script/runvirtual.sh b/script/runvirtual.sh new file mode 100644 index 00000000..4eec72db --- /dev/null +++ b/script/runvirtual.sh @@ -0,0 +1,25 @@ +#!/bin/bash +# +# $Id$ +# +# runvirtual.sh - Never call this script directly, create a symlink +# to this file with the name of the door. For example +# tu run the door ilord do: +# cd /opt/mbse/bin +# ln -s runvirtual.sh ilord +# In the menu use the following line for Optional Data: +# /opt/mbse/bin/ilord /N +# +# This version support a virtual COMport, needed by some doors. +# +# by Redy Rodriguez and Michiel Broek. +# +DOOR=`basename $0` +COMMANDO="\"doors $DOOR $*\r\"" + +/usr/bin/sudo /opt/mbse/bin/bbsdoor.sh $DOOR $1 +/usr/bin/sudo /opt/dosemu/bin/dosemu.bin -f /opt/mbse/etc/dosemu/dosemu.conf \ + -I "`echo -e serial { com 1 virtual }"\n" keystroke $COMMANDO`" +reset +tput reset +stty sane