Updated for new dosemu locations

This commit is contained in:
Michiel Broek 2004-08-09 19:52:41 +00:00
parent 4411180f3c
commit 346df3d08f
9 changed files with 87 additions and 9 deletions

View File

@ -57,6 +57,11 @@ v0.61.3 25-Jul-2004
script: script:
Changed bbsdoor.sh so that it works for dosemu 1.2.0 and later. 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: lang:
Added language prompts 26 and 27. Added language prompts 26 and 27.

View File

@ -207,6 +207,18 @@ install:
${CHOWN} ${OWNER}:${GROUP} ${PREFIX}/var/arealists ; \ ${CHOWN} ${OWNER}:${GROUP} ${PREFIX}/var/arealists ; \
chmod 0750 ${PREFIX}/var/arealists ; \ chmod 0750 ${PREFIX}/var/arealists ; \
fi 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 \ @if [ -x ${BINDIR}/mbtelnetd ]; then \
rm ${BINDIR}/mbtelnetd ; \ rm ${BINDIR}/mbtelnetd ; \
echo "removed ${BINDIR}/mbtelnetd"; \ echo "removed ${BINDIR}/mbtelnetd"; \

View File

@ -14,7 +14,7 @@
</HEAD> </HEAD>
<BODY> <BODY>
<BLOCKQUOTE> <BLOCKQUOTE>
<div align="right"><h5>Last update 20-Jun-2004</h5></div> <div align="right"><h5>Last update 09-Aug-2004</h5></div>
<div align="center"><h1>MBSE BBS Basic Installation</h1></div> <div align="center"><h1>MBSE BBS Basic Installation</h1></div>
<h3>Introduction.</h3> <h3>Introduction.</h3>
@ -50,6 +50,7 @@ layout looks like this:<br>
/opt/mbse/english/menus 0755 Default english menu files /opt/mbse/english/menus 0755 Default english menu files
/opt/mbse/english/txtfiles 0755 Default english ANSI files /opt/mbse/english/txtfiles 0755 Default english ANSI files
/opt/mbse/etc 0775 System configuration files /opt/mbse/etc 0775 System configuration files
/opt/mbse/etc/dosemu 0750 DOSemu configuration files
/opt/mbse/fdb 0775 Files database /opt/mbse/fdb 0775 Files database
/opt/mbse/ftp/pub 0775 Default FTP root for download areas. /opt/mbse/ftp/pub 0775 Default FTP root for download areas.
/opt/mbse/galego/macro 0755 Galego macro files /opt/mbse/galego/macro 0755 Galego macro files
@ -78,6 +79,8 @@ layout looks like this:<br>
/opt/mbse/var/boxes 0750 Base for nodes fileboxes /opt/mbse/var/boxes 0750 Base for nodes fileboxes
/opt/mbse/var/bso 0750 Binkley Style Outbound directory /opt/mbse/var/bso 0750 Binkley Style Outbound directory
/opt/mbse/var/bso/outbound 0750 Default outbound for main aka /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/inbound 0750 Protected inbound directory
/opt/mbse/var/mail 0770 JAM messagebase root /opt/mbse/var/mail 0770 JAM messagebase root
/opt/mbse/var/msgs 0750 *.msgs netmail directory (not yet in use). /opt/mbse/var/msgs 0750 *.msgs netmail directory (not yet in use).

25
html/doors.html Normal file
View File

@ -0,0 +1,25 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<!-- $Id$ -->
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<META http-equiv="Content-Style-Type" content="text/css">
<META NAME="Language" content='en'>
<META name="author" lang="en" content="Michiel Broek">
<META name="copyright" lang="en" content="Copyright Michiel Broek">
<META name="description" lang="en" content="MBSE BBS Manual">
<META name="keywords" lang="en" content="MBSE BBS, MBSE, BBS, manual, fido, fidonet, gateway, tosser, mail, tic, mailer">
<TITLE>Running DOS doors on MBSE BBS.</TITLE>
<LINK rel=stylesheet HREF="manual.css">
</HEAD>
<BODY>
<BLOCKQUOTE>
<div align='right'><h5>Last update 09-Aug-2004</h5></div>
<div align='center'><H1>MBSE BBS - Running DOS doors.</H1></div>
<A HREF="index.htm"><IMG SRC="images/b_arrow.png" ALT="Back" Border="0">Go Back</A>
</BLOCKQUOTE>
</BODY>
</HTML>

View File

@ -16,7 +16,7 @@
<BLOCKQUOTE> <BLOCKQUOTE>
<center><img SRC="images/mbse.png" BORDER=0 alt="MBSE"></center> <center><img SRC="images/mbse.png" BORDER=0 alt="MBSE"></center>
<div align=center><h1>MBSE BBS System Guide @VERSION@</h1></div> <div align=center><h1>MBSE BBS System Guide @VERSION@</h1></div>
<div align=right><h5>Last update 01-Jul-2004</h5></div> <div align=right><h5>Last update 09-Aug-2004</h5></div>
<h3><a NAME="top"></a>Introduction</h3> <h3><a NAME="top"></a>Introduction</h3>
@ -118,6 +118,7 @@
<li><a href="postfix.html">Email Gateway - Postfix setup.</a></li> <li><a href="postfix.html">Email Gateway - Postfix setup.</a></li>
<li><a href="nodelist.html">Nodediff and Nodelist processing</a></li> <li><a href="nodelist.html">Nodediff and Nodelist processing</a></li>
<li><a href="ups.html">Using UPS semafore's</a></li> <li><a href="ups.html">Using UPS semafore's</a></li>
<li><a href="doors.html">Running DOS doors on MBSE BBS</a></li>
</ol> </ol>
<P>&nbsp;<P> <P>&nbsp;<P>

View File

@ -4,7 +4,7 @@
include ../Makefile.global include ../Makefile.global
OTHER = Makefile README maint midnight weekly monthly installinit.sh setup.mbse \ 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 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}" ; \ echo "${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0755 bbsdoor.sh ${BINDIR}" ; \
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0755 rundoor.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}" ; \ 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 \ else \
${INSTALL} -c -o ${OWNER} -g ${GROUP} -m 0644 bbsdoor.sh ${BINDIR}/bbsdoor.sh.new ; \ ${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" ; \ 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 ; \ ${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" ; \ 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 fi
@bash ./installinit.sh @bash ./installinit.sh

View File

@ -7,8 +7,9 @@
# $2 = the nodenumber for this session # $2 = the nodenumber for this session
# #
# by Redy Rodriguez, 22-Oct-2001 # 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 [ "$1" != "" ]; then
if [ "$2" != "" ]; then if [ "$2" != "" ]; then

View File

@ -4,19 +4,21 @@
# #
# rundoor.sh - Never call this script directly, create a symlink # rundoor.sh - Never call this script directly, create a symlink
# to this file with the name of the door. For example # 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 # cd /opt/mbse/bin
# ln -s rundoor.sh ilord # 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. # by Redy Rodriguez and Michiel Broek.
# #
DOOR=`basename $0` 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/mbse/bin/bbsdoor.sh $DOOR $1
/usr/bin/sudo /opt/dosemu/bin/dosemu.bin \ /usr/bin/sudo /usr/bin/dosemu.bin -f /opt/mbse/etc/dosemu/dosemu.conf -I "`echo -e keystroke $COMMANDO`"
-F /var/lib/dosemu/global.conf \
-I "`echo -e serial { com 1 virtual }"\n" keystroke $COMMANDO`"
reset reset
tput reset tput reset
stty sane stty sane

25
script/runvirtual.sh Normal file
View File

@ -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