7935ac0388
* 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.
130 lines
3.8 KiB
Makefile
130 lines
3.8 KiB
Makefile
# $NetBSD: Makefile,v 1.102 2010/06/06 14:15:30 adam Exp $
|
|
|
|
DISTNAME= exim-4.72
|
|
CATEGORIES= mail net
|
|
MASTER_SITES= ftp://ftp.exim.org/pub/exim/exim4/ \
|
|
http://dl.ambiweb.de/mirrors/ftp.exim.org/exim/exim4/
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
MAINTAINER= abs@NetBSD.org
|
|
HOMEPAGE= http://www.exim.org/
|
|
COMMENT= The Exim mail transfer agent, a replacement for sendmail
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
CONFLICTS+= exim-exiscan-[0-9]*
|
|
|
|
USE_TOOLS+= perl:run
|
|
BUILD_DEFS+= VARBASE
|
|
|
|
MAKE_ENV+= SSLBASE=${SSLBASE:Q}
|
|
MAKE_ENV+= INST_CHOWN=${CHOWN:Q}
|
|
MAKE_FLAGS+= FULLECHO=''
|
|
MAKE_JOBS_SAFE= no
|
|
|
|
PKG_DESTDIR_SUPPORT = user-destdir
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
BUILD_DEFS+= EXIM_DB EXIM_MAX_INCLUDE_SIZE
|
|
|
|
PKG_GROUPS= ${EXIM_GROUP}
|
|
PKG_USERS= ${EXIM_USER}:${EXIM_GROUP}
|
|
|
|
PKG_GROUPS_VARS+= EXIM_GROUP
|
|
PKG_USERS_VARS+= EXIM_USER
|
|
|
|
PKG_GECOS.${EXIM_USER}= Exim mail server user
|
|
PKG_HOME.${EXIM_USER}= ${VARBASE}/mail
|
|
PKG_SHELL.${EXIM_USER}= ${NOLOGIN}
|
|
|
|
PKG_SYSCONFSUBDIR= exim
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/exim
|
|
CONF_FILES= ${EXAMPLESDIR}/aliases ${PKG_SYSCONFDIR}/aliases
|
|
CONF_FILES+= ${EXAMPLESDIR}/configure ${PKG_SYSCONFDIR}/configure
|
|
MESSAGE_SUBST+= EXAMPLESDIR="${EXAMPLESDIR}"
|
|
PLIST_SUBST+= DISTNAME=${DISTNAME}
|
|
|
|
RCD_SCRIPTS= exim
|
|
|
|
OWN_DIRS_PERMS= ${VARBASE}/log/exim ${EXIM_USER} ${EXIM_GROUP} 0750
|
|
OWN_DIRS_PERMS+= ${VARBASE}/spool/exim ${EXIM_USER} ${EXIM_GROUP} 0750
|
|
SPECIAL_PERMS+= sbin/${PKGSRC_EXIM_VERSION} ${SETUID_ROOT_PERMS}
|
|
|
|
# XXX: The following will be handled by buildlink3 at some point.
|
|
CFLAGS+= ${_STRIPFLAG_CC}
|
|
|
|
# pay attention to CPPFLAGS as well
|
|
CFLAGS+= ${CPPFLAGS}
|
|
|
|
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
|
|
|
|
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=.*,,'
|
|
|
|
INSTALL_ARG= INSTALL_ARG=-no_chown
|
|
INSTALL_ENV+= ${INSTALL_ARG:Q}
|
|
|
|
.include "options.mk"
|
|
|
|
post-extract:
|
|
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 \
|
|
${WRKSRC}/OS/
|
|
|
|
pre-configure:
|
|
sed -e 's:@PREFIX@:${PREFIX}:' \
|
|
-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}:' \
|
|
-e 's:@LOOKUP_LIBS@:${LOOKUP_LIBS}:' \
|
|
-e 's:@CHOWN@:${CHOWN}:' \
|
|
-e 's:@CHGRP@:${CHGRP}:' \
|
|
-e 's:@CHMOD@:${CHMOD}:' \
|
|
-e 's:@MV@:${MV}:' \
|
|
-e 's:@RM@:${RM}:' \
|
|
-e 's:@TOUCH@:${TOUCH}:' \
|
|
-e 's:@PERL5@:${PERL5}:' \
|
|
-e 's:@VARBASE@:${VARBASE}:' \
|
|
< ${WRKSRC}/Local/Makefile.pkgsrc \
|
|
> ${WRKSRC}/Local/Makefile
|
|
.for opt in ${LOCAL_MAKEFILE_OPTIONS}
|
|
${ECHO} ${opt} >> ${WRKSRC}/Local/Makefile
|
|
.endfor
|
|
.if !empty(EXIM_MAX_INCLUDE_SIZE)
|
|
${ECHO} MAX_INCLUDE_SIZE=${EXIM_MAX_INCLUDE_SIZE} >> ${WRKSRC}/Local/Makefile
|
|
.endif
|
|
sed -e 's:@PREFIX@:${PREFIX}:' \
|
|
-e 's:@PKG_SYSCONFDIR@:${PKG_SYSCONFDIR}:' \
|
|
< ${WRKSRC}/Local/eximon.conf.pkgsrc \
|
|
> ${WRKSRC}/Local/eximon.conf
|
|
|
|
post-build:
|
|
sed -e 's:@PREFIX@:${PREFIX}:' \
|
|
${FILESDIR}/mailer.conf.exim \
|
|
> ${WRKDIR}/mailer.conf
|
|
|
|
INSTALLATION_DIRS = ${PKGMANDIR}/man8 sbin share/examples/exim share/doc/exim
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKDIR}/mailer.conf ${DESTDIR}${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/exim.8 \
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/exim.8
|
|
${INSTALL_DATA} ${WRKSRC}/doc/spec.txt \
|
|
${DESTDIR}${PREFIX}/share/doc/exim
|
|
|
|
.include "../../converters/libiconv/buildlink3.mk"
|
|
.include "../../devel/pcre/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|