diff options
Diffstat (limited to 'chinese/firebird/files')
| -rw-r--r-- | chinese/firebird/files/bbs.sh.example | 37 | ||||
| -rw-r--r-- | chinese/firebird/files/patch-configure | 71 | ||||
| -rw-r--r-- | chinese/firebird/files/patch-src_Install.sh.in | 87 |
3 files changed, 195 insertions, 0 deletions
diff --git a/chinese/firebird/files/bbs.sh.example b/chinese/firebird/files/bbs.sh.example new file mode 100644 index 000000000000..084ec41aa027 --- /dev/null +++ b/chinese/firebird/files/bbs.sh.example @@ -0,0 +1,37 @@ +#!/bin/sh +# +# bbs.sh +# +# $Id$ + +bbsd_port=23 + +case "$1" in + start) + if [ -x /usr/local/bbs/bin/bbsd ]; then + /usr/local/bbs/bin/bbsd $bbsd_port && echo -n ' bbsd' + fi + if [ -x /usr/local/bbs/innd/innbbsd ]; then + su bbs -c '/usr/local/bbs/innd/innbbsd' && echo -n ' bbs.innbbsd' + fi + if [ -f /usr/local/bbs/etc/cron.bbs ]; then + su bbs -c 'crontab /usr/local/bbs/etc/cron.bbs' && echo -n ' bbs.cron' + fi + ;; + stop) + if [ -f /usr/local/bbs/log/bbsd.pid ]; then + /bin/kill `cat /usr/local/bbs/log/bbsd.pid` + /usr/bin/killall bbsd 2> /dev/null + rm -fr /usr/local/bbs/log/bbsd.pid + echo -n " -bbsd" + else + echo "bbsd does not start yet. (pid file not found.)" + fi + ;; + *) + echo "" + echo "usage: `basename $0` { start | stop }" + echo "" + exit 64 + ;; +esac
\ No newline at end of file diff --git a/chinese/firebird/files/patch-configure b/chinese/firebird/files/patch-configure new file mode 100644 index 000000000000..c27543ef7442 --- /dev/null +++ b/chinese/firebird/files/patch-configure @@ -0,0 +1,71 @@ +--- configure.orig Fri Feb 2 23:15:28 2001 ++++ configure Fri Feb 16 21:20:29 2001 +@@ -1540,40 +1540,43 @@ + echo "${color_f}Please fill data for your BBS${color_r}" + echo " " + +-bbshome=`cd .. ; pwd` +-echo -n "Home directory of BBS --> [$bbshome] " +-read BBS_HOME ++if test -z $prefix; then ++ bbshome="/usr/local/bbs" ++else ++ if test $prefix = "NONE"; then ++ bbshome="/usr/local/bbs" ++ else ++ bbshome="${prefix}/bbs" ++ fi ++fi ++ ++echo "Home directory of BBS --> [$bbshome] " + BBS_HOME=${BBS_HOME:-$bbshome} + + bbssrc=`pwd` +-echo -n "BBS Source Code directory --> [$bbssrc] " +-read BBSSRC ++echo "BBS Source Code directory --> [$bbssrc] " + BBSSRC=${BBSSRC:-$bbssrc} + +-echo -n "UID of BBS --> [9999] " +-read BBS_UID ++echo "UID of BBS --> [9999] " + BBS_UID=${BBS_UID:-9999} + +-echo -n "GID of BBS --> [99] " +-read BBS_GID ++echo "GID of BBS --> [99] " + BBS_GID=${BBS_GID:-99} + +-#echo -n "UID of BBS admin --> [9990] " +-#read BBS_ADM +-#BBS_ADM=${BBS_ADM:-9990} +- +-echo -n "The ID of your site --> [NoName] " ++hname=`hostname -s` ++echo -n "The ID of your site --> [${hname}] " + read BBS_ID +-BBS_ID=${BBS_ID:-NoName} ++BBS_ID=${BBS_ID:-"${hname}"} + + echo -n "The name of your site --> [¤õ³¾¨t²Î 3.0] " + read BBS_CNAME + + BBS_CNAME=${BBS_CNAME:-"¤õ³¾¨t²Î 3.0"} + +-echo -n "The domain name of your site --> [some.where.on.earth] " ++hostname=`hostname` ++echo -n "The domain name of your site --> [${hostname}] " + read DOMAIN +-DOMAIN=${DOMAIN:-"some.where.on.earth"} ++DOMAIN=${DOMAIN:-"${hostname}"} + + echo -n "The ip address of your site --> [127.0.0.1] " + read BBS_IP +@@ -1957,6 +1960,7 @@ + ###################################################### + This file is generate by configure \$Revision: 1.12 $ + ###################################################### ++BUILDER=_FreeBSD_ports_ + PERL=$perl + BBS_ID=$BBS_ID + DOMAIN=$DOMAIN diff --git a/chinese/firebird/files/patch-src_Install.sh.in b/chinese/firebird/files/patch-src_Install.sh.in new file mode 100644 index 000000000000..65aefa8e081e --- /dev/null +++ b/chinese/firebird/files/patch-src_Install.sh.in @@ -0,0 +1,87 @@ +--- src/Install.sh.in.ok Sun Feb 4 22:26:28 2001 ++++ src/Install.sh.in Mon Feb 5 08:34:33 2001 +@@ -3,34 +3,41 @@ + # CVS: $Id: Install.sh.in,v 1.14 2000/12/11 11:28:28 edwardc Exp $ + + BBS_HOME=@BBS_HOME@ ++OLD_HOME="../.." + BBSUID=@BBS_UID@ + BBSGRP=@BBS_GID@ + INSTALL="@INSTALL@" + TARGET=@BBS_HOME@/bin + +-if [ -f "${BBS_HOME}/BOARDS" ] ; then +- echo "This script will setting up the BBS directory for you on ${BBS_HOME} .." +- echo -n "Press <Enter> to continue ..." +- read ans +-else +- if [ ".${FORCE_INSTALL}" = ".YES" ] ; then +- echo "force install ........ that might be many error, be aware!" +- echo "Press <Enter> to continue ..." +- read ans +- else +- echo "WARNING: You have \"make install\" before, so you wont be install again." +- echo "To install the new binary, please try \"make update\"." +- echo " " +- echo "If you want to force the install, please try " +- echo "% make install FORCE_INSTALL=YES" +- exit +- fi +-fi +- ++echo "" + echo "Setup bbs directory tree ....." +-mv ${BBS_HOME}/BOARDS ${BBS_HOME}/.BOARDS ++mkdir -p ${BBS_HOME} ++mv ${OLD_HOME}/BOARDS ${BBS_HOME}/.BOARDS + touch ${BBS_HOME}/.hushlogin + ++mdirs="0Announce bbssrc bin etc help innd table" ++mfiles="CONTRIB COPYING Version.Info Welcome Welcome2" ++ ++echo "" ++ ++echo "copying dirs .." ++echo -n " " ++for x in $mdirs; \ ++do \ ++ echo -n " $x" ++ cp -R ${OLD_HOME}/$x ${BBS_HOME} ++done ++echo " done." ++ ++echo "copying files .." ++echo -n " " ++for x in $mfiles; \ ++do \ ++ echo -n " $x" ++ cp -R ${OLD_HOME}/$x ${BBS_HOME} ++done ++echo " done." ++echo "" + echo "creating necessary empty directory (user mail, user home)" + + alphabet="A B C D E F G H I J K L M N O P Q R S T U V W X Y Z" +@@ -84,6 +91,8 @@ + mv ${BBS_HOME}/table/movie.3 ${BBS_HOME}/boards/notepad/G.960994672.A + cp ${BBS_HOME}/boards/notepad/G.960994672.A ${BBS_HOME}/boards/notepad/M.960994672.A + ++echo " done." ++ + cat > ${BBS_HOME}/etc/sysconf.ini << EOF + #--------------------------------------------------------------- + # Here is where you adjust the BBS System Configuration +@@ -174,11 +183,7 @@ + ${INSTALL} -m 550 -s -g ${BBSGRP} -o ${BBSUID} SO/paging.so ${TARGET} + ${INSTALL} -m 550 -s -g ${BBSGRP} -o ${BBSUID} SO/thread.so ${TARGET} + +-#if test -f ../.reldate; then +-# echo "cleanning CVS directories in bbshome ...." +-# find ${BBS_HOME} -name "CVS" -print | xargs rm -fr +-#fi ++echo "cleanning .o files in bbshome ...." ++find ${BBS_HOME}"/bbssrc/src" -name "*.o" -print | xargs rm -fr + + echo "Install is over...." +-echo "Check the configuration in ${BBS_HOME}/etc/sysconf.ini" +-echo "Then login your BBS and create an account called SYSOP (case-sensitive)" |
