2000-03-11 21:16:32 +01:00
|
|
|
# New ports collection makefile for: courierimap
|
|
|
|
# Date created: 19 Feb 2000
|
|
|
|
# Whom: Neil Blakey-Milner
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-13 22:01:08 +02:00
|
|
|
PORTNAME= courier-imap
|
2001-11-16 10:22:36 +01:00
|
|
|
PORTVERSION= 1.3.12
|
2001-09-11 14:20:17 +02:00
|
|
|
PORTREVISION= 0
|
2000-06-21 15:36:13 +02:00
|
|
|
CATEGORIES= mail ipv6
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= courier
|
2000-03-11 21:16:32 +01:00
|
|
|
|
|
|
|
MAINTAINER= nbm@FreeBSD.org
|
|
|
|
|
|
|
|
GNU_CONFIGURE= YES
|
|
|
|
USE_GMAKE= YES
|
|
|
|
|
2001-11-16 10:22:36 +01:00
|
|
|
#
|
|
|
|
# options available:
|
|
|
|
#
|
|
|
|
# WITHOUT_OPENSSL: Don't build in TLS support
|
|
|
|
# WITHOUT_PAM: Don't build in PAM support
|
|
|
|
# WITH_VPOPMAIL: Build in vpopmail support
|
|
|
|
# WITH_MYSQL: Build in mysql support
|
|
|
|
# WITH_POSTGRESQL: Build in postgresql support
|
|
|
|
#
|
2000-11-09 02:00:00 +01:00
|
|
|
|
|
|
|
.if !defined(WITHOUT_OPENSSL)
|
|
|
|
USE_OPENSSL= YES
|
|
|
|
PLIST_SUB= OPENSSLFLAG=
|
|
|
|
.else
|
|
|
|
PLIST_SUB= OPENSSLFLAG="@comment "
|
|
|
|
.endif
|
|
|
|
|
2000-03-11 21:16:32 +01:00
|
|
|
CONFIGURE_ARGS= --without-authldap --with-authldaprc=filename \
|
2001-08-23 13:46:18 +02:00
|
|
|
--without-authshadow \
|
2001-05-24 16:43:37 +02:00
|
|
|
--without-authcram \
|
2001-01-03 16:44:16 +01:00
|
|
|
--sysconfdir=${PREFIX}/etc/courier-imap \
|
2000-07-19 16:21:34 +02:00
|
|
|
--with-userdb=${PREFIX}/etc/userdb \
|
2000-09-18 15:24:16 +02:00
|
|
|
--datadir=${PREFIX}/share/courier-imap \
|
2000-09-22 14:44:28 +02:00
|
|
|
--libexecdir=${PREFIX}/libexec/courier-imap \
|
2001-03-18 17:08:42 +01:00
|
|
|
--enable-workarounds-for-imap-client-bugs \
|
2000-07-31 13:05:39 +02:00
|
|
|
--disable-root-check
|
2000-03-11 21:16:32 +01:00
|
|
|
|
2001-08-27 14:54:57 +02:00
|
|
|
VPOPMAILDIR?= ${LOCALBASE}/vpopmail
|
2001-05-24 16:43:37 +02:00
|
|
|
.if !defined(WITH_VPOPMAIL)
|
|
|
|
CONFIGURE_ARGS+= \
|
|
|
|
--without-authvchkpw
|
|
|
|
.else
|
2001-09-11 14:20:17 +02:00
|
|
|
CONFIGURE_ARGS+= \
|
|
|
|
--with-authvchkpw
|
2001-08-27 14:54:57 +02:00
|
|
|
BUILD_DEPENDS+= ${VPOPMAILDIR}/lib/libvpopmail.a:${PORTSDIR}/mail/vpopmail
|
2001-05-24 16:43:37 +02:00
|
|
|
.endif
|
|
|
|
|
2001-08-27 14:54:57 +02:00
|
|
|
.if !defined(WITH_MYSQL)
|
|
|
|
CONFIGURE_ARGS+= \
|
2001-08-31 12:22:02 +02:00
|
|
|
--without-authmysql
|
2001-08-27 14:54:57 +02:00
|
|
|
PLIST_SUB+= MYSQLFLAG="@comment "
|
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= mysqlclient.10:${PORTSDIR}/databases/mysql323-client
|
|
|
|
PLIST_SUB+= MYSQLFLAG=""
|
|
|
|
.endif
|
|
|
|
|
2001-11-16 10:22:36 +01:00
|
|
|
.if !defined(WITH_POSTGRESQL)
|
|
|
|
CONFIGURE_ARGS+= \
|
|
|
|
--without-authpgsql
|
|
|
|
PLIST_SUB+= PGSQLFLAG="@comment "
|
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= pq.2:${PORTSDIR}/databases/postgresql7
|
|
|
|
PLIST_SUB+= PGSQLFLAG=""
|
|
|
|
.endif
|
|
|
|
|
2001-08-23 13:46:18 +02:00
|
|
|
.if !defined(WITHOUT_PAM)
|
|
|
|
CONFIGURE_ARGS+= \
|
|
|
|
--with-authpam
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= \
|
|
|
|
--without-authpam
|
|
|
|
.endif
|
|
|
|
|
2000-05-16 18:38:23 +02:00
|
|
|
MAN1= maildirmake.1
|
2000-03-11 21:16:32 +01:00
|
|
|
MAN8= authlib.8 makeuserdb.8 userdb.8 userdbpw.8 couriertcpd.8 \
|
2000-11-04 00:26:04 +01:00
|
|
|
deliverquota.8 imapd.8 mkimapdcert.8 mkpop3dcert.8
|
2000-03-11 21:16:32 +01:00
|
|
|
|
2000-06-21 15:36:13 +02:00
|
|
|
MLINKS= authlib.8 authpwd.8 \
|
|
|
|
authlib.8 authuserdb.8 \
|
2000-08-07 11:57:38 +02:00
|
|
|
authlib.8 authshadow.8 \
|
|
|
|
authlib.8 authpam.8 \
|
|
|
|
authlib.8 authvchkpw.8 \
|
|
|
|
authlib.8 authcram.8 \
|
|
|
|
authlib.8 authldap.8 \
|
|
|
|
authlib.8 authmysql.8 \
|
|
|
|
authlib.8 authdaemon.8 \
|
2000-11-04 00:26:04 +01:00
|
|
|
authlib.8 authdaemond.8 \
|
2000-06-21 15:36:13 +02:00
|
|
|
makeuserdb.8 pw2userdb.8 \
|
2000-03-11 21:16:32 +01:00
|
|
|
makeuserdb.8 vchkpw2userdb.8
|
|
|
|
|
2000-07-19 16:21:34 +02:00
|
|
|
EXTRA_DOCS= README INSTALL AUTHORS imap/ChangeLog
|
|
|
|
|
2000-07-19 14:16:04 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
post-patch:
|
2001-11-16 10:22:36 +01:00
|
|
|
@perl -i.nbm -pe 'm#^\timapd.cnf pop3d.cnf# && s@[ip][mo][ap][p3]d.cnf@@g;' \
|
2001-01-03 16:44:16 +01:00
|
|
|
${WRKSRC}/Makefile.in
|
2000-07-19 14:16:04 +02:00
|
|
|
|
2000-07-19 16:21:34 +02:00
|
|
|
post-install:
|
2000-07-31 13:05:39 +02:00
|
|
|
@${MKDIR} ${PREFIX}/share/doc/courier-imap
|
2001-01-03 16:44:16 +01:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/imap/imapd.cnf ${PREFIX}/etc/courier-imap/imapd.cnf.dist
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/imap/pop3d.cnf ${PREFIX}/etc/courier-imap/pop3d.cnf.dist
|
2000-07-19 16:21:34 +02:00
|
|
|
.for a in ${EXTRA_DOCS}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${a} ${PREFIX}/share/doc/courier-imap/
|
|
|
|
.endfor
|
|
|
|
|
2000-07-19 14:16:04 +02:00
|
|
|
.include <bsd.port.post.mk>
|