2004-02-01 17:01:30 +01:00
|
|
|
# ex:ts=8
|
2002-09-01 16:17:07 +02:00
|
|
|
# New ports collection makefile for: dovecot
|
|
|
|
# Date created: 12/08/2002
|
2003-06-27 06:32:51 +02:00
|
|
|
# Whom: Dominic Marks <dominic.marks@btinternet.com>
|
2002-09-01 16:17:07 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= dovecot
|
2006-05-14 18:43:42 +02:00
|
|
|
DISTVERSION= 1.0.beta8
|
2002-09-01 16:17:07 +02:00
|
|
|
CATEGORIES= mail ipv6
|
2004-07-28 14:18:11 +02:00
|
|
|
MASTER_SITES= http://www.dovecot.org/releases/
|
2002-09-01 16:17:07 +02:00
|
|
|
|
2003-12-08 17:08:14 +01:00
|
|
|
MAINTAINER= robin@isometry.net
|
2003-03-31 11:18:00 +02:00
|
|
|
COMMENT= Secure and compact IMAP and POP3 servers
|
2002-09-01 16:17:07 +02:00
|
|
|
|
2004-03-30 21:20:22 +02:00
|
|
|
USE_ICONV= yes
|
2006-02-12 21:12:06 +01:00
|
|
|
USE_RC_SUBR= dovecot.sh
|
2004-05-29 23:57:54 +02:00
|
|
|
|
2002-09-01 16:17:07 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2005-04-12 05:26:56 +02:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2006-02-12 21:12:06 +01:00
|
|
|
CONFIGURE_ARGS= --without-shadow --localstatedir=/var
|
2003-11-16 15:48:57 +01:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2003-02-16 00:13:10 +01:00
|
|
|
|
2006-05-14 18:43:42 +02:00
|
|
|
SUB_FILES= pkg-message
|
2003-08-09 00:33:45 +02:00
|
|
|
|
2006-02-12 21:12:06 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2005-12-20 12:55:11 +01:00
|
|
|
PORTDOCS= USE-WIKI-INSTEAD \
|
2005-09-26 19:17:04 +02:00
|
|
|
auth-protocol.txt auth.txt configuration.txt design.txt \
|
2005-12-20 12:55:11 +01:00
|
|
|
index.txt mail-storages.txt multiaccess.txt nfs.txt \
|
|
|
|
securecoding.txt variables.txt
|
2006-02-12 21:12:06 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-docs
|
|
|
|
.endif
|
2003-05-03 23:50:26 +02:00
|
|
|
|
2006-05-06 14:20:29 +02:00
|
|
|
OPTIONS= KQUEUE "kqueue(2) support" off \
|
2006-02-12 21:12:06 +01:00
|
|
|
SASL2 "SASL2 support" off \
|
2005-12-20 12:55:11 +01:00
|
|
|
GSSAPI "GSSAPI support" off \
|
2004-05-29 23:57:54 +02:00
|
|
|
VPOPMAIL "VPopMail support" off \
|
|
|
|
LDAP "OpenLDAP support" off \
|
2004-06-21 20:56:29 +02:00
|
|
|
PGSQL "PostgreSQL support" off \
|
2005-10-27 13:26:38 +02:00
|
|
|
MYSQL "MySQL support" off \
|
2006-02-12 21:12:06 +01:00
|
|
|
SQLITE "SQLite support" off
|
2004-05-29 23:57:54 +02:00
|
|
|
|
2004-02-01 17:01:30 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
2003-05-03 23:50:26 +02:00
|
|
|
|
2006-02-12 21:12:06 +01:00
|
|
|
## kqueue(2) support
|
|
|
|
#
|
2006-05-14 18:43:42 +02:00
|
|
|
.if defined(WITH_KQUEUE)
|
2006-02-12 21:12:06 +01:00
|
|
|
CONFIGURE_ARGS+= --with-ioloop=kqueue --with-notify=kqueue
|
2005-10-20 22:55:00 +02:00
|
|
|
.endif
|
|
|
|
|
2004-02-01 17:01:30 +01:00
|
|
|
## SASL2 support
|
2003-02-16 00:13:10 +01:00
|
|
|
#
|
2003-12-08 17:08:14 +01:00
|
|
|
.if defined(WITH_SASL2)
|
2004-02-01 17:01:30 +01:00
|
|
|
LIB_DEPENDS+= sasl2.2:${PORTSDIR}/security/cyrus-sasl2
|
2003-02-16 00:13:10 +01:00
|
|
|
CONFIGURE_ARGS+= --with-cyrus-sasl2
|
|
|
|
.endif
|
|
|
|
|
2005-12-20 12:55:11 +01:00
|
|
|
## GSSAPI support
|
|
|
|
#
|
|
|
|
.if defined(WITH_GSSAPI)
|
|
|
|
CONFIGURE_ARGS+= --with-gssapi
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-gssapi
|
|
|
|
.endif
|
|
|
|
|
2004-02-01 17:01:30 +01:00
|
|
|
## VPopMail Support
|
2003-02-16 00:13:10 +01:00
|
|
|
#
|
2003-12-08 17:08:14 +01:00
|
|
|
.if defined(WITH_VPOPMAIL)
|
2004-02-01 17:01:30 +01:00
|
|
|
VPOPMAIL= ${LOCALBASE}/vpopmail/bin/vchkpw
|
|
|
|
BUILD_DEPENDS+= ${VPOPMAIL}:${PORTSDIR}/mail/vpopmail
|
2003-02-16 00:13:10 +01:00
|
|
|
CONFIGURE_ARGS+= --with-vpopmail
|
2004-07-28 14:18:11 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-vpopmail
|
2003-02-16 00:13:10 +01:00
|
|
|
.endif
|
|
|
|
|
2004-02-01 17:01:30 +01:00
|
|
|
## OpenLDAP Support
|
2003-05-03 23:50:26 +02:00
|
|
|
#
|
2003-12-08 17:08:14 +01:00
|
|
|
.if defined(WITH_LDAP)
|
2004-02-01 17:01:30 +01:00
|
|
|
USE_OPENLDAP= yes
|
2003-05-03 23:50:26 +02:00
|
|
|
CONFIGURE_ARGS+= --with-ldap
|
|
|
|
.endif
|
|
|
|
|
2004-02-01 17:01:30 +01:00
|
|
|
## PostgreSQL Support
|
2003-05-03 23:50:26 +02:00
|
|
|
#
|
2003-12-08 17:08:14 +01:00
|
|
|
.if defined(WITH_PGSQL)
|
2005-01-31 01:35:55 +01:00
|
|
|
USE_PGSQL= yes
|
2003-05-03 23:50:26 +02:00
|
|
|
CONFIGURE_ARGS+= --with-pgsql
|
|
|
|
.endif
|
|
|
|
|
2004-06-21 20:56:29 +02:00
|
|
|
## MySQL Support
|
|
|
|
#
|
|
|
|
.if defined(WITH_MYSQL)
|
|
|
|
USE_MYSQL= yes
|
2004-07-28 14:18:11 +02:00
|
|
|
CONFIGURE_ARGS+= --with-mysql
|
2004-06-21 20:56:29 +02:00
|
|
|
.endif
|
|
|
|
|
2006-02-12 21:12:06 +01:00
|
|
|
## SQLite Support
|
|
|
|
#
|
|
|
|
.if defined(WITH_SQLITE)
|
|
|
|
USE_SQLITE= 3
|
|
|
|
CONFIGURE_ARGS+= --with-sqlite
|
2005-12-20 12:55:11 +01:00
|
|
|
.endif
|
|
|
|
|
2004-02-01 17:01:30 +01:00
|
|
|
post-build:
|
2005-12-20 12:55:11 +01:00
|
|
|
@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' \
|
|
|
|
${WRKSRC}/dovecot-example.conf
|
2004-02-01 17:01:30 +01:00
|
|
|
|
|
|
|
pre-install:
|
|
|
|
@${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
|
|
|
|
|
|
|
post-install:
|
2006-02-12 21:12:06 +01:00
|
|
|
@${MKDIR} ${DATADIR}
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/doc/mkcert.sh ${DATADIR}
|
2006-04-15 21:22:48 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/dovecot-openssl.cnf ${DATADIR}
|
2004-02-01 17:01:30 +01:00
|
|
|
@${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
2003-12-08 17:08:14 +01:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2002-09-01 16:17:07 +02:00
|
|
|
|
2004-02-01 17:01:30 +01:00
|
|
|
.include <bsd.port.post.mk>
|