/[dragonmtn]/rapunzel/Config
ViewVC logotype

Diff of /rapunzel/Config

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.1.1 by Halcy0n, Sat Apr 9 19:17:00 2005 UTC revision 1.2 by Halcy0n, Sun May 15 02:22:09 2005 UTC
# Line 3  Line 3 
3  # Copyright 1996-2003 Michael Graff <explorer@flame.org>  # Copyright 1996-2003 Michael Graff <explorer@flame.org>
4  # You may distribute this file freely providing this notice remains intact.  # You may distribute this file freely providing this notice remains intact.
5  #  #
6  IRCD_VERSION="sor1.3.7"  IRCD_VERSION="0.1"
7  CONF_DATE=`date`  CONF_DATE=`date`
8  LAST_VERSION="very very old"  LAST_VERSION="very very old"
9  #  #
# Line 29  NINETNETOF=undef Line 29  NINETNETOF=undef
29  NGETADDRINFO=undef  NGETADDRINFO=undef
30  TMP=/tmp/.Configtmp$$.c  TMP=/tmp/.Configtmp$$.c
31  CCPATH=''  CCPATH=''
32  SN_MODE='1'  NET_MODE='1'
33  NETNAME='SorceryNet'  NETNAME='10thkingdom'
34  URL_CONNECTHELP='none'  URL_CONNECTHELP='none'
35  REQ_VERSION_RESPONSE='1'  REQ_VERSION_RESPONSE='1'
36  EXEC=/tmp/.Configtmp$$  EXEC=/tmp/.Configtmp$$
# Line 670  FOO="" Line 670  FOO=""
670  runonce=""  runonce=""
671    
672  while [ -z "$FOO" ] ; do  while [ -z "$FOO" ] ; do
673     FOO="$SN_MODE"     FOO="$NET_MODE"
674         if [ -n "$SN_MODE" ] ; then         if [ -n "$NET_MODE" ] ; then
675               FOO="Yes"               FOO="Yes"
676         else         else
677               FOO="No"               FOO="No"
678        fi        fi
679    
680  cat <<EOF  cat <<EOF
681  Do you want to compile in SorceryNet mode?  Do you want to compile in 10thkingdom mode?
682    
683  Answer YES here for compiling any server daemon to be linked  Answer YES here for compiling any server daemon to be linked
684  to SorceryNet or any SN test network.  to 10thkingdom.
685  EOF  EOF
686    
687     echo $n "[$FOO] -> $c"     echo $n "[$FOO] -> $c"
# Line 696  EOF Line 696  EOF
696      fi      fi
697      case "$cc" in      case "$cc" in
698                      [Yy]*)                      [Yy]*)
699                          SN_MODE="1"                          NET_MODE="1"
700                      ;;                      ;;
701                      [Nn]*)                      [Nn]*)
702                          SN_MODE=""                          NET_MODE=""
703                      ;;                      ;;
704                      *)                      *)
705                          echo ""                          echo ""
# Line 711  EOF Line 711  EOF
711    
712  done  done
713    
714  if [ -n "$SN_MODE" ] ; then  if [ -n "$NET_MODE" ] ; then
715          NETNAME='SorceryNet'          NETNAME='10thkingdom'
716          NETWORK_KLINE_ADDRESS='kline@sorcery.net'          NETWORK_KLINE_ADDRESS='kline@10thkingdom.net'
717          NS_URL="http://www.sorcery.net/help/connecting.html"              NS_URL="http://www.10thkingdom.net/help/connect"        
718          URL_CONNECTHELP=''          URL_CONNECTHELP=''
719          SN_MODE='1'          NET_MODE='1'
720  elif [ -z "$SN_MODE" ] ; then  elif [ -z "$NET_MODE" ] ; then
721  # Lets prompt for the network name  # Lets prompt for the network name
722  runonce=""  runonce=""
723  FOO=""  FOO=""
# Line 752  while [ -z "$FOO" ] ; do Line 752  while [ -z "$FOO" ] ; do
752         echo "with their connection? If yes, give it here. If nothing is"         echo "with their connection? If yes, give it here. If nothing is"
753         echo "given, they will be given the default help message on connect,"         echo "given, they will be given the default help message on connect,"
754         echo "and I don\'t think you want that, unless you are linking to"         echo "and I don\'t think you want that, unless you are linking to"
755         echo "SorceryNet."         echo "10thkingdom."
756         echo $n "[$FOO] -> $c"         echo $n "[$FOO] -> $c"
757    
758         if [ -z "$AUTO_CONFIG" -o -n "$runonce" ] ; then         if [ -z "$AUTO_CONFIG" -o -n "$runonce" ] ; then
# Line 799  while [ -z "$FOO" ] ; do Line 799  while [ -z "$FOO" ] ; do
799              echo " "              echo " "
800              while [ -z "$FOO" ] ; do              while [ -z "$FOO" ] ; do
801                  FOO="No"                  FOO="No"
802                  echo "kline@sorcery.net is for SorceryNet servers only"                  echo "kline@10thkingdom.net is for 10thkingd servers only"
803    
804                  echo "Are you sure you want to set the address to kline@sorcery.net?"                  echo "Are you sure you want to set the address to kline@10thkingdom.net?"
805                  echo $n "[$FOO] -> $c"                  echo $n "[$FOO] -> $c"
806                  if [ -z "$AUTO_CONFIG" -o -n "$runonce" ] ; then                  if [ -z "$AUTO_CONFIG" -o -n "$runonce" ] ; then
807                      read cc                      read cc
# Line 887  while [ -z "$FOO" ] ; do Line 887  while [ -z "$FOO" ] ; do
887              ;;              ;;
888      esac      esac
889    
890      if [ -z "$AUTO_CONFIG" -a -n "$SN_MODE" -a -z "$NOSPOOF" ] ; then      if [ -z "$AUTO_CONFIG" -a -n "$NET_MODE" -a -z "$NOSPOOF" ] ; then
891  cat << EOF  cat << EOF
892  When compiling a SorceryNet server, you need to use the NOSPOOF  When compiling a 10thkingdom server, you need to use the NOSPOOF
893  option.  option.
894    
895  Type 'yes' if you are sure you want to turn this off:  Type 'yes' if you are sure you want to turn this off:
# Line 1073  while [ -z "$FOO" ] ; do Line 1073  while [ -z "$FOO" ] ; do
1073      echo "user being K:lined, shown to the user when they attempt to"      echo "user being K:lined, shown to the user when they attempt to"
1074      echo "connect?  This should be a valid email address."      echo "connect?  This should be a valid email address."
1075      echo " "      echo " "
1076      echo "For SorceryNet servers, note that this message is displayed when"      echo "For 10thkingdom servers, note that this message is displayed when"
1077      echo "the user is affected by a local K:line or k:line.  With"      echo "the user is affected by a local K:line or k:line.  With"
1078      echo "Services-based autokills, the message is set up automatically"      echo "Services-based autokills, the message is set up automatically"
1079      echo "by Services to ask the user to email kline@sorcery.net.  It is"      echo "by Services to ask the user to email kline@10thkingdom.net.  It is"
1080      echo "recommended that you set this up to give a valid email address"      echo "recommended that you set this up to give a valid email address"
1081      echo "for the server's admin, not kline@sorcery.net."      echo "for the server's admin, not kline@10thkindom.net."
1082      echo $n "[$FOO] -> $c"      echo $n "[$FOO] -> $c"
1083      if [ -z "$AUTO_CONFIG" -o -n "$runonce" -o -z "$FOO" ] ; then      if [ -z "$AUTO_CONFIG" -o -n "$runonce" -o -z "$FOO" ] ; then
1084          read cc          read cc
# Line 1584  answers to the above questions. Line 1584  answers to the above questions.
1584    
1585  This file is automatically generated and will be updated each time you  This file is automatically generated and will be updated each time you
1586  run Config.  You should retain a copy of this to help migrate to future  run Config.  You should retain a copy of this to help migrate to future
1587  versions of the SorceryNet server with ease.  versions of the Rapunzel server with ease.
1588    
1589  __EOF__  __EOF__
1590    
# Line 1617  else Line 1617  else
1617      echo "#undef HUB" >> $OPTIONS_H      echo "#undef HUB" >> $OPTIONS_H
1618  fi  fi
1619    
1620  if [ -n "$SN_MODE" ] ; then  if [ -n "$NET_MODE" ] ; then
1621          echo "#define SN_MODE" >> $OPTIONS_H          echo "#define NET_MODE" >> $OPTIONS_H
1622  fi  fi
1623    
1624  if [ -n "$URL_CONNECTHELP" ] ; then  if [ -n "$URL_CONNECTHELP" ] ; then
# Line 1681  cat > $OPTIONS << __EOF__ Line 1681  cat > $OPTIONS << __EOF__
1681  # versions of the DALnet server with ease.  # versions of the DALnet server with ease.
1682  #  #
1683  LAST_VERSION="$IRCD_VERSION"  LAST_VERSION="$IRCD_VERSION"
1684  SN_MODE="$SN_MODE"  NET_MODE="$NET_MODE"
1685  NETNAME="$NETNAME"  NETNAME="$NETNAME"
1686  URL_CONNECTHELP="$URL_CONNECTHELP"  URL_CONNECTHELP="$URL_CONNECTHELP"
1687  NOSPOOF="$NOSPOOF"  NOSPOOF="$NOSPOOF"

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26