mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
224a6052af
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-
105 lines
3.3 KiB
Makefile
105 lines
3.3 KiB
Makefile
# New ports collection makefile for: qmail-ldap
|
|
# Date created: 21 May 2000
|
|
# Whom: Mario S F Ferreira <lioux@linf.unb.br> et al.
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= qmail
|
|
PORTVERSION= ${QMAIL_VERSION}.${LDAP_PATCH_DATE}
|
|
PORTREVISION= 1
|
|
CATEGORIES= mail
|
|
PKGNAMESUFFIX= -ldap
|
|
|
|
PATCH_SITES= http://www.nrg4u.com/qmail/
|
|
PATCHFILES= qmail-ldap-1.03-${LDAP_PATCH_DATE}.patch.gz
|
|
PATCH_DIST_STRIP+= -p1
|
|
|
|
EXTRA_PATCHES+= ${QMAIL_PORT_PATCHDIR}/patch-ab ${QMAIL_PORT_PATCHDIR}/patch-ac
|
|
|
|
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_DNS_PATCH_BARRIER= yes
|
|
MAIN_QMAIL_PORT_WITH_BIG_CONCURRENCY_PATCH_BARRIER= yes
|
|
|
|
LDAP_PATCH_DATE= 20010201
|
|
|
|
# Using default from master port, i.e., /var/qmail
|
|
PREFIX?= ${QMAIL_PORT_PREFIX}
|
|
#PREFIX= /var/qmail-ldap
|
|
|
|
.if !defined(PRE_MK_INCLUDED)
|
|
.include <bsd.port.pre.mk>
|
|
.endif
|
|
|
|
#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
|
|
|
|
DOCFILES+= ${WRKSRC}/QLDAPINSTALL ${WRKSRC}/QLDAPNEWS \
|
|
${WRKSRC}/QLDAPTODO ${WRKSRC}/QLDAPPICTURE \
|
|
${WRKSRC}/ANTISPAM
|
|
|
|
slaveport-pre-fetch: qmail-ldap-pre-fetch
|
|
|
|
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} " debug imap and pop"
|
|
@${ECHO_MSG} "WITH_CLEARTEXTPASSWD=yes use cleartext passwords"
|
|
|
|
slaveport-post-patch: qmail-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
|
|
.if defined(WITH_AUTOMAILDIRMAKE)
|
|
@${PERL} -pi -ne "s|#MDIRMAKE=-DAUTOMAILDIRMAKE|MDIRMAKE=-DAUTOMAILDIRMAKE|" ${WRKSRC}/Makefile
|
|
.endif # WITH_AUTOMAILDIRMAKE
|
|
.if defined(WITH_AUTOHOMEDIRMAKE)
|
|
@${PERL} -pi -ne "s|#HDIRMAKE=-DAUTOHOMEDIRMAKE|HDIRMAKE=-DAUTOHOMEDIRMAKE|" ${WRKSRC}/Makefile
|
|
.endif # WITH_AUTOHOMEDIRMAKE
|
|
.if defined(WITH_LDAP_DEBUG)
|
|
@${PERL} -pi -ne "s|#DEBUG=-DDEBUG|DEBUG=-DDEBUG|" ${WRKSRC}/Makefile
|
|
.endif # WITH_LDAP_DEBUG
|
|
.if defined(WITH_CLEARTEXTPASSWD)
|
|
@${PERL} -pi -ne "s|# -DCLEARTEXTPASSWD to the LDAPFLAGS|LDAPFLAGS\+=-DCLEARTEXTPASSWD|" \
|
|
${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
|
|
PKGDIR_LOCAL= ${.CURDIR}
|
|
COMMENT= ${PKGDIR_LOCAL}/pkg-comment
|
|
DESCR= ${PKGDIR_LOCAL}/pkg-descr
|
|
PKGMESSAGE= ${PKGDIR_LOCAL}/pkg-message
|
|
PLIST= ${PKGDIR_LOCAL}/pkg-plist
|
|
|
|
PRE_MK_INCLUDED= yes
|
|
|
|
.include "${MASTERDIR}/Makefile"
|