ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/ermyth/setup
Revision: 1.1
Committed: Thu Jul 19 08:24:47 2007 UTC (16 years, 10 months ago) by pippijn
Branch: MAIN
Log Message:
initial import. the most important changes since Atheme are:
- fixed many memory leaks
- fixed many bugs
- converted to C++ and use more STL containers
- added a (not very enhanced yet) perl module
- greatly improved XML-RPC speed
- added a JSON-RPC module with code from json-cpp
- added a valgrind memcheck module to operserv
- added a more object oriented base64 implementation
- added a specialised unit test framework
- improved stability
- use gettimeofday() if available
- reworked adding/removing commands
- MemoServ IGNORE DEL can now remove indices

File Contents

# Content
1 #!/bin/sh
2 #
3 # Copyright © 2005 Atheme Development Group
4 # Rights to this code are documented in doc/LICENSE.
5 #
6 # This file is a simple setup script.
7 #
8 # $Id: setup 7871 2007-03-06 01:24:00Z nenolod $
9
10 PREFIX="$HOME/atheme"
11 LARGENET="no"
12 NLS="yes"
13 SASL="yes"
14 VERSION=`grep AC_INIT configure.ac | awk '{print \$2}' | sed s:\,::g`
15
16 export ok INPUT
17
18 clear
19
20 cat .logo
21 echo " version $VERSION"
22
23 echo ""
24
25 if [ -f doc/RELEASE ] ; then
26 ok=0
27 echo "Would you like to read the release notes (recommended)?"
28 while [ $ok -eq 0 ] ; do
29 echo -n "[Yes] "
30 if read INPUT ; then : ; else echo "" ; exit 1 ; fi
31 if [ ! "$INPUT" ] ; then
32 echo ""
33 more doc/RELEASE
34 echo ""
35 echo "-----"
36 ok=1
37 fi
38 case $INPUT in
39 [Yy]*)
40 echo ""
41 more doc/RELEASE
42 ok=1
43 ;;
44 [Nn]*)
45 ok=1
46 ;;
47 esac
48 done
49 echo ""
50 fi
51
52 ok=0
53 echo "Where do you want Atheme to be installed?"
54 echo "Press enter for the default, or type a new destination."
55 while [ $ok -eq 0 ] ; do
56 echo -n "[$PREFIX] "
57 if read INPUT ; then : ; else echo "" ; exit 1 ; fi
58 if [ ! "$INPUT" ] ; then
59 INPUT=$PREFIX
60 ok=1
61 else
62 ok=1
63 fi
64 done
65 PREFIX=$INPUT
66
67 echo ""
68
69 ok=0
70 echo "Are you running a large network (more than 2000 users)?"
71 while [ $ok -eq 0 ] ; do
72 echo -n "[$LARGENET] "
73 if read INPUT ; then : ; else echo "" ; exit 1 ; fi
74 if [ ! "$INPUT" ] ; then
75 INPUT=$LARGENET
76 ok=1
77 else
78 ok=1
79 fi
80 done
81 LARGENET=$INPUT
82
83 ARGS="--prefix=$PREFIX"
84
85 case "$LARGENET" in
86 [Yy])
87 ARGS="$ARGS --enable-large-net"
88 ;;
89 Yes)
90 ARGS="$ARGS --enable-large-net"
91 ;;
92 yes)
93 ARGS="$ARGS --enable-large-net"
94 ;;
95 esac
96
97 echo ""
98
99 ok=0
100 echo "Would you like to enable support for internationalization of"
101 echo "the messages used by Services? This will require gettext to be"
102 echo "installed."
103 while [ $ok -eq 0 ] ; do
104 echo -n "[$NLS] "
105 if read INPUT ; then : ; else echo "" ; exit 1 ; fi
106 if [ ! "$INPUT" ] ; then
107 INPUT=$NLS
108 ok=1
109 else
110 ok=1
111 fi
112 done
113 NLS=$INPUT
114
115 case "$NLS" in
116 [Yy])
117 ARGS="$ARGS --enable-nls"
118 ;;
119 Yes)
120 ARGS="$ARGS --enable-nls"
121 ;;
122 yes)
123 ARGS="$ARGS --enable-nls"
124 ;;
125 esac
126
127 echo ""
128
129 ok=0
130 echo "Would you like to pass any additional options to configure? If so,"
131 echo "place them here:"
132 while [ $ok -eq 0 ] ; do
133 echo -n "[no] "
134 if read INPUT ; then : ; else echo "" ; exit 1 ; fi
135 if [ ! "$INPUT" ] ; then
136 INPUT=""
137 ok=1
138 else
139 ok=1
140 fi
141 done
142 ARGS="$ARGS $INPUT"
143
144 if [ ! -f configure ]; then sh autogen.sh; fi
145 sh configure $ARGS
146 if [ $? != 0 ]; then
147 echo "Configure failed"
148 echo "Command was: sh configure $ARGS"
149 echo "Please fix this and try again"
150 exit 1
151 fi
152
153 echo ""
154 echo "Press enter to begin compilation."
155 echo -n ""
156 if read INPUT ; then : ; else echo "" ; exit 1 ; fi
157
158 make
159 if [ $? != 0 ]; then
160 echo "Compilation failed"
161 echo "Command was: make"
162 echo "Please fix this and try again"
163 exit 1
164 fi
165
166 echo ""
167 echo "Press enter to begin installation."
168 echo -n ""
169 if read INPUT ; then : ; else echo "" ; exit 1 ; fi
170
171 make install
172 if [ $? != 0 ]; then
173 echo "Installation failed"
174 echo "Command was: make install"
175 echo "Please fix this and try again"
176 exit 1
177 fi
178
179 echo "----------------------------------------------------------------"
180 echo ">>> Atheme setup completed on `date`"
181 echo "----------------------------------------------------------------"
182
183 exit 0