2011-05-23 18:54:38 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.164 2011/05/23 22:54:38 sthen Exp $
|
2006-12-02 05:34:30 -05:00
|
|
|
|
2011-05-23 18:54:38 -04:00
|
|
|
#
|
|
|
|
# Dont forget to bump the Sieve package when you
|
|
|
|
# update Dovecot !!
|
|
|
|
# When the Dovecot V_MAJOR will change, dont forget
|
|
|
|
# to report it in mail/dovecot-pigeonhole
|
|
|
|
#
|
2003-07-14 19:44:28 -04:00
|
|
|
|
2011-05-23 18:54:38 -04:00
|
|
|
SHARED_ONLY= Yes
|
2004-05-27 12:38:30 -04:00
|
|
|
|
2011-05-23 18:54:38 -04:00
|
|
|
COMMENT= compact IMAP/POP3 server
|
2006-12-01 18:30:49 -05:00
|
|
|
|
2011-05-23 18:54:38 -04:00
|
|
|
V_MAJOR= 2.0
|
|
|
|
V_DOVECOT= 2.0.13
|
2006-12-01 18:30:49 -05:00
|
|
|
|
|
|
|
DISTNAME= dovecot-${V_DOVECOT}
|
2003-07-14 19:44:28 -04:00
|
|
|
CATEGORIES= mail
|
2007-09-08 04:44:39 -04:00
|
|
|
MASTER_SITES= ${HOMEPAGE}releases/${V_MAJOR}/
|
2010-03-23 17:32:07 -04:00
|
|
|
|
2011-05-23 18:54:38 -04: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 18:30:49 -05:00
|
|
|
|
|
|
|
HOMEPAGE= http://www.dovecot.org/
|
2003-07-14 19:44:28 -04:00
|
|
|
|
2007-09-01 16:11:21 -04:00
|
|
|
MAINTAINER= Brad Smith <brad@comstyle.com>
|
2003-07-14 19:44:28 -04:00
|
|
|
|
2011-05-23 18:54:38 -04:00
|
|
|
# LGPLv2.1 and MIT
|
2003-07-14 19:44:28 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2011-05-23 18:54:38 -04:00
|
|
|
WANTLIB= ${MODLIBICONV_WANTLIB} bz2 c crypto gssapi krb5 ssl z
|
2003-07-14 19:44:28 -04:00
|
|
|
|
2004-08-10 05:14:47 -04:00
|
|
|
MODULES= converters/libiconv
|
2010-11-19 02:23:05 -05:00
|
|
|
LIB_DEPENDS+= archivers/bzip2
|
2003-07-14 19:44:28 -04:00
|
|
|
|
2011-05-23 18:54:38 -04:00
|
|
|
CPPFLAGS= -I/usr/include/kerberosV -I${LOCALBASE}/include
|
|
|
|
|
|
|
|
USE_LIBTOOL= Yes
|
|
|
|
AUTOCONF_VERSION= 2.67
|
|
|
|
CONFIGURE_STYLE= autoconf
|
|
|
|
CONFIGURE_ARGS= --localstatedir=/var \
|
|
|
|
--with-gssapi \
|
|
|
|
--with-pam=no \
|
|
|
|
--with-shadow=no \
|
|
|
|
--with-vpopmail=no \
|
|
|
|
--with-rundir=/var/dovecot \
|
|
|
|
--with-statedir=/var/dovecot
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2006-12-01 18:30:49 -05:00
|
|
|
|
2009-01-26 09:47:02 -05:00
|
|
|
FLAVORS= bdb ldap mysql postgresql sqlite
|
2005-02-13 13:42:46 -05:00
|
|
|
FLAVOR?=
|
|
|
|
|
2009-01-26 09:47:02 -05:00
|
|
|
.if ${FLAVOR:L:Mbdb}
|
2011-05-23 18:54:38 -04:00
|
|
|
CONFIGURE_ARGS+=--with-db
|
|
|
|
LIB_DEPENDS+= databases/db/v4
|
|
|
|
WANTLIB+= db>=5
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include/db4
|
2009-01-26 09:47:02 -05:00
|
|
|
.endif
|
|
|
|
|
2005-10-06 13:03:21 -04:00
|
|
|
.if ${FLAVOR:L:Mldap}
|
2011-05-23 18:54:38 -04:00
|
|
|
CONFIGURE_ARGS+=--with-ldap
|
|
|
|
LIB_DEPENDS+= databases/openldap
|
|
|
|
WANTLIB+= lber ldap sasl2 asn1 com_err
|
2005-10-06 13:03:21 -04:00
|
|
|
.endif
|
|
|
|
|
2005-02-13 13:42:46 -05:00
|
|
|
.if ${FLAVOR:L:Mmysql}
|
2011-05-23 18:54:38 -04:00
|
|
|
CONFIGURE_ARGS+=--with-mysql
|
|
|
|
LIB_DEPENDS+= databases/mysql
|
|
|
|
WANTLIB+= m lib/mysql/mysqlclient>=10
|
2005-02-13 13:42:46 -05:00
|
|
|
.endif
|
|
|
|
|
2005-07-23 15:34:22 -04:00
|
|
|
.if ${FLAVOR:L:Mpostgresql}
|
2011-05-23 18:54:38 -04:00
|
|
|
CONFIGURE_ARGS+=--with-pgsql
|
|
|
|
LIB_DEPENDS+= databases/postgresql
|
|
|
|
WANTLIB+= pq>=4
|
2005-07-23 15:34:22 -04:00
|
|
|
.endif
|
|
|
|
|
2007-03-22 02:59:13 -04:00
|
|
|
.if ${FLAVOR:L:Msqlite}
|
2011-05-23 18:54:38 -04:00
|
|
|
CONFIGURE_ARGS+=--with-sqlite
|
|
|
|
LIB_DEPENDS+= databases/sqlite3
|
|
|
|
WANTLIB+= sqlite3
|
2006-12-01 18:30:49 -05:00
|
|
|
.endif
|
2005-09-04 14:22:30 -04:00
|
|
|
|
|
|
|
pre-build:
|
2011-05-23 18:54:38 -04:00
|
|
|
@${SUBST_CMD} ${WRKSRC}/doc/example-config/conf.d/10-mail.conf
|
2006-12-01 18:30:49 -05:00
|
|
|
|
2003-07-14 19:44:28 -04:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/dovecot-openssl.cnf \
|
2005-07-23 16:38:17 -04:00
|
|
|
${PREFIX}/share/examples/dovecot
|
2003-07-14 19:44:28 -04:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/doc/mkcert.sh \
|
|
|
|
${PREFIX}/sbin/dovecot-mkcert.sh
|
2011-05-23 18:54:38 -04:00
|
|
|
@find ${PREFIX}/lib/dovecot -name '*.a' -print | xargs rm
|
|
|
|
@find ${PREFIX}/lib/dovecot -name '*.la' -print | xargs rm
|
2003-07-14 19:44:28 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|