Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/pkgsrc/mail/dovecot/Attic/Makefile,v rcsdiff: /ftp/cvs/cvsroot/pkgsrc/mail/dovecot/Attic/Makefile,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.9 retrieving revision 1.19 diff -u -p -r1.9 -r1.19 --- pkgsrc/mail/dovecot/Attic/Makefile 2003/11/02 17:24:07 1.9 +++ pkgsrc/mail/dovecot/Attic/Makefile 2004/05/29 15:42:51 1.19 @@ -1,47 +1,52 @@ -# $NetBSD: Makefile,v 1.9 2003/11/02 17:24:07 salo Exp $ -# +# $NetBSD: Makefile,v 1.19 2004/05/29 15:42:51 cube Exp $ -DISTNAME= dovecot-0.99.10 -PKGREVISION= 3 +DISTNAME= dovecot-0.99.10.5 +PKGREVISION= 1 CATEGORIES= mail -MASTER_SITES= http://dovecot.procontrol.fi/ +MASTER_SITES= http://dovecot.fi/ -PATCH_SITES= ${MASTER_SITES} -PATCHFILES= auth-home.patch bodystructure.patch +PATCH_SITES= http://www.roughtrade.net/dovecot/ +PATCHFILES= dovecot-crammd5-0.99.10.5.diff PATCH_DIST_STRIP= -p1 MAINTAINER= tom@replic8.net -HOMEPAGE= http://dovecot.procontrol.fi/ +HOMEPAGE= http://dovecot.fi/ COMMENT= Secure IMAP and POP3 server -USE_BUILDLINK2= YES +USE_BUILDLINK3= YES USE_LIBTOOL= YES USE_PKGINSTALL= YES GNU_CONFIGURE= YES -LIBTOOL_OVERRIDE= ${WRKSRC}/libtool - CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} CONFIGURE_ARGS+= --localstatedir=/var CONFIGURE_ARGS+= --with-ssldir=${SSLCERTS} +# Avoid an ICE in gcc2 on sparc64 +CONFIGURE_ENV+= F77=${FALSE} + .include "../../mk/bsd.prefs.mk" -BUILD_DEFS+= DOVECOT_USE_GNUTLS DOVECOT_USE_PGSQL \ - USE_INET6 USE_OPENLDAP USE_SASL2 +BUILD_DEFS+= DOVECOT_USE_GNUTLS DOVECOT_USE_MYSQL \ + DOVECOT_USE_PGSQL USE_INET6 USE_OPENLDAP USE_SASL2 .if !empty(DOVECOT_USE_GNUTLS:M[Yy][Ee][Ss]) CONFIGURE_ARGS+= --enable-ssl=gnutls -.include "../../security/gnutls/buildlink2.mk" +. include "../../security/gnutls/buildlink3.mk" .else CONFIGURE_ARGS+= --enable-ssl=openssl -.include "../../security/openssl/buildlink2.mk" +. include "../../security/openssl/buildlink3.mk" +.endif + +.if !empty(DOVECOT_USE_MYSQL:M[Yy][Ee][SS]) +CONFIGURE_ARGS+= --with-mysql +. include "../../databases/mysql4-client/buildlink3.mk" .endif .if !empty(DOVECOT_USE_PGSQL:M[Yy][Ee][Ss]) CONFIGURE_ARGS+= --with-pgsql CPPFLAGS= -I${BUILDLINK_DIR}/include/pgsql -.include "../../databases/postgresql-lib/buildlink2.mk" +. include "../../databases/postgresql-lib/buildlink3.mk" .endif .if defined(USE_INET6) && !empty(USE_INET6:M[Yy][Ee][Ss]) @@ -50,12 +55,12 @@ CONFIGURE_ARGS+= --enable-ipv6 .if !empty(USE_OPENLDAP:M[Yy][Ee][Ss]) CONFIGURE_ARGS+= --with-ldap -.include "../../databases/openldap/buildlink2.mk" +. include "../../databases/openldap/buildlink3.mk" .endif .if defined(USE_SASL2) && !empty(USE_SASL2:M[Yy][Ee][Ss]) CONFIGURE_ARGS+= --with-cyrus-sasl2 -.include "../../security/cyrus-sasl2/buildlink2.mk" +. include "../../security/cyrus-sasl2/buildlink3.mk" .endif RCD_SCRIPTS= dovecot @@ -69,12 +74,11 @@ EGDIR= ${PREFIX}/share/examples/dovecot CONF_FILES= ${EGDIR}/dovecot.conf.default ${PKG_SYSCONFDIR}/dovecot.conf post-configure: - @cd ${WRKSRC} && \ - ( \ - ${MV} dovecot-example.conf dovecot-example.conf.orig; \ - ${SED} ${FILES_SUBST_SED} dovecot-example.conf.orig > \ - dovecot-example.conf; \ - ) + @cd ${WRKSRC}; \ + for file in dovecot-example.conf; do \ + ${SED} ${FILES_SUBST_SED} $$file > $$file.new; \ + ${MV} -f $$file.new $$file; \ + done post-install: ${INSTALL_DATA_DIR} ${EGDIR}