2002-02-27 11:20:30 +00:00
|
|
|
|
#!/bin/sh
|
2004-07-10 22:46:26 +00:00
|
|
|
|
# makeconf $Id$
|
2002-02-27 11:20:30 +00:00
|
|
|
|
|
2005-02-06 10:35:19 +00:00
|
|
|
|
if [ "$1" ] ; then
|
|
|
|
|
NEOSTATSCONF=$1
|
|
|
|
|
else
|
|
|
|
|
NEOSTATSCONF="neostats.conf"
|
|
|
|
|
fi
|
|
|
|
|
|
2002-02-27 11:20:30 +00:00
|
|
|
|
TIME=`date +"%H:%M:%S %Z"`
|
|
|
|
|
DATE=`date +"%a, %b %e %Y"`
|
|
|
|
|
SERVNAME="stats.somenet.net"
|
2004-09-30 19:26:28 +00:00
|
|
|
|
ROOTNICK="NeoStats"
|
2005-03-16 21:55:15 +00:00
|
|
|
|
SERVICEHOST="stats.net"
|
2003-10-13 11:20:40 +00:00
|
|
|
|
SERVNUMERIC="1"
|
2004-09-30 19:26:28 +00:00
|
|
|
|
INFOLINE="NeoStats 3.0 IRC Services"
|
2002-02-27 11:20:30 +00:00
|
|
|
|
LINKPORT="6667"
|
|
|
|
|
LINKSERVER="127.0.0.1"
|
2004-09-30 19:26:28 +00:00
|
|
|
|
LINKPASS="linkpassword"
|
2002-02-27 11:20:30 +00:00
|
|
|
|
NEOCHAN="#services"
|
|
|
|
|
NEOCONN="10"
|
2005-06-21 11:44:37 +00:00
|
|
|
|
BINDIP="127.0.0.1 <- CHANGETHIS!!"
|
2003-10-06 19:09:39 +00:00
|
|
|
|
LOGFNAMEFORMAT="-%m-%d"
|
2004-02-03 21:38:06 +00:00
|
|
|
|
SETSERVERTIMES="24"
|
2005-06-21 11:44:37 +00:00
|
|
|
|
DATABASE="gdbm"
|
2002-02-27 11:20:30 +00:00
|
|
|
|
|
|
|
|
|
# these are so I can use stuff like $1 without it replacing it...like by
|
|
|
|
|
# using $dlrsgn$uno for $1
|
|
|
|
|
dlrsgn="$"
|
|
|
|
|
uno="1"
|
|
|
|
|
dos="2"
|
|
|
|
|
|
|
|
|
|
# remove the temp file if it exists
|
|
|
|
|
rm -f mkconf.tmp
|
|
|
|
|
|
|
|
|
|
# make a quick script for replacing one line with another
|
|
|
|
|
|
|
|
|
|
cat > repl_str << __EOF__
|
2004-09-30 19:26:28 +00:00
|
|
|
|
sed -e "s@^$dlrsgn$uno\(.*\)@$dlrsgn$dos" $NEOSTATSCONF > mkconf.tmp
|
|
|
|
|
cp mkconf.tmp $NEOSTATSCONF
|
2002-02-27 11:20:30 +00:00
|
|
|
|
rm mkconf.tmp
|
|
|
|
|
__EOF__
|
|
|
|
|
|
|
|
|
|
# mark repl_str as an executable
|
|
|
|
|
chmod +x repl_str
|
|
|
|
|
rm -f repl_str
|
|
|
|
|
# Checking out how to specify not to make a new line with the current OS
|
|
|
|
|
c=''
|
|
|
|
|
n=''
|
|
|
|
|
2>/dev/null
|
|
|
|
|
if [ "`eval echo -n 'a'`" = "-n a" ]; then
|
|
|
|
|
c='\c'
|
|
|
|
|
else
|
|
|
|
|
n='-n'
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# If Settings exist, load the info, otherwise tell them to run configure.
|
|
|
|
|
|
2005-09-13 20:27:35 +00:00
|
|
|
|
if [ -r config.h ]; then
|
|
|
|
|
echo "Starting configuration.. "
|
|
|
|
|
else if [ -r include/config.h ]; then
|
|
|
|
|
echo "Starting configuration.. "
|
|
|
|
|
else
|
|
|
|
|
echo "Configuration failed!"
|
|
|
|
|
echo "You have not run configure yet!"
|
|
|
|
|
echo "You probably should read the README file too"
|
|
|
|
|
echo ""
|
|
|
|
|
echo "Type ./configure"
|
|
|
|
|
echo "(If you need help read the README before asking us)"
|
|
|
|
|
echo ""
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
fi
|
2004-09-30 19:26:28 +00:00
|
|
|
|
CONF=$NEOSTATSCONF
|
2002-02-27 11:20:30 +00:00
|
|
|
|
|
|
|
|
|
if [ -r "$CONF" ]; then
|
2004-09-30 19:26:28 +00:00
|
|
|
|
echo "$NEOSTATSCONF found"
|
2002-02-27 11:20:30 +00:00
|
|
|
|
echo " "
|
2004-09-30 19:26:28 +00:00
|
|
|
|
echo "You already have a configuration file. This script is just for"
|
|
|
|
|
echo "creating the configuration file. If you continue you WILL LOSE"
|
|
|
|
|
echo "all the data that is already in your configuration file!"
|
2002-09-01 16:05:00 +00:00
|
|
|
|
echo ""
|
2004-09-30 19:26:28 +00:00
|
|
|
|
echo "If you are sure you want to recreate your configuration file"
|
|
|
|
|
echo "type 'recreate'."
|
2002-02-27 11:20:30 +00:00
|
|
|
|
echo $n " [exit] -> $c"
|
|
|
|
|
read cc
|
|
|
|
|
|
|
|
|
|
if [ "$cc" != "recreate" ]; then
|
|
|
|
|
echo " "
|
2004-09-30 19:26:28 +00:00
|
|
|
|
echo "Do you want to edit $NEOSTATSCONF using an editor?"
|
2002-02-27 11:20:30 +00:00
|
|
|
|
echo "If so, specify the editor you want to use. Otherwise,"
|
|
|
|
|
echo "type 'exit'."
|
|
|
|
|
EDITFND="not found"
|
|
|
|
|
|
|
|
|
|
if [ -r /usr/bin/pico ]; then
|
|
|
|
|
EDITFND="pico"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ -r /usr/bin/joe ]; then
|
|
|
|
|
EDITFND="joe"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ -r /usr/bin/vi ]; then
|
|
|
|
|
EDITFND="vi"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ -r /usr/bin/vim ]; then
|
|
|
|
|
EDITFND="vim"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
while [ "c" = "c" ]; do
|
|
|
|
|
echo $n " [$EDITFND] -> $c"
|
|
|
|
|
read EDITOR
|
|
|
|
|
|
|
|
|
|
if [ -z "$EDITOR" ]; then
|
|
|
|
|
EDITOR="$EDITFND"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ "$EDITOR" = "exit" ]; then
|
2004-09-30 19:26:28 +00:00
|
|
|
|
echo "Done."
|
2002-02-27 11:20:30 +00:00
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ -f $EDITOR ]; then
|
|
|
|
|
$EDITOR $CONF
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ -f /usr/bin/$EDITOR ]; then
|
|
|
|
|
/usr/bin/$EDITOR $CONF
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
2004-09-30 19:26:28 +00:00
|
|
|
|
echo "Editor not found. Specify a valid editor or"
|
2002-02-27 11:20:30 +00:00
|
|
|
|
echo "type 'exit' to quit this script."
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
mv $CONF "$CONF.saved"
|
|
|
|
|
rm $CONF
|
2004-09-30 19:26:28 +00:00
|
|
|
|
echo "$NEOSTATSCONF has been renamed to $CONF.saved"
|
2002-02-27 11:20:30 +00:00
|
|
|
|
else
|
2004-09-30 19:26:28 +00:00
|
|
|
|
echo "$NEOSTATSCONF is not found. (good)"
|
2002-02-27 11:20:30 +00:00
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
clear
|
2002-09-01 16:05:00 +00:00
|
|
|
|
echo ""
|
|
|
|
|
echo "Thanks for Choosing NeoStats!"
|
|
|
|
|
echo ""
|
|
|
|
|
echo "*----------------------------------------*"
|
2004-09-30 19:26:28 +00:00
|
|
|
|
echo "| Welcome to the $NEOSTATSCONF generator. |"
|
2002-09-01 16:05:00 +00:00
|
|
|
|
echo "*----------------------------------------*"
|
2004-09-30 19:26:28 +00:00
|
|
|
|
|
2004-10-01 09:08:56 +00:00
|
|
|
|
###########################################################################
|
2004-10-01 08:55:12 +00:00
|
|
|
|
# select IRCd
|
|
|
|
|
validselection=0
|
|
|
|
|
echo "Which IRC server do you use?"
|
2005-03-13 21:22:21 +00:00
|
|
|
|
echo " 1) Unreal 3.1.x"
|
|
|
|
|
echo " 2) Unreal 3.2.x"
|
|
|
|
|
echo " 3) Ultimate 2.x.x"
|
|
|
|
|
echo " 4) Ultimate 3.x.x"
|
|
|
|
|
echo " 5) Hybrid7"
|
2005-03-29 22:06:11 +00:00
|
|
|
|
echo " 6) Bahamut 1.4"
|
|
|
|
|
echo " 7) Bahamut 1.8"
|
|
|
|
|
echo " 8) Plexus"
|
2005-04-08 22:10:52 +00:00
|
|
|
|
echo " 9) IRCu P10"
|
2005-04-18 21:56:12 +00:00
|
|
|
|
echo " 10) Asuka"
|
|
|
|
|
echo " 11) Nefarious"
|
2008-02-21 08:03:31 +00:00
|
|
|
|
echo " 12) Inspircd 1.1"
|
2004-10-01 08:55:12 +00:00
|
|
|
|
while [ $validselection -eq 0 ] ; do
|
2004-10-01 08:49:05 +00:00
|
|
|
|
echo $n " [$IRCD_DEFAULT] -> $c"
|
2004-10-01 08:55:12 +00:00
|
|
|
|
if read INPUT ; then : ; else echo "" ; exit 1 ; fi
|
|
|
|
|
if [ ! "$INPUT" ] ; then
|
|
|
|
|
INPUT=$IRCD_DEFAULT
|
|
|
|
|
fi
|
|
|
|
|
case $INPUT in
|
|
|
|
|
no\ default)
|
|
|
|
|
echo "You must specify your IRC server type in order for NeoStats to function"
|
|
|
|
|
echo "correctly."
|
|
|
|
|
;;
|
|
|
|
|
1)
|
2004-10-01 09:11:06 +00:00
|
|
|
|
IRCD="unreal31"
|
2004-10-01 08:55:12 +00:00
|
|
|
|
validselection=1
|
|
|
|
|
;;
|
|
|
|
|
2)
|
2004-10-01 09:11:06 +00:00
|
|
|
|
IRCD="unreal32"
|
2004-10-01 08:55:12 +00:00
|
|
|
|
validselection=1
|
|
|
|
|
;;
|
|
|
|
|
3)
|
2004-10-01 09:11:06 +00:00
|
|
|
|
IRCD="ultimate2"
|
2004-10-01 08:55:12 +00:00
|
|
|
|
validselection=1
|
|
|
|
|
;;
|
|
|
|
|
4)
|
2004-10-01 09:11:06 +00:00
|
|
|
|
IRCD="ultimate3"
|
2004-10-01 08:55:12 +00:00
|
|
|
|
validselection=1
|
|
|
|
|
;;
|
|
|
|
|
5)
|
2004-10-01 09:11:06 +00:00
|
|
|
|
IRCD="hybrid7"
|
2004-10-01 08:55:12 +00:00
|
|
|
|
MEXTAUTHALLOWED=0
|
|
|
|
|
validselection=1
|
|
|
|
|
;;
|
|
|
|
|
6)
|
2005-03-29 22:06:11 +00:00
|
|
|
|
IRCD="bahamut14"
|
2004-10-01 08:55:12 +00:00
|
|
|
|
validselection=1
|
|
|
|
|
;;
|
|
|
|
|
7)
|
2005-03-13 21:22:21 +00:00
|
|
|
|
IRCD="bahamut18"
|
2004-10-01 08:55:12 +00:00
|
|
|
|
validselection=1
|
|
|
|
|
;;
|
2005-03-29 22:06:11 +00:00
|
|
|
|
8)
|
2005-03-13 21:22:21 +00:00
|
|
|
|
IRCD="plexus"
|
|
|
|
|
validselection=1
|
|
|
|
|
;;
|
2005-03-29 22:06:11 +00:00
|
|
|
|
9)
|
2004-10-01 09:11:06 +00:00
|
|
|
|
IRCD="ircup10"
|
2004-10-01 08:55:12 +00:00
|
|
|
|
validselection=1
|
|
|
|
|
;;
|
2005-04-18 21:56:12 +00:00
|
|
|
|
10)
|
|
|
|
|
IRCD="asuka"
|
|
|
|
|
validselection=1
|
|
|
|
|
;;
|
|
|
|
|
11)
|
|
|
|
|
IRCD="nefarious"
|
|
|
|
|
validselection=1
|
|
|
|
|
;;
|
2008-02-21 08:03:31 +00:00
|
|
|
|
12)
|
|
|
|
|
IRCD="inspircd"
|
|
|
|
|
validselection=1
|
|
|
|
|
;;
|
2004-10-01 08:55:12 +00:00
|
|
|
|
*)
|
|
|
|
|
echo "Please enter a valid option number."
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
done
|
|
|
|
|
IRCD_DEFAULT=$INPUT
|
2004-09-30 19:26:28 +00:00
|
|
|
|
echo ""
|
|
|
|
|
|
|
|
|
|
echo " "
|
|
|
|
|
echo "What will your root nickname be? (ie: $ROOTNICK)"
|
|
|
|
|
echo $n " [$ROOTNICK] -> $c"
|
|
|
|
|
read cc
|
|
|
|
|
if [ ! -z "$cc" ]; then
|
|
|
|
|
ROOTNICK="$cc"
|
|
|
|
|
fi
|
|
|
|
|
|
2005-03-16 21:55:15 +00:00
|
|
|
|
echo " "
|
|
|
|
|
echo "What will your service host be? (ie: $SERVICEHOST)"
|
|
|
|
|
echo $n " [$SERVICEHOST] -> $c"
|
|
|
|
|
read cc
|
|
|
|
|
if [ ! -z "$cc" ]; then
|
|
|
|
|
SERVICEHOST="$cc"
|
|
|
|
|
fi
|
|
|
|
|
|
2002-02-27 11:20:30 +00:00
|
|
|
|
echo " "
|
|
|
|
|
echo "What will your server name be? (ie: $SERVNAME)"
|
|
|
|
|
echo $n " [$SERVNAME] -> $c"
|
|
|
|
|
read cc
|
|
|
|
|
if [ ! -z "$cc" ]; then
|
|
|
|
|
SERVNAME="$cc"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
echo " "
|
|
|
|
|
echo "What is your IRC server's IP? (ie: $LINKSERVER)"
|
|
|
|
|
echo $n " [$LINKSERVER] -> $c"
|
|
|
|
|
read cc
|
|
|
|
|
if [ ! -z "$cc" ]; then
|
|
|
|
|
LINKSERVER="$cc"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
echo " "
|
|
|
|
|
echo "What is the IRCd's Link port? (ie: 7890)"
|
|
|
|
|
echo $n " [$LINKPORT] -> $c"
|
|
|
|
|
read cc
|
|
|
|
|
if [ ! -z "$cc" ]; then
|
|
|
|
|
LINKPORT="$cc"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
echo " "
|
|
|
|
|
echo "What is the IRCd's Link password for stats? (ie: bleh)"
|
|
|
|
|
echo $n " [$LINKPASS] -> $c"
|
|
|
|
|
read cc
|
|
|
|
|
if [ ! -z "$cc" ]; then
|
|
|
|
|
LINKPASS="$cc"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
echo " "
|
|
|
|
|
echo "NeoStats Server comment?"
|
2004-09-30 19:26:28 +00:00
|
|
|
|
echo $n " [$INFOLINE] -> $c"
|
2002-02-27 11:20:30 +00:00
|
|
|
|
read cc
|
|
|
|
|
if [ ! -z "$cc" ]; then
|
2004-09-30 19:26:28 +00:00
|
|
|
|
INFOLINE="$cc"
|
2002-02-27 11:20:30 +00:00
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
echo " "
|
|
|
|
|
echo "What channel should NeoStats join on IRC?"
|
|
|
|
|
echo $n " [$NEOCHAN] -> $c"
|
|
|
|
|
read cc
|
|
|
|
|
if [ ! -z "$cc" ]; then
|
|
|
|
|
NEOCHAN="$cc"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
echo " "
|
|
|
|
|
echo "Time in seconds we wait before attempting to reconnect to the server on a split?"
|
|
|
|
|
echo $n " [$NEOCONN] -> $c"
|
|
|
|
|
read cc
|
|
|
|
|
if [ ! -z "$cc" ]; then
|
|
|
|
|
NEOCONN="$cc"
|
|
|
|
|
fi
|
|
|
|
|
|
2003-05-26 09:18:31 +00:00
|
|
|
|
echo " "
|
2005-06-21 11:44:37 +00:00
|
|
|
|
echo "What IP should NeoStats Bind to? (ie: 203.208.228.144)"
|
2004-07-27 13:02:00 +00:00
|
|
|
|
echo "This is optional. See neostats.conf for more information"
|
2003-05-26 09:18:31 +00:00
|
|
|
|
echo $n " [$BINDIP] -> $c"
|
|
|
|
|
read cc
|
|
|
|
|
if [ ! -z "$cc" ]; then
|
|
|
|
|
BINDIP="$cc"
|
|
|
|
|
fi
|
|
|
|
|
|
2002-02-27 11:20:30 +00:00
|
|
|
|
cat > $CONF << __EOF__
|
|
|
|
|
##################################################
|
|
|
|
|
## Configuration file for NeoStats
|
|
|
|
|
## Created: $DATE - $TIME
|
2008-02-24 02:45:41 +00:00
|
|
|
|
## NeoStats Copyright (c) 1999-2008, Adam Rutter, Justin Hammond, Mark Hetherington
|
2002-03-28 16:29:09 +00:00
|
|
|
|
## Web: http://www.NeoStats.Net
|
2004-05-14 17:43:49 +00:00
|
|
|
|
## File Revision: 3.0
|
2003-10-06 19:09:39 +00:00
|
|
|
|
##################################################
|
|
|
|
|
|
2004-10-01 09:08:56 +00:00
|
|
|
|
##################################################
|
|
|
|
|
#Each of the options has an indicator as follows:
|
|
|
|
|
# [REQUIRED] - must be set or NeoStats will not run.
|
|
|
|
|
# [RECOMMENDED] - optional but may cause problems if not set.
|
|
|
|
|
# [OPTIONAL] - optional and the feature will be disabled if not set.
|
|
|
|
|
# [DISCOURAGED] - may cause undesirable side effects if enabled.
|
2002-02-27 11:20:30 +00:00
|
|
|
|
##################################################
|
|
|
|
|
|
2005-06-21 11:44:37 +00:00
|
|
|
|
#################################
|
|
|
|
|
# NeoStats Server Configuration #
|
|
|
|
|
#################################
|
2002-02-27 11:20:30 +00:00
|
|
|
|
|
2005-06-21 11:44:37 +00:00
|
|
|
|
ServerConfig {
|
|
|
|
|
# NAME = "<hostname>" [REQUIRED]
|
2004-10-01 09:08:56 +00:00
|
|
|
|
# Specifies the name of the NeoStats Server as it will appear on
|
|
|
|
|
# the network. e.g.
|
|
|
|
|
#
|
2005-06-21 11:44:37 +00:00
|
|
|
|
# SERVER_NAME = "stats.neostats.net"
|
2004-10-01 09:08:56 +00:00
|
|
|
|
#
|
2003-10-06 19:09:39 +00:00
|
|
|
|
# When NeoStats links, it will appear as stats.neostats.net.
|
2005-06-21 11:44:37 +00:00
|
|
|
|
Name = "$SERVNAME"
|
2003-10-06 19:09:39 +00:00
|
|
|
|
|
2005-06-21 11:44:37 +00:00
|
|
|
|
# INFO = "<info line>" [REQUIRED]
|
2004-10-01 09:08:56 +00:00
|
|
|
|
# Specify the description of the server that
|
|
|
|
|
# appears when you do /links e.g.
|
|
|
|
|
#
|
2005-06-21 11:44:37 +00:00
|
|
|
|
# INFO "Network Auxiliary Services"
|
|
|
|
|
Info = "$INFOLINE"
|
2002-02-27 11:20:30 +00:00
|
|
|
|
|
2005-06-21 11:44:37 +00:00
|
|
|
|
# SERVICECHANNEL="#<channel name>" [REQUIRED]
|
2004-10-01 09:08:56 +00:00
|
|
|
|
# Specify the channel that all bots on NeoStats
|
|
|
|
|
# will automatically join, and echo out any
|
|
|
|
|
# important information e.g.
|
|
|
|
|
#
|
2005-06-21 11:44:37 +00:00
|
|
|
|
# SERVICECHANNEL="#services"
|
2004-10-01 09:08:56 +00:00
|
|
|
|
#
|
|
|
|
|
# Makes NeoStats, and all the other bots join #services channel on
|
2003-10-06 19:09:39 +00:00
|
|
|
|
# start-up/load.
|
2005-06-21 11:44:37 +00:00
|
|
|
|
ServiceChannel = "$NEOCHAN"
|
2003-10-06 19:09:39 +00:00
|
|
|
|
|
2005-06-21 11:44:37 +00:00
|
|
|
|
# SERVER_NUMERIC = <numeric> [RECOMMENDED]
|
|
|
|
|
# Specify the numeric of the server to send on connect.
|
|
|
|
|
# This must be a value between 1 and 254, and must not be in use by
|
|
|
|
|
# any other IRC server on the network.
|
|
|
|
|
#
|
|
|
|
|
# SERVER_NUMERIC = 1
|
|
|
|
|
ServerNumeric = $SERVNUMERIC
|
2002-02-27 11:20:30 +00:00
|
|
|
|
|
2005-06-21 11:44:37 +00:00
|
|
|
|
# BINDTO = <ip address or hostname> [OPTIONAL]
|
|
|
|
|
# Make NeoStats bind to a particular IP Address. If not
|
|
|
|
|
# specified NeoStats will attempt to find this address
|
|
|
|
|
# itself. e.g.
|
2004-10-01 09:08:56 +00:00
|
|
|
|
#
|
2005-06-21 11:44:37 +00:00
|
|
|
|
# BINDTO 203.203.123.12
|
|
|
|
|
#
|
|
|
|
|
# All outgoing connections from NeoStats will originate from this
|
|
|
|
|
# IP address
|
|
|
|
|
# This IP address should not be localhost (127.0.0.1)
|
|
|
|
|
BindTo = "$BINDIP"
|
|
|
|
|
|
|
|
|
|
# PROTOCOL = "<protocol>" [REQUIRED]
|
|
|
|
|
# Specifies the protocol module to use.
|
|
|
|
|
# Valid protocol options are:
|
|
|
|
|
# unreal31 unreal32 ultimate2 ultimate3
|
|
|
|
|
# hybrid7 bahamut14 bahamut18 plexus
|
|
|
|
|
# ircup10 asuka nefarious
|
|
|
|
|
# client
|
|
|
|
|
#
|
|
|
|
|
# PROTOCOL = "unreal32"
|
|
|
|
|
#
|
|
|
|
|
Protocol = "$IRCD"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#################################
|
|
|
|
|
# NeoStats Option Configuration #
|
|
|
|
|
#################################
|
2003-10-06 19:09:39 +00:00
|
|
|
|
|
2002-02-27 11:20:30 +00:00
|
|
|
|
|
2005-06-21 11:44:37 +00:00
|
|
|
|
Options {
|
|
|
|
|
# RECONNECTTIME = <seconds> [RECOMMENDED]
|
2004-10-01 09:08:56 +00:00
|
|
|
|
# If NeoStats server gets split from the network, how long to wait
|
|
|
|
|
# before attempting to reconnect to the network. A value of 0 will
|
|
|
|
|
# cause NeoStats to shutdown and not attempt to reconnect. e.g.
|
|
|
|
|
#
|
2005-06-21 11:44:37 +00:00
|
|
|
|
# RECONNECTTIME = 10
|
2004-10-01 09:08:56 +00:00
|
|
|
|
#
|
|
|
|
|
# Specifies wait 10 seconds before trying to reconnect
|
|
|
|
|
#
|
2005-06-21 11:44:37 +00:00
|
|
|
|
# RECONNECT_TIME = 0
|
2004-10-01 09:08:56 +00:00
|
|
|
|
#
|
|
|
|
|
# Tells NeoStats to never reconnect to the network
|
|
|
|
|
#
|
|
|
|
|
# If not specified, NeoStats will default to 10 seconds.
|
2005-06-21 11:44:37 +00:00
|
|
|
|
ReconnectTime = $NEOCONN
|
2002-02-27 11:20:30 +00:00
|
|
|
|
|
2005-06-21 11:44:37 +00:00
|
|
|
|
# USEPRIVMSG = <true/false> [DISCOURAGED]
|
|
|
|
|
# Specify if the bots should send all messages as privmsgs or as
|
|
|
|
|
# notices (Most Services use notice) e.g.
|
|
|
|
|
#
|
|
|
|
|
# USEPRIVMSG true
|
|
|
|
|
#
|
|
|
|
|
# If present or set to true, will send all messages as privmsgs (if commented out,
|
|
|
|
|
# it will send as Notices) *NOTE:* This option Violates IRC RFC, and
|
|
|
|
|
# can cause flooding problems on your network. Its NOT recommended.
|
|
|
|
|
UsePrivmsg = false
|
2003-05-26 09:18:31 +00:00
|
|
|
|
|
2005-06-21 11:44:37 +00:00
|
|
|
|
# OPERONLY = <true/false> [OPTIONAL]
|
2004-10-01 09:08:56 +00:00
|
|
|
|
# Restrict NeoStats and StatServ to opers use only.
|
|
|
|
|
# If not specified, users will have some access to NeoStats
|
|
|
|
|
# and StatServ commands. e.g.
|
|
|
|
|
#
|
2005-06-21 11:44:37 +00:00
|
|
|
|
# OPERONLY=true
|
2004-10-01 09:08:56 +00:00
|
|
|
|
#
|
|
|
|
|
# Only opers may use NeoStats and StatServ.
|
2005-06-21 11:44:37 +00:00
|
|
|
|
OperOnly = false
|
2002-09-01 16:05:00 +00:00
|
|
|
|
|
2005-06-21 11:44:37 +00:00
|
|
|
|
# SERVERSETTIME=<INTERVAL> [OPTIONAL]
|
|
|
|
|
# Cause NeoStats to sync server times at the given interval
|
|
|
|
|
# INTERVAL is an integer representing the number of hours
|
|
|
|
|
#
|
|
|
|
|
# Examples
|
|
|
|
|
#
|
|
|
|
|
# SERVERSETTIME=24
|
2004-10-01 09:08:56 +00:00
|
|
|
|
#
|
2005-06-21 11:44:37 +00:00
|
|
|
|
# Cause NeoStats to sync server times every 24 hours
|
|
|
|
|
# If not present, NeoStats will not sync times.
|
|
|
|
|
# This option only works on servers that support this and
|
|
|
|
|
# defaults to a sync interval of 24 hours. Enabling this
|
|
|
|
|
# option will also cause NeoStats to sync servers when it
|
|
|
|
|
# first joins the network.
|
|
|
|
|
ServerSettime = 24
|
2002-07-26 04:39:23 +00:00
|
|
|
|
|
2005-06-21 11:44:37 +00:00
|
|
|
|
# DatabaseType = "<dbm>" [OPTIONAL]
|
|
|
|
|
# Specifies the database manager module to use.
|
|
|
|
|
# NeoStats will default to GDBM if this is not provided.
|
|
|
|
|
# Valid options are:
|
|
|
|
|
# gdbm
|
2008-03-05 04:12:56 +00:00
|
|
|
|
# bdb (if found during configure)
|
2005-06-21 11:44:37 +00:00
|
|
|
|
#
|
|
|
|
|
# DatabaseType = "gdbm"
|
|
|
|
|
#
|
|
|
|
|
#
|
|
|
|
|
DatabaseType = "$DATABASE"
|
2002-02-27 11:20:30 +00:00
|
|
|
|
|
2005-06-21 11:44:37 +00:00
|
|
|
|
# LOGFILENAMEFORMAT = "<format>" [OPTIONAL]
|
2004-10-01 09:08:56 +00:00
|
|
|
|
# Defines the format for dated log files. This allows you to choose
|
|
|
|
|
# what date format is used for log file names when they are rotated at
|
|
|
|
|
# midnight. The option uses the parameters passed to strftime so you
|
|
|
|
|
# can use any options valid for that function. Common ones are:
|
|
|
|
|
# %a Abbreviated weekday name
|
|
|
|
|
# %A Full weekday name
|
|
|
|
|
# %b Abbreviated month name
|
|
|
|
|
# %B Full month name
|
|
|
|
|
# %d Day of month as decimal number (01 <20> 31)
|
|
|
|
|
# %m Month as decimal number (01 <20> 12)
|
|
|
|
|
# %y Year without century, as decimal number (00 <20> 99)
|
|
|
|
|
# %Y Year with century, as decimal number
|
|
|
|
|
#
|
|
|
|
|
# Examples using 30 September 2003 as the date:
|
|
|
|
|
# For NeoStats0930.log:
|
|
|
|
|
#
|
2005-06-21 11:44:37 +00:00
|
|
|
|
# LOGFILENAMEFORMAT="%m%d"
|
2004-10-01 09:08:56 +00:00
|
|
|
|
#
|
|
|
|
|
# For NeoStats20030930.log:
|
|
|
|
|
#
|
2005-06-21 11:44:37 +00:00
|
|
|
|
# LOGFILENAMEFORMAT="%Y%m%d"
|
2004-10-01 09:08:56 +00:00
|
|
|
|
#
|
|
|
|
|
# If not defined, the default is the original NeoStats log format of
|
|
|
|
|
# "-%m-%d" i.e. NeoStats-09-30.log
|
2005-06-21 11:44:37 +00:00
|
|
|
|
#LogFileNameFormat = "$LOGFNAMEFORMAT"
|
2004-10-01 09:08:56 +00:00
|
|
|
|
|
2005-06-21 11:44:37 +00:00
|
|
|
|
# ROOTNICK = "<nick>" [REQUIRED]
|
|
|
|
|
# Specifies the nick of the NeoStats root bot
|
|
|
|
|
# e.g.
|
|
|
|
|
#
|
|
|
|
|
# ROOTNICK="NeoStats"
|
|
|
|
|
#
|
|
|
|
|
# When NeoStats links, it create a root bot with nick NeoStats
|
|
|
|
|
RootNick = "$ROOTNICK"
|
2002-09-01 16:05:00 +00:00
|
|
|
|
|
2005-06-21 11:44:37 +00:00
|
|
|
|
# SERVICESHOST = "<hostname>" [REQUIRED]
|
|
|
|
|
# Specifies the default host of NeoStats service bots
|
|
|
|
|
# e.g.
|
|
|
|
|
#
|
|
|
|
|
# SERVICEHOST="stats.net"
|
|
|
|
|
#
|
|
|
|
|
# Service bots will now we user@stats.net
|
|
|
|
|
# If not specified NeoStats will default to the server name
|
|
|
|
|
ServicesHost = "$SERVICEHOST"
|
|
|
|
|
|
|
|
|
|
# NOLOAD = true [YOU MUST REMOVE THIS]
|
|
|
|
|
# If this is in the neostats.conf your NeoStats WILL NOT START UP. To
|
|
|
|
|
# disable this simply comment this line out. e.g.
|
2004-10-01 09:08:56 +00:00
|
|
|
|
#
|
2005-06-21 11:44:37 +00:00
|
|
|
|
# NOLOAD = true <- NeoStats will not load.
|
2004-10-01 09:08:56 +00:00
|
|
|
|
#
|
2005-06-21 11:44:37 +00:00
|
|
|
|
# #NOLOAD = true <- NeoStats will load.
|
|
|
|
|
#
|
|
|
|
|
# NOLOAD = false <- Neostats will load.
|
|
|
|
|
NOLOAD = true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
##################################
|
|
|
|
|
# NeoStats Linking Configuration #
|
|
|
|
|
##################################
|
|
|
|
|
|
|
|
|
|
# This section defines the Server that NeoStats will
|
|
|
|
|
# attempt to link to. You must configure this server
|
|
|
|
|
# with the correct C/N and U lines for Neostats
|
|
|
|
|
|
|
|
|
|
Servers {
|
|
|
|
|
|
|
|
|
|
# IPADDRESS ="<ip address or hostname>" [REQUIRED]
|
|
|
|
|
# Specifies the IP address to connect to. e.g.
|
|
|
|
|
#
|
|
|
|
|
# IPADDRESS="127.0.0.1"
|
2004-10-01 09:08:56 +00:00
|
|
|
|
#
|
2005-06-21 11:44:37 +00:00
|
|
|
|
# This will force stats to connect to 127.0.0.1
|
|
|
|
|
IpAddress = "$LINKSERVER"
|
|
|
|
|
|
|
|
|
|
# PORT = <port number> [REQUIRED]
|
|
|
|
|
# Specifies the port to connect to on the IRC Server e.g.
|
|
|
|
|
#
|
|
|
|
|
# PORT=6667
|
|
|
|
|
#
|
|
|
|
|
# When connecting, NeoStats will connect to port 6667
|
|
|
|
|
Port = $LINKPORT
|
|
|
|
|
|
|
|
|
|
# PASSWORD="<link password>" [REQUIRED]
|
|
|
|
|
# Specifies the password used to connect. This must match your C/N
|
|
|
|
|
# lines in your IRCD configuration e.g.
|
|
|
|
|
#
|
|
|
|
|
# PASSWORD="linkpass"
|
|
|
|
|
#
|
|
|
|
|
# Send "linkpass" as the password to connect
|
|
|
|
|
Password = "$LINKPASS"
|
|
|
|
|
}
|
2004-10-01 09:08:56 +00:00
|
|
|
|
|
2004-02-03 21:38:06 +00:00
|
|
|
|
|
2005-03-16 21:55:15 +00:00
|
|
|
|
########################################
|
2005-06-21 11:44:37 +00:00
|
|
|
|
# NeoStats Administrator Configuration #
|
2005-03-16 21:55:15 +00:00
|
|
|
|
########################################
|
|
|
|
|
|
2005-06-21 11:44:37 +00:00
|
|
|
|
|
2005-07-19 20:39:47 +00:00
|
|
|
|
ServiceRoot {
|
2005-06-21 11:44:37 +00:00
|
|
|
|
#MASK="<nick!ident@host>" [REQUIRED]
|
2005-03-16 21:55:15 +00:00
|
|
|
|
# Who should get master access to manage NeoStats regardless of
|
|
|
|
|
# authentication systems. Only one entry allowed. e.g.
|
|
|
|
|
#
|
2005-06-21 11:44:37 +00:00
|
|
|
|
# MASK="fish!?Fish@*.neostats.net"
|
2005-03-16 21:55:15 +00:00
|
|
|
|
#
|
|
|
|
|
# Will give "fish" complete access to NeoStats if fish has
|
|
|
|
|
# umode +r and comes from the specified hostname and ident.
|
2005-06-21 11:44:37 +00:00
|
|
|
|
#Mask = "ircop!*@*"
|
|
|
|
|
}
|
2005-03-16 21:55:15 +00:00
|
|
|
|
|
|
|
|
|
|
2005-06-21 11:44:37 +00:00
|
|
|
|
#################################
|
|
|
|
|
# NeoStats Module Configuration #
|
|
|
|
|
#################################
|
2005-03-16 21:55:15 +00:00
|
|
|
|
|
2005-06-21 11:44:37 +00:00
|
|
|
|
Modules {
|
2002-02-27 11:20:30 +00:00
|
|
|
|
#####################################
|
|
|
|
|
# Module Configurations and Loading #
|
|
|
|
|
#####################################
|
|
|
|
|
|
2005-06-21 11:44:37 +00:00
|
|
|
|
# MODULENAME = {"<module name>", "<module name>", "<module_name>"} [OPTIONAL]
|
2004-10-01 09:08:56 +00:00
|
|
|
|
# What modules to load at start-up. e.g.
|
|
|
|
|
#
|
2005-06-21 11:44:37 +00:00
|
|
|
|
# MODULENAME = { "statserv" }
|
2004-10-01 09:08:56 +00:00
|
|
|
|
#
|
2005-06-21 11:44:37 +00:00
|
|
|
|
# Will load up StatServ only at boot
|
2004-10-01 09:08:56 +00:00
|
|
|
|
#
|
2005-06-21 11:44:37 +00:00
|
|
|
|
# To specify NeoStats to load multiple modules, place a comma after
|
|
|
|
|
# each module and specify the next one e.g.
|
|
|
|
|
#
|
|
|
|
|
# MODULENAME = { "statserv", "extauth" }
|
|
|
|
|
#
|
|
|
|
|
# will load up both statserv and extauth modules
|
2004-10-03 21:46:03 +00:00
|
|
|
|
#
|
2004-10-01 09:08:56 +00:00
|
|
|
|
# We have provided example lines for convenience for
|
|
|
|
|
# official modules but you must download and install
|
|
|
|
|
# external modules before trying to load them.
|
2003-10-06 19:09:39 +00:00
|
|
|
|
|
2005-06-21 11:44:37 +00:00
|
|
|
|
MODULENAME = {
|
2008-03-05 04:12:56 +00:00
|
|
|
|
# Update notification module, loaded by default
|
|
|
|
|
"update",
|
|
|
|
|
|
2004-07-27 12:44:20 +00:00
|
|
|
|
# StatServ, maintain and report various networks statistics
|
2008-03-05 04:12:56 +00:00
|
|
|
|
"statserv",
|
2002-09-01 16:05:00 +00:00
|
|
|
|
|
2004-07-27 12:44:20 +00:00
|
|
|
|
# HostServ, vhost services for users
|
2008-03-05 04:12:56 +00:00
|
|
|
|
"hostserv",
|
2003-05-26 09:18:31 +00:00
|
|
|
|
|
2005-03-12 22:47:01 +00:00
|
|
|
|
# TextServ, text messaging service
|
2008-03-05 04:12:56 +00:00
|
|
|
|
"textserv",
|
2003-05-26 09:18:31 +00:00
|
|
|
|
|
2004-07-27 12:44:20 +00:00
|
|
|
|
# ConnectServ, monitor connections to the network: user connections, oper
|
|
|
|
|
# modes, server connections and nick changes.
|
2008-03-05 04:12:56 +00:00
|
|
|
|
"connectserv",
|
2002-02-27 11:20:30 +00:00
|
|
|
|
|
2005-03-12 22:47:01 +00:00
|
|
|
|
# Operlog, operator command logging service
|
2008-03-05 04:12:56 +00:00
|
|
|
|
"operlog",
|
2005-03-12 22:47:01 +00:00
|
|
|
|
|
2004-07-27 12:44:20 +00:00
|
|
|
|
# IRCdauth, authenticate users based on their user modes.
|
2008-03-05 04:12:56 +00:00
|
|
|
|
"ircdauth",
|
2004-04-27 21:50:22 +00:00
|
|
|
|
|
2004-07-27 12:44:20 +00:00
|
|
|
|
# Extauth, authenticate users based on nick!user@host access lists
|
2008-03-05 04:12:56 +00:00
|
|
|
|
"extauth",
|
2004-04-27 21:50:22 +00:00
|
|
|
|
|
2005-07-15 01:59:43 +00:00
|
|
|
|
# QuoteServ, Quote Message Service
|
2008-03-05 04:12:56 +00:00
|
|
|
|
"quoteserv",
|
2005-07-15 01:59:43 +00:00
|
|
|
|
|
|
|
|
|
# LimitServ, Channel Limit Setting Service
|
2008-03-05 04:12:56 +00:00
|
|
|
|
"limitserv",
|
2005-07-15 01:59:43 +00:00
|
|
|
|
|
2004-09-30 19:26:28 +00:00
|
|
|
|
# SecureServ. You must download and install SecureServ first.
|
2005-06-21 11:44:37 +00:00
|
|
|
|
# "secureserv",
|
2004-09-30 19:26:28 +00:00
|
|
|
|
|
2005-07-15 01:59:43 +00:00
|
|
|
|
# BLSB. You must download and install BLSB first.
|
|
|
|
|
# "blsb",
|
|
|
|
|
|
2004-09-30 19:26:28 +00:00
|
|
|
|
# OPSB. You must download and install OPSB first.
|
2005-06-21 11:44:37 +00:00
|
|
|
|
# "opsb",
|
2004-09-30 19:26:28 +00:00
|
|
|
|
|
|
|
|
|
# LogServ. You must download and install LogServ first.
|
2005-06-21 11:44:37 +00:00
|
|
|
|
# "logserv",
|
2004-09-30 19:26:28 +00:00
|
|
|
|
|
|
|
|
|
# TriviaServ. You must download and install TriviaServ first.
|
2005-06-21 11:44:37 +00:00
|
|
|
|
# "triviaserv",
|
2004-09-30 19:26:28 +00:00
|
|
|
|
|
2005-03-12 22:47:01 +00:00
|
|
|
|
# WarServ. You must download and install WarServ first.
|
2005-06-21 11:44:37 +00:00
|
|
|
|
# "warserv",
|
2005-03-12 22:47:01 +00:00
|
|
|
|
|
2005-07-15 01:59:43 +00:00
|
|
|
|
# GamesServ. You must download and install GameServ first.
|
|
|
|
|
# "gamesserv",
|
2005-03-12 22:47:01 +00:00
|
|
|
|
|
|
|
|
|
# YahzteeServ. You must download and install YahzteeServ first.
|
2005-06-21 11:44:37 +00:00
|
|
|
|
# "yahtzeeserv",
|
2005-03-12 22:47:01 +00:00
|
|
|
|
|
2005-07-15 01:59:43 +00:00
|
|
|
|
# FloodServ. You must download and install FloodServ first.
|
|
|
|
|
# "floodserv",
|
|
|
|
|
|
|
|
|
|
# SeenServ. You must download and install SeenServ first.
|
|
|
|
|
# "seenserv",
|
|
|
|
|
|
|
|
|
|
# ProfileServ. You must download and install ProfileServ first.
|
|
|
|
|
# "profileserv",
|
|
|
|
|
|
2005-06-21 11:44:37 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2005-12-04 11:38:25 +00:00
|
|
|
|
|
|
|
|
|
#####################################
|
|
|
|
|
# NeoNetConfigurations and Loading #
|
|
|
|
|
#####################################
|
|
|
|
|
|
|
|
|
|
# NeoNet is a protocol that links all NeoStats installations back to the main
|
|
|
|
|
# NeoStats sites, such as http://secure.irc-chat.net etc.
|
|
|
|
|
# This allows you to take advantage of some of the aditional features or modules
|
|
|
|
|
# that we support, such as updated definitions for SecureServ accounts, or
|
|
|
|
|
# reporting options for OPSB.
|
|
|
|
|
|
|
|
|
|
# You must visit http://accounts.neostats.net/ to create your NeoNet account
|
|
|
|
|
# and select what aditional options you would like. (some might require 3rd
|
|
|
|
|
# party modules, such as SecureServ or OPSB).
|
|
|
|
|
|
|
|
|
|
# If you have been using SecureServ on the 2.5 series, please visit
|
|
|
|
|
# http://accounts.neostats.net/migrate/ for information on how to
|
|
|
|
|
# use your existing Secure.irc-chat.net account with NeoNet.
|
|
|
|
|
NeoNet {
|
|
|
|
|
|
|
|
|
|
# This is the username, as supplied on the NeoNet pages.
|
|
|
|
|
# It should be your IRC Network user account and not your
|
|
|
|
|
# personal accounts.
|
|
|
|
|
# UserName = "somenet"
|
|
|
|
|
|
|
|
|
|
# This is your IRC Network User account password.
|
2005-12-04 11:47:59 +00:00
|
|
|
|
# PassWord = "password"
|
2005-12-04 11:38:25 +00:00
|
|
|
|
|
|
|
|
|
# Leave the port at 2960 unless otherwise instructed.
|
|
|
|
|
# Port = 2960
|
|
|
|
|
|
|
|
|
|
# This option handles how NeoNet connections are established. The available
|
|
|
|
|
# options are:
|
|
|
|
|
# yes - Connect to NeoNet during startup
|
|
|
|
|
# no - Never connect to NeoNet (Note, some features might not work if Connect
|
|
|
|
|
# is set to No
|
|
|
|
|
# demand - Only connect to NeoNet when there is a pending NeoNet Message
|
|
|
|
|
# to be sent.
|
2008-03-05 04:12:56 +00:00
|
|
|
|
Connect = "yes"
|
2005-12-04 11:38:25 +00:00
|
|
|
|
}
|
|
|
|
|
|
2002-02-27 11:20:30 +00:00
|
|
|
|
###############################################################################
|
|
|
|
|
## End of Configuration ##
|
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
__EOF__
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Make it so ONLY the one who created the conf can read or write.
|
2004-09-30 19:26:28 +00:00
|
|
|
|
chmod 700 $NEOSTATSCONF
|
2002-02-27 11:20:30 +00:00
|
|
|
|
|
2004-05-14 17:43:49 +00:00
|
|
|
|
echo ""
|
|
|
|
|
echo "*------------------------------------------------*"
|
|
|
|
|
echo "| Thank you for choosing NeoStats. |"
|
2004-07-27 13:02:00 +00:00
|
|
|
|
echo "| You must now edit neostats.conf and check all |"
|
2004-05-14 17:43:49 +00:00
|
|
|
|
echo "| settings are correct then just type ./neostats |"
|
|
|
|
|
echo "| to run NeoStats. NeoStats will not run until |"
|
|
|
|
|
echo "| you do not edit this file. |"
|
|
|
|
|
echo "*------------------------------------------------*"
|
|
|
|
|
echo "| Check any external and third party modules you |"
|
|
|
|
|
echo "| wish to use (e.g. SecureServ) are compiled and |"
|
2004-09-30 19:26:28 +00:00
|
|
|
|
echo "| installed then add them to $NEOSTATSCONF for |"
|
|
|
|
|
echo "| them to load. |"
|
2004-05-14 17:43:49 +00:00
|
|
|
|
echo "*------------------------------------------------*"
|
|
|
|
|
echo "| **I CANT STRESS THIS ENOUGH, PLEASE READ THE** |"
|
|
|
|
|
echo "| **README FILE BEFORE ASKING FOR HELP!!!!! ** |"
|
|
|
|
|
echo "*------------------------------------------------*"
|
|
|
|
|
echo "| This file was updated by M (mark@ctcp.net) |"
|
|
|
|
|
echo "*------------------------------------------------*"
|
|
|
|
|
echo
|
|
|
|
|
exit 1
|