pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/exim3 import of exim3-3.36 from pkgsrc-wip.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c6e1aa666ff7
branches:  trunk
changeset: 464138:c6e1aa666ff7
user:      grant <grant%pkgsrc.org@localhost>
date:      Thu Dec 04 04:24:48 2003 +0000

description:
import of exim3-3.36 from pkgsrc-wip.

originally this package was taken from the netbsd-1-5-PATCH003 tag,
and a number of updates have been made to it:

- updated to 3.36.
- added security patch from
    http://www.exim.org/pipermail/exim-announce/2003q3/000094.html
- use a variety of new pkgsrc features for installing configuration files,
  creating directories, rc scripts, etc.
- added mysql and postgresql support.
- other general nits/fixes.

exim3 is still widely used by a large number of sites, and this package
has been added again to support existing installations.

diffstat:

 mail/exim3/DESCR                  |    7 +
 mail/exim3/MESSAGE                |   21 +
 mail/exim3/Makefile               |   91 +++
 mail/exim3/PLIST                  |   20 +
 mail/exim3/distinfo               |    8 +
 mail/exim3/files/exim.8           |  909 ++++++++++++++++++++++++++++++++++++++
 mail/exim3/files/exim.sh          |   18 +
 mail/exim3/files/exim_newaliases  |   13 +
 mail/exim3/files/mailer.conf.exim |    8 +
 mail/exim3/patches/patch-ab       |  104 ++++
 mail/exim3/patches/patch-ac       |   44 +
 mail/exim3/patches/patch-ae       |   15 +
 mail/exim3/patches/patch-af       |   26 +
 13 files changed, 1284 insertions(+), 0 deletions(-)

diffs (truncated from 1336 to 300 lines):

diff -r a670439cd42d -r c6e1aa666ff7 mail/exim3/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/exim3/DESCR  Thu Dec 04 04:24:48 2003 +0000
@@ -0,0 +1,7 @@
+Exim is a mail transport agent (MTA) developed at the University of
+Cambridge for use on Unix systems connected to the Internet. It is
+freely available under the terms of the GNU General Public Licence.
+In style it is similar to Smail 3, but its facilities are more
+extensive, and in particular it has options for verifying incoming
+sender and recipient addresses, for refusing mail from specified
+hosts, networks, or senders, and for controlling mail relaying.
diff -r a670439cd42d -r c6e1aa666ff7 mail/exim3/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/exim3/MESSAGE        Thu Dec 04 04:24:48 2003 +0000
@@ -0,0 +1,21 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2003/12/04 04:24:48 grant Exp $
+
+To use exim, you will need to do the following:
+
+1. Read the documentation. Edit ${PKG_SYSCONFDIR}/configure to taste.
+   Note that depending on your operating system, the `aliases' file may
+   be in /etc/mail or /etc.
+
+2. If you use mailwrapper (eg. NetBSD), back-up /etc/mailer.conf to
+   /etc/mailer.conf.sendmail and copy
+   ${EGDIR}/mailer.conf to /etc/mailer.conf.
+
+3. If you use rc.conf, set 'exim=YES' and be sure to disable any other
+   MTAs.
+
+4. Configuring log rotation is dependant on personal taste and your
+   operating system. See exicyclog and eximstats. Additionally, on NetBSD,
+   see weekly.conf(5) and newsyslog(8).
+
+===========================================================================
diff -r a670439cd42d -r c6e1aa666ff7 mail/exim3/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/exim3/Makefile       Thu Dec 04 04:24:48 2003 +0000
@@ -0,0 +1,91 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/12/04 04:24:49 grant Exp $
+
+DISTNAME=      exim-3.36
+CATEGORIES=    mail net
+MASTER_SITES=  ftp://ftp.csx.cam.ac.uk/pub/software/email/exim/exim3/ \
+               http://public.planetmirror.com.au/pub/exim/exim3/
+EXTRACT_SUFX=  .tar.bz2
+
+MAINTAINER=    ad%NetBSD.org@localhost
+HOMEPAGE=      http://www.exim.org/
+COMMENT=       The Exim mail transfer agent, a replacement for sendmail
+
+USE_BUILDLINK2=        YES
+USE_PERL5=     YES
+USE_PKGINSTALL=        YES
+
+BUILD_DEFS+=           EXIM_USER EXIM_GROUP
+BUILD_DEFS+=           EXIM_DB.mysql EXIM_DB.pgsql
+
+PKG_SYSCONFSUBDIR?=    exim
+EGDIR=                 ${PREFIX}/share/examples/exim
+MAKE_ENV+=             INST_CONFIGURE_FILE="${EGDIR}/configure"
+CONF_FILES=            ${EGDIR}/configure ${PKG_SYSCONFDIR}/configure
+MESSAGE_SUBST+=                EGDIR="${EGDIR}"
+
+RCD_SCRIPTS=           exim
+
+OWN_DIRS_PERMS=                /var/log/exim ${EXIM_USER} ${EXIM_GROUP} 0750
+OWN_DIRS_PERMS+=       /var/spool/exim ${EXIM_USER} ${EXIM_GROUP} 0750
+
+PKG_USERS=             ${EXIM_USER}:${EXIM_GROUP}:8:Exim\\ mail\\ server\\ user:/var/mail:/sbin/nologin
+PKG_GROUPS=            ${EXIM_GROUP}
+
+.include "../../mk/bsd.prefs.mk"
+
+_GZIP_CMD!=            ${ECHO} ${GZIP_CMD} | ${SED} -e 's/ .*//'
+FILES_SUBST+=          GZIP_CMD="${_GZIP_CMD}"
+FILES_SUBST+=          GZCAT="${GZCAT}"
+
+_LOOKUP_LIBS+=         ${LDFLAGS}
+
+.if defined(EXIM_DB.mysql) && ${EXIM_DB.mysql} == "YES"
+_EXIM_DB+=             mysql
+_LOOKUP_INCLUDE+=      -I${BUILDLINK_PREFIX.mysql-client}/include/mysql
+_LOOKUP_LIBS+=         ${BUILDLINK_LDFLAGS.mysql-client} -lmysqlclient
+.  include "../../databases/mysql-client/buildlink2.mk"
+.endif
+.if defined(EXIM_DB.pgsql) && ${EXIM_DB.pgsql} == "YES"
+_EXIM_DB+=             pgsql
+_LOOKUP_INCLUDE+=      -I${BUILDLINK_PREFIX.postgresql-lib}/include/postgresql
+_LOOKUP_LIBS+=         -lpq
+.  include "../../databases/postgresql-lib/buildlink2.mk"
+.endif
+
+pre-patch:
+       ${MKDIR} ${WRKSRC}/Local
+       ${CP} ${WRKSRC}/src/EDITME ${WRKSRC}/Local/Makefile.netbsd
+
+pre-configure:
+       @${SED} ${FILES_SUBST_SED} ${WRKSRC}/Local/Makefile.netbsd \
+               > ${WRKSRC}/Local/Makefile
+       for f in ${WRKSRC}/OS/Makefile-*; do \
+               ${SED} -e 's/^CFLAGS.*/& $$(CPPFLAGS)/' $$f > $$f.cppsubst; \
+               ${MV} -f $$f.cppsubst $$f; \
+       done
+.if defined(_EXIM_DB)
+       @${ECHO} LOOKUP_INCLUDE=${_LOOKUP_INCLUDE} >> ${WRKSRC}/Local/Makefile
+       @${ECHO} LOOKUP_LIBS=${_LOOKUP_LIBS} >> ${WRKSRC}/Local/Makefile
+.  if !empty(_EXIM_DB:Mmysql)
+       @${ECHO} LOOKUP_MYSQL=yes >> ${WRKSRC}/Local/Makefile
+.  endif
+.  if !empty(_EXIM_DB:Mpgsql)
+       @${ECHO} LOOKUP_PGSQL=yes >> ${WRKSRC}/Local/Makefile
+.  endif
+.endif
+
+pre-install:
+       ${INSTALL_DATA_DIR} ${EGDIR}
+
+post-build:
+       @${SED} ${FILES_SUBST_SED} ${FILESDIR}/mailer.conf.exim \
+               > ${WRKDIR}/mailer.conf
+
+post-install:
+       @${SED} ${FILES_SUBST_SED} ${FILESDIR}/exim_newaliases \
+               > ${PREFIX}/sbin/exim_newaliases
+       ${CHMOD} ugo+x ${PREFIX}/sbin/exim_newaliases
+       ${INSTALL_DATA} ${WRKDIR}/mailer.conf ${EGDIR}
+       ${CP} ${FILESDIR}/exim.8 ${PREFIX}/man/man8/exim.8
+
+.include "../../mk/bsd.pkg.mk"
diff -r a670439cd42d -r c6e1aa666ff7 mail/exim3/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/exim3/PLIST  Thu Dec 04 04:24:48 2003 +0000
@@ -0,0 +1,20 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/12/04 04:24:49 grant Exp $
+etc/rc.d/exim
+man/man8/exim.8
+sbin/exicyclog
+sbin/exigrep
+sbin/exim
+sbin/exim_dbmbuild
+sbin/exim_dumpdb
+sbin/exim_fixdb
+sbin/exim_lock
+sbin/exim_newaliases
+sbin/exim_tidydb
+sbin/eximstats
+sbin/exinext
+sbin/exiqsumm
+sbin/exiwhat
+share/examples/exim/configure
+share/examples/exim/mailer.conf
+@unexec ${RMDIR} /var/log/exim 2>/dev/null || true
+@dirrm share/examples/exim
diff -r a670439cd42d -r c6e1aa666ff7 mail/exim3/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/exim3/distinfo       Thu Dec 04 04:24:48 2003 +0000
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/12/04 04:24:49 grant Exp $
+
+SHA1 (exim-3.36.tar.bz2) = 2a06a2858ebf8cdedf2e41fa3f258b5e468e270d
+Size (exim-3.36.tar.bz2) = 982104 bytes
+SHA1 (patch-ab) = 3650487acdc2b0e67ab0dee08a6715e90b2a4205
+SHA1 (patch-ac) = 39122ca045ca7bb61500acae2abf5683c8ec4530
+SHA1 (patch-ae) = 24009dd4807f0215e79cc0a86582297bf310c913
+SHA1 (patch-af) = ac3bea9fe84bc760fec21858bc818c1b01dd34a4
diff -r a670439cd42d -r c6e1aa666ff7 mail/exim3/files/exim.8
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/exim3/files/exim.8   Thu Dec 04 04:24:48 2003 +0000
@@ -0,0 +1,909 @@
+.TH EXIM 8
+.SH exim
+exim \- Mail Transfer Agent
+.SH SYNOPSIS
+.B exim
+.I "[options] arguments ..."
+.br
+.B mailq
+.I "[options] arguments ..."
+.br
+.B rmail
+.I "[options] arguments ..."
+.br
+.B rsmtp
+.I "[options] arguments ..."
+.br
+.B runq
+.I "[options] arguments ..."
+.br
+.B sendmail
+.I "[options] arguments ..."
+.SH "DESCRIPTION"
+.B Exim
+is a mail transport agent (MTA) developed at the University of
+Cambridge for use on Unix systems connected to the Internet. It is
+freely available under the terms of the GNU General Public Licence. In
+style it is similar to Smail 3, but its facilities are more extensive,
+and in particular it has some defences against mail bombs and
+unsolicited junk mail, in the form of options for refusing messages
+from particular hosts, networks, or senders.
+.PP
+Exim's command line takes the standard Unix form of a sequence of
+options, each starting with a hyphen character, followed by a number
+of arguments.  The options are compatible with the main options of
+Sendmail, and there are also some additional options, some of which
+are compatible with Smail 3.  Certain combinations of options do not
+make sense, and provoke an error if used. The form of the arguments
+depends on which options are set.
+.PP
+If Exim is called under the name mailq, it behaves as if the option
+-bp were present before any other options. This is for compatibility
+with some systems that contain a command of that name in one of the
+standard libraries, symbolically linked to /usr/lib/sendmail.
+.PP
+If Exim is called under the name rsmtp it behaves as if the option -bS
+were present before any other options, for compatibility with
+smail. The -bS option is used for reading in a number of messages in
+batched SMTP format.
+.PP
+If Exim is called under the name rmail it behaves as if the option -i
+were present before any other options, for compatibility with
+smail. The -i option is used for reading a message that should not be
+terminated by a dot on a line by itself. The name rmail is used as an
+interface by some UUCP systems.
+.PP
+If Exim is called under the name runq it behaves as if the option -q
+were present before any other options, for compatibility with
+smail. The -q option causes a single queue-runner process to be
+started.
+.SH LIMITATIONS
+For the benefit of those reading this overview to see whether Exim is
+of interest to them, its limitations are listed first.
+.TP
+.B ANSI-C
+Exim is written in ANSI C. This should not be much of a limitation
+these days. However, to help with systems that lack a true ANSI C
+library, Exim avoids making any use of the value returned by the
+sprintf() function, which is one of the main incompatibilities. It has
+its own version of strerror() for use with SunOS4 and any other system
+that lacks this function, and a macro can be defined to turn memmove()
+into bcopy() if necessary.
+.TP
+.B Filenames
+Exim uses file names that are longer than 14 characters.
+.TP
+.B Bangpaths
+Exim is intended for use as an Internet mailer, and therefore handles
+addresses in RFC 822 domain format only. It cannot handle 'bang
+paths', though simple two-component bang paths can be converted by a
+straightforward rewriting configuration.
+.TP
+.B Domains required
+Exim insists that every address it handles has a domain attached. For
+incoming local messages, domainless addresses are automatically
+qualified with a configured domain value. Configuration options
+specify from which remote systems unqualified addresses are
+acceptable.
+.TP
+.B Transports
+The only external transport currently implemented is an SMTP transport
+over a TCP/IP network (using sockets), suitable for machines on the
+Internet. However, a pipe transport is available, and there are
+facilities for writing messages to files in 'batched SMTP' format;
+this can be used to send messages to some other transport
+mechanism. Batched SMTP input is also catered for.
+.SH FEATURES
+Exim follows the same general approach of decentralized control that
+Smail 3 does. There is no central process doing overall management of
+mail delivery.  However, unlike Smail, the independent delivery
+processes share data in the form of 'hints', which makes delivery more
+efficient in some cases. The hints are kept in a number of DBM
+files. If any of these files are lost, the only effect is to change
+the pattern of delivery attempts and retries.
+.PP
+Many configuration options can be given as expansion strings, and as
+these can include file lookups, much of Exim's operation can be made
+table-driven if desired. For example, it is possible to do local
+delivery on a machine on which the users do not have accounts.
+.PP
+Regular expressions are available in a number of configuration
+parameters.
+.PP
+Domain lists can include file lookups, making it possible to support a
+large number of local domains.
+.PP
+Exim has flexible retry algorithms, applicable to mail routing as well as
+to delivery.
+.PP
+Exim contains header and envelope rewriting facilities.
+.PP
+Unqualified addresses are accepted only from specified hosts or networks.
+.PP
+Exim can perform multiple deliveries down the same SMTP channel after
+deliveries to a host have been delayed.
+.PP
+Exim can be configured to do local deliveries immediately but to leave
+remote deliveries until the message is picked up by a queue-runner
+process. This increases the likelihood of multiple messages being sent
+down a single SMTP connection.



Home | Main Index | Thread Index | Old Index