2001-05-05 21:45:53 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.14 2001/05/06 01:46:03 lebel Exp $
|
|
|
|
|
|
|
|
COMMENT= "imap server for maildir format mailboxes"
|
2000-07-02 23:42:55 -04:00
|
|
|
|
2001-02-27 23:55:03 -05:00
|
|
|
DISTNAME= courier-imap-1.3.5
|
2000-07-02 23:42:55 -04:00
|
|
|
CATEGORIES= mail
|
2001-05-05 21:45:53 -04:00
|
|
|
NEED_VERSION= 1.402
|
2000-08-10 17:12:48 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= courier
|
2000-07-02 23:42:55 -04:00
|
|
|
|
2000-10-01 09:27:13 -04:00
|
|
|
MAINTAINER= Anil Madhavapeddy <avsm@openbsd.org>
|
2000-08-10 17:12:48 -04:00
|
|
|
HOMEPAGE= http://www.inter7.com/courierimap/
|
2000-07-02 23:42:55 -04:00
|
|
|
|
2000-09-10 16:38:10 -04:00
|
|
|
# GPL
|
2000-07-02 23:42:55 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2001-03-21 22:10:48 -05:00
|
|
|
FLAVORS= pop3 mysql ldap
|
2000-11-22 06:42:31 -05:00
|
|
|
FLAVOR?=
|
|
|
|
|
2001-02-01 19:22:48 -05:00
|
|
|
SEPARATE_BUILD= concurrent
|
2001-02-21 14:04:56 -05:00
|
|
|
COURIERCONF= ${SYSCONFDIR}/courier-imap
|
2001-03-21 22:10:48 -05:00
|
|
|
COURIERSTATE= /var/run/courier-imap
|
|
|
|
SUBST_VARS= COURIERSTATE COURIERCONF
|
2001-02-21 14:04:56 -05:00
|
|
|
EXAMPLE_DIR= ${PREFIX}/share/examples/courier-imap
|
|
|
|
|
|
|
|
CONFIGURE_STYLE= gnu old
|
2001-02-27 23:55:03 -05:00
|
|
|
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" \
|
|
|
|
CXXFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
|
|
|
|
CPPFLAGS="${CFLAGS} -I${LOCALBASE}/include"
|
2001-02-01 19:22:48 -05:00
|
|
|
CONFIGURE_ARGS= --disable-root-check --datadir=${PREFIX}/sbin \
|
2001-02-27 23:55:03 -05:00
|
|
|
--with-userdb=${SYSCONFDIR}/userdb --with-authuserdb \
|
2001-03-21 22:10:48 -05:00
|
|
|
--sysconfdir=${COURIERCONF} --with-authdaemon \
|
|
|
|
--with-authdaemonvar=${COURIERSTATE} \
|
2001-02-27 23:55:03 -05:00
|
|
|
--enable-workarounds-for-imap-client-bugs
|
2000-07-02 23:42:55 -04:00
|
|
|
|
2001-03-21 22:10:48 -05:00
|
|
|
.if ${FLAVOR:L:Mmysql} && ${FLAVOR:L:Mldap}
|
|
|
|
.BEGIN:
|
|
|
|
@echo "Conflicting flavors: You must choose either ldap or mysql."
|
|
|
|
@exit 1
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mmysql}
|
|
|
|
CONFIGURE_ARGS+= --with-authmysql
|
|
|
|
LIB_DEPENDS+= mysqlclient::databases/mysql
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-authmysql
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mldap}
|
|
|
|
CONFIGURE_ARGS+= --with-authldap
|
|
|
|
LIB_DEPENDS+= ldap.2::databases/openldap
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-authldap
|
|
|
|
.endif
|
|
|
|
|
2000-07-03 04:11:24 -04:00
|
|
|
post-install:
|
2000-08-10 17:12:48 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/courier-imap
|
2000-12-29 13:51:56 -05:00
|
|
|
.for i in pop3d-ssl imapd-ssl pop3d imapd
|
2001-03-21 22:10:48 -05:00
|
|
|
${INSTALL_DATA} ${WRKINST}${COURIERCONF}/$i.dist ${EXAMPLE_DIR}/$i
|
2000-12-29 13:51:56 -05:00
|
|
|
.endfor
|
2001-03-21 22:10:48 -05:00
|
|
|
.for i in imapd.cnf pop3d.cnf quotawarnmsg.example authdaemonrc.dist
|
|
|
|
${INSTALL_DATA} ${WRKINST}${COURIERCONF}/$i ${EXAMPLE_DIR}
|
2000-11-22 06:42:31 -05:00
|
|
|
.endfor
|
2000-07-02 23:42:55 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|