summaryrefslogtreecommitdiff
path: root/mail/qmail-ldap
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2001-02-22 18:15:18 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2001-02-22 18:15:18 +0000
commit224a6052afaa1788a7641575d3cfe9ff88dd1de0 (patch)
tree97f9cb46bee7bdc0fdaeff05654e0308beb16066 /mail/qmail-ldap
parentAdd new MASTER_SITES (diff)
* qmail port
o bump PORTREVISION o sanitize MASTER_SITES o added several flags (defined checks) to enable active slave port control on what they inherit o add extra enhancement patches, these can be inherited too: - WITH_QMAILQUEUE_PATCH: qmailqueue-patch - WITH_BIG_TODO_PATCH: big-todo.103.patch - WITH_BIG_CONCURRENCY_PATCH: big-concurrency.patch - WITH_BIG_CONCURRENCY_PATCH_CONCURRENCY_LIMIT default: 509 o add patches checksum to distinfo o added MASTER_SITE_QMAIL for internal use o additional copies of slave qmail patches are now housed at MASTER_SITE_LOCAL, PATCH_SITE_SUBDIR=lioux because these patches only have ONE PATCH_SITES source each - qmail-ldap-1.03-20010201.patch.gz (qmail-ldap) - qmail-mysql-1.1.1.patch (qmail-mysql) - tls.patch (qmail-tls) o turn all absolute references to both binaries and FreeBSD configuration files into VARs: better maintability o s/yetanotherone-/slaveport-/: that is the correct nomenclature o ${LN} should use -sf instead of plain -s o typo fix: QMail -> qmail * qmail-ldap port o bump PORTREVISION in sync with master port bump o minor changes to comply to recent changes to the master port o block the WITH_BIG_CONCURRENCY_PATCH, it does not like the qmail-ldap patch o enable SMTP TLS support with WITH_TLS - the PKGNAMESUFFIX changes to -ldap-with_tls - let it know the location of QMAIL_TLS_PORT - add certificate and certificate-req; in fact, we are inheriting qmail-tls targets o s/yetanotherone-/slaveport-/: that is the correct nomenclature o tabulate better the WITH_* advertisement messages o add appropriate message to PKGMESSAGE about the new certificate targets following the qmail-tls port o nomenclature fix: ^ldap- -> ^qmail-ldap- * qmail-mysql port o bump PORTREVISION in sync with master port bump o block the WITH_QMAILQUEUE_PATCH, it does not like the qmail-mysql patch o s/yetanotherone-/slaveport-/: that is the correct nomenclature * qmail-tls port o bump PORTREVISION in sync with master port bump o minor changes to comply to recent changes to the master port o s/yetanotherone-/slaveport-/: that is the correct nomenclature o nomenclature fix: ^tls- -> ^qmail-tls-
Notes
Notes: svn path=/head/; revision=38616
Diffstat (limited to 'mail/qmail-ldap')
-rw-r--r--mail/qmail-ldap/Makefile36
-rw-r--r--mail/qmail-ldap/pkg-message13
2 files changed, 38 insertions, 11 deletions
diff --git a/mail/qmail-ldap/Makefile b/mail/qmail-ldap/Makefile
index c3c1eef2f7f6..8264565ee6cc 100644
--- a/mail/qmail-ldap/Makefile
+++ b/mail/qmail-ldap/Makefile
@@ -7,6 +7,7 @@
PORTNAME= qmail
PORTVERSION= ${QMAIL_VERSION}.${LDAP_PATCH_DATE}
+PORTREVISION= 1
CATEGORIES= mail
PKGNAMESUFFIX= -ldap
@@ -20,8 +21,14 @@ MAINTAINER= lioux@FreeBSD.org
LIB_DEPENDS+= ldap.1:${PORTSDIR}/net/openldap
+.if defined(WITH_TLS)
+PKGNAMESUFFIX= -ldap-with_tls
+USE_OPENSSL= yes
+.endif # WITH_TLS
+
# Patches from the main qmail port are not wanted
-MAIN_QMAIL_PORT_PATCH_BARRIER= yes
+MAIN_QMAIL_PORT_DNS_PATCH_BARRIER= yes
+MAIN_QMAIL_PORT_WITH_BIG_CONCURRENCY_PATCH_BARRIER= yes
LDAP_PATCH_DATE= 20010201
@@ -35,6 +42,7 @@ PREFIX?= ${QMAIL_PORT_PREFIX}
#QMAIL_PORT= ${PORTSDIR}/mail/qmail
QMAIL_PORT= ${.CURDIR}/../qmail
+QMAIL_TLS_PORT= ${.CURDIR}/../qmail-tls
QMAIL_PORT_PREFIX!= cd ${QMAIL_PORT} && ${MAKE} -V PREFIX
QMAIL_PORT_PATCHDIR!= cd ${QMAIL_PORT} && ${MAKE} -V PATCHDIR
@@ -42,23 +50,23 @@ DOCFILES+= ${WRKSRC}/QLDAPINSTALL ${WRKSRC}/QLDAPNEWS \
${WRKSRC}/QLDAPTODO ${WRKSRC}/QLDAPPICTURE \
${WRKSRC}/ANTISPAM
-yetanotherone-pre-fetch: ldap-pre-fetch
+slaveport-pre-fetch: qmail-ldap-pre-fetch
-ldap-pre-fetch:
- @${ECHO_MSG} ""
- @${ECHO_MSG} "You may use the following build options:"
- @${ECHO_MSG} ""
- @${ECHO_MSG} "WITH_LDAP_CLUSTER=yes enable cluster support"
+qmail-ldap-pre-fetch:
+ @${ECHO_MSG} "WITH_TLS=yes enable SMTP TLS support"
+ @${ECHO_MSG} "WITH_LDAP_CLUSTER=yes enable cluster support"
@${ECHO_MSG} "WITH_AUTOMAILDIRMAKE=yes enable the auto-maildir-make feature"
@${ECHO_MSG} "WITH_AUTOHOMEDIRMAKE=yes enable the auto-homedir-make feature"
- @${ECHO_MSG} "WITH_LDAP_DEBUG=yes enable the possibility to log and"
+ @${ECHO_MSG} "WITH_LDAP_DEBUG=yes enable the possibility to log and"
@${ECHO_MSG} " debug imap and pop"
@${ECHO_MSG} "WITH_CLEARTEXTPASSWD=yes use cleartext passwords"
- @${ECHO_MSG} ""
-yetanotherone-post-patch: ldap-post-patch
+slaveport-post-patch: qmail-ldap-post-patch
-ldap-post-patch:
+qmail-ldap-post-patch:
+.if defined(WITH_TLS)
+ @${PERL} -pi -ne "s|#TLSON=-DTLS|TLSON=-DTLS|;s|#TLSINCLUDES=-I/usr/local/include|TLSINCLUDES=-I${OPENSSLBASE}/include|;s|#TLSLIBS=-L/usr/local/lib|TLSLIBS=-L${OPENSSLBASE}/lib|" ${WRKSRC}/Makefile
+.endif # WITH_TLS
.if defined(WITH_LDAP_CLUSTER)
@${PERL} -pi -ne "s|#LDAPFLAGS=-DQLDAP_CLUSTER|LDAPFLAGS\+=-DQLDAP_CLUSTER|" ${WRKSRC}/Makefile
.endif # WITH_LDAP_CLUSTER
@@ -76,6 +84,12 @@ ldap-post-patch:
${WRKSRC}/Makefile
.endif # WITH_CLEARTEXTPASSWD
+certificate:
+ @cd ${QMAIL_TLS_PORT} && ${MAKE} $@ clean
+
+certificate-req:
+ @cd ${QMAIL_TLS_PORT} && ${MAKE} $@ clean
+
# Local overrides
MASTERDIR= ${QMAIL_PORT}
PATCHDIR= ${.CURDIR}/files
diff --git a/mail/qmail-ldap/pkg-message b/mail/qmail-ldap/pkg-message
index 80255f4051b3..c8a90b35bb20 100644
--- a/mail/qmail-ldap/pkg-message
+++ b/mail/qmail-ldap/pkg-message
@@ -18,3 +18,16 @@ You can enable qmail as your default mailer:
# enable qmail as your default MTA
2) do "make enable-qmail"
+
+=====><=====
+
+If you've built this port with TLS support (WITH_TLS=yes)
+
+==> You will need to provide a working certificate in /var/qmail/control/cert.pem :
+
+# makes a self-signed certificate
+3) do "make certificate"
+
+# makes a certificate request
+4) do "make certificate-req"
+