pkgsrc/mail/dovecot/Makefile

96 lines
2.5 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.25 2004/08/01 05:17:19 schmonz Exp $
DISTNAME= dovecot-0.99.10.9
CATEGORIES= mail
MASTER_SITES= http://www.dovecot.org/releases/
.if 0
Update to 0.99.10.4 provided by Charlie Allom in PR pkg/23696. Changes: v0.99.10.4 2003-11-24 Timo Sirainen <tss@iki.fi> - Fixed reference counters in imap-login and pop3-login. IMAP AUTHENTICATE and POP3 AUTH commands could have left the process stuck doing nothing forever. v0.99.10.3 2003-11-24 Timo Sirainen <tss@iki.fi> - FETCH RFC822.HEADER returned message body as well - SUBSCRIBE broke subscription lists - LIST code rewritten, children flags should be correct now - SORT and THREAD could have given invalid replies - Partial BODY[...] fetches might have returned wrong data or at least performed worse than was necessary v0.99.10.1 2003-11-10 Timo Sirainen <tss@iki.fi> * mbox: \Draft and \Deleted flags used opposite flag chars in X-Status header. We were incompatible with other mbox accessing software. WARNING: Upgrading from previous version doesn't automatically swap the flags, so be careful not to accidentally expunge messages that had their \Draft flag changed to \Deleted. * Configuration file changes: - Whitespace at end of line is stripped, use quotes if you need it - # comments are supported after key=value lines. if you need '#' character, quote the value - Both " and ' quotes are supported. If you need to use them, '\' can be used for escaping. - mbox: COPY into same mailbox didn't work and could have corrupted the mailbox - Using Dovecot without index files would crash after using a while - Partial BODY[header] or BODY[part] fetches were buggy if client requested more data than was available in the header/part. - Partial BODY[...] fetches were buggy with messages that had CRLFs - Some BODY and BODYSTRUCTURE replies missed data for message/rfc822 MIME parts causing clients to break - SORT (SUBJECT) was buggy - Timezone fixes with Date-header This also includes Joshua Goodall's patch (now in the CVS tree) for CRAM-MD5 for the -release tag.
2003-12-09 05:06:37 +01:00
PATCH_SITES= http://www.roughtrade.net/dovecot/
PATCHFILES= dovecot-crammd5-0.99.10.7.diff
PATCH_DIST_STRIP= -p1
.endif
MAINTAINER= tom@replic8.net
HOMEPAGE= http://www.dovecot.org/
COMMENT= Secure IMAP and POP3 server
PKG_INSTALLATION_TYPES= overwrite pkgviews
2004-02-10 01:32:35 +01:00
USE_BUILDLINK3= YES
USE_LIBTOOL= YES
USE_PKGINSTALL= YES
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
2004-06-21 10:32:05 +02:00
CONFIGURE_ARGS+= --localstatedir=${VARBASE}
CONFIGURE_ARGS+= --with-ssldir=${SSLCERTS}
# Avoid an ICE in gcc2 on sparc64
CONFIGURE_ENV+= F77=${FALSE}
.include "../../mk/bsd.prefs.mk"
BUILD_DEFS+= DOVECOT_USE_GNUTLS DOVECOT_USE_MYSQL \
DOVECOT_USE_PGSQL USE_INET6 USE_OPENLDAP USE_SASL2
.if !empty(DOVECOT_USE_GNUTLS:M[Yy][Ee][Ss])
CONFIGURE_ARGS+= --enable-ssl=gnutls
2004-02-10 01:32:35 +01:00
. include "../../security/gnutls/buildlink3.mk"
.else
CONFIGURE_ARGS+= --enable-ssl=openssl
2004-02-10 01:32:35 +01:00
. include "../../security/openssl/buildlink3.mk"
.endif
.if !empty(DOVECOT_USE_MYSQL:M[Yy][Ee][SS])
CONFIGURE_ARGS+= --with-mysql
. include "../../databases/mysql4-client/buildlink3.mk"
.endif
.if !empty(DOVECOT_USE_PGSQL:M[Yy][Ee][Ss])
CONFIGURE_ARGS+= --with-pgsql
CPPFLAGS= -I${BUILDLINK_DIR}/include/pgsql
. include "../../mk/pgsql.buildlink3.mk"
.endif
.if defined(USE_INET6) && !empty(USE_INET6:M[Yy][Ee][Ss])
CONFIGURE_ARGS+= --enable-ipv6
.endif
.if !empty(USE_OPENLDAP:M[Yy][Ee][Ss])
CONFIGURE_ARGS+= --with-ldap
2004-02-10 01:32:35 +01:00
. include "../../databases/openldap/buildlink3.mk"
.endif
.if defined(USE_SASL2) && !empty(USE_SASL2:M[Yy][Ee][Ss])
CONFIGURE_ARGS+= --with-cyrus-sasl2
2004-02-10 01:32:35 +01:00
. include "../../security/cyrus-sasl2/buildlink3.mk"
.endif
RCD_SCRIPTS= dovecot
DOVECOT_USER?= dovecot
DOVECOT_GROUP?= dovecot
PKG_GROUPS= ${DOVECOT_GROUP}
PKG_USERS= ${DOVECOT_USER}:${DOVECOT_GROUP}::Dovecot\\ IMAP/POP3\\ user
EGDIR= ${PREFIX}/share/examples/dovecot
CONF_FILES= ${EGDIR}/dovecot.conf.default ${PKG_SYSCONFDIR}/dovecot.conf
INSTALLATION_DIRS= libexec/dovecot sbin share/doc/dovecot share/examples/dovecot
post-configure:
2004-02-10 01:32:35 +01:00
@cd ${WRKSRC}; \
for i in dovecot-example.conf; do \
${SED} ${FILES_SUBST_SED} $$i > $$i.new; \
${MV} -f $$i.new $$i; \
2004-02-10 01:32:35 +01:00
done
post-install:
${INSTALL_DATA_DIR} ${EGDIR}
${INSTALL_DATA} ${WRKSRC}/dovecot-example.conf \
${EGDIR}/dovecot.conf.default
${INSTALL_DATA} ${WRKSRC}/doc/dovecot-* ${EGDIR}
${INSTALL_SCRIPT} ${WRKSRC}/doc/mkcert.sh ${EGDIR}
.include "../../mk/bsd.pkg.mk"