1996-07-06 13:13:58 +02:00
|
|
|
# New ports collection makefile for: exim
|
|
|
|
# Date created: 23 June 1996
|
1999-08-31 08:53:31 +02:00
|
|
|
# Whom: markm@FreeBSD.org
|
1996-07-06 13:13:58 +02:00
|
|
|
#
|
1999-08-25 08:51:17 +02:00
|
|
|
# $FreeBSD$
|
1996-07-06 13:13:58 +02:00
|
|
|
#
|
|
|
|
|
2000-04-13 22:01:08 +02:00
|
|
|
PORTNAME= exim
|
2005-03-02 22:50:48 +01:00
|
|
|
PORTVERSION?= ${EXIM_VERSION}
|
2006-12-21 14:43:58 +01:00
|
|
|
CATEGORIES= mail ipv6
|
2004-10-12 01:48:25 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_EXIM:S/$/:exim/}
|
|
|
|
MASTER_SITE_SUBDIR= exim4/:exim
|
2004-04-28 19:08:06 +02:00
|
|
|
DISTNAME= ${PORTNAME}-${EXIM_VERSION}
|
2007-03-23 11:38:58 +01:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:exim
|
2003-05-15 17:18:05 +02:00
|
|
|
DIST_SUBDIR= exim
|
2004-10-12 01:48:25 +02:00
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
2003-05-15 17:18:05 +02:00
|
|
|
|
2010-12-28 10:16:39 +01:00
|
|
|
MAINTAINER= rea@FreeBSD.org
|
2004-07-17 16:21:13 +02:00
|
|
|
COMMENT?= High performance MTA for Unix systems on the Internet
|
|
|
|
|
2009-10-21 21:59:15 +02:00
|
|
|
.include "Makefile.options"
|
|
|
|
|
|
|
|
USE_BZIP2= yes
|
2009-10-21 23:15:18 +02:00
|
|
|
WANT_GNOME= yes
|
2009-11-10 07:51:13 +01:00
|
|
|
WANT_PERL= yes
|
2009-11-19 23:07:43 +01:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2009-10-21 21:59:15 +02:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
2004-07-17 16:21:13 +02:00
|
|
|
|
2011-01-09 12:19:24 +01:00
|
|
|
.if defined(WITH_SA_EXIM)
|
2010-05-05 20:08:18 +02:00
|
|
|
.if defined(WITH_KAS)
|
|
|
|
IGNORE= You cannot select both SA_EXIM and KAS options
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_SO_1024)
|
|
|
|
IGNORE= You cannot select both SA_EXIM and SO_1024 options
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_KAS)
|
|
|
|
.if defined(WITH_SO_1024)
|
|
|
|
IGNORE= You cannot select both SA_KAS and SO_1024 options
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2004-10-12 01:48:25 +02:00
|
|
|
.if defined(WITH_SA_EXIM)
|
|
|
|
MASTER_SITES+= http://marc.merlins.org/linux/exim/files/:sa_exim \
|
2009-09-02 17:01:56 +02:00
|
|
|
SF/sa-exim/sa-exim/${SA_EXIM_VERSION}:sa_exim
|
2004-10-12 01:48:25 +02:00
|
|
|
MASTER_SITE_SUBDIR+= sa-exim/:sa_exim
|
|
|
|
DISTFILES+= sa-exim-${SA_EXIM_VERSION}.tar.gz:sa_exim
|
|
|
|
.endif
|
|
|
|
|
2010-05-05 20:08:18 +02:00
|
|
|
.if defined(WITH_SO_1024)
|
|
|
|
MASTER_SITES+= ftp://ftp.renatasystems.org/pub/FreeBSD/ports/distfiles/:so_1024
|
|
|
|
DISTFILES+= spamooborona1024-src-${SO_1024_VERSION}.tar.gz:so_1024
|
|
|
|
LDFLAGS+= -lz
|
|
|
|
PLIST_SUB+= SO_1024=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= SO_1024="@comment "
|
|
|
|
.endif
|
|
|
|
|
2011-01-09 12:19:24 +01:00
|
|
|
EXIM_VERSION= 4.73
|
2005-03-03 19:43:14 +01:00
|
|
|
SA_EXIM_VERSION=4.2
|
2010-05-05 20:08:18 +02:00
|
|
|
SO_1024_VERSION=3.2
|
2004-10-12 01:48:25 +02:00
|
|
|
|
2004-04-28 19:08:06 +02:00
|
|
|
.if !defined(EXIMON_ONLY)
|
2003-09-29 13:42:45 +02:00
|
|
|
.if defined(PKGNAMESUFFIX)
|
2004-04-28 19:08:06 +02:00
|
|
|
CONFLICTS+= ${PKGNAMEPREFIX}${PORTNAME}-4.*
|
2003-09-29 13:42:45 +02:00
|
|
|
.endif
|
2005-09-28 12:12:53 +02:00
|
|
|
.for suffix in -ldap2 -mysql -postgresql -sa-exim -sqlite
|
2003-09-29 13:42:45 +02:00
|
|
|
.if !defined(PKGNAMESUFFIX) || ${PKGNAMESUFFIX} != ${suffix}
|
2004-04-28 19:08:06 +02:00
|
|
|
CONFLICTS+= ${PKGNAMEPREFIX}${PORTNAME}${suffix}-4.*
|
2003-09-29 13:42:45 +02:00
|
|
|
.endif
|
|
|
|
.endfor
|
2004-04-28 19:08:06 +02:00
|
|
|
.if defined(WITH_EXIMON)
|
|
|
|
CONFLICTS+= ${PKGNAMEPREFIX}${PORTNAME}-monitor-4.*
|
|
|
|
.endif
|
|
|
|
.else
|
|
|
|
WITH_EXIMON= yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_EXIMON)
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_XORG= x11 xaw xt
|
2004-04-28 19:08:06 +02:00
|
|
|
.endif
|
2003-09-29 13:42:45 +02:00
|
|
|
|
2004-04-28 19:08:06 +02:00
|
|
|
.if !defined(EXIMON_ONLY)
|
2002-09-12 12:09:02 +02:00
|
|
|
MAN8= exim.8
|
2004-04-28 19:08:06 +02:00
|
|
|
.else
|
|
|
|
NO_INSTALL_MANPAGES= yes
|
|
|
|
.endif
|
2002-09-12 12:09:02 +02:00
|
|
|
|
2007-03-23 11:38:58 +01:00
|
|
|
PORTDOC_BASE= ACKNOWLEDGMENTS NOTICE README.UPDATING
|
2003-09-10 15:49:09 +02:00
|
|
|
PORTDOC_FILES= ChangeLog Exim3.upgrade Exim4.upgrade NewStuff \
|
|
|
|
OptionLists.txt README README.SIEVE dbm.discuss.txt \
|
2005-03-02 22:50:48 +01:00
|
|
|
experimental-spec.txt filter.txt pcrepattern.txt \
|
|
|
|
pcretest.txt spec.txt
|
2003-09-10 15:49:09 +02:00
|
|
|
|
2009-11-15 19:18:20 +01:00
|
|
|
PORT_EXAMPLES= convert4r3 convert4r4 transport-filter.pl
|
2003-09-29 13:42:45 +02:00
|
|
|
|
2003-09-10 15:49:09 +02:00
|
|
|
DAILY_SCRIPTS= 150.exim-tidydb 460.exim-mail-rejects
|
|
|
|
|
2004-01-12 11:56:41 +01:00
|
|
|
PKGINSTALL= ${WRKDIR}/pkg-install
|
|
|
|
|
2004-04-28 19:08:06 +02:00
|
|
|
.if defined(NOPORTDOCS) && !defined(EXIMON_ONLY)
|
2002-09-19 12:34:12 +02:00
|
|
|
PKGMESSAGE= ${WRKDIR}/POST-INSTALL-NOTES
|
2003-09-10 15:49:09 +02:00
|
|
|
.else
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
2002-06-18 11:43:05 +02:00
|
|
|
.endif
|
|
|
|
|
2005-04-06 16:08:31 +02:00
|
|
|
MAKE_ENV+= OSTYPE="${OPSYS}" ARCHTYPE="${ARCH}" DUMMY_LDFLAGS="${DUMMY_LDFLAGS}"
|
2004-04-28 19:08:06 +02:00
|
|
|
.if defined(EXIMON_ONLY)
|
|
|
|
MAKE_ENV+= INSTALL_ARG="eximon eximon.bin"
|
2004-10-17 14:05:20 +02:00
|
|
|
.elif defined(WITHOUT_SUID)
|
|
|
|
MAKE_ENV+= INSTALL_ARG="-no_chown"
|
2004-04-28 19:08:06 +02:00
|
|
|
.endif
|
2001-07-10 12:47:29 +02:00
|
|
|
|
2004-01-12 11:56:41 +01:00
|
|
|
EXIM_USER?= mailnull
|
|
|
|
EXIM_GROUP?= mail
|
|
|
|
|
2004-06-07 12:53:11 +02:00
|
|
|
LOGDIR?= /var/log/exim
|
|
|
|
LOG_FILE_PATH?= ${LOGDIR}/%slog
|
|
|
|
|
2004-04-28 19:08:06 +02:00
|
|
|
SED_SCRIPT= -e 's,%%PREFIX%%,${PREFIX},g' \
|
|
|
|
-e 's,%%DOCSDIR%%,${DOCSDIR},g' \
|
|
|
|
-e 's,%%EXAMPLESDIR%%,${EXAMPLESDIR},g' \
|
|
|
|
-e 's,%%EXIM_USER%%,${EXIM_USER},g' \
|
2004-06-07 12:53:11 +02:00
|
|
|
-e 's,%%EXIM_GROUP%%,${EXIM_GROUP},g' \
|
|
|
|
-e 's,%%LOGDIR%%,${LOGDIR},g'
|
2004-04-28 19:08:06 +02:00
|
|
|
|
2010-05-05 20:08:18 +02:00
|
|
|
PLIST_SUB+= EXIM_VERSION="${EXIM_VERSION}-${PORTREVISION}" \
|
2004-04-28 19:08:06 +02:00
|
|
|
EXIM_USER=${EXIM_USER} \
|
2004-10-12 01:48:25 +02:00
|
|
|
EXIM_GROUP=${EXIM_GROUP} \
|
|
|
|
LOGDIR="${LOGDIR}"
|
2004-04-28 19:08:06 +02:00
|
|
|
|
2004-10-24 03:34:36 +02:00
|
|
|
# Exim refuses to run local deliveries as root by default. You can
|
|
|
|
# add other users to this colon-separated list that cannot be
|
|
|
|
# overridden at runtime below, but are advised not to remove "root".
|
|
|
|
#WITH_FIXED_NEVER_USERS= root:daemon:bin
|
|
|
|
|
2003-09-29 13:42:45 +02:00
|
|
|
# When Exim is decoding MIME "words" in header lines it converts any foreign
|
|
|
|
# character sets to the one that is set in the headers_charset option.
|
|
|
|
# The default setting is defined by this setting:
|
|
|
|
WITH_DEFAULT_CHARSET?= ISO-8859-1
|
2002-09-12 12:09:02 +02:00
|
|
|
|
2009-11-15 19:18:20 +01:00
|
|
|
# You should not need to fiddle with anything below this point.
|
|
|
|
|
|
|
|
LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre
|
|
|
|
|
|
|
|
.if defined(WITH_DCC)
|
|
|
|
SEDLIST+= -e 's,^\# (EXPERIMENTAL_DCC=),\1,'
|
|
|
|
.endif
|
|
|
|
|
2009-10-21 21:59:15 +02:00
|
|
|
.if defined(WITH_XCLIENT)
|
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-xclient
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_KAS)
|
|
|
|
BUILD_DEPENDS+= libspamtest>=0:${PORTSDIR}/mail/libspamtest
|
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-kas
|
|
|
|
.endif
|
|
|
|
|
2003-06-18 05:26:24 +02:00
|
|
|
.if defined(WITH_WISHLIST)
|
|
|
|
EXTRA_PATCHES+= `${FIND} ${PATCHDIR} -name 'wishlist-*.patch'`
|
|
|
|
.endif
|
|
|
|
|
2004-10-17 14:05:20 +02:00
|
|
|
SEDLIST+= -e 's,XX_CFLAGS_XX,${CFLAGS},' \
|
|
|
|
-e 's,XX_PREFIX_XX,${PREFIX},' \
|
2003-09-29 13:42:45 +02:00
|
|
|
-e 's,XX_LOCALBASE_XX,${LOCALBASE},' \
|
2004-06-07 12:53:11 +02:00
|
|
|
-e 's,XX_LOG_FILE_PATH_XX,${LOG_FILE_PATH},' \
|
2004-10-17 14:05:20 +02:00
|
|
|
-e 's,XX_EXIM_USER_XX,${EXIM_USER},' \
|
|
|
|
-e 's,XX_EXIM_GROUP_XX,${EXIM_GROUP},' \
|
2003-09-29 13:42:45 +02:00
|
|
|
-e 's,XX_DEFAULT_CHARSET_XX,${WITH_DEFAULT_CHARSET},'
|
2000-05-23 11:23:45 +02:00
|
|
|
|
2004-10-24 03:34:36 +02:00
|
|
|
.if defined(WITH_FIXED_NEVER_USERS)
|
|
|
|
SEDLIST+= -e 's,^(FIXED_NEVER_USERS=).*,\1${WITH_FIXED_NEVER_USERS},'
|
|
|
|
.endif
|
|
|
|
|
2004-04-28 19:08:06 +02:00
|
|
|
.if defined(WITH_EXIMON)
|
2004-10-12 01:48:25 +02:00
|
|
|
SEDLIST+= -e 's,^\# (EXIM_MONITOR=),\1,'
|
2004-04-28 19:08:06 +02:00
|
|
|
PLIST_SUB+= EXIMON=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= EXIMON="@comment "
|
|
|
|
.endif
|
|
|
|
|
2001-06-11 09:20:07 +02:00
|
|
|
.if !defined(WITHOUT_TLS)
|
2009-10-21 21:59:15 +02:00
|
|
|
.include "${PORTSDIR}/Mk/bsd.openssl.mk"
|
2004-10-17 14:05:20 +02:00
|
|
|
SEDLIST+= -e 's,^\# (SUPPORT_TLS=),\1,'
|
2001-06-11 09:53:55 +02:00
|
|
|
.else
|
2004-10-12 01:48:25 +02:00
|
|
|
SEDLIST+= -e 's,^(TLS_LIBS=),\# \1,'
|
2000-12-21 09:56:52 +01:00
|
|
|
.endif
|
|
|
|
|
2009-10-21 21:59:15 +02:00
|
|
|
.if !defined(WITHOUT_EMBEDDED_PERL)
|
2004-10-17 14:05:20 +02:00
|
|
|
USE_PERL5= yes
|
2004-10-12 01:48:25 +02:00
|
|
|
SEDLIST+= -e 's,^\# (EXIM_PERL=),\1,'
|
1999-08-03 19:01:39 +02:00
|
|
|
.endif
|
|
|
|
|
2001-06-11 09:20:07 +02:00
|
|
|
.if defined(WITH_TCP_WRAPPERS)
|
2001-06-10 15:59:43 +02:00
|
|
|
SEDLIST+= -e 's,XX_TCP_WRAPPERS_LIBS_XX,-lwrap,' \
|
2004-10-12 01:48:25 +02:00
|
|
|
-e 's,^\# (USE_TCP_WRAPPERS=),\1,'
|
2001-06-11 09:21:46 +02:00
|
|
|
.else
|
2001-06-11 09:22:50 +02:00
|
|
|
SEDLIST+= -e 's,XX_TCP_WRAPPERS_LIBS_XX,,'
|
2001-06-10 15:59:43 +02:00
|
|
|
.endif
|
|
|
|
|
2004-10-17 14:05:20 +02:00
|
|
|
.if !defined(WITHOUT_ICONV)
|
|
|
|
USE_ICONV= yes
|
|
|
|
SEDLIST+= -e 's,XX_ICONV_LIBS_XX,-L${LOCALBASE}/lib -liconv,' \
|
|
|
|
-e 's,^\# (HAVE_ICONV=),\1,'
|
|
|
|
.else
|
|
|
|
SEDLIST+= -e 's,XX_ICONV_LIBS_XX,,'
|
|
|
|
.endif
|
|
|
|
|
2003-09-29 13:42:45 +02:00
|
|
|
.if defined(WITH_LDAP) || defined(LDAP_LIB_TYPE) \
|
|
|
|
|| defined(WITH_OPENLDAP1) || defined(WITH_OPENLDAP2) \
|
|
|
|
|| defined(WITH_OPENLDAP20) || defined(WITH_OPENLDAP21)
|
2006-03-26 00:12:18 +01:00
|
|
|
BROKEN= deprecated LDAP option defined, use WITH_OPENLDAP or WITH_OPENLDAP_VER
|
2003-03-31 11:27:08 +02:00
|
|
|
.endif
|
|
|
|
|
2004-07-17 16:21:13 +02:00
|
|
|
.if defined(WITH_OPENLDAP_VER) && ${WITH_OPENLDAP_VER:L} != "auto"
|
2003-09-29 13:42:45 +02:00
|
|
|
WANT_OPENLDAP_VER= ${WITH_OPENLDAP_VER}
|
2003-03-31 11:27:08 +02:00
|
|
|
.endif
|
|
|
|
|
2003-09-29 13:42:45 +02:00
|
|
|
.if defined(WITH_OPENLDAP)
|
|
|
|
USE_OPENLDAP= yes
|
|
|
|
LDAP_LIB_TYPE= OPENLDAP2
|
2001-08-27 15:23:52 +02:00
|
|
|
SEDLIST+= -e 's,XX_LDAP_LIBS_XX,-L${LOCALBASE}/lib -llber -lldap,' \
|
|
|
|
-e 's,XX_LDAP_INCLUDE_XX,-I${LOCALBASE}/include,' \
|
2000-04-04 13:51:19 +02:00
|
|
|
-e 's,XX_LDAP_TYPE_XX,${LDAP_LIB_TYPE},' \
|
2004-10-12 01:48:25 +02:00
|
|
|
-e 's,^\# (LOOKUP_LDAP=),\1,'
|
2000-04-04 13:51:19 +02:00
|
|
|
.else
|
|
|
|
SEDLIST+= -e 's,XX_LDAP_[^ ]*_XX,,' \
|
2004-10-12 01:48:25 +02:00
|
|
|
-e 's,^(LDAP_LIB_TYPE=),\# \1,'
|
2000-04-04 13:51:19 +02:00
|
|
|
.endif
|
|
|
|
|
2003-09-29 13:42:45 +02:00
|
|
|
.if defined(DB_LIB_VERSION)
|
2006-03-26 00:12:18 +01:00
|
|
|
BROKEN= deprecated option DB_LIB_VERSION used, use WITH_BDB_VER
|
2003-09-29 13:42:45 +02:00
|
|
|
.endif
|
|
|
|
|
2007-08-12 16:54:54 +02:00
|
|
|
.if defined(WITH_BDB_VER)
|
|
|
|
.if ${WITH_BDB_VER} > 1
|
|
|
|
WITH_BDB= yes
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_BDB)
|
2007-08-12 16:58:23 +02:00
|
|
|
USE_BDB= yes
|
2007-08-12 16:54:54 +02:00
|
|
|
INVALID_BDB_VER= 2 3
|
|
|
|
DB_LIBS= -L${BDB_LIB_DIR} -l${BDB_LIB_NAME}
|
|
|
|
DB_INCLUDES= -I${BDB_INCLUDE_DIR}
|
|
|
|
.else
|
2002-09-12 12:09:02 +02:00
|
|
|
DB_LIBS=
|
2003-03-07 10:39:52 +01:00
|
|
|
DB_INCLUDES=
|
2004-10-12 01:48:25 +02:00
|
|
|
SEDLIST+= -e 's,^(DBMLIB=),\# \1,'
|
2002-09-12 12:09:02 +02:00
|
|
|
.endif
|
2003-03-07 10:39:52 +01:00
|
|
|
SEDLIST+= -e 's,XX_DB_LIBS_XX,${DB_LIBS},' \
|
|
|
|
-e 's,XX_DB_INCLUDES_XX,${DB_INCLUDES},'
|
2002-09-12 12:09:02 +02:00
|
|
|
|
2004-07-17 16:21:13 +02:00
|
|
|
.if defined(WITH_MYSQL_VER) && ${WITH_MYSQL_VER:L} != "auto"
|
2003-09-29 13:42:45 +02:00
|
|
|
WANT_MYSQL_VER= ${WITH_MYSQL_VER}
|
2004-08-20 08:53:11 +02:00
|
|
|
.else
|
|
|
|
.undef WITH_MYSQL_VER
|
2003-09-29 13:42:45 +02:00
|
|
|
.endif
|
|
|
|
|
2000-04-17 02:19:02 +02:00
|
|
|
.if defined(WITH_MYSQL)
|
2003-09-29 13:42:45 +02:00
|
|
|
USE_MYSQL= yes
|
2001-08-27 15:23:52 +02:00
|
|
|
SEDLIST+= -e 's,XX_MYSQL_LIBS_XX,-L${LOCALBASE}/lib/mysql -lmysqlclient,' \
|
|
|
|
-e 's,XX_MYSQL_INCLUDE_XX,-I${LOCALBASE}/include/mysql,' \
|
2004-10-12 01:48:25 +02:00
|
|
|
-e 's,^\# (LOOKUP_MYSQL=),\1,'
|
1999-08-03 19:01:39 +02:00
|
|
|
.else
|
|
|
|
SEDLIST+= -e 's,XX_MYSQL_[^ ]*_XX,,'
|
|
|
|
.endif
|
|
|
|
|
2003-08-24 12:26:41 +02:00
|
|
|
.if defined(WITH_SASLAUTHD)
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/sbin/saslauthd:${PORTSDIR}/security/cyrus-sasl2-saslauthd
|
2005-12-27 23:40:25 +01:00
|
|
|
SASLAUTHD_SOCKET?= /var/run/saslauthd/mux
|
|
|
|
SEDLIST+= -e 's,^\# (CYRUS_SASLAUTHD_SOCKET=).*,\1${SASLAUTHD_SOCKET},'
|
2003-08-24 12:26:41 +02:00
|
|
|
.endif
|
|
|
|
|
2001-06-11 09:20:07 +02:00
|
|
|
.if !defined(WITHOUT_PAM)
|
2001-06-10 15:43:50 +02:00
|
|
|
SEDLIST+= -e 's,XX_PAM_LIBS_XX,-lpam,' \
|
2004-10-12 01:48:25 +02:00
|
|
|
-e 's,^\# (SUPPORT_PAM=),\1,'
|
2000-05-23 11:23:45 +02:00
|
|
|
.else
|
2001-06-10 15:43:50 +02:00
|
|
|
SEDLIST+= -e 's,XX_PAM_LIBS_XX,,'
|
2000-01-28 16:57:48 +01:00
|
|
|
.endif
|
|
|
|
|
2001-06-11 09:20:07 +02:00
|
|
|
.if !defined(WITHOUT_AUTH_CRAM_MD5)
|
2004-10-12 01:48:25 +02:00
|
|
|
SEDLIST+= -e 's,^\# (AUTH_CRAM_MD5=),\1,'
|
2000-01-28 16:57:48 +01:00
|
|
|
.endif
|
|
|
|
|
2001-06-11 09:20:07 +02:00
|
|
|
.if !defined(WITHOUT_AUTH_PLAINTEXT)
|
2004-10-12 01:48:25 +02:00
|
|
|
SEDLIST+= -e 's,^\# (AUTH_PLAINTEXT=),\1,'
|
2000-05-23 11:23:45 +02:00
|
|
|
.endif
|
|
|
|
|
2007-05-31 08:48:14 +02:00
|
|
|
.if !defined(WITHOUT_AUTH_DOVECOT)
|
2007-05-28 22:52:13 +02:00
|
|
|
SEDLIST+= -e 's,^\# (AUTH_DOVECOT=),\1,'
|
|
|
|
.endif
|
|
|
|
|
2003-05-21 14:57:33 +02:00
|
|
|
.if !defined(WITHOUT_AUTH_SPA)
|
2004-10-12 01:48:25 +02:00
|
|
|
SEDLIST+= -e 's,^\# (AUTH_SPA=),\1,'
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_AUTH_SASL)
|
2009-11-15 19:18:20 +01:00
|
|
|
LIB_DEPENDS+= sasl2.2:${PORTSDIR}/security/cyrus-sasl2
|
2004-10-12 01:48:25 +02:00
|
|
|
SEDLIST+= -e 's,^\# (AUTH_CYRUS_SASL=),\1,' \
|
|
|
|
-e 's,^\# (AUTH_LIBS=),\1,'
|
2003-05-21 14:57:33 +02:00
|
|
|
.endif
|
|
|
|
|
2004-06-07 12:53:11 +02:00
|
|
|
.if defined(WITH_AUTH_RADIUS)
|
2004-10-12 01:48:25 +02:00
|
|
|
WITH_RADIUS_TYPE?= RADLIB
|
|
|
|
.if ${WITH_RADIUS_TYPE:L} == radlib
|
|
|
|
SEDLIST+= -e 's,XX_RADIUS_LIBS_XX,-lradius,' \
|
|
|
|
-e 's,^\# (RADIUS_CONFIG_FILE=).*,\1/etc/radius.conf,' \
|
|
|
|
-e 's,^\# (RADIUS_LIB_TYPE=).*,\1RADLIB,'
|
|
|
|
.elif ${WITH_RADIUS_TYPE:L} == radiusclient
|
2007-08-21 20:21:26 +02:00
|
|
|
LIB_DEPENDS+= radiusclient-ng.2:${PORTSDIR}/net/radiusclient
|
|
|
|
SEDLIST+= -e 's,XX_RADIUS_LIBS_XX,-L${LOCALBASE}/lib -lradiusclient-ng,' \
|
2007-08-21 20:24:25 +02:00
|
|
|
-e 's,^\# (RADIUS_CONFIG_FILE=).*,\1${LOCALBASE}/etc/radiusclient-ng/radiusclient.conf,' \
|
2007-08-21 20:21:26 +02:00
|
|
|
-e 's,^\# (RADIUS_LIB_TYPE=).*,\1RADIUSCLIENTNEW,'
|
2004-10-12 01:48:25 +02:00
|
|
|
.else
|
2006-03-26 00:12:18 +01:00
|
|
|
IGNORE= the variable WITH_RADIUS_TYPE must be either RADLIB or RADIUSCLIENT
|
2004-10-12 01:48:25 +02:00
|
|
|
.endif
|
2004-06-07 12:53:11 +02:00
|
|
|
.else
|
|
|
|
SEDLIST+= -e 's,XX_RADIUS_LIBS_XX,,'
|
|
|
|
.endif
|
|
|
|
|
2000-05-23 11:23:45 +02:00
|
|
|
.if defined(WITH_PGSQL)
|
2005-01-31 01:35:55 +01:00
|
|
|
USE_PGSQL= yes
|
2001-08-27 15:23:52 +02:00
|
|
|
SEDLIST+= -e 's,XX_PGSQL_LIBS_XX,-L${LOCALBASE}/lib -lpq,' \
|
|
|
|
-e 's,XX_PGSQL_INCLUDE_XX,-I${LOCALBASE}/include/pgsql,' \
|
2004-10-12 01:48:25 +02:00
|
|
|
-e 's,^\# (LOOKUP_PGSQL=),\1,'
|
2000-05-23 11:23:45 +02:00
|
|
|
.else
|
|
|
|
SEDLIST+= -e 's,XX_PGSQL_[^ ]*_XX,,'
|
|
|
|
.endif
|
|
|
|
|
2003-03-31 11:27:08 +02:00
|
|
|
.if !defined(WITH_PGSQL) && !defined(WITH_MYSQL) && !defined(LDAP_LIB_TYPE) && \
|
2007-08-12 16:54:54 +02:00
|
|
|
!defined(WITH_BDB)
|
2004-10-12 01:48:25 +02:00
|
|
|
SEDLIST+= -e 's,^(LOOKUP_LIBS=),\# \1,' \
|
|
|
|
-e 's,^(LOOKUP_INCLUDE=),\# \1,'
|
2000-01-28 16:57:48 +01:00
|
|
|
.endif
|
|
|
|
|
2009-12-03 13:07:06 +01:00
|
|
|
.if !defined(WITH_DNSDB)
|
|
|
|
SEDLIST+= -e 's,^(LOOKUP_DNSDB=),\# \1,'
|
2003-09-29 13:42:45 +02:00
|
|
|
.endif
|
|
|
|
|
2001-06-11 09:20:07 +02:00
|
|
|
.if !defined(WITHOUT_MAILDIR)
|
2004-10-12 01:48:25 +02:00
|
|
|
SEDLIST+= -e 's,^\# (SUPPORT_MAILDIR=),\1,'
|
2000-02-19 18:18:27 +01:00
|
|
|
.endif
|
|
|
|
|
2001-06-11 11:40:24 +02:00
|
|
|
.if !defined(WITHOUT_MAILSTORE)
|
2004-10-12 01:48:25 +02:00
|
|
|
SEDLIST+= -e 's,^\# (SUPPORT_MAILSTORE=),\1,'
|
2000-02-19 18:18:27 +01:00
|
|
|
.endif
|
|
|
|
|
2001-06-11 11:40:24 +02:00
|
|
|
.if !defined(WITHOUT_MBX)
|
2004-10-12 01:48:25 +02:00
|
|
|
SEDLIST+= -e 's,^\# (SUPPORT_MBX=),\1,'
|
2000-02-19 18:18:27 +01:00
|
|
|
.endif
|
|
|
|
|
2001-06-11 11:40:24 +02:00
|
|
|
.if !defined(WITHOUT_CDB)
|
2004-10-12 01:48:25 +02:00
|
|
|
SEDLIST+= -e 's,^\# (LOOKUP_CDB=),\1,'
|
2001-06-11 11:40:24 +02:00
|
|
|
.endif
|
|
|
|
|
2002-10-05 14:18:29 +02:00
|
|
|
.if !defined(WITHOUT_DSEARCH)
|
2004-10-12 01:48:25 +02:00
|
|
|
SEDLIST+= -e 's,^\# (LOOKUP_DSEARCH=),\1,'
|
2002-10-05 14:18:29 +02:00
|
|
|
.endif
|
|
|
|
|
2004-04-28 19:08:06 +02:00
|
|
|
.if defined(WITHOUT_LSEARCH)
|
2004-10-12 01:48:25 +02:00
|
|
|
SEDLIST+= -e 's,^(LOOKUP_LSEARCH=),\# \1,'
|
2003-06-13 15:20:56 +02:00
|
|
|
.endif
|
|
|
|
|
2002-10-05 14:18:29 +02:00
|
|
|
.if !defined(WITHOUT_NIS)
|
2004-10-12 01:48:25 +02:00
|
|
|
SEDLIST+= -e 's,^\# (LOOKUP_NIS=),\1,'
|
2002-10-05 14:18:29 +02:00
|
|
|
.endif
|
|
|
|
|
2004-02-18 09:48:00 +01:00
|
|
|
.if !defined(WITHOUT_PASSWD)
|
2004-10-12 01:48:25 +02:00
|
|
|
SEDLIST+= -e 's,^\# (LOOKUP_PASSWD=),\1,'
|
2004-02-18 09:48:00 +01:00
|
|
|
.endif
|
|
|
|
|
2005-09-28 12:12:53 +02:00
|
|
|
.if defined(WITH_SQLITE)
|
2007-08-12 16:54:54 +02:00
|
|
|
USE_SQLITE= yes
|
2008-04-07 04:11:43 +02:00
|
|
|
USE_GNOME= pkgconfig
|
|
|
|
SEDLIST+= -e 's,XX_SQLITE_LIBS_XX,`pkg-config --static --libs sqlite3`,' \
|
|
|
|
-e 's,XX_SQLITE_FLAGS_XX,`pkg-config --cflags sqlite3`,' \
|
2005-09-28 12:12:53 +02:00
|
|
|
-e 's,^\# (LOOKUP_SQLITE=),\1,'
|
|
|
|
.else
|
|
|
|
SEDLIST+= -e 's,XX_SQLITE_LIBS_XX,,' \
|
|
|
|
-e 's,XX_SQLITE_FLAGS_XX,,'
|
|
|
|
.endif
|
|
|
|
|
2002-01-28 14:46:25 +01:00
|
|
|
.if !defined(WITHOUT_LMTP)
|
2004-10-12 01:48:25 +02:00
|
|
|
SEDLIST+= -e 's,^\# (TRANSPORT_LMTP=),\1,'
|
2002-01-28 14:46:25 +01:00
|
|
|
.endif
|
|
|
|
|
2003-09-29 13:42:45 +02:00
|
|
|
.if defined(WITHOUT_ALT_CONFIG_PREFIX)
|
2004-10-12 01:48:25 +02:00
|
|
|
SEDLIST+= -e 's,^(ALT_CONFIG_PREFIX=),\# \1,'
|
2003-09-29 13:42:45 +02:00
|
|
|
.endif
|
|
|
|
|
2005-03-02 22:50:48 +01:00
|
|
|
.if defined(WITH_SPF)
|
2008-10-29 13:50:04 +01:00
|
|
|
LIB_DEPENDS+= spf2.3:${PORTSDIR}/mail/libspf2
|
2004-08-19 11:52:22 +02:00
|
|
|
SEDLIST+= -e 's,XX_SPF_FLAGS_XX,-DSPF,' \
|
2005-09-11 23:40:21 +02:00
|
|
|
-e 's,XX_SPF_LIBS_XX,-lspf2 ${PTHREAD_LIBS},' \
|
2005-03-07 20:20:21 +01:00
|
|
|
-e 's,^\# (EXPERIMENTAL_SPF=),\1,'
|
2004-05-26 12:46:37 +02:00
|
|
|
.else
|
2004-08-19 11:52:22 +02:00
|
|
|
SEDLIST+= -e 's,XX_SPF_FLAGS_XX,,' \
|
|
|
|
-e 's,XX_SPF_LIBS_XX,,'
|
2004-05-26 12:46:37 +02:00
|
|
|
.endif
|
|
|
|
|
2005-03-02 22:50:48 +01:00
|
|
|
.if defined(WITH_SRS)
|
2004-07-17 16:21:13 +02:00
|
|
|
LIB_DEPENDS+= srs2.0:${PORTSDIR}/mail/libsrs2
|
2004-08-19 11:52:22 +02:00
|
|
|
SEDLIST+= -e 's,XX_SRS_FLAGS_XX,-DSRS,' \
|
|
|
|
-e 's,XX_SRS_LIBS_XX,-lsrs2,'
|
2006-03-26 00:12:18 +01:00
|
|
|
.elif defined(WITH_SRS_ALT)
|
|
|
|
LIB_DEPENDS+= srs_alt.1:${PORTSDIR}/mail/libsrs_alt
|
|
|
|
SEDLIST+= -e 's,XX_SRS_FLAGS_XX,-DEXPERIMENTAL_SRS,' \
|
|
|
|
-e 's,XX_SRS_LIBS_XX,-lsrs_alt,'
|
2004-07-17 16:21:13 +02:00
|
|
|
.else
|
2004-08-19 11:52:22 +02:00
|
|
|
SEDLIST+= -e 's,XX_SRS_FLAGS_XX,,' \
|
|
|
|
-e 's,XX_SRS_LIBS_XX,,'
|
2004-07-17 16:21:13 +02:00
|
|
|
.endif
|
|
|
|
|
2004-10-12 01:48:25 +02:00
|
|
|
.if defined(WITH_SA_EXIM)
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/bin/spamc:${PORTSDIR}/mail/p5-Mail-SpamAssassin
|
|
|
|
PLIST_SUB+= SA_EXIM=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= SA_EXIM="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_READLINE)
|
|
|
|
SEDLIST+= -e 's,^\# (USE_READLINE=),\1,'
|
|
|
|
.endif
|
|
|
|
|
2005-03-02 22:50:48 +01:00
|
|
|
.if defined(WITH_CONTENT_SCAN)
|
|
|
|
SEDLIST+= -e 's,^\# (WITH_CONTENT_SCAN=),\1,'
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_OLD_DEMIME)
|
|
|
|
SEDLIST+= -e 's,^\# (WITH_OLD_DEMIME=),\1,'
|
|
|
|
.endif
|
|
|
|
|
2004-10-17 14:05:20 +02:00
|
|
|
.if !defined(EXIMON_ONLY) && !defined(WITHOUT_DAEMON)
|
2007-05-28 22:52:13 +02:00
|
|
|
USE_RC_SUBR= exim.sh
|
2004-10-17 14:05:20 +02:00
|
|
|
PLIST_SUB+= DAEMON=""
|
2007-05-28 22:52:13 +02:00
|
|
|
SUB_LIST+= LOGDIR="${LOGDIR}"
|
2004-10-17 14:05:20 +02:00
|
|
|
.else
|
|
|
|
PLIST_SUB+= DAEMON="@comment "
|
2004-04-28 19:08:06 +02:00
|
|
|
.endif
|
2003-09-29 13:42:45 +02:00
|
|
|
|
2007-05-28 22:52:13 +02:00
|
|
|
.if defined(EXIMON_ONLY) && ${MASTERDIR} == ${PKGDIR}
|
|
|
|
.error EXIMON_ONLY is not user settable
|
|
|
|
.endif
|
|
|
|
|
2003-09-29 13:42:45 +02:00
|
|
|
.if !defined(WITHOUT_IPV6)
|
2004-10-12 01:48:25 +02:00
|
|
|
SEDLIST+= -e 's,^\# (HAVE_IPV6=),\1,'
|
2003-09-29 13:42:45 +02:00
|
|
|
.endif
|
|
|
|
|
2011-01-09 12:19:24 +01:00
|
|
|
.if defined(WITH_DISABLE_D_OPT)
|
|
|
|
SEDLIST+= -e 's,^\# (DISABLE_D_OPTION=),\1,'
|
|
|
|
.else
|
|
|
|
.if defined(WHITELIST_D_MACROS)
|
2011-01-10 11:53:13 +01:00
|
|
|
SEDLIST+= -e 's,^\# (WHITELIST_D_MACROS=).*$$,\1${WHITELIST_D_MACROS:S/,/\\,/g},'
|
2011-01-09 12:19:24 +01:00
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(TRUSTED_CONFIG_LIST)
|
2011-01-10 11:53:13 +01:00
|
|
|
SEDLIST+= -e 's,^\# (TRUSTED_CONFIG_LIST=).*$$,\1${TRUSTED_CONFIG_LIST:S/,/\\,/g},'
|
2011-01-09 12:19:24 +01:00
|
|
|
.endif
|
|
|
|
|
2005-04-06 16:08:31 +02:00
|
|
|
DUMMY_LDFLAGS!= ${ECHO_CMD} ${LDFLAGS} | ${SED} -e 's|-Wl,-rpath|-Wl,-DUMMYrpath|g; s|-rpath|-Wl,-rpath|g; s|-DUMMYrpath|-rpath|g'
|
|
|
|
|
2003-06-18 05:26:24 +02:00
|
|
|
pre-everything::
|
2011-01-09 12:19:24 +01:00
|
|
|
@${ECHO} 'Exim now drops privileges when alternate configuration'
|
|
|
|
@${ECHO} 'files are used. You can set make variable TRUSTED_CONFIG_LIST'
|
|
|
|
@${ECHO} 'to specify the list of configuration files for which'
|
|
|
|
@${ECHO} 'root privileges will be retained.'
|
|
|
|
@${ECHO} ''
|
|
|
|
@${ECHO} 'You can whitelist some macros using the make variable'
|
|
|
|
@${ECHO} 'WHITELIST_D_MACROS. This is useful if you are running'
|
|
|
|
@${ECHO} 'with DISABLE_D_OPT set, but macros whitelisting will be'
|
|
|
|
@${ECHO} 'removed in some future Exim release, so it is better'
|
|
|
|
@${ECHO} 'to use TRUSTED_CONFIG_LIST to set the list of trusted'
|
|
|
|
@${ECHO} 'configuration files.'
|
2003-06-18 05:26:24 +02:00
|
|
|
.if empty(.MAKEFLAGS:M-s) && defined(WITH_WISHLIST)
|
|
|
|
@${ECHO} ''
|
|
|
|
@${ECHO} 'Included extra patches:'
|
|
|
|
@${FIND} ${PATCHDIR} -name 'wishlist-*.patch' \
|
|
|
|
-exec ${SED} -ne 's,^# , ,p' {} \;
|
|
|
|
@${ECHO} ''
|
|
|
|
.endif
|
|
|
|
|
2004-10-12 01:48:25 +02:00
|
|
|
post-extract:
|
|
|
|
.if defined(WITH_SA_EXIM)
|
|
|
|
@cd ${WRKDIR} && ${GZIP_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/sa-exim-${SA_EXIM_VERSION}.tar.gz ${EXTRACT_AFTER_ARGS}
|
|
|
|
.endif
|
2010-05-05 20:08:18 +02:00
|
|
|
.if defined(WITH_SO_1024)
|
|
|
|
@cd ${WRKDIR} && ${GZIP_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/spamooborona1024-src-${SO_1024_VERSION}.tar.gz ${EXTRACT_AFTER_ARGS}
|
|
|
|
.endif
|
2004-10-12 01:48:25 +02:00
|
|
|
|
2003-09-10 15:49:09 +02:00
|
|
|
do-configure:
|
2003-09-29 13:42:45 +02:00
|
|
|
@${MKDIR} ${WRKSRC}/Local
|
2004-10-12 01:48:25 +02:00
|
|
|
@${SED} -E ${SEDLIST} ${WRKSRC}/src/EDITME > ${WRKSRC}/Local/Makefile
|
2004-04-28 19:08:06 +02:00
|
|
|
.if defined(WITH_EXIMON)
|
|
|
|
@${CP} ${WRKSRC}/exim_monitor/EDITME ${WRKSRC}/Local/eximon.conf
|
|
|
|
.endif
|
|
|
|
@[ ! -f ${PKGDIR}/pkg-install ] || ${SED} ${SED_SCRIPT} ${PKGDIR}/pkg-install > ${PKGINSTALL}
|
2004-10-12 01:48:25 +02:00
|
|
|
@${REINPLACE_CMD} -E ${SEDLIST} ${WRKSRC}/src/configure.default
|
2010-09-07 04:05:29 +02:00
|
|
|
@${REINPLACE_CMD} -e 's!$$(LDFLAGS)!$$(DUMMY_LDFLAGS) -L$${LOCALBASE}/lib!' ${WRKSRC}/OS/Makefile-Base
|
2004-05-28 18:29:48 +02:00
|
|
|
@${REINPLACE_CMD} -e 's/"(Exim $$version_number)\\n\\t"/"(Exim $$version_number (${OPSYS}))\\n\\t"/' \
|
2003-09-29 13:42:45 +02:00
|
|
|
${WRKSRC}/src/globals.c
|
2004-10-12 01:48:25 +02:00
|
|
|
@${REINPLACE_CMD} -e 's/Exim version %s \(#%s \)\{0,1\}/&(${OPSYS} ${OSREL}) /' ${WRKSRC}/src/exim.c
|
2003-09-29 13:42:45 +02:00
|
|
|
@${REINPLACE_CMD} -e 's/^#include "cnumber\.h"$$/${PORTREVISION}/' ${WRKSRC}/src/version.c
|
2004-10-12 01:48:25 +02:00
|
|
|
@${REINPLACE_CMD} -E -e 's/^(PERL_COMMAND=).*/\1${PERL:S,/,\/,g}/' \
|
|
|
|
-e 's/^(CC=).*/\1${CC:S,/,\/,g}/' ${WRKSRC}/OS/Makefile-Default
|
|
|
|
.if defined(WITH_SA_EXIM)
|
|
|
|
@${REINPLACE_CMD} -E -e 's/^(LOCAL_SCAN_SOURCE=).*/\1Local\/sa-exim.c/' \
|
|
|
|
${WRKSRC}/OS/Makefile-Default
|
|
|
|
@${CP} ${WRKDIR}/sa-exim-${SA_EXIM_VERSION}/sa-exim.c ${WRKSRC}/Local
|
|
|
|
@{ \
|
|
|
|
${ECHO_CMD} "char *version=\"${SA_EXIM_VERSION}\";"; \
|
|
|
|
${ECHO_CMD} "#define SPAMC_LOCATION \"${LOCALBASE}/bin/spamc\""; \
|
|
|
|
${ECHO_CMD} "#define SPAMASSASSIN_CONF \"${PREFIX}/etc/exim/sa-exim.conf\""; \
|
|
|
|
} > ${WRKSRC}/Local/sa-exim.h
|
|
|
|
@${REINPLACE_CMD} -e 's,/usr/bin/spamc,${LOCALBASE}/bin/spamc,' \
|
|
|
|
${WRKDIR}/sa-exim-${SA_EXIM_VERSION}/sa-exim.conf
|
2010-05-05 20:08:18 +02:00
|
|
|
.endif
|
|
|
|
.if defined(WITH_SO_1024)
|
|
|
|
@${REINPLACE_CMD} -E -e 's/^(LOCAL_SCAN_SOURCE=).*/\1Local\/local_scan_1024.c/' \
|
|
|
|
${WRKSRC}/OS/Makefile-Default
|
|
|
|
@${CP} ${WRKDIR}/local_scan_1024.c ${WRKSRC}/Local
|
2004-10-12 01:48:25 +02:00
|
|
|
.endif
|
2009-11-15 19:18:20 +01:00
|
|
|
@${REINPLACE_CMD} -E -e 's/XX_STRIPCMD_XX/${STRIP_CMD:S,/,\/,g}/' \
|
|
|
|
${WRKSRC}/OS/Makefile-FreeBSD
|
2004-04-28 19:08:06 +02:00
|
|
|
@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} configure)
|
2003-09-10 15:49:09 +02:00
|
|
|
|
|
|
|
post-build:
|
2007-05-28 22:52:13 +02:00
|
|
|
.for script in ${DAILY_SCRIPTS}
|
2003-09-10 15:49:09 +02:00
|
|
|
@${SED} ${SED_SCRIPT} ${FILESDIR}/${script}.sh > ${WRKDIR}/${script}.sh
|
|
|
|
.endfor
|
2005-03-02 22:50:48 +01:00
|
|
|
@${SED} ${SED_SCRIPT} ${FILESDIR}/POST-INSTALL-NOTES > \
|
|
|
|
${WRKDIR}/POST-INSTALL-NOTES
|
2003-09-10 15:49:09 +02:00
|
|
|
@${SED} ${SED_SCRIPT} ${FILESDIR}/POST-INSTALL-NOTES.clamd > ${WRKDIR}/POST-INSTALL-NOTES.clamd
|
|
|
|
@${SED} ${SED_SCRIPT} ${FILESDIR}/POST-INSTALL-NOTES > ${WRKDIR}/POST-INSTALL-NOTES
|
2004-04-28 19:08:06 +02:00
|
|
|
@[ ! -f ${PKGDIR}/pkg-message ] || ${SED} ${SED_SCRIPT} ${PKGDIR}/pkg-message > ${WRKDIR}/pkg-message
|
|
|
|
|
|
|
|
.if !defined(EXIMON_ONLY)
|
1998-10-07 12:49:32 +02:00
|
|
|
|
2001-06-11 11:20:20 +02:00
|
|
|
pre-install:
|
2006-01-07 23:48:20 +01:00
|
|
|
if ! /usr/sbin/pw groupshow ${EXIM_GROUP}; then /usr/sbin/pw groupadd ${EXIM_GROUP} -g 125; fi
|
|
|
|
if ! /usr/sbin/pw usershow ${EXIM_USER}; then /usr/sbin/pw useradd ${EXIM_USER} -g ${EXIM_GROUP} -u 125 \
|
|
|
|
-h - -d /var/spool/exim -s /nonexistent -c "Exim User"; fi
|
2007-08-04 13:41:30 +02:00
|
|
|
@[ -d "/etc" ] || ${MKDIR} "/etc"
|
|
|
|
@${SETENV} PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
2001-06-11 11:20:20 +02:00
|
|
|
|
2001-06-12 20:05:59 +02:00
|
|
|
post-install:
|
2004-10-17 14:05:20 +02:00
|
|
|
.if !defined(WITHOUT_DAEMON)
|
2007-08-04 13:41:30 +02:00
|
|
|
@${MKDIR} ${PREFIX}/etc/periodic/daily
|
2003-09-10 15:49:09 +02:00
|
|
|
.for script in ${DAILY_SCRIPTS}
|
2007-08-04 13:41:30 +02:00
|
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/${script}.sh ${PREFIX}/etc/periodic/daily/${script}
|
2003-09-10 15:49:09 +02:00
|
|
|
.endfor
|
2004-10-17 14:05:20 +02:00
|
|
|
.endif
|
2007-08-04 13:41:30 +02:00
|
|
|
@[ -f ${PREFIX}/etc/exim/configure ] || \
|
|
|
|
${CP} ${PREFIX}/etc/exim/configure.default ${PREFIX}/etc/exim/configure
|
2003-09-29 13:42:45 +02:00
|
|
|
.for manfile in ${MAN8}
|
2007-08-04 13:41:30 +02:00
|
|
|
@${INSTALL_MAN} ${WRKSRC}/doc/${manfile} ${MAN8PREFIX}/man/man8
|
2003-09-29 13:42:45 +02:00
|
|
|
.endfor
|
2001-09-11 13:06:54 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2007-08-04 13:41:30 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKDIR}/POST-INSTALL-NOTES ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKDIR}/POST-INSTALL-NOTES.clamd ${DOCSDIR}
|
2004-04-01 00:33:42 +02:00
|
|
|
.for docfile in ${PORTDOC_BASE}
|
2007-08-04 13:41:30 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR}
|
2004-04-01 00:33:42 +02:00
|
|
|
.endfor
|
2003-09-02 16:40:30 +02:00
|
|
|
.for docfile in ${PORTDOC_FILES}
|
2007-08-04 13:41:30 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/${docfile} ${DOCSDIR}
|
2002-09-12 12:09:02 +02:00
|
|
|
.endfor
|
2007-08-04 13:41:30 +02:00
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
2003-09-29 13:42:45 +02:00
|
|
|
.for example in ${PORT_EXAMPLES}
|
2007-08-04 13:41:30 +02:00
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/build-${OPSYS}-${ARCH}/${example} ${EXAMPLESDIR}
|
2002-09-12 12:09:02 +02:00
|
|
|
.endfor
|
2004-10-12 01:48:25 +02:00
|
|
|
.endif
|
|
|
|
.if defined(WITH_SA_EXIM)
|
|
|
|
@${INSTALL_DATA} ${WRKDIR}/sa-exim-${SA_EXIM_VERSION}/sa-exim.conf \
|
2007-08-04 13:41:30 +02:00
|
|
|
${PREFIX}/etc/exim/sa-exim.conf.default
|
|
|
|
@[ -f ${PREFIX}/etc/exim/sa-exim.conf ] || \
|
|
|
|
${CP} ${PREFIX}/etc/exim/sa-exim.conf.default \
|
|
|
|
${PREFIX}/etc/exim/sa-exim.conf
|
2010-05-05 20:08:18 +02:00
|
|
|
.endif
|
|
|
|
.if defined(WITH_SO_1024)
|
|
|
|
.if !exists(/var/spool/spamooborona)
|
|
|
|
@${MKDIR} -m 750 /var/spool/spamooborona
|
|
|
|
@${CHOWN} ${EXIM_USER}:${EXIM_GROUP} /var/spool/spamooborona
|
|
|
|
.endif
|
2001-09-11 13:06:54 +02:00
|
|
|
.endif
|
2001-06-14 19:37:59 +02:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2007-08-04 13:41:30 +02:00
|
|
|
@${SETENV} PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
2001-06-14 19:37:59 +02:00
|
|
|
|
2004-04-28 19:08:06 +02:00
|
|
|
.else
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.endif
|
|
|
|
|
2001-07-10 12:47:29 +02:00
|
|
|
.include <bsd.port.post.mk>
|