#!/bin/sh ############################################################################ ################### Automated installation script ####################### ############################################################################ ########### ########### ########### Copyright (C) 2004 Pat Deegan, Psychogenic Inc. ########### ########### All Rights Reserved. ########### ########### http://www.psychogenic.com/ ########### ########### ########### ########### Use and modifications to this program are permitted ########### ########### providing it retains the above copyright notice, ########### ########### these conditions and the following disclaimer. ########### ########### Sale or distribution of this program is strictly ########### ########### PROHIBITED without prior written consent from ########### ########### the copyright holders. ########### ########### ########### ########### ########### ########### THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ########### ########### "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, ########### ########### INCLUDING, BUT NOT LIMITED TO, THE IMPLIED ########### ########### WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A ########### ########### PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT ########### ########### SHALL THE REGENTS BE LIABLE FOR ANY DIRECT, ########### ########### INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR ########### ########### CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED ########### ########### TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; ########### ########### LOSS OF USE, DATA, OR PROFITS; OR BUSINESS ########### ########### INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF ########### ########### LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, ########### ########### OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ########### ########### ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, ########### ########### EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ########### ########### ########### ########### ########### ############################################################################ DISTNAME=$1 RETDIR=$2 echo "Moving into '$DISTNAME'" cd $DISTNAME # Enter the sequence of commands to perform the # installation HERE: groupadd mail useradd -u 96 -d /usr/cyrus -g mail cyrus ./configure \ --enable-anon \ --enable-plain \ --enable-login \ --disable-krb4 \ --disable-otp \ --disable-cram \ --disable-digest \ --with-saslauthd=/var/run/saslauthd \ --with-pam=/lib/security \ --with-dblib=berkeley \ --with-bdb-libdir=/usr/local/bdb/lib \ --with-bdb-incdir=/usr/local/bdb/include \ --with-openssl=/usr/local/ssl \ --with-plugindir=/usr/local/lib/sasl2 make make install mkdir -p /var/run/saslauthd cd saslauthd make testsaslauthd cp testsaslauthd /usr/local/bin ln -s /usr/local/lib/sasl2 /usr/lib/sasl2 echo /usr/local/lib/sasl2 >> /etc/ld.so.conf ldconfig cd $RETDIR exit 0