summaryrefslogtreecommitdiffstats
path: root/mail/exim
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>2001-06-11 07:20:07 +0000
committersheldonh <sheldonh@FreeBSD.org>2001-06-11 07:20:07 +0000
commit139299e506f03fd6ffae53f89e5cc2db6bf8e9a5 (patch)
treec266dbdbb12650b4799a2c419b4083906af03cbf /mail/exim
parent977ac2749a535811dd7b2fd0fdd494e32e6c2c07 (diff)
downloadFreeBSD-ports-139299e506f03fd6ffae53f89e5cc2db6bf8e9a5.zip
FreeBSD-ports-139299e506f03fd6ffae53f89e5cc2db6bf8e9a5.tar.gz
Use the standard ports mechanism for enabling and disabling features:
* Features enabled by default are disabled by defining WITHOUT_FEATURE. * Features disabled by default are enabled by defining WITH_FEATURE. Requested by: alex
Diffstat (limited to 'mail/exim')
-rw-r--r--mail/exim/Makefile57
1 files changed, 29 insertions, 28 deletions
diff --git a/mail/exim/Makefile b/mail/exim/Makefile
index 634ef99..d8db87b 100644
--- a/mail/exim/Makefile
+++ b/mail/exim/Makefile
@@ -36,29 +36,30 @@ MAKE_ENV+= OSTYPE=${OPSYS} ARCHTYPE=${MACHINE_ARCH}
#WITH_MYSQL= yes
#WITH_PGSQL= yes
-# Link against OpenSSL in the base system for STARTTLS support.
-WITH_TLS?= yes
-
-# Enable the embedded Perl interpreter, allowing Perl subroutines to be
-# called during string expansion.
-WITH_PERL?= yes
-
-# The following options control whether Exim is built with support for
-# PAM, RFC 2195 and RFC 2595 authentication mechanisms for SMTP AUTH.
-#
-WITH_PAM?= yes
-WITH_AUTH_CRAM_MD5?= yes
-WITH_AUTH_PLAINTEXT?= yes
-
# If WITH_LDAP is defined, LDAP_LIB_TYPE must be one of UMICHIGAN,
# NETSCAPE or SOLARIS7.
LDAP_LIB_TYPE=UMICHIGAN
-# The following options control whether Exim is built with support for
-# additional mailbox formats.
-WITH_MAILDIR?= yes
-WITH_MAILSTORE?= yes
-WITH_MBX?= yes
+# The following options may be defined to turn off support for various
+# features that this port enables by default.
+#
+# Do not link against OpenSSL; disables STARTTLS.
+#WITHOUT_TLS= yes
+#
+# Disable the embedded Perl interpreter, which allows Perl subroutines to
+# be called during string expansion.
+#WITHOUT_PERL= yes
+#
+# Disable built-in Exim support for the PAM, RFC 2195 and RFC 2595
+# authentication mechanisms, used for SMTP AUTH.
+#WITHOUT_PAM= yes
+#WITHOUT_AUTH_CRAM_MD5= yes
+#WITHOUT_AUTH_PLAINTEXT= yes
+#
+# Disable built-in Exim support for additional mailbox formats.
+#WITHOUT_MAILDIR= yes
+#WITHOUT_MAILSTORE= yes
+#WITHOUT_MBX= yes
# You should not need to fiddle with anything below this point.
@@ -68,18 +69,18 @@ SEDLIST= -e 's,XX_PREFIX_XX,${PREFIX},' \
SEDLIST+= -e 's,^EXIM_MONITOR,\#EXIM_MONITOR,'
.endif
-.if defined(WITH_TLS) && ${WITH_TLS} == "yes"
+.if !defined(WITHOUT_TLS)
SEDLIST+= -e 's,XX_TLS_LIBS_XX,-lssl -lcrypto,' \
-e 's,^\# SUPPORT_TLS=,SUPPORT_TLS=,'
.else
SEDLIST+= -e 's,^TLS_LIBS,\#TLS_LIBS,'
.endif
-.if defined(WITH_PERL) && ${WITH_PERL} == "yes"
+.if !defined(WITHOUT_PERL)
SEDLIST+= -e 's,^\# EXIM_PERL=,EXIM_PERL=,'
.endif
-.if defined(WITH_TCP_WRAPPERS) && ${WITH_TCP_WRAPPERS} == "yes"
+.if defined(WITH_TCP_WRAPPERS)
SEDLIST+= -e 's,XX_TCP_WRAPPERS_LIBS_XX,-lwrap,' \
-e 's,^\# USE_TCP_WRAPPERS=,USE_TCP_WRAPPERS=,'
.endif
@@ -104,18 +105,18 @@ SEDLIST+= -e 's,XX_MYSQL_LIBS_XX,-L${PREFIX}/lib/mysql -lmysqlclient,' \
SEDLIST+= -e 's,XX_MYSQL_[^ ]*_XX,,'
.endif
-.if defined(WITH_PAM) && ${WITH_PAM} == "yes"
+.if !defined(WITHOUT_PAM)
SEDLIST+= -e 's,XX_PAM_LIBS_XX,-lpam,' \
-e 's,^\# SUPPORT_PAM=,SUPPORT_PAM=,'
.else
SEDLIST+= -e 's,XX_PAM_LIBS_XX,,'
.endif
-.if defined(WITH_AUTH_CRAM_MD5) && ${WITH_AUTH_CRAM_MD5} == "yes"
+.if !defined(WITHOUT_AUTH_CRAM_MD5)
SEDLIST+= -e 's,^\# AUTH_CRAM_MD5=,AUTH_CRAM_MD5=,'
.endif
-.if defined(WITH_AUTH_PLAINTEXT) && ${WITH_AUTH_PLAINTEXT} == "yes"
+.if !defined(WITHOUT_AUTH_PLAINTEXT)
SEDLIST+= -e 's,^\# AUTH_PLAINTEXT=,AUTH_PLAINTEXT=,'
.endif
@@ -133,15 +134,15 @@ SEDLIST+= -e 's,^LOOKUP_LIBS,\#LOOKUP_LIBS,' \
-e 's,^LOOKUP_INCLUDE,\#LOOKUP_INCLUDE,'
.endif
-.if defined(WITH_MAILDIR) && ${WITH_MAILDIR} == "yes"
+.if !defined(WITHOUT_MAILDIR)
SEDLIST+= -e 's,^\# SUPPORT_MAILDIR=,SUPPORT_MAILDIR=,'
.endif
-.if defined(WITH_MAILSTORE) && ${WITH_MAILSTORE} == "yes"
+.if !defined(WITH_MAILSTORE)
SEDLIST+= -e 's,^\# SUPPORT_MAILSTORE=,SUPPORT_MAILSTORE=,'
.endif
-.if defined(WITH_MAILMBX) && ${WITH_MAILMBX} == "yes"
+.if !defined(WITH_MAILMBX)
SEDLIST+= -e 's,^\# SUPPORT_MBX=,SUPPORT_MBX=,'
.endif
OpenPOWER on IntegriCloud