# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/exim/exim.conf # Copyright (C) 2004 - 2022 The T2 SDE Project # Copyright (C) 1998 - 2003 ROCK Linux Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2. # --- T2-COPYRIGHT-NOTE-END --- var_append makeopt ' ' 'AR=$AR\ cq' var_append makeinstopt ' ' 'INSTALL_CP=install' 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 AUTH_CRAM_MD5=yes AUTH_PLAINTEXT=yes SUPPORT_TLS=yes TLS_LIBS=-lssl -lcrypto COMPRESS_COMMAND=/bin/gzip ZCAT_COMMAND=/bin/zcat SUPPORT_MAILDIR=yes SUPPORT_MAILSTORE=yes SUPPORT_MBX=yes LOOKUP_DSEARCH=yes WITH_CONTENT_SCAN=yes HAVE_OPENSSL=yes EOT if pkginstalled openssl; then echo "USE_OPENSSL=yes" >> Local/Makefile elif pkginstalled gnutls; then echo "USE_GNUTLS=yes" >> Local/Makefile else echo "SUPPORT_TLS=no" >> Local/Makefile fi } hook_add preconf 3 "exim_pc" exim_pm(){ ln -sfv $bindir/exim $root$bindir/mail_exim ln -sfv $bindir/exim $root$bindir/sendmail_exim ln -sfv $bindir/exim $root$bindir/mailq_exim install_setmailer exim } hook_add postmake 3 "exim_pm"