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
|
2005-10-20 22:55:00 +02:00
|
|
|
DISTVERSION= 1.0.alpha4
|
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
|
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}
|
2005-09-26 19:17:04 +02:00
|
|
|
CONFIGURE_ARGS= --without-shadow --with-pam \
|
|
|
|
--localstatedir=/var --with-ssl=openssl
|
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
|
|
|
|
2003-12-08 17:08:14 +01:00
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
2003-08-09 00:33:45 +02:00
|
|
|
|
2005-09-26 19:17:04 +02:00
|
|
|
DOCS= USE-WIKI-INSTEAD \
|
|
|
|
auth-protocol.txt auth.txt configuration.txt design.txt \
|
2003-12-08 17:08:14 +01:00
|
|
|
index.txt mail-storages.txt mkcert.sh multiaccess.txt \
|
2005-09-26 19:17:04 +02:00
|
|
|
nfs.txt securecoding.txt variables.txt \
|
|
|
|
dovecot-ldap.conf dovecot-sql.conf dovecot-openssl.cnf
|
2003-05-03 23:50:26 +02:00
|
|
|
|
2005-09-26 19:17:04 +02:00
|
|
|
OPTIONS= SASL2 "SASL2 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 \
|
|
|
|
MYSQL "MySQL 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
|
|
|
|
2005-10-20 22:55:00 +02:00
|
|
|
.if ${OSVERSION} < 500038
|
|
|
|
USE_RC_SUBR= dovecot.sh
|
|
|
|
.else
|
|
|
|
USE_RCORDER= dovecot.sh
|
|
|
|
.endif
|
|
|
|
|
2004-02-01 17:01:30 +01:00
|
|
|
## SASL2 support
|
2003-02-16 00:13:10 +01:00
|
|
|
#
|
|
|
|
# SASL provides authentication support to
|
|
|
|
# session-based protocols. This is can be
|
|
|
|
# used by dovecot for authentication sources.
|
|
|
|
#
|
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
|
|
|
|
|
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
|
|
|
|
|
2004-02-01 17:01:30 +01:00
|
|
|
post-build:
|
2005-09-26 19:17:04 +02:00
|
|
|
@${SED} -e 's,%%PREFIX%%,${PREFIX},g' \
|
2004-07-28 14:18:11 +02:00
|
|
|
${WRKSRC}/dovecot-example.conf >${WRKDIR}/dovecot.conf.sample
|
2004-02-01 17:01:30 +01:00
|
|
|
|
|
|
|
pre-install:
|
|
|
|
@${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
|
|
|
|
2003-01-12 18:40:06 +01:00
|
|
|
do-install:
|
2003-05-03 23:50:26 +02:00
|
|
|
@${MKDIR} ${PREFIX}/libexec/dovecot
|
2003-01-12 18:40:06 +01:00
|
|
|
${INSTALL_PROGRAM} \
|
2005-09-26 19:17:04 +02:00
|
|
|
${WRKSRC}/src/auth/checkpassword-reply \
|
2003-02-16 00:13:10 +01:00
|
|
|
${WRKSRC}/src/auth/dovecot-auth \
|
2005-09-26 19:17:04 +02:00
|
|
|
${WRKSRC}/src/deliver/deliver \
|
|
|
|
${WRKSRC}/src/imap/imap \
|
2003-02-16 00:13:10 +01:00
|
|
|
${WRKSRC}/src/imap-login/imap-login \
|
2005-09-26 19:17:04 +02:00
|
|
|
${WRKSRC}/src/pop3/pop3 \
|
2003-02-16 00:13:10 +01:00
|
|
|
${WRKSRC}/src/pop3-login/pop3-login \
|
2005-09-26 19:17:04 +02:00
|
|
|
${WRKSRC}/src/util/rawlog \
|
2003-05-03 23:50:26 +02:00
|
|
|
${PREFIX}/libexec/dovecot/
|
2005-09-26 19:17:04 +02:00
|
|
|
${INSTALL_PROGRAM} \
|
|
|
|
${WRKSRC}/src/master/dovecot \
|
|
|
|
${WRKSRC}/src/util/dovecotpw \
|
|
|
|
${PREFIX}/sbin/
|
2004-07-28 14:18:11 +02:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/dovecot.conf.sample ${PREFIX}/etc/
|
2002-09-01 16:17:07 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2003-11-16 15:48:57 +01:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2004-02-01 17:01:30 +01:00
|
|
|
cd ${WRKSRC}/doc && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
|
2002-09-01 16:17:07 +02:00
|
|
|
.endif
|
2004-02-01 17:01:30 +01:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
2003-12-08 17:08:14 +01:00
|
|
|
@${SED} -e 's,%%PREFIX%%,${PREFIX},g' \
|
|
|
|
-e 's,%%DOCSDIR%%,${DOCSDIR},g' \
|
|
|
|
${.CURDIR}/pkg-message >${PKGMESSAGE}
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
2002-09-01 16:17:07 +02:00
|
|
|
|
2004-02-01 17:01:30 +01:00
|
|
|
.include <bsd.port.post.mk>
|