2016-04-09 12:49:39 +02:00
|
|
|
# $NetBSD: Makefile,v 1.145 2016/04/09 10:49:39 adam Exp $
|
1999-09-07 15:22:50 +02:00
|
|
|
|
2016-04-09 12:49:39 +02:00
|
|
|
DISTNAME= exim-4.87
|
1999-09-18 22:28:25 +02:00
|
|
|
CATEGORIES= mail net
|
2005-05-17 19:06:11 +02:00
|
|
|
MASTER_SITES= ftp://ftp.exim.org/pub/exim/exim4/ \
|
Changes 4.72:
* installed exipick 20100104.1, adding $max_received_linelength, $data_path,
and $header_path variables; fixed documentation bugs and typos
* installed exipick 20100222.0, added --input-dir and --finput to allow
exipick to access non-standard spools, including the "frozen" queue (Finput)
* Support mysql stored procedures.
* Spacing fix (syntax error) on Makefile directives for NetBSD
* Documentation fix for max_rcpts.
* Fix for unknown responses from Dovecot authenticator.
* Added umask to procmail example.
* installed exipick 20100323.0, fixing doc bug
* CVE-2010-2023 - prevent hardlink attack on sticky mail directory.
* Upgrade PolarSSL files to upstream version 0.12.1.
* Improve log output when DKIM signing operation fails.
* Treat the transport option dkim_domain as a colon separated list, not as
a single string, and sign the message with each element, omitting multiple
occurences of the same signer.
* Null terminate DKIM strings, Null initialise DKIM variable
* dnsdb DNS TXT record bug fix (DKIM-related)
* CVE-2010-2024 - work round race condition on MBX locking.
2010-06-06 16:15:30 +02:00
|
|
|
http://dl.ambiweb.de/mirrors/ftp.exim.org/exim/exim4/
|
2005-05-17 19:06:11 +02:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
2000-01-09 02:29:30 +01:00
|
|
|
|
2004-05-07 20:12:58 +02:00
|
|
|
MAINTAINER= abs@NetBSD.org
|
1999-09-07 15:22:50 +02:00
|
|
|
HOMEPAGE= http://www.exim.org/
|
2001-02-17 18:52:59 +01:00
|
|
|
COMMENT= The Exim mail transfer agent, a replacement for sendmail
|
2010-01-31 22:06:29 +01:00
|
|
|
LICENSE= gnu-gpl-v2
|
1999-09-07 15:22:50 +02:00
|
|
|
|
2003-09-02 13:14:16 +02:00
|
|
|
CONFLICTS+= exim-exiscan-[0-9]*
|
2003-08-02 19:00:06 +02:00
|
|
|
|
2005-07-16 03:19:06 +02:00
|
|
|
USE_TOOLS+= perl:run
|
2008-01-31 14:05:36 +01:00
|
|
|
BUILD_DEFS+= VARBASE
|
2003-05-03 14:14:56 +02:00
|
|
|
|
2005-05-17 19:06:11 +02:00
|
|
|
MAKE_ENV+= SSLBASE=${SSLBASE:Q}
|
2005-12-05 21:49:47 +01:00
|
|
|
MAKE_ENV+= INST_CHOWN=${CHOWN:Q}
|
update exim to 4.52.
summary of changes since 4.51 (general bug fixes and portability
fixes ommitted for brevity, see the ChangeLog for details):
Exim version 4.52
-----------------
TF/01 Added support for Client SMTP Authorization. See NewStuff for details.
PH/02 Reduce the amount of output that "make" produces by default. Full output
can still be requested.
PH/04 Installed a modified version of Tony Finch's patch to make submission
mode fix the return path as well as the Sender: header line, and to
add a /name= option so that you can make the user's friendly name appear
in the header line.
TF/03 Added the control = fakedefer ACL modifier.
TF/04 Added the ratelimit ACL condition. See NewStuff for details. Thanks to
Mark Lowes for thorough testing.
TK/02 Rewrote SPF support to work with libspf2 versions >1.2.0.
TK/03 Merged latest SRS patch from Miles Wilton.
TK/04 Added simple SPF lookup method in EXPERIMENTAL_SPF. See NewStuff for
details. Thanks to Chris Webb <chris@arachsys.com> for the patch!
PH/07 Added "fullpostmaster" verify option, which does a check to <postmaster>
without a domain if the check to <postmaster@domain> fails.
SC/01 Eximstats: added -xls and the ability to specify output files
(patch written by Frank Heydlauf).
SC/02 Eximstats: use FileHandles for outputing results.
SC/03 Eximstats: allow any combination of xls, txt, and html output.
SC/06 Eximstats: added the -include_original_destination flag
TK/06 MBOX spool code: Add real "From " MBOX separator line
so the .eml file is really in mbox format (even though
most programs do not really care). Patch from Alex Miller.
TK/07 MBOX spool code: Add X-Envelope-From: and X-Envelope-To: headers.
The latter is generated from $received_to and is only set if the
message has one envelope recipient. SA can use these headers,
obviously out-of-the-box. Patch from Alex Miller.
PH/11 Upgraded appendfile so that quotas larger than 2G are now supported.
This involved changing a lot of size variables from int to off_t. It
should work with maildirs and everything.
PH/12 Applied Alex Kiernan's patch for the API change for the error callback
function for BDB 4.3.
PH/13 Changed auto_thaw such that it does not apply to bounce messages.
PH/14 Imported PCRE 6.0; this was more than just a trivial operation because
the sources for PCRE have been re-arranged and more files are now
involved.
PH/16 Applied Matthew Newton's patch to exicyclog: "If log_file_path is set in
the configuration file to be ":syslog", then the script "guesses" where
the logs files are, rather than using the compiled in default. In our
case the guess is not the same as the compiled default, so the script
suddenly stopped working when I started to use syslog. The patch checks
to see if log_file_path is "". If so, it attempts to read it from exim
with no configuration file to get the compiled in version, before it
falls back to the previous guessing code."
TK/09 Added "prvs" and "prvscheck" expansion items. These help a lot with
implementing BATV in an Exim configuration. See NewStuff for the gory
details.
PH/18 If the "use_postmaster" option was set for a recipient callout together
with the "random" option, the postmaster address was used as the MAIL
FROM address for the random test, but not for the subsequent recipient
test. It is now used for both.
PH/19 Applied Michael Haardt's patch to update Sieve to RFC3028bis. "The
patch removes a few documentation additions to RFC 3028, because the
latest draft now contains them. It adds the new en;ascii-case comparator
and a new error check for 8bit text in MIME parts. Comparator and
require names are now matched exactly. I enabled the subaddress
extension, but it is not well tested yet (read: it works for me)."
PH/23 Added daemon_startup_retries and daemon_startup_sleep.
PH/24 Added ${if match_ip condition.
PH/28 Changed -d+all to exclude +memory, because that information is very
rarely of interest, but it makes the output a lot bigger. People tend to
do -d+all out of habit.
PH/30 Exim's DNS code uses the original T_xxx names for DNS record times. These
aren't the modern standard, and it seems that some systems' include files
don't always have them. Exim was already checking for some of the newer
ones like T_AAAA, and defining it itself. I've added checks for all the
record types that Exim uses.
TK/11 Domainkeys: Change the logic how the "testing" policy flag is retrieved
from DNS. If the selector record carries the flag, it now has
precedence over the domain-wide flag.
SC/09 Eximstats: added the -show_rt<list> and the -show_dt<list> flags
as requested by Marc Sherman.
SC/10 Eximstats: added histograms for user specified patterns as requested
by Marc Sherman.
2005-07-20 08:32:29 +02:00
|
|
|
MAKE_FLAGS+= FULLECHO=''
|
2007-12-15 17:04:41 +01:00
|
|
|
MAKE_JOBS_SAFE= no
|
2005-05-17 19:06:11 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2007-07-04 22:54:31 +02:00
|
|
|
BUILD_DEFS+= EXIM_DB EXIM_MAX_INCLUDE_SIZE
|
2005-05-17 19:06:11 +02:00
|
|
|
|
|
|
|
PKG_GROUPS= ${EXIM_GROUP}
|
2006-04-23 02:12:35 +02:00
|
|
|
PKG_USERS= ${EXIM_USER}:${EXIM_GROUP}
|
|
|
|
|
2007-07-04 22:54:31 +02:00
|
|
|
PKG_GROUPS_VARS+= EXIM_GROUP
|
|
|
|
PKG_USERS_VARS+= EXIM_USER
|
|
|
|
|
2006-04-23 02:12:35 +02:00
|
|
|
PKG_GECOS.${EXIM_USER}= Exim mail server user
|
|
|
|
PKG_HOME.${EXIM_USER}= ${VARBASE}/mail
|
|
|
|
PKG_SHELL.${EXIM_USER}= ${NOLOGIN}
|
2005-05-17 19:06:11 +02:00
|
|
|
|
Changes 4.83:
1. If built with the EXPERIMENTAL_PROXY feature enabled, Exim can be
configured to expect an initial header from a proxy that will make the
actual external source IP:host be used in exim instead of the IP of the
proxy that is connecting to it.
2. New verify option header_names_ascii, which will check to make sure
there are no non-ASCII characters in header names. Exim itself handles
those non-ASCII characters, but downstream apps may not, so Exim can
detect and reject if those characters are present.
3. New expansion operator ${utf8clean:string} to replace malformed UTF8
codepoints with valid ones.
4. New malware type "sock". Talks over a Unix or TCP socket, sending one
command line and matching a regex against the return data for trigger
and a second regex to extract malware_name. The mail spoofile name can
be included in the command line.
5. The smtp transport now supports options "tls_verify_hosts" and
"tls_try_verify_hosts". If either is set the certificate verification
is split from the encryption operation. The default remains that a failed
verification cancels the encryption.
6. New SERVERS override of default ldap server list. In the ACLs, an ldap
lookup can now set a list of servers to use that is different from the
default list.
7. New command-line option -C for exiqgrep to specify alternate exim.conf
file when searching the queue.
8. OCSP now supports GnuTLS also, if you have version 3.1.3 or later of that.
9. Support for DNSSEC on outbound connections.
10. New variables "tls_(in,out)_(our,peer)cert" and expansion item
"certextract" to extract fields from them. Hash operators md5 and sha1
work over them for generating fingerprints, and a new sha256 operator
for them added.
11. PRDR is now supported dy default.
12. OCSP stapling is now supported by default.
13. If built with the EXPERIMENTAL_DSN feature enabled, Exim will output
Delivery Status Notification messages in MIME format, and negociate
DSN features per RFC 3461.
2014-07-23 16:09:52 +02:00
|
|
|
FILES_SUBST+= EXIM_GROUP=${EXIM_GROUP}
|
|
|
|
FILES_SUBST+= EXIM_USER=${EXIM_USER}
|
2014-04-30 12:21:08 +02:00
|
|
|
|
Changes 4.72:
* installed exipick 20100104.1, adding $max_received_linelength, $data_path,
and $header_path variables; fixed documentation bugs and typos
* installed exipick 20100222.0, added --input-dir and --finput to allow
exipick to access non-standard spools, including the "frozen" queue (Finput)
* Support mysql stored procedures.
* Spacing fix (syntax error) on Makefile directives for NetBSD
* Documentation fix for max_rcpts.
* Fix for unknown responses from Dovecot authenticator.
* Added umask to procmail example.
* installed exipick 20100323.0, fixing doc bug
* CVE-2010-2023 - prevent hardlink attack on sticky mail directory.
* Upgrade PolarSSL files to upstream version 0.12.1.
* Improve log output when DKIM signing operation fails.
* Treat the transport option dkim_domain as a colon separated list, not as
a single string, and sign the message with each element, omitting multiple
occurences of the same signer.
* Null terminate DKIM strings, Null initialise DKIM variable
* dnsdb DNS TXT record bug fix (DKIM-related)
* CVE-2010-2024 - work round race condition on MBX locking.
2010-06-06 16:15:30 +02:00
|
|
|
PKG_SYSCONFSUBDIR= exim
|
2005-05-17 19:06:11 +02:00
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/exim
|
|
|
|
CONF_FILES= ${EXAMPLESDIR}/aliases ${PKG_SYSCONFDIR}/aliases
|
|
|
|
CONF_FILES+= ${EXAMPLESDIR}/configure ${PKG_SYSCONFDIR}/configure
|
|
|
|
MESSAGE_SUBST+= EXAMPLESDIR="${EXAMPLESDIR}"
|
2007-12-15 17:04:41 +01:00
|
|
|
PLIST_SUBST+= DISTNAME=${DISTNAME}
|
2005-05-17 19:06:11 +02:00
|
|
|
|
|
|
|
RCD_SCRIPTS= exim
|
|
|
|
|
2005-08-29 20:29:05 +02:00
|
|
|
OWN_DIRS_PERMS= ${VARBASE}/log/exim ${EXIM_USER} ${EXIM_GROUP} 0750
|
|
|
|
OWN_DIRS_PERMS+= ${VARBASE}/spool/exim ${EXIM_USER} ${EXIM_GROUP} 0750
|
2010-01-31 22:06:29 +01:00
|
|
|
SPECIAL_PERMS+= sbin/${PKGSRC_EXIM_VERSION} ${SETUID_ROOT_PERMS}
|
2005-05-17 19:06:11 +02:00
|
|
|
|
2006-09-16 09:09:22 +02:00
|
|
|
# pay attention to CPPFLAGS as well
|
|
|
|
CFLAGS+= ${CPPFLAGS}
|
|
|
|
|
2010-01-31 22:06:29 +01:00
|
|
|
PKGSRC_EXIM_VERSION= ${DISTNAME}-1
|
|
|
|
SUBST_CLASSES+= exim
|
|
|
|
SUBST_STAGE.exim= pre-configure
|
|
|
|
SUBST_MESSAGE.exim= Faking exim version information in exim_install
|
|
|
|
SUBST_FILES.exim= scripts/exim_install
|
|
|
|
SUBST_VARS.exim= PKGSRC_EXIM_VERSION
|
|
|
|
|
Changes 4.72:
* installed exipick 20100104.1, adding $max_received_linelength, $data_path,
and $header_path variables; fixed documentation bugs and typos
* installed exipick 20100222.0, added --input-dir and --finput to allow
exipick to access non-standard spools, including the "frozen" queue (Finput)
* Support mysql stored procedures.
* Spacing fix (syntax error) on Makefile directives for NetBSD
* Documentation fix for max_rcpts.
* Fix for unknown responses from Dovecot authenticator.
* Added umask to procmail example.
* installed exipick 20100323.0, fixing doc bug
* CVE-2010-2023 - prevent hardlink attack on sticky mail directory.
* Upgrade PolarSSL files to upstream version 0.12.1.
* Improve log output when DKIM signing operation fails.
* Treat the transport option dkim_domain as a colon separated list, not as
a single string, and sign the message with each element, omitting multiple
occurences of the same signer.
* Null terminate DKIM strings, Null initialise DKIM variable
* dnsdb DNS TXT record bug fix (DKIM-related)
* CVE-2010-2024 - work round race condition on MBX locking.
2010-06-06 16:15:30 +02:00
|
|
|
SUBST_CLASSES+= cflags
|
|
|
|
SUBST_STAGE.cflags= post-patch
|
|
|
|
SUBST_MESSAGE.cflags= Removing hard-coded CFLAGS
|
|
|
|
SUBST_FILES.cflags= OS/Makefile-*
|
|
|
|
SUBST_SED.cflags= -e 's,^CFLAGS=.*,,'
|
|
|
|
|
2010-01-31 22:06:29 +01:00
|
|
|
INSTALL_ARG= INSTALL_ARG=-no_chown
|
|
|
|
INSTALL_ENV+= ${INSTALL_ARG:Q}
|
|
|
|
|
2005-09-11 01:11:40 +02:00
|
|
|
.include "options.mk"
|
|
|
|
|
2005-05-17 19:06:11 +02:00
|
|
|
post-extract:
|
2007-10-14 21:14:57 +02:00
|
|
|
mkdir ${WRKSRC}/Local
|
|
|
|
cp ${WRKSRC}/src/EDITME ${WRKSRC}/Local/Makefile.pkgsrc
|
|
|
|
cp ${WRKSRC}/exim_monitor/EDITME ${WRKSRC}/Local/eximon.conf.pkgsrc
|
|
|
|
cp ${FILESDIR}/Makefile-DragonFly ${FILESDIR}/os.h-DragonFly \
|
2005-08-29 20:31:48 +02:00
|
|
|
${WRKSRC}/OS/
|
2005-05-17 19:06:11 +02:00
|
|
|
|
|
|
|
pre-configure:
|
2007-10-14 21:14:57 +02:00
|
|
|
sed -e 's:@PREFIX@:${PREFIX}:' \
|
2005-05-17 19:06:11 +02:00
|
|
|
-e 's:@PKG_SYSCONFDIR@:${PKG_SYSCONFDIR}:' \
|
|
|
|
-e 's:@EXIM_USER@:${EXIM_USER}:' \
|
|
|
|
-e 's:@EXIM_GROUP@:${EXIM_GROUP}:' \
|
|
|
|
-e 's:@EXIM_USE_DB_CONFIG@:${EXIM_USE_DB_CONFIG}:' \
|
|
|
|
-e 's:@EXIM_DBMLIB@:${EXIM_DBMLIB}:' \
|
|
|
|
-e 's:@EXIM_INCLUDE@:${EXIM_INCLUDE}:' \
|
2005-09-11 01:11:40 +02:00
|
|
|
-e 's:@LOOKUP_LIBS@:${LOOKUP_LIBS}:' \
|
2005-05-17 19:06:11 +02:00
|
|
|
-e 's:@CHOWN@:${CHOWN}:' \
|
|
|
|
-e 's:@CHGRP@:${CHGRP}:' \
|
2009-11-17 07:39:32 +01:00
|
|
|
-e 's:@CHMOD@:${CHMOD}:' \
|
2005-05-17 19:06:11 +02:00
|
|
|
-e 's:@MV@:${MV}:' \
|
|
|
|
-e 's:@RM@:${RM}:' \
|
2009-11-17 07:39:32 +01:00
|
|
|
-e 's:@TOUCH@:${TOUCH}:' \
|
2005-05-17 19:06:11 +02:00
|
|
|
-e 's:@PERL5@:${PERL5}:' \
|
2005-08-29 20:29:05 +02:00
|
|
|
-e 's:@VARBASE@:${VARBASE}:' \
|
2005-05-17 19:06:11 +02:00
|
|
|
< ${WRKSRC}/Local/Makefile.pkgsrc \
|
|
|
|
> ${WRKSRC}/Local/Makefile
|
2005-09-11 01:11:40 +02:00
|
|
|
.for opt in ${LOCAL_MAKEFILE_OPTIONS}
|
2007-05-18 16:24:11 +02:00
|
|
|
${ECHO} ${opt} >> ${WRKSRC}/Local/Makefile
|
2005-09-11 01:11:40 +02:00
|
|
|
.endfor
|
2007-05-18 16:24:11 +02:00
|
|
|
.if !empty(EXIM_MAX_INCLUDE_SIZE)
|
|
|
|
${ECHO} MAX_INCLUDE_SIZE=${EXIM_MAX_INCLUDE_SIZE} >> ${WRKSRC}/Local/Makefile
|
|
|
|
.endif
|
2007-10-14 21:14:57 +02:00
|
|
|
sed -e 's:@PREFIX@:${PREFIX}:' \
|
2005-05-17 19:06:11 +02:00
|
|
|
-e 's:@PKG_SYSCONFDIR@:${PKG_SYSCONFDIR}:' \
|
|
|
|
< ${WRKSRC}/Local/eximon.conf.pkgsrc \
|
|
|
|
> ${WRKSRC}/Local/eximon.conf
|
|
|
|
|
|
|
|
post-build:
|
2007-10-14 21:14:57 +02:00
|
|
|
sed -e 's:@PREFIX@:${PREFIX}:' \
|
2005-05-17 19:06:11 +02:00
|
|
|
${FILESDIR}/mailer.conf.exim \
|
|
|
|
> ${WRKDIR}/mailer.conf
|
|
|
|
|
2014-06-14 12:14:43 +02:00
|
|
|
INSTALLATION_DIRS+= ${PKGMANDIR}/man8 sbin share/examples/exim share/doc/exim
|
2009-02-13 16:28:03 +01:00
|
|
|
|
2005-05-17 19:06:11 +02:00
|
|
|
post-install:
|
2009-02-13 16:28:03 +01:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/mailer.conf ${DESTDIR}${EXAMPLESDIR}
|
2009-12-30 14:24:50 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/exim.8 \
|
|
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/exim.8
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/spec.txt \
|
|
|
|
${DESTDIR}${PREFIX}/share/doc/exim
|
2005-05-17 19:06:11 +02:00
|
|
|
|
2006-11-20 12:56:42 +01:00
|
|
|
.include "../../converters/libiconv/buildlink3.mk"
|
2009-11-17 07:39:32 +01:00
|
|
|
.include "../../devel/pcre/buildlink3.mk"
|
2005-05-17 19:06:11 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|