pkgsrc/mail/dovecot/Makefile
ghen b0ec4b60b4 Update to Dovecot 1.2.10, Sieve 0.1.15 and ManageSieve 0.11.11.
Changelog for Dovecot 1.2.10:

	+ %variables now support %{host}, %{pid} and %{env:ENVIRONMENT_NAME}
	  everywhere.
	+ LIST-STATUS capability is now advertised
	- maildir: Fixed several assert-crashes.
	- imap: LIST "" inbox shouldn't crash when using namespace with
	  "INBOX." prefix.
	- lazy_expunge now ignores non-private namespaces.

Changelog for Sieve 0.1.15:

  * Enotify extension:
     - Adjusted notify method API for addition of new notification
       methods.
     - Set default importance level to 'normal' (was 'high').
  * Include extension: updated implementation towards most recent
    specification (all should be backwards compatible):
     - Implemented global variables namespace.
     - Global command may now appear anywhere in a script.
     - Implemented script name checking using the requirements specified
       in the ManageSieve draft.
     - One issue remains: ManageSieve currently requires included scripts
       to be uploaded first, which is not according to specification.
   * Changed envelope path parser to allow to and from envelope addresses
     that have no domain part.
   + Added preliminary support for Sieve plugins and added support for
     installing Sieve development headers.
   + Started work on the implementation of the spamtest, spamtestplus and
     virustest extensions (unfinished).
   + Deprecated notify extension: implemented denotify command.
   + Variables extension: added support for variable namespaces.
   + Added configurable script size limit. Compiler will refuse to
     compile files larger than sieve_max_script_size.
   + Testsuite changes:
      - Added support for changing and testing an extension's
        configuration.
      - Added a command line parameter for copying errors to stderr.
   - Fixed a bug in the i;ascii-numeric comparator. If one of the
     strings started with a non-digit character, the comparator would
     always yield less-than.
   - Imap4flags extension: fixed bug in removeflag: removing a single
     flag failed due to off-by-one error (bug report by Julian Cowley).
   - Improved EACCES error messages for stat() and lstat() syscalls and
     slightly improved error messages that may uccur when saving a
     binary.
   - Vacation extension: fixed typo in runtime log message (patch by
     Julian Cowley).
   - Fixed use of minus '-' in man pages; it is now properly escaped.
   - Fixed parser recovery. In particular cases it would trigger spurious
     errors after an initial valid error and sometimes additional errors
     were inappropriately ignored.

Changelog for ManageSieve 0.11.11:

   * This release contains adjustments to match changes in the Sieve API.
     This means that this release will only compile against Pigeonhole
     Sieve v0.1.15.
   + Implemented ManageSieve QUOTA enforcement.
   + Added MAXREDIRECTS capability after login.
   + Implemented new script name rules specified in most recent
     ManageSieve draft.
   - Fixed assertion failure occuring with challenge-response SASL
     mechanisms.
   - Made configure complain about trying to compile against installed
     Dovecot headers alone.
   - Fixed compile warning for compilation against CMUSieve.
2010-01-25 12:31:20 +00:00

88 lines
2.9 KiB
Makefile

# $NetBSD: Makefile,v 1.143 2010/01/25 12:31:20 ghen Exp $
DOVECOT_VERSION= 1.2
DOVECOT_SUBVERSION= .10
SIEVE_VERSION= 0.1.15
MANAGESIEVE_VERSION= 0.11.11
DISTNAME= dovecot-${DOVECOT_VERSION}${DOVECOT_SUBVERSION}
CATEGORIES= mail
MASTER_SITES= http://www.dovecot.org/releases/${DOVECOT_VERSION}/
DOVECOT_SIEVE_SITES= http://www.rename-it.nl/dovecot/${DOVECOT_VERSION}/
MANAGESIEVE_PATCH= dovecot-${DOVECOT_VERSION}${DOVECOT_SUBVERSION}-managesieve-${MANAGESIEVE_VERSION}.diff.gz
SITES.${MANAGESIEVE_PATCH}= ${DOVECOT_SIEVE_SITES}
PATCH_DIST_STRIP.${MANAGESIEVE_PATCH}= -p1
MAINTAINER= ghen@NetBSD.org
HOMEPAGE= http://www.dovecot.org/
COMMENT= Secure IMAP and POP3 server
LICENSE= mit AND gnu-lgpl-v2.1 AND modified-bsd
PKG_INSTALLATION_TYPES= overwrite pkgviews
PKG_DESTDIR_SUPPORT= user-destdir
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
USE_TOOLS+= pkg-config
USE_TOOLS+= rpcgen
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+= --localstatedir=${VARBASE}
CONFIGURE_ARGS+= --with-ssldir=${SSLDIR}
CONFIGURE_ARGS+= --enable-header-install
.include "../../mk/bsd.prefs.mk"
.include "options.mk"
RCD_SCRIPTS= dovecot
DOVECOT_USER?= dovecot
DOVECOT_GROUP?= dovecot
PKG_GROUPS= ${DOVECOT_GROUP}
PKG_USERS= ${DOVECOT_USER}:${DOVECOT_GROUP}
PKG_GROUPS_VARS+= DOVECOT_GROUP
PKG_USERS_VARS+= DOVECOT_USER
PKG_GECOS.${DOVECOT_USER}= Dovecot IMAP/POP3 user
EGDIR= ${PREFIX}/share/examples/dovecot
CONF_FILES= ${EGDIR}/dovecot-example.conf ${PKG_SYSCONFDIR}/dovecot.conf
INSTALLATION_DIRS= libexec/dovecot sbin share/doc/dovecot \
share/examples/dovecot
SUBST_CLASSES+= paths
SUBST_FILES.paths= dovecot-example.conf
SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g'
SUBST_STAGE.paths= pre-configure
BUILD_DEFS+= VARBASE
post-build:
${SED} "s|/etc/ssl/|${SSLDIR}/|" ${WRKSRC}/dovecot-example.conf \
> ${WRKDIR}/dovecot-example.conf
${SED} "s|/etc/ssl|${SSLDIR}|" ${WRKSRC}/doc/mkcert.sh \
> ${WRKDIR}/mkcert.sh
.if !empty(PKG_OPTIONS:Mdovecot-sieve)
# We need dovecot built in order to be able to configure sieve.
cd ${WRKSRC.sieve} \
&& env ${CONFIGURE_ENV} ${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS} ${CONFIGURE_ARGS.sieve}
cd ${WRKSRC.sieve} \
&& env ${MAKE_ENV} ${MAKE_PROGRAM} ${BUILD_MAKE_FLAGS} -f ${MAKE_FILE} ${BUILD_TARGET}
.endif
.if !empty(PKG_OPTIONS:Mdovecot-managesieve)
# Wee need sieve built in order to configure and build managesieve. Sigh.
cd ${WRKSRC.managesieve} \
&& env ${CONFIGURE_ENV} ${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS} ${CONFIGURE_ARGS.managesieve}
cd ${WRKSRC.managesieve} \
&& env ${MAKE_ENV} ${MAKE_PROGRAM} ${BUILD_MAKE_FLAGS} -f ${MAKE_FILE} ${BUILD_TARGET}
.endif
post-install:
${INSTALL_DATA} ${WRKDIR}/dovecot-example.conf ${DESTDIR}${EGDIR}
${INSTALL_DATA} ${WRKSRC}/doc/dovecot-* ${DESTDIR}${EGDIR}
${INSTALL_SCRIPT} ${WRKDIR}/mkcert.sh ${DESTDIR}${EGDIR}
${INSTALL_DATA} ${WRKSRC}/src/lib/liblib.a ${DESTDIR}${PREFIX}/lib/dovecot
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"