version 1.1, 2003/05/14 04:17:31 |
version 1.19, 2004/05/29 15:42:51 |
|
|
# $NetBSD$ |
# $NetBSD$ |
# |
|
|
|
DISTNAME= dovecot-0.99.9.1 |
DISTNAME= dovecot-0.99.10.5 |
CATEGORIES= mail |
PKGREVISION= 1 |
MASTER_SITES= http://dovecot.procontrol.fi/ |
CATEGORIES= mail |
|
MASTER_SITES= http://dovecot.fi/ |
PATCH_SITES= ${MASTER_SITES} |
|
PATCHFILES= freebsd.patch fetch.patch |
PATCH_SITES= http://www.roughtrade.net/dovecot/ |
|
PATCHFILES= dovecot-crammd5-0.99.10.5.diff |
MAINTAINER= packages@netbsd.org |
PATCH_DIST_STRIP= -p1 |
HOMEPAGE= http://dovecot.procontrol.fi/ |
|
COMMENT= Secure IMAP and POP3 server |
MAINTAINER= tom@replic8.net |
|
HOMEPAGE= http://dovecot.fi/ |
USE_BUILDLINK2= YES |
COMMENT= Secure IMAP and POP3 server |
USE_LIBTOOL= YES |
|
USE_PKGINSTALL= YES |
USE_BUILDLINK3= YES |
GNU_CONFIGURE= YES |
USE_LIBTOOL= YES |
|
USE_PKGINSTALL= YES |
LIBTOOL_OVERRIDE= ${WRKSRC}/libtool |
GNU_CONFIGURE= YES |
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} |
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} |
CONFIGURE_ARGS+= --localstatedir=/var |
CONFIGURE_ARGS+= --localstatedir=/var |
CONFIGURE_ARGS+= --with-ssldir=/etc/openssl |
CONFIGURE_ARGS+= --with-ssldir=${SSLCERTS} |
|
|
DOVECOT_USE_GNUTLS?= NO |
# 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]) |
.if !empty(DOVECOT_USE_GNUTLS:M[Yy][Ee][Ss]) |
CONFIGURE_ARGS+= --enable-ssl=gnutls |
CONFIGURE_ARGS+= --enable-ssl=gnutls |
.include "../../security/gnutls/buildlink2.mk" |
. include "../../security/gnutls/buildlink3.mk" |
.else |
.else |
CONFIGURE_ARGS+= --enable-ssl=openssl |
CONFIGURE_ARGS+= --enable-ssl=openssl |
.include "../../security/openssl/buildlink2.mk" |
. include "../../security/openssl/buildlink3.mk" |
.endif |
.endif |
|
|
DOVECOT_USE_LDAP?= NO |
.if !empty(DOVECOT_USE_MYSQL:M[Yy][Ee][SS]) |
|
CONFIGURE_ARGS+= --with-mysql |
.if !empty(DOVECOT_USE_LDAP:M[Yy][Ee][Ss]) |
. include "../../databases/mysql4-client/buildlink3.mk" |
CONFIGURE_ARGS+= --with-ldap |
|
.include "../../databases/openldap/buildlink2.mk" |
|
.endif |
.endif |
|
|
DOVECOT_USE_PGSQL?= NO |
|
|
|
.if !empty(DOVECOT_USE_PGSQL:M[Yy][Ee][Ss]) |
.if !empty(DOVECOT_USE_PGSQL:M[Yy][Ee][Ss]) |
CONFIGURE_ARGS+= --with-pgsql |
CONFIGURE_ARGS+= --with-pgsql |
CPPFLAGS= -I${BUILDLINK_DIR}/include/pgsql |
CPPFLAGS= -I${BUILDLINK_DIR}/include/pgsql |
.include "../../databases/postgresql-lib/buildlink2.mk" |
. include "../../databases/postgresql-lib/buildlink3.mk" |
.endif |
.endif |
|
|
.if defined(USE_INET6) && !empty(USE_INET6:M[Yy][Ee][Ss]) |
.if defined(USE_INET6) && !empty(USE_INET6:M[Yy][Ee][Ss]) |
BUILD_DEFS+= USE_INET6 |
|
CONFIGURE_ARGS+= --enable-ipv6 |
CONFIGURE_ARGS+= --enable-ipv6 |
.endif |
.endif |
|
|
|
.if !empty(USE_OPENLDAP:M[Yy][Ee][Ss]) |
|
CONFIGURE_ARGS+= --with-ldap |
|
. include "../../databases/openldap/buildlink3.mk" |
|
.endif |
|
|
|
.if defined(USE_SASL2) && !empty(USE_SASL2:M[Yy][Ee][Ss]) |
|
CONFIGURE_ARGS+= --with-cyrus-sasl2 |
|
. include "../../security/cyrus-sasl2/buildlink3.mk" |
|
.endif |
|
|
RCD_SCRIPTS= dovecot |
RCD_SCRIPTS= dovecot |
|
|
DOVECOT_USER?= dovecot |
DOVECOT_USER?= dovecot |
Line 64 EGDIR= ${PREFIX}/share/examples/dovecot |
|
Line 74 EGDIR= ${PREFIX}/share/examples/dovecot |
|
CONF_FILES= ${EGDIR}/dovecot.conf.default ${PKG_SYSCONFDIR}/dovecot.conf |
CONF_FILES= ${EGDIR}/dovecot.conf.default ${PKG_SYSCONFDIR}/dovecot.conf |
|
|
post-configure: |
post-configure: |
@cd ${WRKSRC} && \ |
@cd ${WRKSRC}; \ |
( \ |
for file in dovecot-example.conf; do \ |
${MV} dovecot-example.conf dovecot-example.conf.orig; \ |
${SED} ${FILES_SUBST_SED} $$file > $$file.new; \ |
${SED} ${FILES_SUBST_SED} dovecot-example.conf.orig > \ |
${MV} -f $$file.new $$file; \ |
dovecot-example.conf; \ |
done |
) |
|
|
|
post-install: |
post-install: |
${INSTALL_DATA_DIR} ${EGDIR} |
${INSTALL_DATA_DIR} ${EGDIR} |