diff options
author | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2001-02-22 18:15:18 +0000 |
---|---|---|
committer | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2001-02-22 18:15:18 +0000 |
commit | 224a6052afaa1788a7641575d3cfe9ff88dd1de0 (patch) | |
tree | 97f9cb46bee7bdc0fdaeff05654e0308beb16066 /mail/qmail-ldap | |
parent | 76ae6e1d12cf84568df88cb40acf54d6565c3edc (diff) | |
download | ports-224a6052afaa1788a7641575d3cfe9ff88dd1de0.tar.gz ports-224a6052afaa1788a7641575d3cfe9ff88dd1de0.zip |
Notes
Diffstat (limited to 'mail/qmail-ldap')
-rw-r--r-- | mail/qmail-ldap/Makefile | 36 | ||||
-rw-r--r-- | mail/qmail-ldap/pkg-message | 13 |
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" + |