tomh / rpms / exim

Forked from rpms/exim 4 years ago
Clone
b1c3dc2
--- exim-4.71/src/EDITME.config	2009-11-20 12:18:19.000000000 +0000
b1c3dc2
+++ exim-4.71/src/EDITME	2009-12-24 19:02:19.000000000 +0000
cda8379
@@ -100,7 +100,7 @@
cda8379
 # /usr/local/sbin. The installation script will try to create this directory,
cda8379
 # and any superior directories, if they do not exist.
cda8379
 
cda8379
-BIN_DIRECTORY=/usr/exim/bin
cda8379
+BIN_DIRECTORY=/usr/sbin
cda8379
 
cda8379
 
cda8379
 #------------------------------------------------------------------------------
b1c3dc2
@@ -116,7 +116,7 @@ BIN_DIRECTORY=/usr/exim/bin
cda8379
 # don't exist. It will also install a default runtime configuration if this
cda8379
 # file does not exist.
cda8379
 
cda8379
-CONFIGURE_FILE=/usr/exim/configure
cda8379
+CONFIGURE_FILE=/etc/exim/exim.conf
cda8379
 
cda8379
 # It is possible to specify a colon-separated list of files for CONFIGURE_FILE.
cda8379
 # In this case, Exim will use the first of them that exists when it is run.
b1c3dc2
@@ -134,7 +134,7 @@ CONFIGURE_FILE=/usr/exim/configure
cda8379
 # owner of a local mailbox.) Specifying these values as root is very strongly
cda8379
 # discouraged.
cda8379
 
cda8379
-EXIM_USER=
cda8379
+EXIM_USER=93
cda8379
 
cda8379
 # If you specify EXIM_USER as a name, this is looked up at build time, and the
cda8379
 # uid number is built into the binary. However, you can specify that this
b1c3dc2
@@ -155,7 +155,7 @@ EXIM_USER=
cda8379
 # for EXIM_USER (e.g. EXIM_USER=exim), you don't need to set EXIM_GROUP unless
cda8379
 # you want to use a group other than the default group for the given user.
cda8379
 
cda8379
-# EXIM_GROUP=
cda8379
+EXIM_GROUP=93
cda8379
 
cda8379
 # Many sites define a user called "exim", with an appropriate default group,
cda8379
 # and use
b1c3dc2
@@ -235,7 +235,7 @@ TRANSPORT_SMTP=yes
cda8379
 # This one is special-purpose, and commonly not required, so it is not
cda8379
 # included by default.
cda8379
 
cda8379
-# TRANSPORT_LMTP=yes
cda8379
+TRANSPORT_LMTP=yes
cda8379
 
cda8379
 
cda8379
 #------------------------------------------------------------------------------
b1c3dc2
@@ -244,9 +244,9 @@ TRANSPORT_SMTP=yes
cda8379
 # MBX, is included only when requested. If you do not know what this is about,
cda8379
 # leave these settings commented out.
cda8379
 
cda8379
-# SUPPORT_MAILDIR=yes
cda8379
-# SUPPORT_MAILSTORE=yes
cda8379
-# SUPPORT_MBX=yes
cda8379
+SUPPORT_MAILDIR=yes
cda8379
+SUPPORT_MAILSTORE=yes
cda8379
+SUPPORT_MBX=yes
cda8379
 
cda8379
 
cda8379
 #------------------------------------------------------------------------------
b1c3dc2
@@ -262,17 +262,20 @@ LOOKUP_DBM=yes
cda8379
 LOOKUP_LSEARCH=yes
b1c3dc2
 LOOKUP_DNSDB=yes
cda8379
 
cda8379
-# LOOKUP_CDB=yes
cda8379
-# LOOKUP_DSEARCH=yes
cda8379
+LOOKUP_CDB=yes
cda8379
+LOOKUP_DSEARCH=yes
cda8379
 # LOOKUP_IBASE=yes
cda8379
-# LOOKUP_LDAP=yes
be4f17c
-# LOOKUP_MYSQL=yes
be4f17c
-# LOOKUP_NIS=yes
be4f17c
-# LOOKUP_NISPLUS=yes
cda8379
+LOOKUP_LDAP=yes
cda8379
+LDAP_LIB_TYPE=OPENLDAP2
ebb629c
+LOOKUP_INCLUDE=-I/usr/include/mysql
b1cc555
+LOOKUP_LIBS=-lldap -llber -lsqlite3 -L/usr/$(_lib)/mysql -lmysqlclient -lpq
ebb629c
+LOOKUP_MYSQL=yes
cda8379
+LOOKUP_NIS=yes
cda8379
+LOOKUP_NISPLUS=yes
cda8379
 # LOOKUP_ORACLE=yes
cda8379
-# LOOKUP_PASSWD=yes
ebb629c
-# LOOKUP_PGSQL=yes
aac745b
-# LOOKUP_SQLITE=yes
be4f17c
+LOOKUP_PASSWD=yes
be4f17c
+LOOKUP_PGSQL=yes
aac745b
+LOOKUP_SQLITE=yes
cda8379
 # LOOKUP_WHOSON=yes
cda8379
 
be4f17c
 # These two settings are obsolete; all three lookups are compiled when
b1c3dc2
@@ -343,14 +346,14 @@ EXIM_MONITOR=eximon.bin
cda8379
 # and the MIME ACL. Please read the documentation to learn more about these
cda8379
 # features.
cda8379
 
cda8379
-# WITH_CONTENT_SCAN=yes
cda8379
+WITH_CONTENT_SCAN=yes
cda8379
 
cda8379
 # If you want to use the deprecated "demime" condition in the DATA ACL,
cda8379
 # uncomment the line below. Doing so will also explicitly turn on the
cda8379
 # WITH_CONTENT_SCAN option. If possible, use the MIME ACL instead of
cda8379
 # the "demime" condition.
cda8379
 
cda8379
-# WITH_OLD_DEMIME=yes
cda8379
+WITH_OLD_DEMIME=yes
cda8379
 
cda8379
 #------------------------------------------------------------------------------
cda8379
 # Compiling Exim with experimental features. These are documented in
b1c3dc2
@@ -486,11 +489,11 @@ FIXED_NEVER_USERS=root
cda8379
 # included in the Exim binary. You will then need to set up the run time
cda8379
 # configuration to make use of the mechanism(s) selected.
cda8379
 
cda8379
-# AUTH_CRAM_MD5=yes
cda8379
-# AUTH_CYRUS_SASL=yes
d62f19c
-# AUTH_DOVECOT=yes
cda8379
-# AUTH_PLAINTEXT=yes
cda8379
-# AUTH_SPA=yes
cda8379
+AUTH_CRAM_MD5=yes
cda8379
+AUTH_CYRUS_SASL=yes
d62f19c
+AUTH_DOVECOT=yes
cda8379
+AUTH_PLAINTEXT=yes
cda8379
+AUTH_SPA=yes
cda8379
 
cda8379
 
cda8379
 #------------------------------------------------------------------------------
b1c3dc2
@@ -507,7 +510,7 @@ FIXED_NEVER_USERS=root
cda8379
 # one that is set in the headers_charset option. The default setting is
cda8379
 # defined by this setting:
cda8379
 
cda8379
-HEADERS_CHARSET="ISO-8859-1"
cda8379
+HEADERS_CHARSET="UTF-8"
cda8379
 
cda8379
 # If you are going to make use of $header_xxx expansions in your configuration
cda8379
 # file, or if your users are going to use them in filter files, and the normal
b1c3dc2
@@ -527,7 +530,7 @@ HEADERS_CHARSET="ISO-8859-1"
cda8379
 # the Sieve filter support. For those OS where iconv() is known to be installed
cda8379
 # as standard, the file in OS/Makefile-xxxx contains
cda8379
 #
cda8379
-# HAVE_ICONV=yes
cda8379
+HAVE_ICONV=yes
cda8379
 #
cda8379
 # If you are not using one of those systems, but have installed iconv(), you
cda8379
 # need to uncomment that line above. In some cases, you may find that iconv()
b1c3dc2
@@ -589,10 +592,11 @@ HEADERS_CHARSET="ISO-8859-1"
cda8379
 # leave these settings commented out.
cda8379
 
cda8379
 # This setting is required for any TLS support (either OpenSSL or GnuTLS)
cda8379
-# SUPPORT_TLS=yes
cda8379
+SUPPORT_TLS=yes
cda8379
 
cda8379
 # Uncomment this setting if you are using OpenSSL
cda8379
-# TLS_LIBS=-lssl -lcrypto
cda8379
+TLS_INCLUDE=-I/usr/kerberos/include
cda8379
+TLS_LIBS=-lssl -lcrypto
cda8379
 
cda8379
 # Uncomment these settings if you are using GnuTLS
cda8379
 # USE_GNUTLS=yes
b1c3dc2
@@ -643,7 +647,7 @@ HEADERS_CHARSET="ISO-8859-1"
cda8379
 # Once you have done this, "make install" will build the info files and
cda8379
 # install them in the directory you have defined.
cda8379
 
cda8379
-# INFO_DIRECTORY=/usr/share/info
cda8379
+INFO_DIRECTORY=/usr/share/info
cda8379
 
cda8379
 
cda8379
 #------------------------------------------------------------------------------
b1c3dc2
@@ -656,7 +660,7 @@ HEADERS_CHARSET="ISO-8859-1"
cda8379
 # %s. This will be replaced by one of the strings "main", "panic", or "reject"
cda8379
 # to form the final file names. Some installations may want something like this:
cda8379
 
cda8379
-# LOG_FILE_PATH=/var/log/exim_%slog
cda8379
+LOG_FILE_PATH=/var/log/exim/%s.log
cda8379
 
cda8379
 # which results in files with names /var/log/exim_mainlog, etc. The directory
cda8379
 # in which the log files are placed must exist; Exim does not try to create
b1c3dc2
@@ -705,7 +709,7 @@ EXICYCLOG_MAX=10
cda8379
 # files. Both the name of the command and the suffix that it adds to files
cda8379
 # need to be defined here. See also the EXICYCLOG_MAX configuration.
cda8379
 
cda8379
-COMPRESS_COMMAND=/usr/bin/gzip
cda8379
+COMPRESS_COMMAND=/bin/gzip
cda8379
 COMPRESS_SUFFIX=gz
cda8379
 
cda8379
 
b1c3dc2
@@ -713,7 +717,7 @@ COMPRESS_SUFFIX=gz
cda8379
 # If the exigrep utility is fed compressed log files, it tries to uncompress
cda8379
 # them using this command.
cda8379
 
cda8379
-ZCAT_COMMAND=/usr/bin/zcat
cda8379
+ZCAT_COMMAND=/bin/zcat
cda8379
 
cda8379
 
cda8379
 #------------------------------------------------------------------------------
b1c3dc2
@@ -722,7 +726,7 @@ ZCAT_COMMAND=/usr/bin/zcat
cda8379
 # (version 5.004 or later) installed, set EXIM_PERL to perl.o. Using embedded
cda8379
 # Perl costs quite a lot of resources. Only do this if you really need it.
cda8379
 
cda8379
-# EXIM_PERL=perl.o
cda8379
+EXIM_PERL=perl.o
cda8379
 
cda8379
 
cda8379
 #------------------------------------------------------------------------------
b1c3dc2
@@ -732,7 +736,7 @@ ZCAT_COMMAND=/usr/bin/zcat
d62f19c
 # that the local_scan API is made available by the linker. You may also need
d62f19c
 # to add -ldl to EXTRALIBS so that dlopen() is available to Exim.
d62f19c
 
d62f19c
-# EXPAND_DLFUNC=yes
d62f19c
+EXPAND_DLFUNC=yes
d62f19c
 
d62f19c
 
d62f19c
 #------------------------------------------------------------------------------
b1c3dc2
@@ -742,7 +746,7 @@ ZCAT_COMMAND=/usr/bin/zcat
cda8379
 # support, which is intended for use in conjunction with the SMTP AUTH
cda8379
 # facilities, is included only when requested by the following setting:
cda8379
 
cda8379
-# SUPPORT_PAM=yes
cda8379
+SUPPORT_PAM=yes
cda8379
 
cda8379
 # You probably need to add -lpam to EXTRALIBS, and in some releases of
cda8379
 # GNU/Linux -ldl is also needed.
b1c3dc2
@@ -810,7 +814,7 @@ ZCAT_COMMAND=/usr/bin/zcat
cda8379
 # group. Once you have installed saslauthd, you should arrange for it to be
cda8379
 # started by root at boot time.
cda8379
 
cda8379
-# CYRUS_SASLAUTHD_SOCKET=/var/state/saslauthd/mux
cda8379
+CYRUS_SASLAUTHD_SOCKET=/var/run/saslauthd/mux
cda8379
 
cda8379
 
cda8379
 #------------------------------------------------------------------------------
b1c3dc2
@@ -823,9 +827,9 @@ ZCAT_COMMAND=/usr/bin/zcat
cda8379
 # You may well also have to specify a local "include" file and an additional
cda8379
 # library for TCP wrappers, so you probably need something like this:
cda8379
 #
cda8379
-# USE_TCP_WRAPPERS=yes
cda8379
-# CFLAGS=-O -I/usr/local/include
cda8379
-# EXTRALIBS_EXIM=-L/usr/local/lib -lwrap
cda8379
+USE_TCP_WRAPPERS=yes
be4f17c
+CFLAGS+=$(RPM_OPT_FLAGS) $(PIE)
cda8379
+EXTRALIBS_EXIM=-lwrap -lpam -ldl
cda8379
 #
cda8379
 # but of course there may need to be other things in CFLAGS and EXTRALIBS_EXIM
cda8379
 # as well.
b1c3dc2
@@ -870,13 +874,13 @@ SYSTEM_ALIASES_FILE=/etc/aliases
cda8379
 # is "yes", as well as supporting line editing, a history of input lines in the
cda8379
 # current run is maintained.
cda8379
 
cda8379
-# USE_READLINE=yes
cda8379
+USE_READLINE=yes
cda8379
 
d62f19c
 # You may need to add -ldl to EXTRALIBS when you set USE_READLINE=yes.
cda8379
 # Note that this option adds to the size of the Exim binary, because the
cda8379
 # dynamic loading library is not otherwise included.
cda8379
 
cda8379
-
cda8379
+HAVE_IPV6=yes
cda8379
 
cda8379
 ###############################################################################
cda8379
 #              THINGS YOU ALMOST NEVER NEED TO MENTION                        #
b1c3dc2
@@ -897,13 +901,13 @@ SYSTEM_ALIASES_FILE=/etc/aliases
cda8379
 # haven't got Perl, Exim will still build and run; you just won't be able to
cda8379
 # use those utilities.
cda8379
 
cda8379
-# CHOWN_COMMAND=/usr/bin/chown
cda8379
-# CHGRP_COMMAND=/usr/bin/chgrp
b1c3dc2
-# CHMOD_COMMAND=/usr/bin/chmod
cda8379
-# MV_COMMAND=/bin/mv
cda8379
-# RM_COMMAND=/bin/rm
b1c3dc2
-# TOUCH_COMMAND=/usr/bin/touch
cda8379
-# PERL_COMMAND=/usr/bin/perl
cda8379
+CHOWN_COMMAND=/bin/chown
cda8379
+CHGRP_COMMAND=/bin/chgrp
b1c3dc2
+CHMOD_COMMAND=/bin/chmod
b1c3dc2
+MV_COMMAND=/bin/mv
cda8379
+RM_COMMAND=/bin/rm
b1c3dc2
+TOUCH_COMMAND=/bin/touch
cda8379
+PERL_COMMAND=/usr/bin/perl
cda8379
 
cda8379
 
cda8379
 #------------------------------------------------------------------------------
b1c3dc2
@@ -1097,7 +1101,7 @@ TMPDIR="/tmp"
cda8379
 # (process id) to a file so that it can easily be identified. The path of the
cda8379
 # file can be specified here. Some installations may want something like this:
cda8379
 
cda8379
-# PID_FILE_PATH=/var/lock/exim.pid
cda8379
+PID_FILE_PATH=/var/run/exim.pid
cda8379
 
cda8379
 # If PID_FILE_PATH is not defined, Exim writes a file in its spool directory
cda8379
 # using the name "exim-daemon.pid".
b1c3dc2
--- exim-4.71/scripts/Configure-Makefile.config	2009-11-20 21:22:20.000000000 +0000
b1c3dc2
+++ exim-4.71/scripts/Configure-Makefile	2009-12-24 18:59:48.000000000 +0000
b1c3dc2
@@ -137,7 +137,7 @@ if [ "${EXIM_PERL}" != "" ] ; then
b1c3dc2
 
b1c3dc2
   mv $mft $mftt
b1c3dc2
   echo "PERL_CC=`$PERL_COMMAND -MConfig -e 'print $Config{cc}'`" >>$mft
b1c3dc2
-  echo "PERL_CCOPTS=`$PERL_COMMAND -MExtUtils::Embed -e ccopts`" >>$mft
b1c3dc2
+  echo "PERL_CCOPTS=`$PERL_COMMAND -MExtUtils::Embed -e ccopts` \$(CFLAGS)" >>$mft
b1c3dc2
   echo "PERL_LIBS=`$PERL_COMMAND -MExtUtils::Embed -e ldopts`" >>$mft
b1c3dc2
   echo "" >>$mft
b1c3dc2
   cat $mftt >> $mft