make_normal      &&
make    install  &&

touch  $INSTALL_ROOT/var/log/exim_main    \
       $INSTALL_ROOT/var/log/exim_panic   \
       $INSTALL_ROOT/var/log/exim_reject  &&

chown  exim.exim  $INSTALL_ROOT/var/log/exim_main    \
                  $INSTALL_ROOT/var/log/exim_panic   \
                  $INSTALL_ROOT/var/log/exim_reject  &&

# copy usefull convert tool
message "Look @ /usr/doc/exim/doc for convert tools..."  &&
cp -v src/convert*.src doc/  &&

pushd  $INSTALL_ROOT/                            &&
ln     -sf  ../sbin/exim   usr/lib/sendmail     &&
ln     -sf  exim   usr/sbin/sendmail    &&
ln     -sf  exim   usr/sbin/mailq       &&
ln     -sf  exim   usr/sbin/rsmtp       &&
ln     -sf  exim   usr/sbin/rmail       &&
ln     -sf  exim   usr/sbin/runq        &&
ln     -sf  exim   usr/sbin/newaliases  &&
popd                                             &&

if  install_config_file  src/configure.default         \
                         $INSTALL_ROOT/etc/exim.conf;  then
  sedit  "s:var/mail:var/spool/mail:"         \
         $INSTALL_ROOT/etc/exim.conf          &&
  sedit  "s/\# group = exim/  group = exim/"  \
         $INSTALL_ROOT/etc/exim.conf          &&
  sedit  "s/\# mode = 0660/  mode = 0660/"    \
         $INSTALL_ROOT/etc/exim.conf
fi  &&

install_config_file  src/aliases.default        \
                     $INSTALL_ROOT/etc/aliases  &&

# install man page
cp  $SOURCE_DIRECTORY/doc/exim.8  $INSTALL_ROOT/usr/share/man/man8/exim.8
