From fddb600faaef8fb453c57800d32a64735e16528a Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Tue, 25 Dec 2001 17:57:32 +0000 Subject: [PATCH] Changed default filesystem layout --- ChangeLog | 2 ++ Makefile | 36 ++++++++++++++-------- html/basic.html | 69 +++++++++++++++++++++++++++++++----------- html/setup/global.html | 4 +-- mbtask/mbtask.c | 25 +++++++-------- 5 files changed, 91 insertions(+), 45 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3d5739ef..2b980875 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4375,6 +4375,8 @@ v0.33.19 26-Oct-2001 most people don't need it. Starting utilities is now more relaxed using a 3 seconds pause timer. Fixed some potential Sparc problems. + On new systems, all paths for MBSE are now created in the + /opt/mbse root. mbmon: Changed the lastcaller screen to display the External Door diff --git a/Makefile b/Makefile index bb3254e8..cdcd4f0c 100644 --- a/Makefile +++ b/Makefile @@ -113,19 +113,29 @@ install: mkdir ${PREFIX}/german/macro ; \ ${CHOWN} -R ${OWNER}.${GROUP} ${PREFIX}/german; \ fi - @if [ ! -d /var/spool/mbse ] ; then \ - mkdir /var/spool/mbse ; \ - mkdir /var/spool/mbse/nodelist ; \ - mkdir /var/spool/mbse/unknown ; \ - mkdir /var/spool/mbse/inbound ; \ - mkdir /var/spool/mbse/outbound ; \ - mkdir /var/spool/mbse/msgs; \ - mkdir /var/spool/mbse/badtic ; \ - mkdir /var/spool/mbse/ticqueue ; \ - mkdir /var/spool/mbse/ftp ; \ - mkdir /var/spool/mbse/mail ; \ - ${CHOWN} -R ${OWNER}.${GROUP} /var/spool/mbse ; \ - chmod -R 0755 /var/spool/mbse ; \ + @if [ ! -d ${PREFIX}/ftp ] ; then \ + mkdir ${PREFIX}/ftp ; \ + mkdir ${PREFIX}/ftp/pub ; \ + mkdir ${PREFIX}/ftp/incoming ; \ + ${CHOWN} `id -un`.`id -gn` ${PREFIX}/ftp ; \ + chmod 0755 ${PREFIX}/ftp ; \ + ${CHOWN} ${OWNER}.${GROUP} ${PREFIX}/ftp/pub ; \ + chmod 0755 ${PREFIX}/ftp/pub ; \ + ${CHOWN} `id -un`.`id -gn` ${PREFIX}/ftp/incoming ; \ + chmod 0755 ${PREFIX}/ftp/incoming ; \ + fi + @if [ ! -d ${PREFIX}/var/bso ] ; then \ + mkdir ${PREFIX}/var/nodelist ; \ + mkdir ${PREFIX}/var/bso ; \ + mkdir ${PREFIX}/var/bso/unknown ; \ + mkdir ${PREFIX}/var/bso/inbound ; \ + mkdir ${PREFIX}/var/bso/outbound ; \ + mkdir ${PREFIX}/var/msgs; \ + mkdir ${PREFIX}/var/badtic ; \ + mkdir ${PREFIX}/var/ticqueue ; \ + mkdir ${PREFIX}/var/mail ; \ + ${CHOWN} -R ${OWNER}.${GROUP} ${PREFIX}/var ; \ + chmod -R 0750 ${PREFIX}/var ; \ fi for d in ${SUBDIRS}; do (cd $$d && ${MAKE} $@) || exit; done diff --git a/html/basic.html b/html/basic.html index eae78b13..534c4f74 100755 --- a/html/basic.html +++ b/html/basic.html @@ -11,7 +11,7 @@
-
Last update 07-Aug-2001
+
Last update 25-Dec-2001

 

MBSE BBS Basic Installation

@@ -24,27 +24,60 @@ environment. If you don't do this, things will fail.

Step 1: planning the filesystems.

-MBSE BBS is default installed in /opt/mbse. The spoolfiles (in and -outbound, message bases) go into /var/spool/mbse. In the /opt/mbse -path are several subdirectories, bin for the binaries, etc for the -configuration and some scripts, english, spanish, italian and dutch for the language -files and menus, home for the users homedirectories, log for the -logfiles, magic for the filerequest magicnames, fdb for the files -database, var for some statistic files and tmp as temp directory. +MBSE BBS is default installed in /opt/mbse. The default filesystem +layout looks like this:
+

+/opt/mbse                      Default MBSE_ROOT
+/opt/mbse/bin                  Binaries
+/opt/mbse/doc                  Generated sitedocs
+/opt/mbse/dutch/macro          N/A
+/opt/mbse/dutch/menus          Dutch menu files
+/opt/mbse/dutch/txtfiles       Dutch ANSI files
+/opt/mbse/english/macro        Default english macros, not yet.
+/opt/mbse/english/menus        Default english menus
+/opt/mbse/english/txtfiles     Default english ANSI files
+/opt/mbse/etc                  System configuration files
+/opt/mbse/fdb                  Files database
+/opt/mbse/ftp                  Default FTP root
+/opt/mbse/galego/macro         N/A
+/opt/mbse/galego/menus         Galego menu files
+/opt/mbse/galego/txtfiles      Galego ANSI files
+/opt/mbse/home                 Users homedirectories
+/opt/mbse/home/bbs             Newuser account
+/opt/mbse/html                 HTML documentation
+/opt/mbse/italian/macro        N/A
+/opt/mbse/italian/menus        Italian menu files
+/opt/mbse/italian/txtfiles     Italian ANSI files
+/opt/mbse/log                  MBSE BBS logfiles
+/opt/mbse/magic                Magic filerequest names
+/opt/mbse/sema                 Semafore files
+/opt/mbse/spanish/macro        N/A
+/opt/mbse/spanish/menus        Spanish menu files
+/opt/mbse/spanish/txtfiles     Spanish ANSI files
+/opt/mbse/tmp                  Temp directory
+/opt/mbse/tmp/arc              Temp archiver directory
+/opt/mbse/var                  Var root
+/opt/mbse/var/badtic           Bad TIC files
+/opt/mbse/var/bso              Binkley Style Outbound directory
+/opt/mbse/var/bso/inbound      Protected inbound directory
+/opt/mbse/var/bso/outbound     Default outbound directory
+/opt/mbse/var/bso/unknown      Unprotected inbound directory
+/opt/mbse/var/mail             JAM messagebase root
+/opt/mbse/var/mail/badmail     Bad echomail
+/opt/mbse/var/mail/dupmail     Duplicate echomail
+/opt/mbse/var/msgs             *.msgs netmail directory (not yet in use).
+/opt/mbse/var/nodelist         Nodelists
+/opt/mbse/var/ticqueue         Queue for TIC files
+

Don't use UMSDOS or SAMBA filesystems for the bbs, stick by the standard Linux -filesystems (ext2 or reiserfs). If you intent to make your bbs also accessible +filesystems (ext2 or reiserfs) or ufs if you use FreeBSD. +If you intent to make your bbs also accessible by FTP and WWW you must create the directory structure under the ftp user behind the pub directory. Read the ftp server doc for details. If you don't follow these guidlines, you will run into trouble later and have to spend a lot of time in correcting this error. -

-The default setup will be as follows:
-

-/opt/mbse		binaries, config and user home directories.
-/var/spool/mbse		In/outbound, queues, download directories.
-

 

Step 2: Running the installation script.

@@ -106,8 +139,8 @@ rm -Rf mbsebbs-0.33.nn

Step 4: Install the basic packages.

-Login as user mbse. While in the home directory unpack the distribution -archives: +Login as user mbse. Yes, very important, login as user mbse. +While in the home directory unpack the distribution archives:

 tar xfvz /path/to/mbsebbs-0.33.nn.tar.gz
 
@@ -117,7 +150,7 @@ Next build the binaries and install them using the folowing commands: cd ~/mbsebbs-0.33.nn ./configure make -su +su important, do not use "su -" password: enter root password here make install exit diff --git a/html/setup/global.html b/html/setup/global.html index 9825024f..2e373c82 100644 --- a/html/setup/global.html +++ b/html/setup/global.html @@ -11,7 +11,7 @@
-
Last update 08-Nov-2001
+
Last update 25-Dec-2001

 

MBSE BBS Setup - Global Setup

@@ -84,7 +84,7 @@ as well, for example binkd, or even a DOS binkly-style mailer running from a network. All those mailer must "see" the same file attaches in the .flo files. If you leave the DOS path empty, no translation will be performed and the Unix paths will be stored in the .flo files. This is the best setting -if mbsebbs is the only mailer running on your system. +if mbsebbs is the only mailer running on your system and is the default.

1.5. Edit BBS Configuration

diff --git a/mbtask/mbtask.c b/mbtask/mbtask.c index 4598cafd..dba2da79 100644 --- a/mbtask/mbtask.c +++ b/mbtask/mbtask.c @@ -151,20 +151,21 @@ void load_maincfg(void) sprintf(CFG.bbs_menus, "%s/english/menus", getenv("MBSE_ROOT")); sprintf(CFG.bbs_txtfiles, "%s/english/txtfiles", getenv("MBSE_ROOT")); sprintf(CFG.bbs_usersdir, "%s/home", getenv("MBSE_ROOT")); - sprintf(CFG.nodelists, "/var/spool/mbse/nodelist"); - sprintf(CFG.inbound, "/var/spool/mbse/unknown"); - sprintf(CFG.pinbound, "/var/spool/mbse/inbound"); - sprintf(CFG.outbound, "/var/spool/mbse/outbound"); - sprintf(CFG.msgs_path, "/var/spool/mbse/msgs"); - sprintf(CFG.uxpath, "/var/spool/mbse"); - sprintf(CFG.badtic, "/var/spool/mbse/badtic"); - sprintf(CFG.ticout, "/var/spool/mbse/ticqueue"); + sprintf(CFG.nodelists, "%s/var/nodelist", getenv("MBSE_ROOT")); + sprintf(CFG.inbound, "%s/var/unknown", getenv("MBSE_ROOT")); + sprintf(CFG.pinbound, "%s/var/inbound", getenv("MBSE_ROOT")); + sprintf(CFG.outbound, "%s/var/bso/outbound", getenv("MBSE_ROOT")); + sprintf(CFG.msgs_path, "%s/var/msgs", getenv("MBSE_ROOT")); + sprintf(CFG.uxpath, "%s/var", getenv("MBSE_ROOT")); + sprintf(CFG.badtic, "%s/var/badtic", getenv("MBSE_ROOT")); + sprintf(CFG.ticout, "%s/var/ticqueue", getenv("MBSE_ROOT")); sprintf(CFG.req_magic, "%s/magic", getenv("MBSE_ROOT")); + CFG.leavecase = TRUE; /* * Newfiles reports */ - sprintf(CFG.ftp_base, "/var/spool/mbse/ftp"); + sprintf(CFG.ftp_base, "%s/ftp", getenv("MBSE_ROOT")); CFG.newdays = 30; CFG.security.level = 20; CFG.new_split = 27; @@ -312,8 +313,8 @@ void load_maincfg(void) */ CFG.maxpktsize = 150; CFG.maxarcsize = 300; - sprintf(CFG.badboard, "/var/spool/mbse/mail/badmail"); - sprintf(CFG.dupboard, "/var/spool/mbse/mail/dupmail"); + sprintf(CFG.badboard, "%s/var/mail/badmail", getenv("MBSE_ROOT")); + sprintf(CFG.dupboard, "%s/var/mail/dupmail", getenv("MBSE_ROOT")); sprintf(CFG.popnode, "localhost"); sprintf(CFG.smtpnode, "localhost"); sprintf(CFG.nntpnode, "localhost"); @@ -372,7 +373,7 @@ void load_maincfg(void) /* * WWW defaults */ - sprintf(CFG.www_root, "/var/lib/apache/htdocs"); + sprintf(CFG.www_root, "/var/www/htdocs"); sprintf(CFG.www_link2ftp, "files"); sprintf(CFG.www_url, "http://%s", CFG.sysdomain); sprintf(CFG.www_charset, "ISO 8859-1");