計算機メモ目次 (目的のページと内容が一致しない場合, 目次から探してください)
Solaris 8 上で Cyrus imapd 2.3.6 を構築する
必要なもの
ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/
cyrus-imapd-2.3.6.tar.gz
cyrus-sasl-2.1.22.tar.gz
http://www.sleepycat.com/
db-4.4.20.tar.gz
Berkeley DB の構築 (デフォルト /usr/local/BerkeleyDB.4.4 にインストール)
gtar xvfz db-4.4.20.tar.gz
cd db-4.4.20/build_unix
../dist/configure
gmake
su
gmake install
Cyrus sasl の構築
gtar xvfz cyrus-sasl-2.1.22.tar.gz
cd cyrus-sasl-2.1.22
patch <<PAT
*** saslauthd/auth_getpwent.c.orig Thu Jan 27 13:39:52 2005
--- saslauthd/auth_getpwent.c Fri May 26 12:48:08 2006
***************
*** 41,46 ****
--- 41,50 ----
#include <string.h>
#include <pwd.h>
+ #ifdef HAVE_CRYPT_H
+ #include <crypt.h>
+ #endif
+
# ifdef WITH_DES
# ifdef WITH_SSL_DES
# include <openssl/des.h>
***************
*** 48,57 ****
# include <des.h>
# endif /* WITH_SSL_DES */
# endif /* WITH_DES */
-
- #ifdef HAVE_CRYPT_H
- #include <crypt.h>
- #endif
/* END PUBLIC DEPENDENCIES */
#define RETURN(x) return strdup(x)
--- 52,57 ----
PAT
CC=/opt/SUNWspro/bin/cc CFLAGS="-g -O -I/usr/local/include" \
F77=/opt/SUNWspro/bin/f77 FFLAGS="-g -O" \
CXX=/opt/SUNWspro/bin/c++ CXXFLAGS="-g -O -I/usr/local/include" \
LDFLAGS="-L/usr/local/lib -R/usr/local/lib" \
./configure --enable-cram --enable-plain \
--with-openssl=/usr/local \
--with-dbpath=/usr/local/etc/sasldb2 \
--with-dblib=berkeley \
--with-bdb-libdir=/usr/local/BerkeleyDB.4.4/lib \
--with-bdb-incdir=/usr/local/BerkeleyDB.4.4/include \
--with-plugindir=/usr/local/lib/sasl
gmake
su
gmake install
Cyrus imapd の構築
gtar xvfz cyrus-imapd-2.3.6.tar.gz
cd cyrus-imapd-2.3.6
CC=/opt/SUNWspro/bin/cc CFLAGS="-g -O -I/usr/local/include" \
F77=/opt/SUNWspro/bin/f77 FFLAGS="-g -O" \
CXX=/opt/SUNWspro/bin/c++ CXXFLAGS="-g -O -I/usr/local/include" \
LDFLAGS="-L/usr/local/lib -R/usr/local/lib" \
./configure --enable-cram --enable-plain \
--with-service-path=/usr/local/sbin \
--with-openssl=/usr/local \
--with-bdb=/usr/local/BerkeleyDB.4.4 \
--with-bdb-libdir=/usr/local/BerkeleyDB.4.4/lib \
--with-bdb-incdir=/usr/local/BerkeleyDB.4.4/include \
--with-sasl=/usr/local
gmake
su
gmake install
計算機メモ目次 (目的のページと内容が一致しない場合, 目次から探してください)