# --- ROCK-COPYRIGHT-NOTE-BEGIN --- # # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # Please add additional copyright information _after_ the line containing # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by # the ./scripts/Create-CopyPatch script. Do not edit this copyright text! # # ROCK Linux: rock-src/package/public/exim/exim.conf # ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. A copy of the GNU General Public # License can be found at Documentation/COPYING. # # Many people helped and are helping developing ROCK Linux. Please # have a look at https://www.rocklinux.org/ and the Documentation/TEAM # file for details. # # --- ROCK-COPYRIGHT-NOTE-END --- exim_pc() { [ "${prefix#opt/}" == "$prefix" ] && sysconfdir="$sysconfdir/exim" echo "creating Makefile ..." cp -v src/EDITME Local/Makefile cat >> Local/Makefile << EOT BIN_DIRECTORY=$bindir CONFIGURE_FILE=$sysconfdir/configure EXIM_USER=30 EXIM_GROUP=30 COMPRESS_COMMAND=/bin/gzip ZCAT_COMMAND=/bin/zcat CC=$CC INCLUDE=-I/usr/include/${ROCKCFG_PKG_BDB_DEFAULT:1} EOT [ "$ROCKCFG_PKG_EXIM_CRAM_MD5" = 1 ] && \ echo "AUTH_CRAM_MD5=yes" >> Local/Makefile [ "$ROCKCFG_PKG_EXIM_PLAIN_TEXT" = 1 ] && \ echo "AUTH_PLAINTEXT=yes" >> Local/Makefile [ "$ROCKCFG_PKG_EXIM_SPA" = 1 ] && \ echo "AUTH_SPA=yes" >> Local/Makefile [ "$ROCKCFG_PKG_EXIM_CONTENT_SCAN" = 1 ] && \ echo "WITH_CONTENT_SCAN=yes" >> Local/Makefile [ "$ROCKCFG_PKG_EXIM_ACL_MIME" = 1 ] && \ echo "WITH_OLD_DEMIME=yes" >> Local/Makefile if pkginstalled gnutls; then cat >> Local/Makefile << EOT SUPPORT_TLS=yes USE_GNUTLS=yes TLS_LIBS=-lgnutls -ltasn1 -lgcrypt EOT elif pkginstalled openssl; then cat >> Local/Makefile << EOT SUPPORT_TLS=yes TLS_LIBS=-lssl -lcrypto EOT fi } exim_pm(){ ln -sfv $bindir/exim $bindir/mail_exim ln -sfv $bindir/exim $bindir/sendmail_exim ln -sfv $bindir/exim $bindir/mailq_exim install_setmailer exim install_init exim $confdir/exim.init } makeopt="all" ; makeinstopt="install" hook_add preconf 3 "exim_pc" hook_add postmake 3 "exim_pm"