aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2003-04-16 22:39:22 +0800
committerdinoex <dinoex@FreeBSD.org>2003-04-16 22:39:22 +0800
commitd18ab86340f391892ad22f7febcc2f15c5f4ec81 (patch)
treeed91c551d6cd8d48d5f246a2e16aebc437cf514e
parentb51f15b533816efcc8683e04f041b4582c9b426b (diff)
downloadfreebsd-ports-gnome-d18ab86340f391892ad22f7febcc2f15c5f4ec81.tar.gz
freebsd-ports-gnome-d18ab86340f391892ad22f7febcc2f15c5f4ec81.tar.zst
freebsd-ports-gnome-d18ab86340f391892ad22f7febcc2f15c5f4ec81.zip
- Added new option SENDMAIL_WITH_SMTPS=yes
The current sendmail port (mail/sendmail) does not allow to build build sendmail with smtps support (SSL but not STARTTLS). This mode is required by some MUA (ex. the only way to enable encryption in MS Outlook Express is to use smtps). PR: 51029 Submitted by: and@rsu.ru
-rw-r--r--mail/sendmail/Makefile12
-rw-r--r--mail/sendmail/files/site.config.m4.smtps1
-rw-r--r--mail/sendmail812/Makefile12
-rw-r--r--mail/sendmail812/files/site.config.m4.smtps1
4 files changed, 26 insertions, 0 deletions
diff --git a/mail/sendmail/Makefile b/mail/sendmail/Makefile
index 0392bfe58ba8..35e6ebdeb35c 100644
--- a/mail/sendmail/Makefile
+++ b/mail/sendmail/Makefile
@@ -32,11 +32,20 @@ PLIST_SUB+= PREFIX=${PREFIX:S=${PREFIX}/==}
# SENDMAIL_WITHOUT_IPV6=yes
# SENDMAIL_WITHOUT_MILTER=yes
# SENDMAIL_WITH_TLS=yes
+# SENDMAIL_WITH_SMTPS=yes
# SENDMAIL_WITH_SASL=yes
# SENDMAIL_WITH_SASL2=yes
# SENDMAIL_WITH_LDAP=yes
# SENDMAIL_WITH_PICKY_HELO_CHECK=yes
+.if defined(SENDMAIL_WITH_SMTPS)
+.if !defined(SENDMAIL_WITH_TLS) && !defined(WITH_TLS)
+.BEGIN:
+ @${ECHO_CMD} "DEPENDENCY NOTE: SENDMAIL_WITH_TLS will be enabled to support SENDMAIL_WITH_SMTPS"
+SENDMAIL_WITH_TLS=yes
+.endif
+.endif
+
.if defined(SENDMAIL_WITH_LDAP)
PKGNAMESUFFIX?= -ldap
LIB_DEPENDS+= ldap.2:${PORTSDIR}/net/openldap20
@@ -238,6 +247,9 @@ tls-install:
SITE+= ${FILESDIR}/site.config.m4.ssl
.endif
SITE+= ${FILESDIR}/site.config.m4.tls
+.if defined(SENDMAIL_WITH_SMTPS)
+SITE+= ${FILESDIR}/site.config.m4.smtps
+.endif
.endif
.if exists(${FILESDIR}/site.config.m4.local)
diff --git a/mail/sendmail/files/site.config.m4.smtps b/mail/sendmail/files/site.config.m4.smtps
new file mode 100644
index 000000000000..f66b5fa440cd
--- /dev/null
+++ b/mail/sendmail/files/site.config.m4.smtps
@@ -0,0 +1 @@
+APPENDDEF(`conf_sendmail_ENVDEF', `-D_FFR_SMTP_SSL')
diff --git a/mail/sendmail812/Makefile b/mail/sendmail812/Makefile
index 0392bfe58ba8..35e6ebdeb35c 100644
--- a/mail/sendmail812/Makefile
+++ b/mail/sendmail812/Makefile
@@ -32,11 +32,20 @@ PLIST_SUB+= PREFIX=${PREFIX:S=${PREFIX}/==}
# SENDMAIL_WITHOUT_IPV6=yes
# SENDMAIL_WITHOUT_MILTER=yes
# SENDMAIL_WITH_TLS=yes
+# SENDMAIL_WITH_SMTPS=yes
# SENDMAIL_WITH_SASL=yes
# SENDMAIL_WITH_SASL2=yes
# SENDMAIL_WITH_LDAP=yes
# SENDMAIL_WITH_PICKY_HELO_CHECK=yes
+.if defined(SENDMAIL_WITH_SMTPS)
+.if !defined(SENDMAIL_WITH_TLS) && !defined(WITH_TLS)
+.BEGIN:
+ @${ECHO_CMD} "DEPENDENCY NOTE: SENDMAIL_WITH_TLS will be enabled to support SENDMAIL_WITH_SMTPS"
+SENDMAIL_WITH_TLS=yes
+.endif
+.endif
+
.if defined(SENDMAIL_WITH_LDAP)
PKGNAMESUFFIX?= -ldap
LIB_DEPENDS+= ldap.2:${PORTSDIR}/net/openldap20
@@ -238,6 +247,9 @@ tls-install:
SITE+= ${FILESDIR}/site.config.m4.ssl
.endif
SITE+= ${FILESDIR}/site.config.m4.tls
+.if defined(SENDMAIL_WITH_SMTPS)
+SITE+= ${FILESDIR}/site.config.m4.smtps
+.endif
.endif
.if exists(${FILESDIR}/site.config.m4.local)
diff --git a/mail/sendmail812/files/site.config.m4.smtps b/mail/sendmail812/files/site.config.m4.smtps
new file mode 100644
index 000000000000..f66b5fa440cd
--- /dev/null
+++ b/mail/sendmail812/files/site.config.m4.smtps
@@ -0,0 +1 @@
+APPENDDEF(`conf_sendmail_ENVDEF', `-D_FFR_SMTP_SSL')