10月 142012
 

フロント鯖に入れ忘れてた何か…(ェ

まずrpmでpostfix入れてざっくり設定を終わらせてイラナイ依存パッケを捨…(ェ

yum install -y postfix
rpm -e mysql-libs -nodeps

依存ライブラリを入れる

# libevent-2.0.20-stable
CC=gcc \
CFLAGS="-mtune=native" \
./configure \
--prefix=/usr/local/libevent2 \
--with-pic \

# openssl-1.0.1c
CFLAGS="-mtune=native" \
./Configure \
linux-x86_64 \
--prefix=/usr/local/openssl \
--openssldir=/usr/local/ssl \
-fPIC \
shared \
threads \
zlib-dynamic \

# db-5.3.21
cd build_unix
CC=gcc \
CFLAGS="-mtune=native" \
CXX=g++ \
CXXFLAGS="-mtune=native" \
../dist/configure \
--prefix=/usr/local/db5 \
--enable-cxx \
--enable-o_direct \
--enable-posixmutexes \
\
--enable-sql_compat \
--enable-tcl \
--enable-localization \
--enable-dbm \
\
--with-tcl=/usr/lib64 \
--with-pic \

ちょこっとだけソースをイジルけど普通だよね…(ェ

# postfix-2.9.4
cat makedefs>makedefs.org
sed -e "s/\/usr\/include\/db.h/\/usr\/local\/db5\/include\/db.h/g" \
makedefs.org>makedefs
make tidy
make -f Makefile.init makefiles \
CC=gcc \
OPT="-mtune=native" \
DEBUG="" \
CCARGS="\
-I/usr/local/db5/include \
-I/usr/local/libevent2/include \
-I/usr/local/openssl/include \
-DEPOLL \
-DHAS_PCRE \
-DUSE_TLS \
" \
AUXLIBS="\
-L/usr/local/db5/lib -Wl,-rpath,/usr/local/db5/lib \
-L/usr/local/libevent2/lib -Wl,-rpath,/usr/local/libevent2/lib \
-L/usr/local/openssl/lib -Wl,-rpath,/usr/local/openssl/lib \
-lz -lm -lpcre -lssl -lcrypto \
" \
make
sudo make upgrade

こっちも普通に…(ェ

# dovecot-2.1.10
CC=gcc \
CFLAGS="-mtune=native" \
LDFLAGS="\
-L/usr/local/libevent2/lib -Wl,-rpath,/usr/local/libevent2/lib \
-L/usr/local/openssl/lib -Wl,-rpath,/usr/local/openssl/lib \
" \
CPPFLAGS="\
-I/usr/local/libevent2/include \
-I/usr/local/openssl/include \
" \
CXX=g++ \
CXXFLAGS="-mtune=native" \
./configure \
--prefix=/usr/local/dovecot2 \
--sysconfdir=/usr/local/dovecot2/conf \
--with-ioloop=epoll \
--with-ssl=openssl \
--with-rundir=/var/run/dovecot \
--with-pic \

あとは設定しておしまいb

うっとこのVPSは全部これ入れてるYO!
いちおう動いてる(マテ

現在コメント投稿は停止しております。