2011-04-13 11:18:23 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.56 2011/04/13 15:18:23 ajacoutot Exp $
|
2005-03-27 13:01:50 -05:00
|
|
|
|
2007-08-28 09:24:51 -04:00
|
|
|
COMMENT-main= Cyrus IMAP server
|
|
|
|
COMMENT-perl= perl utils for the Cyrus IMAP server
|
2005-03-27 13:01:50 -05:00
|
|
|
|
2011-04-13 11:18:23 -04:00
|
|
|
V= 2.4.8
|
2006-11-25 14:51:14 -05:00
|
|
|
DISTNAME= cyrus-imapd-${V}
|
2009-12-27 12:49:51 -05:00
|
|
|
PKGNAME-main= ${DISTNAME}
|
2009-03-25 11:44:41 -04:00
|
|
|
FULLPKGNAME-perl=cyrus-imapd-perl-${V}
|
2007-08-28 09:24:51 -04:00
|
|
|
FULLPKGPATH-perl=mail/cyrus-imapd,-perl
|
2010-10-29 05:26:58 -04:00
|
|
|
|
2005-03-27 13:01:50 -05:00
|
|
|
CATEGORIES= mail
|
2008-10-21 04:36:25 -04:00
|
|
|
|
2010-09-03 11:34:15 -04:00
|
|
|
HOMEPAGE= http://www.cyrusimap.org/
|
2005-03-27 13:01:50 -05:00
|
|
|
|
2006-10-25 03:51:58 -04:00
|
|
|
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
2005-03-27 13:01:50 -05:00
|
|
|
|
2007-08-28 09:24:51 -04:00
|
|
|
# CMU - see COPYRIGHT file in package
|
2005-03-27 13:01:50 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= yes
|
|
|
|
PERMIT_PACKAGE_FTP= yes
|
|
|
|
PERMIT_DISTFILES_CDROM= yes
|
|
|
|
PERMIT_DISTFILES_FTP= yes
|
|
|
|
|
2011-03-30 12:10:28 -04:00
|
|
|
MASTER_SITES= http://cyrusimap.org/releases/ \
|
|
|
|
ftp://ftp.cyrusimap.org/cyrus-imapd/ \
|
2010-12-05 17:20:37 -05:00
|
|
|
ftp://ftp.cyrusimap.org/cyrus-imapd/OLD-VERSIONS/
|
2005-03-27 13:01:50 -05:00
|
|
|
|
2010-11-19 02:23:05 -05:00
|
|
|
WANTLIB += crypto ssl z sasl2 lib/db4/db>=4
|
2005-03-27 13:01:50 -05:00
|
|
|
|
2010-11-19 02:23:05 -05:00
|
|
|
LIB_DEPENDS= security/cyrus-sasl2 \
|
2010-11-26 09:50:09 -05:00
|
|
|
databases/db/v4
|
2007-10-25 05:42:40 -04:00
|
|
|
LIB_DEPENDS-main=${LIB_DEPENDS} \
|
2010-11-19 02:23:05 -05:00
|
|
|
devel/pcre
|
2008-06-14 13:22:39 -04:00
|
|
|
RUN_DEPENDS-main=${RUN_DEPENDS}
|
2005-03-27 13:01:50 -05:00
|
|
|
|
|
|
|
PATCH_LIST= patch-*
|
|
|
|
|
|
|
|
CONFIGURE_STYLE=gnu
|
2008-03-15 06:07:20 -04:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I/usr/include/kerberosV" \
|
2005-03-27 13:01:50 -05:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
2006-02-08 14:31:13 -05:00
|
|
|
ac_cv_lib_resolv_res_search=no \
|
2006-04-08 16:46:20 -04:00
|
|
|
ac_cv_sys_long_file_names=yes \
|
2005-03-27 13:01:50 -05:00
|
|
|
MAKEDEPEND=""
|
|
|
|
CONFIGURE_ARGS= --with-service-path=${LOCALBASE}/libexec/cyrus-imapd \
|
|
|
|
--with-bdb \
|
|
|
|
--with-bdb-libdir=${LOCALBASE}/lib/db4 \
|
|
|
|
--with-bdb-incdir=${LOCALBASE}/include/db4 \
|
|
|
|
--with-cyrus-group=_cyrus \
|
|
|
|
--with-cyrus-user=_cyrus \
|
|
|
|
--with-sasl=${LOCALBASE} \
|
|
|
|
--with-pidfile=/var/run/cyrus-master.pid \
|
|
|
|
--with-syslogfacility=LOCAL6 \
|
|
|
|
--with-openssl=/usr \
|
|
|
|
--with-lock=fcntl \
|
|
|
|
--with-com_err=/usr \
|
|
|
|
--with-libwrap=/usr \
|
2008-03-15 06:07:20 -04:00
|
|
|
--with-gss_impl=heimdal \
|
|
|
|
--enable-gssapi=/usr \
|
2007-03-31 05:33:21 -04:00
|
|
|
--enable-idled \
|
2005-03-27 13:01:50 -05:00
|
|
|
--enable-murder \
|
|
|
|
--enable-nntp \
|
|
|
|
--without-zephyr \
|
2008-10-21 04:36:25 -04:00
|
|
|
--without-snmp \
|
|
|
|
--with-ldap=no \
|
|
|
|
--with-mysql=no \
|
|
|
|
--with-pgsql=no \
|
|
|
|
--with-sqlite=no
|
2005-03-27 13:01:50 -05:00
|
|
|
|
2008-04-23 09:33:22 -04:00
|
|
|
# this is a needed hack; to update PLIST:
|
|
|
|
# make SHARED_ONLY=Yes plist
|
2006-11-25 14:51:14 -05:00
|
|
|
MULTI_PACKAGES= -main ${NO_SHARED_LIBS:S/Yes//:S/No/-perl/}
|
2005-03-27 13:01:50 -05:00
|
|
|
CONFIGURE_ARGS+=--with${NO_SHARED_LIBS:S/Yes/out/:S/No//}-perl
|
2010-10-18 15:59:15 -04:00
|
|
|
USE_GROFF = Yes
|
2005-03-27 13:01:50 -05:00
|
|
|
|
2008-03-15 06:07:20 -04:00
|
|
|
FLAVORS= drac
|
2005-03-27 13:01:50 -05:00
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mdrac}
|
2010-11-19 02:23:05 -05:00
|
|
|
BUILD_DEPENDS+= mail/drac
|
2010-11-02 03:08:04 -04:00
|
|
|
PATCH_LIST+= drac-patch-imap_Makefile_in
|
|
|
|
pre-patch:
|
|
|
|
cd ${WRKSRC} && ${PATCH} -s -z .drac -p1 < contrib/drac_auth.patch
|
2005-03-27 13:01:50 -05:00
|
|
|
.endif
|
|
|
|
|
2010-07-16 08:33:28 -04:00
|
|
|
WANTLIB-main += ${WANTLIB} asn1 c com_err gssapi krb5 pthread wrap
|
|
|
|
WANTLIB-main += pcre pcreposix
|
|
|
|
WANTLIB-perl += ${WANTLIB}
|
2006-11-25 14:51:14 -05:00
|
|
|
|
2006-04-15 04:15:01 -04:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2005-03-27 13:01:50 -05:00
|
|
|
MAN8= fetchnews idled master imapd
|
|
|
|
SIEVEREF= lib/imapoptions man/imapd.conf.5 \
|
|
|
|
tools/masssievec tools/rehash tools/translatesieve \
|
|
|
|
tools/upgradesieve doc/text/install-upgrade
|
|
|
|
|
2007-08-29 16:08:17 -04:00
|
|
|
pre-configure:
|
2010-12-02 06:30:43 -05:00
|
|
|
${SUBST_CMD} ${WRKSRC}/{lib/imapoptions,man/imapd.conf.5}
|
2005-03-27 13:01:50 -05:00
|
|
|
.for i in ${MAN8}
|
2007-08-29 16:08:17 -04:00
|
|
|
@perl -pi -e "s,${i}\(8\),cyrus-${i}\(8\),g" ${WRKSRC}/man/*.[0-9]
|
|
|
|
.endfor
|
|
|
|
.for i in ${SIEVEREF}
|
|
|
|
@perl -pi -e "s,/usr/sieve,/var/sieve,g" ${WRKSRC}/${i}
|
2005-03-27 13:01:50 -05:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/cyrus-imapd
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/COPYRIGHT ${PREFIX}/share/doc/cyrus-imapd
|
|
|
|
cd ${WRKSRC}/doc; tar cf - text | \
|
|
|
|
tar xf - -C ${PREFIX}/share/doc/cyrus-imapd
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/cyrus-imapd
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/master/conf/*.conf \
|
|
|
|
${PREFIX}/share/examples/cyrus-imapd/
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/imapd.conf \
|
|
|
|
${PREFIX}/share/examples/cyrus-imapd/
|
|
|
|
cd ${WRKSRC}; tar cf - tools | \
|
|
|
|
tar xf - -C ${PREFIX}/share/examples/cyrus-imapd
|
|
|
|
.for i in ${MAN8}
|
|
|
|
${INSTALL_MAN} ${PREFIX}/man/man8/${i}.8 ${PREFIX}/man/man8/cyrus-$i.8
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|