2012-01-16 23:59:22 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.180 2012/01/16 23:59:22 sthen Exp $
|
2003-07-14 23:44:28 +00:00
|
|
|
|
2011-05-23 22:54:38 +00:00
|
|
|
SHARED_ONLY= Yes
|
2004-05-27 16:38:30 +00:00
|
|
|
|
2011-05-28 19:40:41 +00:00
|
|
|
COMMENT-server= compact IMAP/POP3 server
|
|
|
|
COMMENT-ldap= LDAP authentication support for Dovecot
|
|
|
|
COMMENT-mysql= MySQL authentication / dictionary support for Dovecot
|
|
|
|
COMMENT-postgresql= PostgreSQL authentication / dictionary support for Dovecot
|
|
|
|
COMMENT-sqlite= SQLite authentication / dictionary support for Dovecot
|
2006-12-01 23:30:49 +00:00
|
|
|
|
2011-05-23 23:15:05 +00:00
|
|
|
# Bump dovecot-pigeonhole every time you update to a new Dovecot version.
|
2011-05-23 22:54:38 +00:00
|
|
|
V_MAJOR= 2.0
|
2012-01-16 16:34:17 +00:00
|
|
|
V_DOVECOT= 2.0.17
|
2006-12-01 23:30:49 +00:00
|
|
|
|
|
|
|
DISTNAME= dovecot-${V_DOVECOT}
|
2011-05-28 19:40:41 +00:00
|
|
|
PKGNAME= dovecot-${V_DOVECOT}
|
|
|
|
PKGNAME-server= dovecot-${V_DOVECOT}
|
2012-01-16 23:59:22 +00:00
|
|
|
REVISION-server= 0
|
2011-05-28 19:40:41 +00:00
|
|
|
PKGNAME-ldap= dovecot-ldap-${V_DOVECOT}
|
|
|
|
PKGNAME-mysql= dovecot-mysql-${V_DOVECOT}
|
|
|
|
PKGNAME-postgresql= dovecot-postgresql-${V_DOVECOT}
|
|
|
|
PKGNAME-sqlite= dovecot-sqlite-${V_DOVECOT}
|
2003-07-14 23:44:28 +00:00
|
|
|
CATEGORIES= mail
|
2007-09-08 08:44:39 +00:00
|
|
|
MASTER_SITES= ${HOMEPAGE}releases/${V_MAJOR}/
|
2010-03-23 21:32:07 +00:00
|
|
|
|
2011-05-23 22:54:38 +00:00
|
|
|
SHARED_LIBS= dovecot-lda 0.0 \
|
|
|
|
dovecot-login 0.0 \
|
|
|
|
dovecot-sql 0.0 \
|
|
|
|
dovecot-storage 0.0 \
|
|
|
|
dovecot 0.0
|
2006-12-01 23:30:49 +00:00
|
|
|
|
|
|
|
HOMEPAGE= http://www.dovecot.org/
|
2003-07-14 23:44:28 +00:00
|
|
|
|
2007-09-01 20:11:21 +00:00
|
|
|
MAINTAINER= Brad Smith <brad@comstyle.com>
|
2003-07-14 23:44:28 +00:00
|
|
|
|
2011-05-23 22:54:38 +00:00
|
|
|
# LGPLv2.1 and MIT
|
2003-07-14 23:44:28 +00:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2012-01-16 16:34:17 +00:00
|
|
|
|
|
|
|
WANTLIB-server= asn1 bz2 c crypto gssapi krb5 ssl z ${MODLIBICONV_WANTLIB}
|
|
|
|
WANTLIB-ldap= asn1 com_err crypto gssapi krb5 lber-2.4 ldap-2.4 sasl2 ssl
|
|
|
|
WANTLIB-mysql= crypto m lib/mysql/mysqlclient>=10 ssl z
|
|
|
|
WANTLIB-postgresql= com_err crypto pq>=4 ssl
|
|
|
|
WANTLIB-sqlite= sqlite3 z
|
2003-07-14 23:44:28 +00:00
|
|
|
|
2004-08-10 09:14:47 +00:00
|
|
|
MODULES= converters/libiconv
|
2010-11-19 07:23:05 +00:00
|
|
|
LIB_DEPENDS+= archivers/bzip2
|
2012-01-16 16:34:17 +00:00
|
|
|
LIB_DEPENDS-ldap= databases/openldap
|
|
|
|
RUN_DEPENDS-ldap= ${BASE_PKGPATH}=${V_DOVECOT}
|
|
|
|
LIB_DEPENDS-mysql= databases/mysql
|
|
|
|
RUN_DEPENDS-mysql= ${BASE_PKGPATH}=${V_DOVECOT}
|
|
|
|
LIB_DEPENDS-postgresql= databases/postgresql
|
|
|
|
RUN_DEPENDS-postgresql= ${BASE_PKGPATH}=${V_DOVECOT}
|
|
|
|
LIB_DEPENDS-sqlite= databases/sqlite3
|
|
|
|
RUN_DEPENDS-sqlite= ${BASE_PKGPATH}=${V_DOVECOT}
|
2011-05-23 22:54:38 +00:00
|
|
|
|
|
|
|
USE_LIBTOOL= Yes
|
2011-06-18 22:41:27 +00:00
|
|
|
CONFIGURE_STYLE= gnu
|
2011-05-23 22:54:38 +00:00
|
|
|
CONFIGURE_ARGS= --localstatedir=/var \
|
|
|
|
--with-gssapi \
|
|
|
|
--with-rundir=/var/dovecot \
|
2011-05-28 19:40:41 +00:00
|
|
|
--with-sql=plugin \
|
2011-05-24 09:40:24 +00:00
|
|
|
--with-statedir=/var/dovecot \
|
|
|
|
--without-pam \
|
|
|
|
--without-shadow \
|
|
|
|
--without-vpopmail
|
2011-06-18 22:41:27 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
2011-05-23 22:54:38 +00:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2006-12-01 23:30:49 +00:00
|
|
|
|
2012-01-16 16:34:17 +00:00
|
|
|
PSEUDO_FLAVORS= no_db no_ldap no_mysql no_postgresql no_sqlite
|
|
|
|
FLAVOR?=
|
|
|
|
.if ${FLAVOR:Mno_db}
|
|
|
|
FLAVOR+= no_ldap no_mysql no_postgresql no_sqlite
|
|
|
|
.endif
|
|
|
|
|
|
|
|
MULTI_PACKAGES= -server
|
|
|
|
SUBPACKAGE?= -server
|
|
|
|
|
|
|
|
.if !${FLAVOR:L:Mno_ldap}
|
|
|
|
MULTI_PACKAGES+=-ldap
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !${FLAVOR:L:Mno_mysql}
|
|
|
|
MULTI_PACKAGES+=-mysql
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !${FLAVOR:L:Mno_postgresql}
|
|
|
|
MULTI_PACKAGES+=-postgresql
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !${FLAVOR:L:Mno_sqlite}
|
|
|
|
MULTI_PACKAGES+=-sqlite
|
|
|
|
.endif
|
2005-02-13 18:42:46 +00:00
|
|
|
|
2011-11-18 13:20:08 +00:00
|
|
|
.include <bsd.port.arch.mk>
|
|
|
|
|
|
|
|
.if ${BUILD_PACKAGES:M-ldap}
|
|
|
|
CONFIGURE_ARGS+=--with-ldap=plugin
|
2005-10-06 17:03:21 +00:00
|
|
|
.endif
|
|
|
|
|
2011-11-18 13:20:08 +00:00
|
|
|
.if ${BUILD_PACKAGES:M-mysql}
|
|
|
|
CONFIGURE_ARGS+=--with-mysql
|
2005-02-13 18:42:46 +00:00
|
|
|
.endif
|
|
|
|
|
2011-11-18 13:20:08 +00:00
|
|
|
.if ${BUILD_PACKAGES:M-postgresql}
|
|
|
|
CONFIGURE_ARGS+=--with-pgsql
|
2005-07-23 19:34:22 +00:00
|
|
|
.endif
|
|
|
|
|
2011-11-18 13:20:08 +00:00
|
|
|
.if ${BUILD_PACKAGES:M-sqlite}
|
|
|
|
CONFIGURE_ARGS+=--with-sqlite
|
2006-12-01 23:30:49 +00:00
|
|
|
.endif
|
2005-09-04 18:22:30 +00:00
|
|
|
|
2011-06-18 22:41:27 +00:00
|
|
|
post-extract:
|
|
|
|
@${INSTALL} -m 555 ${FILESDIR}/krb5-config ${WRKDIR}/bin
|
|
|
|
|
2005-09-04 18:22:30 +00:00
|
|
|
pre-build:
|
2011-05-23 22:54:38 +00:00
|
|
|
@${SUBST_CMD} ${WRKSRC}/doc/example-config/conf.d/10-mail.conf
|
2006-12-01 23:30:49 +00:00
|
|
|
|
2003-07-14 23:44:28 +00:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/dovecot-openssl.cnf \
|
2005-07-23 20:38:17 +00:00
|
|
|
${PREFIX}/share/examples/dovecot
|
2003-07-14 23:44:28 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/doc/mkcert.sh \
|
|
|
|
${PREFIX}/sbin/dovecot-mkcert.sh
|
2011-05-23 22:54:38 +00:00
|
|
|
@find ${PREFIX}/lib/dovecot -name '*.a' -print | xargs rm
|
|
|
|
@find ${PREFIX}/lib/dovecot -name '*.la' -print | xargs rm
|
2003-07-14 23:44:28 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|