2005-07-23 15:34:22 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.17 2005/07/23 19:34:22 brad Exp $
|
2003-07-14 19:44:28 -04:00
|
|
|
|
|
|
|
COMMENT= "compact IMAP/POP3 server"
|
2004-05-27 12:38:30 -04:00
|
|
|
|
2005-02-12 07:17:07 -05:00
|
|
|
DISTNAME= dovecot-0.99.14
|
2005-02-13 13:37:32 -05:00
|
|
|
PKGNAME= ${DISTNAME}p0
|
2003-07-14 19:44:28 -04:00
|
|
|
CATEGORIES= mail
|
2004-07-21 10:19:19 -04:00
|
|
|
MASTER_SITES= ${HOMEPAGE}releases/
|
2003-07-14 19:44:28 -04:00
|
|
|
|
2004-05-27 12:38:30 -04:00
|
|
|
HOMEPAGE= http://dovecot.org/
|
2003-07-14 19:44:28 -04:00
|
|
|
|
2004-06-22 17:05:20 -04:00
|
|
|
MAINTAINER= Brad Smith <brad@openbsd.org>
|
2003-07-14 19:44:28 -04:00
|
|
|
|
|
|
|
# LGPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2005-01-02 07:56:04 -05:00
|
|
|
WANTLIB= c crypto ssl
|
2003-07-14 19:44:28 -04:00
|
|
|
|
2004-08-10 05:14:47 -04:00
|
|
|
MODULES= converters/libiconv
|
2003-07-14 19:44:28 -04:00
|
|
|
|
2005-07-23 15:34:22 -04:00
|
|
|
FLAVORS+= mysql postgresql
|
2005-02-13 13:42:46 -05:00
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mmysql}
|
|
|
|
CONFIGURE_ARGS+= --with-mysql
|
|
|
|
LIB_DEPENDS+= lib/mysql/mysqlclient.10::databases/mysql
|
|
|
|
WANTLIB+= m z
|
|
|
|
.endif
|
|
|
|
|
2005-07-23 15:34:22 -04:00
|
|
|
.if ${FLAVOR:L:Mpostgresql}
|
|
|
|
CONFIGURE_ARGS+= --with-pgsql
|
|
|
|
LIB_DEPENDS+= pq.4::databases/postgresql
|
|
|
|
.endif
|
|
|
|
|
2004-05-09 20:06:47 -04:00
|
|
|
CONFIGURE_STYLE= autoconf
|
2004-05-27 12:38:30 -04:00
|
|
|
AUTOCONF_VERSION= 2.59
|
2003-07-14 19:44:28 -04:00
|
|
|
CONFIGURE_ARGS+=--without-pam --without-shadow --without-vpopmail \
|
|
|
|
--localstatedir=/var --with-ssldir=/etc/ssl --with-ssl=openssl
|
2005-02-13 13:37:32 -05:00
|
|
|
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" \
|
|
|
|
CFLAGS="${CFLAGS} -I${LOCALBASE}/include"
|
2003-07-14 19:44:28 -04:00
|
|
|
|
|
|
|
post-configure:
|
|
|
|
@perl -pi -e 's|_PREFIX_|${PREFIX}|g' ${WRKSRC}/dovecot-example.conf
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/dovecot
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/dovecot-openssl.cnf \
|
|
|
|
${WRKSRC}/dovecot-example.conf ${PREFIX}/share/examples/dovecot
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/doc/mkcert.sh \
|
|
|
|
${PREFIX}/sbin/dovecot-mkcert.sh
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|