Small modifications for FreeBSD

This commit is contained in:
Michiel Broek 2001-12-22 22:42:59 +00:00
parent ee0f4db63d
commit 3969db7a22
4 changed files with 31 additions and 18 deletions

View File

@ -232,7 +232,7 @@ if [ "$OSTYPE" = "Linux" ]; then
useradd -c "MBSE BBS Admin" -d $MHOME -g bbs -G uucp -m -s /bin/bash mbse
fi
if [ "$OSTYPE" = "FreeBSD" ]; then
pw useradd mbse -c "MBSE BBS Admin" -d $MHOME -g bbs -G dialer -m -s /usr/local/bin/bash
pw useradd mbse -c "MBSE BBS Admin" -d $MHOME -g bbs -G wheel,dialer -m -s /usr/local/bin/bash
fi
log "+" "[$?] Added user mbse"
chmod 770 $MHOME

View File

@ -1,11 +1,10 @@
/*****************************************************************************
*
* File ..................: mbcico/ulock.c
* $Id$
* Purpose ...............: Fidonet mailer
* Last modification date : 18-Dec-1999
*
*****************************************************************************
* Copyright (C) 1997-1999
* Copyright (C) 1997-2001
*
* Michiel Broek FIDO: 2:280/2802
* Beekmansbos 10
@ -33,8 +32,12 @@
#include "../lib/clcomm.h"
#ifndef LOCKDIR
#ifdef __FreeBSD__
#define LOCKDIR "/var/spool/lock"
#else
#define LOCKDIR "/var/lock"
#endif
#endif
#define LCKPREFIX LOCKDIR"/LCK.."
#define LCKTMP LOCKDIR"/TMP."

View File

@ -1,7 +1,8 @@
/*
Autogenerated by configure
* $Id$
*
* Autogenerated by configure
*/
#define _PATH_COMPRESS "@COMPRESS@"
#define _PATH_GZIP "@GZIP@"

View File

@ -1,8 +1,8 @@
#
# $Id$
#
# Installation script to install bootscripts.
#
# (C) Michiel Broek, v0.24 25-Oct-2001
#
PATH=/bin:/sbin:/usr/bin:/usr/sbin:$MBSE_ROOT/bin
DISTNAME=
DISTVERS=
@ -582,16 +582,25 @@ if [ "$DISTNAME" = "FreeBSD" ]; then
DISTINIT="$MBSE_ROOT/etc/rc"
echo "Adding FreeBSD style MBSE BBS start/stop scripts"
log "+" "Adding FreeBSD style MBSE BBS start/stop scripts"
if [ "`grep MBSE /etc/rc.local`" = "" ]; then
log "+" "Adding $MBSE_ROOT/etc/rc to /etc/rc.local"
mv /etc/rc.local /etc/rc.local.mbse
cat /etc/rc.local.mbse >/etc/rc.local
echo "# Start MBSE BBS" >>/etc/rc.local
echo "$MBSE_ROOT/etc/rc" >>/etc/rc.local
chmod 644 /etc/rc.local
echo " Added $MBSE_ROOT/etc/rc to /etc/rc.local"
echo " /etc/rc.local.mbse is a backup file."
echo ""
if [ -f /etc/rc.local ]; then
if [ "`grep MBSE /etc/rc.local`" = "" ]; then
log "+" "Adding $MBSE_ROOT/etc/rc to existing /etc/rc.local"
mv /etc/rc.local /etc/rc.local.mbse
cat /etc/rc.local.mbse >/etc/rc.local
echo "# Start MBSE BBS" >>/etc/rc.local
echo "$MBSE_ROOT/etc/rc" >>/etc/rc.local
chmod 644 /etc/rc.local
echo " Added $MBSE_ROOT/etc/rc to /etc/rc.local"
echo " /etc/rc.local.mbse is a backup file."
echo ""
fi
else
log "+" "Adding $MBSE_ROOT/etc/rc to new /etc/rc.local"
echo "# Start MBSE BBS" >/etc/rc.local
echo "$MBSE_ROOT/etc/rc" >>/etc/rc.local
chmod 644 /etc/rc.local
echo " Added $MBSE_ROOT/etc/rc to /etc/rc.local"
echo ""
fi
cp mbse.start $MBSE_ROOT/bin
cp mbse.stop $MBSE_ROOT/bin