version 1.16, 2004/03/20 06:02:59 |
version 1.24, 2004/07/28 15:22:07 |
|
|
# $NetBSD$ |
# $NetBSD$ |
|
|
DISTNAME= dovecot-0.99.10.4 |
DISTNAME= dovecot-0.99.10.7 |
PKGREVISION= 1 |
|
CATEGORIES= mail |
CATEGORIES= mail |
MASTER_SITES= http://dovecot.fi/ |
MASTER_SITES= http://www.dovecot.org/releases/ |
|
|
|
.if 0 |
PATCH_SITES= http://www.roughtrade.net/dovecot/ |
PATCH_SITES= http://www.roughtrade.net/dovecot/ |
PATCHFILES= dovecot-crammd5-0.99.10.2.diff |
PATCHFILES= dovecot-crammd5-0.99.10.7.diff |
PATCH_DIST_STRIP= -p1 |
PATCH_DIST_STRIP= -p1 |
|
.endif |
|
|
MAINTAINER= tom@replic8.net |
MAINTAINER= tom@replic8.net |
HOMEPAGE= http://dovecot.fi/ |
HOMEPAGE= http://www.dovecot.org/ |
COMMENT= Secure IMAP and POP3 server |
COMMENT= Secure IMAP and POP3 server |
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews |
|
|
USE_BUILDLINK3= YES |
USE_BUILDLINK3= YES |
USE_LIBTOOL= YES |
USE_LIBTOOL= YES |
USE_PKGINSTALL= YES |
USE_PKGINSTALL= YES |
GNU_CONFIGURE= YES |
GNU_CONFIGURE= YES |
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} |
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} |
CONFIGURE_ARGS+= --localstatedir=/var |
CONFIGURE_ARGS+= --localstatedir=${VARBASE} |
CONFIGURE_ARGS+= --with-ssldir=${SSLCERTS} |
CONFIGURE_ARGS+= --with-ssldir=${SSLCERTS} |
|
|
# Avoid an ICE in gcc2 on sparc64 |
# Avoid an ICE in gcc2 on sparc64 |
Line 27 CONFIGURE_ENV+= F77=${FALSE} |
|
Line 30 CONFIGURE_ENV+= F77=${FALSE} |
|
|
|
.include "../../mk/bsd.prefs.mk" |
.include "../../mk/bsd.prefs.mk" |
|
|
BUILD_DEFS+= DOVECOT_USE_GNUTLS DOVECOT_USE_PGSQL \ |
BUILD_DEFS+= DOVECOT_USE_GNUTLS DOVECOT_USE_MYSQL \ |
USE_INET6 USE_OPENLDAP USE_SASL2 |
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 |
Line 38 CONFIGURE_ARGS+= --enable-ssl=ope |
|
Line 41 CONFIGURE_ARGS+= --enable-ssl=ope |
|
. include "../../security/openssl/buildlink3.mk" |
. include "../../security/openssl/buildlink3.mk" |
.endif |
.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]) |
.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/buildlink3.mk" |
. include "../../mk/pgsql.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]) |
Line 68 PKG_USERS= ${DOVECOT_USER}:${DOVECOT_GRO |
|
Line 76 PKG_USERS= ${DOVECOT_USER}:${DOVECOT_GRO |
|
EGDIR= ${PREFIX}/share/examples/dovecot |
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 |
|
|
|
INSTALLATION_DIRS= libexec/dovecot sbin share/doc/dovecot share/examples/dovecot |
|
|
post-configure: |
post-configure: |
@cd ${WRKSRC}; \ |
@cd ${WRKSRC}; \ |
for file in dovecot-example.conf; do \ |
for i in dovecot-example.conf; do \ |
${SED} ${FILES_SUBST_SED} $$file > $$file.new; \ |
${SED} ${FILES_SUBST_SED} $$i > $$i.new; \ |
${MV} -f $$file.new $$file; \ |
${MV} -f $$i.new $$i; \ |
done |
done |
|
|
post-install: |
post-install: |