Hi all.
Even though, I have done a few installations, of Cyrus, I always get
into trouble with mislinked db libraries or forge the flags that I
should pass to the Makefiles or forget the URL from where to download
Berkeley DB etc.
So to make my life easier, I have done a small Makefile that downloads
and install BerkeleyDB, SASL libs and Cyrus IMAP server.
It may be of use to others, so it is attached with this mail.
Here is what I do to make my Cyrus installation.
mkdir /usr/src/cyrus
cp /tmp/Makefile (the attached Makefile) /usr/src/cyrus
cd /usr/src/cyrus
make
:) it works for me.
I have tried this on SuSE-7.0 and SuSE-6.4
YMMV
Feel free to make modifications etc to taste.
best regards
--
Atif Ghaffar
Internet Development Manager
4unet AG/SA/Ltd.
-------------------------.
+41 21 351 53 60 ¦ voice
+41 78 787 51 45 ¦ mobile
+41 86 0796598972¦ fax
http://www.4unet.net ¦ www
http://atif.developer.ch ¦ homepage
[EMAIL PROTECTED] ¦ email
all: directories download db3 sasl cyrus
directories:
mkdir -p sources
download:
test -e sources/cyrus-imapd-2.0.12.tar.gz || (cd sources; wget
ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-imapd-2.0.12.tar.gz)
test -e sources/cyrus-sasl-1.5.24.tar.gz || (cd sources; wget
ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-sasl-1.5.24.tar.gz)
test -e sources/db-3.2.9.tar.gz || (cd sources; wget
http://www.sleepycat.com/update/3.2.9/db-3.2.9.tar.gz)
db3:
rm -rf db-3.2.9;
gzip -dc sources/db-3.2.9.tar.gz | tar xvf -
cd db-3.2.9/build_unix; ../dist/configure --enable-shared
make -C db-3.2.9/build_unix all
make -C db-3.2.9/build_unix install
grep '/usr/local/BerkeleyDB.3.2/lib' /etc/ld.so.conf || echo
/usr/local/BerkeleyDB.3.2/lib >>/etc/ld.so.conf
ldconfig
sasl:
rm -rf cyrus-sasl-1.5.24;
gzip -dc sources/cyrus-sasl-1.5.24.tar.gz | tar xvf -
cd cyrus-sasl-1.5.24; \
CPPFLAGS=-I/usr/local/BerkeleyDB.3.2/include \
LDFLAGS=-L/usr/local/BerkeleyDB.3.2/lib \
./configure \
--without-krb \
--without-gssapi
make -C cyrus-sasl-1.5.24 all
make -C cyrus-sasl-1.5.24 install
test -L /usr/lib/sasl || ln -s /usr/local/lib/sasl /usr/local/lib
ldconfig
cyrus:
rm -rf cyrus-imapd-2.0.12;
gzip -dc sources/cyrus-imapd-2.0.12.tar.gz | tar xvf -
cd cyrus-imapd-2.0.12; ./configure --with-dbdir=/usr/local/BerkeleyDB.3.2
make -C cyrus-imapd-2.0.12 all
make -C cyrus-imapd-2.0.12 install