2004-08-01 07:17:19 +02:00
|
|
|
# $NetBSD: Makefile,v 1.25 2004/08/01 05:17:19 schmonz Exp $
|
2003-05-14 06:17:31 +02:00
|
|
|
|
2004-08-01 07:17:19 +02:00
|
|
|
DISTNAME= dovecot-0.99.10.9
|
2003-09-23 15:54:25 +02:00
|
|
|
CATEGORIES= mail
|
2004-07-14 20:09:00 +02:00
|
|
|
MASTER_SITES= http://www.dovecot.org/releases/
|
2003-05-14 06:17:31 +02:00
|
|
|
|
2004-07-14 20:09:00 +02:00
|
|
|
.if 0
|
2003-12-09 05:06:37 +01:00
|
|
|
PATCH_SITES= http://www.roughtrade.net/dovecot/
|
2004-07-14 20:09:00 +02:00
|
|
|
PATCHFILES= dovecot-crammd5-0.99.10.7.diff
|
2003-09-23 15:54:25 +02:00
|
|
|
PATCH_DIST_STRIP= -p1
|
2004-07-14 20:09:00 +02:00
|
|
|
.endif
|
2003-05-14 06:17:31 +02:00
|
|
|
|
2003-09-23 15:54:25 +02:00
|
|
|
MAINTAINER= tom@replic8.net
|
2004-07-14 20:09:00 +02:00
|
|
|
HOMEPAGE= http://www.dovecot.org/
|
2003-09-23 15:54:25 +02:00
|
|
|
COMMENT= Secure IMAP and POP3 server
|
|
|
|
|
2004-07-28 17:22:07 +02:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
|
2004-02-10 01:32:35 +01:00
|
|
|
USE_BUILDLINK3= YES
|
2003-09-23 15:54:25 +02:00
|
|
|
USE_LIBTOOL= YES
|
|
|
|
USE_PKGINSTALL= YES
|
|
|
|
GNU_CONFIGURE= YES
|
2003-05-14 06:17:31 +02:00
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
|
2004-06-21 10:32:05 +02:00
|
|
|
CONFIGURE_ARGS+= --localstatedir=${VARBASE}
|
2003-09-23 16:27:34 +02:00
|
|
|
CONFIGURE_ARGS+= --with-ssldir=${SSLCERTS}
|
2003-05-14 06:17:31 +02:00
|
|
|
|
2004-03-20 07:02:59 +01:00
|
|
|
# Avoid an ICE in gcc2 on sparc64
|
|
|
|
CONFIGURE_ENV+= F77=${FALSE}
|
|
|
|
|
2003-06-23 17:06:10 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2004-05-29 00:20:42 +02:00
|
|
|
BUILD_DEFS+= DOVECOT_USE_GNUTLS DOVECOT_USE_MYSQL \
|
|
|
|
DOVECOT_USE_PGSQL USE_INET6 USE_OPENLDAP USE_SASL2
|
2003-05-14 06:17:31 +02:00
|
|
|
|
|
|
|
.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"
|
2003-05-14 06:17:31 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --enable-ssl=openssl
|
2004-02-10 01:32:35 +01:00
|
|
|
. include "../../security/openssl/buildlink3.mk"
|
2003-05-14 06:17:31 +02:00
|
|
|
.endif
|
|
|
|
|
2004-05-29 00:20:42 +02:00
|
|
|
.if !empty(DOVECOT_USE_MYSQL:M[Yy][Ee][SS])
|
|
|
|
CONFIGURE_ARGS+= --with-mysql
|
|
|
|
. include "../../databases/mysql4-client/buildlink3.mk"
|
|
|
|
.endif
|
|
|
|
|
2003-05-14 06:17:31 +02:00
|
|
|
.if !empty(DOVECOT_USE_PGSQL:M[Yy][Ee][Ss])
|
|
|
|
CONFIGURE_ARGS+= --with-pgsql
|
|
|
|
CPPFLAGS= -I${BUILDLINK_DIR}/include/pgsql
|
2004-07-25 00:45:14 +02:00
|
|
|
. include "../../mk/pgsql.buildlink3.mk"
|
2003-05-14 06:17:31 +02:00
|
|
|
.endif
|
|
|
|
|
2003-11-02 18:24:06 +01:00
|
|
|
.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"
|
2003-11-02 18:24:06 +01:00
|
|
|
.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"
|
2003-11-02 18:24:06 +01:00
|
|
|
.endif
|
|
|
|
|
2003-05-14 06:17:31 +02:00
|
|
|
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
|
|
|
|
|
2004-07-28 17:22:07 +02:00
|
|
|
INSTALLATION_DIRS= libexec/dovecot sbin share/doc/dovecot share/examples/dovecot
|
|
|
|
|
2003-05-14 06:17:31 +02:00
|
|
|
post-configure:
|
2004-02-10 01:32:35 +01:00
|
|
|
@cd ${WRKSRC}; \
|
2004-07-28 17:22:07 +02:00
|
|
|
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
|
2003-05-14 06:17:31 +02:00
|
|
|
|
|
|
|
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"
|