Updates for newer Linux distro's

This commit is contained in:
Michiel Broek 2002-01-13 14:07:43 +00:00
parent 4fe7de81ea
commit f18670f3fe
4 changed files with 77 additions and 18 deletions

View File

@ -4259,6 +4259,8 @@ v0.33.19 26-Oct-2001
SETUP.sh SETUP.sh
Better grep to check for excisting usernames like bbs, mbse. Better grep to check for excisting usernames like bbs, mbse.
Ported to NetBSD. Ported to NetBSD.
Added support for xinetd configuration.
Changed distribution test for Mandrake.
libcommon.a: libcommon.a:
When adding seenby entries, the zone number is copied from the When adding seenby entries, the zone number is copied from the

View File

@ -117,12 +117,15 @@ install:
mkdir ${PREFIX}/ftp ; \ mkdir ${PREFIX}/ftp ; \
mkdir ${PREFIX}/ftp/pub ; \ mkdir ${PREFIX}/ftp/pub ; \
mkdir ${PREFIX}/ftp/incoming ; \ mkdir ${PREFIX}/ftp/incoming ; \
mkdir ${PREFIX}/ftp/local ; \
${CHOWN} `id -un`.`id -gn` ${PREFIX}/ftp ; \ ${CHOWN} `id -un`.`id -gn` ${PREFIX}/ftp ; \
chmod 0755 ${PREFIX}/ftp ; \ chmod 0755 ${PREFIX}/ftp ; \
${CHOWN} ${OWNER}.${GROUP} ${PREFIX}/ftp/pub ; \ ${CHOWN} ${OWNER}.${GROUP} ${PREFIX}/ftp/pub ; \
chmod 0755 ${PREFIX}/ftp/pub ; \ chmod 0755 ${PREFIX}/ftp/pub ; \
${CHOWN} `id -un`.`id -gn` ${PREFIX}/ftp/incoming ; \ ${CHOWN} `id -un`.`id -gn` ${PREFIX}/ftp/incoming ; \
chmod 0755 ${PREFIX}/ftp/incoming ; \ chmod 0755 ${PREFIX}/ftp/incoming ; \
${CHOWN} ${OWNER}.${GROUP} ${PREFIX}/ftp/local ; \
chmod 0755 ${PREFIX}/ftp/local ; \
fi fi
@if [ ! -d ${PREFIX}/var/bso ] ; then \ @if [ ! -d ${PREFIX}/var/bso ] ; then \
mkdir ${PREFIX}/var/nodelist ; \ mkdir ${PREFIX}/var/nodelist ; \

View File

@ -81,14 +81,16 @@ if [ "$OSTYPE" = "Linux" ]; then
DISTNAME="SuSE" DISTNAME="SuSE"
DISTVERS=`cat /etc/SuSE-release | grep VERSION | awk '{ print $3 }'` DISTVERS=`cat /etc/SuSE-release | grep VERSION | awk '{ print $3 }'`
else else
if [ -f /etc/redhat-release ]; then # Mandrake test before RedHat, Mandrake has a redhat-release
DISTNAME="RedHat" # file also which is a symbolic link to mandrake-release.
DISTVERS=`cat /etc/redhat-release | awk '{ print $5 }'`
else
if [ -f /etc/mandrake-release ]; then if [ -f /etc/mandrake-release ]; then
DISTNAME="Mandrake" DISTNAME="Mandrake"
# Format: Linux Mandrake release 8.0 (Cooker) for i586 # Format: Linux Mandrake release 8.0 (Cooker) for i586
DISTVERS=`cat /etc/mandrake-release | awk '{ print $4 }'` DISTVERS=`cat /etc/mandrake-release | awk '{ print $4 }'`
else
if [ -f /etc/redhat-release ]; then
DISTNAME="RedHat"
DISTVERS=`cat /etc/redhat-release | awk '{ print $5 }'`
else else
if [ -f /etc/rc.d/rc.0 ] && [ -f /etc/rc.d/rc.local ]; then if [ -f /etc/rc.d/rc.0 ] && [ -f /etc/rc.d/rc.local ]; then
# If Slackware wasn't detected yet it is version 4.0 or older. # If Slackware wasn't detected yet it is version 4.0 or older.
@ -312,7 +314,7 @@ if [ "$OSTYPE" = "Linux" ]; then
if [ -f /etc/shadow ]; then if [ -f /etc/shadow ]; then
log "+" "Standard shadow password system" log "+" "Standard shadow password system"
# Not all systems are the same... # Not all systems are the same...
if [ "`grep -w bbs:\!\!: /etc/shadow`" != "" ]; then if [ "`grep bbs:\!\!: /etc/shadow`" != "" ]; then
sed /bbs:\!\!:/s/bbs:\!\!:/bbs::/ /etc/shadow >/etc/shadow.bbs sed /bbs:\!\!:/s/bbs:\!\!:/bbs::/ /etc/shadow >/etc/shadow.bbs
else else
sed /bbs:\!:/s/bbs:\!:/bbs::/ /etc/shadow >/etc/shadow.bbs sed /bbs:\!:/s/bbs:\!:/bbs::/ /etc/shadow >/etc/shadow.bbs
@ -410,6 +412,8 @@ if [ "$FIDO" = "TRUE" ] || [ "$BINKD" = "TRUE" ]; then
fi fi
if [ -f /etc/inetd.conf ]; then
log "+" "/etc/inetd.conf found, inetd system"
if [ "`grep mbcico /etc/inetd.conf`" = "" ]; then if [ "`grep mbcico /etc/inetd.conf`" = "" ]; then
echo -n "Modifying /etc/inetd.conf" echo -n "Modifying /etc/inetd.conf"
log "+" "Modifying /etc/inetd.conf" log "+" "Modifying /etc/inetd.conf"
@ -433,7 +437,55 @@ EOF
fi fi
echo ", done." echo ", done."
fi fi
fi
if [ -f /etc/xinetd.conf ]; then
log "+" "/etc/xinetd.conf found, xinetd system"
if [ -d /etc/xinetd.d ]; then
log "+" "has xinetd.d subdir, writing files"
XINET="/etc/xinetd.d/mbsebbs"
else
log "+" "appending to xinetd.conf"
XINET="/etc/xinetd.conf"
fi
cat << EOF >> $XINET
#:MBSE BBS services are defined here.
service binkp
{
socket_type = stream
protocol = tcp
wait = no
user = mbse
instances = 10
server = $MHOME/bin/mbcico
server-args = -t ibn
}
service tfido
{
socket_type = stream
protocol = tcp
wait = no
user = mbse
instances = 10
server = $MHOME/bin/mbcico
server-args = -t itn
}
service fido
{
socket_type = stream
protocol = tcp
wait = no
user = mbse
instances = 10
server = $MHOME/bin/mbcico
server-args = -t ifc
}
EOF
fi
echo "" echo ""
echo -n "Press Enter to continue" echo -n "Press Enter to continue"

View File

@ -88,14 +88,16 @@ if [ "$OSTYPE" = "Linux" ]; then
DISTNAME="SuSE" DISTNAME="SuSE"
DISTVERS=`cat /etc/SuSE-release | grep VERSION | awk '{ print $3 }'` DISTVERS=`cat /etc/SuSE-release | grep VERSION | awk '{ print $3 }'`
else else
if [ -f /etc/redhat-release ]; then # Mandrake test before RedHat, Mandrake has a redhat-release
DISTNAME="RedHat" # file also which is a symbolic link to mandrake-release.
DISTVERS=`cat /etc/redhat-release | awk '{ print $5 }'`
else
if [ -f /etc/mandrake-release ]; then if [ -f /etc/mandrake-release ]; then
DISTNAME="Mandrake" DISTNAME="Mandrake"
# Format: Linux Mandrake release 8.0 (Cooker) for i586 # Format: Linux Mandrake release 8.0 (Cooker) for i586
DISTVERS=`cat /etc/mandrake-release | awk '{ print $4 }'` DISTVERS=`cat /etc/mandrake-release | awk '{ print $4 }'`
else
if [ -f /etc/redhat-release ]; then
DISTNAME="RedHat"
DISTVERS=`cat /etc/redhat-release | awk '{ print $5 }'`
else else
if [ -f /etc/rc.d/rc.0 ] && [ -f /etc/rc.d/rc.local ]; then if [ -f /etc/rc.d/rc.0 ] && [ -f /etc/rc.d/rc.local ]; then
# If Slackware wasn't detected yet it is version 4.0 or older. # If Slackware wasn't detected yet it is version 4.0 or older.