pkgsrc/mail/cyrus-imapd21/Makefile
recht 9462f14143 Update to 2.1.14.
Changes to the Cyrus IMAP Server since 2.1.13
* Be more forgiving in the parsing of MIME boundry headers,
  specificly those generated by eudora where the outer boundries are
  substrings of the inner boundries. This feature can be disabled by
  enabling the rfc2046_strict option.
* Allow cyradm to handle aggregate mailbox sets for ACL and DELETE
  operations.
* Add a lmtp_downcase_rcpt option to force the lowercasing of
  recipient addresses (Henrique de Moraes Holschuh <hmh@debian.org>).
* Include more MIME headers in sieve rejection notices
* Add an mbexamine command for debugging purposes
* LMTP will now fatal error if we cannot initialize the duplicate
  delivery database.
* Continued audit by Security Appraisers and Bynari
* Correctly terminate the processes by calling service_abort even on
  successful exit (helps to fix a db3 lockers problem)
* Fix some murder+altnamespace/unixhiersep issues
* Fix imclient's handling of literals.
* Add support for the windows-1256 character set
* Don't log 'could not shut down filedescriptor' messages when the
  socket is already not connected
* Now include a script to convert sieve script names to the
  altnamespace format
* Added a --with-extraident configure option to make it easier to set
  the extra version information that is compiled into the binary.
* Minor build fixes.
* Minor other bug fixes.

OK'ed by chris@
2003-08-16 09:23:58 +00:00

135 lines
4.5 KiB
Makefile

# $NetBSD: Makefile,v 1.8 2003/08/16 09:23:58 recht Exp $
DISTNAME= cyrus-imapd-2.1.14
SVR4_PKGNAME= cimap
CATEGORIES= mail
MASTER_SITES= ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/ \
ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/OLD-VERSIONS/imap/
MAINTAINER= chris@NetBSD.org
HOMEPAGE= http://asg.web.cmu.edu/cyrus/imapd/
COMMENT= Cyrus IMAP server
USE_BUILDLINK2= YES
USE_PKGINSTALL= YES
GNU_CONFIGURE= YES
PERL5_CONFIGURE= NO
AUTOCONF_REQD= 2.13
.include "../../mk/bsd.prefs.mk"
.if defined(CYRUS_USE_INET6) && ${CYRUS_USE_INET6} == "YES"
PATCH_SITES= http://www.imasy.or.jp/~ume/ipv6/
PATCHFILES= ${DISTNAME}-ipv6-20030703.diff.gz
.endif
# CYRUS_USER username of the Cyrus administrator
# CYRUS_GROUP group of the Cyrus administrator
#
CYRUS_USER?= cyrus
CYRUS_GROUP?= mail
BUILD_DEFS+= CYRUS_USER CYRUS_GROUP
FILES_SUBST+= CYRUS_USER=${CYRUS_USER}
FILES_SUBST+= CYRUS_GROUP=${CYRUS_GROUP}
CONFIGURE_ARGS+= --with-cyrus-user=${CYRUS_USER}
CONFIGURE_ARGS+= --with-cyrus-group=${CYRUS_GROUP}
CONFIGURE_ARGS+= --with-cyrus-prefix=${PREFIX}/cyrus
CONFIGURE_ARGS+= --with-statedir=/var/run
CONFIGURE_ARGS+= --with-bdb-libdir=${BUILDLINK_PREFIX.db3}/lib
CONFIGURE_ARGS+= --with-bdb-incdir=${BUILDLINK_PREFIX.db3}/include/db3
CONFIGURE_ARGS+= --with-openssl=${BUILDLINK_PREFIX.openssl}
CONFIGURE_ARGS+= --with-sasl=${BUILDLINK_PREFIX.cyrus-sasl}
CONFIGURE_ARGS+= --without-ucdsnmp
CONFIGURE_ARGS+= --without-notify
CONFIGURE_ARGS+= --without-zephyr
CONFIGURE_ARGS+= --enable-netscapehack
CONFIGURE_ARGS+= --with-perl=${PERL5}
# Follow the recommended methods for database types to use:
.if defined(CYRUS_DB_RECOMMENDED)
CONFIGURE_ARGS+= --with-duplicate-db=db3_nosync
CONFIGURE_ARGS+= --with-mboxlist-db=skiplist
CONFIGURE_ARGS+= --with-seen-db=skiplist
CONFIGURE_ARGS+= --with-subs-db=flat
CONFIGURE_ARGS+= --with-tls-db=db3_nosync
# I'm not 100% ready to override the defaults till I've checked any side
# effects - chris@nb.org
.endif
CONFIGURE_ARGS+= --with-libwrap=${BUILDLINK_PREFIX.tcp_wrappers}
CONFIGURE_ENV+= ac_cv_lib_wrap_request_init=yes
.if exists(/usr/include/krb5/com_err.h)
CPPFLAGS+= -I/usr/include/krb5
CONFIGURE_ARGS+= --with-com_err=
.else
CONFIGURE_ARGS+= --with-com_err=yes
.endif
.if defined(KERBEROS) && ${KERBEROS} == 4
PKG_USE_KERBEROS= # defined
CONFIGURE_ARGS+= --with-auth=krb
.else
CONFIGURE_ARGS+= --with-auth=unix
CONFIGURE_ARGS+= --without-krb
.endif
HTMLDIR= ${PREFIX}/share/doc/html/cyrus-imapd
EGDIR= ${PREFIX}/share/examples/cyrus-imapd
CONF_FILES= ${EGDIR}/imapd.conf ${PKG_SYSCONFDIR}/imapd.conf
CONF_FILES+= ${EGDIR}/normal.conf ${PKG_SYSCONFDIR}/cyrus.conf
RCD_SCRIPTS= cyrus
FILES_SUBST+= IMAPDCONF=${PKG_SYSCONFDIR}/imapd.conf
PERL5_PACKLIST= \
${PERL5_SITEARCH}/auto/Cyrus/IMAP/.packlist \
${PERL5_SITEARCH}/auto/Cyrus/SIEVE/managesieve/.packlist
# Change references of some manpages from foo.8 to cyrus-foo.8 to avoid
# manpage conflicts with other packages. Also change references to
# "/etc/{cyrus,imapd}.conf" into "${PKG_SYSCONFDIR}/{cyrus,imapd}.conf".
#
post-patch:
cd ${WRKSRC}/man; \
for file in deliver.8 imapd.8 master.8 pop3d.8; do \
${MV} $${file} cyrus-$${file}; \
${SED} -e "s|\(\$$(srcdir)/\)\($${file}\)|\1cyrus-\2|g" \
Makefile.in > Makefile.in.fixed; \
${MV} -f Makefile.in.fixed Makefile.in; \
done
files=`${FIND} ${WRKSRC} -type f -exec ${GREP} -l \
-e /etc/imapd\.conf -e /etc/cyrus\.conf {} \;`; \
for file in $${files}; do \
${SED} -e "s|\(\\fB\)\($${name}($${suffix})\)|\1cyrus-\2|g" \
-e "s|\(\$$(srcdir)/\)\($${man}\)|\1cyrus-\2|g" \
-e "s|/etc/\(cyrus\.conf\)|${PKG_SYSCONFDIR}/\1|g" \
-e "s|/etc/\(imapd\.conf\)|${PKG_SYSCONFDIR}/\1|g" \
$${file} > $${file}.fixed; \
${MV} -f $${file}.fixed $${file}; \
done
pre-configure:
cd ${WRKSRC}; \
${AUTOHEADER}; \
${AUTOCONF}
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/tools/mkimap ${PREFIX}/cyrus/bin
${INSTALL_SCRIPT} ${WRKSRC}/tools/translatesieve ${PREFIX}/cyrus/bin
${INSTALL_SCRIPT} ${WRKSRC}/tools/rehash ${PREFIX}/cyrus/bin
${INSTALL_DATA_DIR} ${EGDIR}
${INSTALL_DATA} ${FILESDIR}/imapd.conf ${EGDIR}
cd ${WRKSRC}/master/conf; ${INSTALL_DATA} *.conf ${EGDIR}
${INSTALL_DATA_DIR} ${HTMLDIR}
cd ${WRKSRC}/doc; ${INSTALL_DATA} *.html cyrusv2.mc ${HTMLDIR}
.include "../../databases/db3/buildlink2.mk"
.include "../../lang/perl5/module.mk"
.include "../../security/cyrus-sasl2/buildlink2.mk"
.include "../../security/openssl/buildlink2.mk"
.include "../../security/tcp_wrappers/buildlink2.mk"
.include "../../mk/autoconf.mk"
.include "../../mk/bsd.pkg.mk"