mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-15 03:14:23 +00:00
9823d4bce0
(including proper kqueue support -- that means us, BSD folks! ;) ), the most important of which is a security hole (individuals are allowed to list other users' mailboxes). [1] Also move pkg-message --> files/pkg-message.in, list it in SUB_FILES and get rid of custom hack in Makefile [2] PR: ports/97193 [1] Submitted by: Jeremy Chadwick <freebsd@jdc.parodius.com> [1] itetcu (me) [2] Approved by: Robin Breathe <robin@isometry.net> (maintainer), lawrance (mentor) Security: http://www.securityfocus.com/archive/1/433878 [1] Security: http://www.dovecot.org/list/dovecot-news/2006-May/000006.html [1]
122 lines
2.6 KiB
Makefile
122 lines
2.6 KiB
Makefile
# ex:ts=8
|
|
# New ports collection makefile for: dovecot
|
|
# Date created: 12/08/2002
|
|
# Whom: Dominic Marks <dominic.marks@btinternet.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= dovecot
|
|
DISTVERSION= 1.0.beta8
|
|
CATEGORIES= mail ipv6
|
|
MASTER_SITES= http://www.dovecot.org/releases/
|
|
|
|
MAINTAINER= robin@isometry.net
|
|
COMMENT= Secure and compact IMAP and POP3 servers
|
|
|
|
USE_ICONV= yes
|
|
USE_RC_SUBR= dovecot.sh
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
|
CONFIGURE_ARGS= --without-shadow --localstatedir=/var
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
PORTDOCS= USE-WIKI-INSTEAD \
|
|
auth-protocol.txt auth.txt configuration.txt design.txt \
|
|
index.txt mail-storages.txt multiaccess.txt nfs.txt \
|
|
securecoding.txt variables.txt
|
|
.else
|
|
CONFIGURE_ARGS+= --without-docs
|
|
.endif
|
|
|
|
OPTIONS= KQUEUE "kqueue(2) support" off \
|
|
SASL2 "SASL2 support" off \
|
|
GSSAPI "GSSAPI support" off \
|
|
VPOPMAIL "VPopMail support" off \
|
|
LDAP "OpenLDAP support" off \
|
|
PGSQL "PostgreSQL support" off \
|
|
MYSQL "MySQL support" off \
|
|
SQLITE "SQLite support" off
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
## kqueue(2) support
|
|
#
|
|
.if defined(WITH_KQUEUE)
|
|
CONFIGURE_ARGS+= --with-ioloop=kqueue --with-notify=kqueue
|
|
.endif
|
|
|
|
## SASL2 support
|
|
#
|
|
.if defined(WITH_SASL2)
|
|
LIB_DEPENDS+= sasl2.2:${PORTSDIR}/security/cyrus-sasl2
|
|
CONFIGURE_ARGS+= --with-cyrus-sasl2
|
|
.endif
|
|
|
|
## GSSAPI support
|
|
#
|
|
.if defined(WITH_GSSAPI)
|
|
CONFIGURE_ARGS+= --with-gssapi
|
|
.else
|
|
CONFIGURE_ARGS+= --without-gssapi
|
|
.endif
|
|
|
|
## VPopMail Support
|
|
#
|
|
.if defined(WITH_VPOPMAIL)
|
|
VPOPMAIL= ${LOCALBASE}/vpopmail/bin/vchkpw
|
|
BUILD_DEPENDS+= ${VPOPMAIL}:${PORTSDIR}/mail/vpopmail
|
|
CONFIGURE_ARGS+= --with-vpopmail
|
|
.else
|
|
CONFIGURE_ARGS+= --without-vpopmail
|
|
.endif
|
|
|
|
## OpenLDAP Support
|
|
#
|
|
.if defined(WITH_LDAP)
|
|
USE_OPENLDAP= yes
|
|
CONFIGURE_ARGS+= --with-ldap
|
|
.endif
|
|
|
|
## PostgreSQL Support
|
|
#
|
|
.if defined(WITH_PGSQL)
|
|
USE_PGSQL= yes
|
|
CONFIGURE_ARGS+= --with-pgsql
|
|
.endif
|
|
|
|
## MySQL Support
|
|
#
|
|
.if defined(WITH_MYSQL)
|
|
USE_MYSQL= yes
|
|
CONFIGURE_ARGS+= --with-mysql
|
|
.endif
|
|
|
|
## SQLite Support
|
|
#
|
|
.if defined(WITH_SQLITE)
|
|
USE_SQLITE= 3
|
|
CONFIGURE_ARGS+= --with-sqlite
|
|
.endif
|
|
|
|
post-build:
|
|
@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' \
|
|
${WRKSRC}/dovecot-example.conf
|
|
|
|
pre-install:
|
|
@${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
|
|
|
post-install:
|
|
@${MKDIR} ${DATADIR}
|
|
${INSTALL_SCRIPT} ${WRKSRC}/doc/mkcert.sh ${DATADIR}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/dovecot-openssl.cnf ${DATADIR}
|
|
@${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.post.mk>
|