pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/courier-imap Update mail/courier-imap to version ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/319bc6971eb4
branches:  trunk
changeset: 538804:319bc6971eb4
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Tue Feb 19 18:45:14 2008 +0000

description:
Update mail/courier-imap to version 4.3.0, which matches the imapd build
from courier-0.58.0.  Changes from version 4.2.1 include:

+ Teach mkimapdcert and mkpop3dcert to generate certificaties and keys
  using either GNUTLS or OpenSSL tools.

* Remove \Draft flag from messages moved to the trash folder upon expunge
  from the original folder.

* Make clock-skew check more reliable.

diffstat:

 mail/courier-imap/Makefile              |  54 +++++++++++++++-----------------
 mail/courier-imap/distinfo              |  13 ++++---
 mail/courier-imap/files/courierimap.sh  |  18 ++++++++++-
 mail/courier-imap/files/courierimaps.sh |  18 ++++++++++-
 mail/courier-imap/files/courierpop.sh   |  18 ++++++++++-
 mail/courier-imap/files/courierpops.sh  |  18 ++++++++++-
 mail/courier-imap/options.mk            |  37 ++++++++++++++++++++++
 mail/courier-imap/patches/patch-ad      |   6 +-
 mail/courier-imap/patches/patch-ak      |  34 +++++++++++++++-----
 mail/courier-imap/patches/patch-ao      |  28 +++++++++++++++++
 10 files changed, 194 insertions(+), 50 deletions(-)

diffs (truncated from 404 to 300 lines):

diff -r 7ab09ef55ed0 -r 319bc6971eb4 mail/courier-imap/Makefile
--- a/mail/courier-imap/Makefile        Tue Feb 19 18:45:09 2008 +0000
+++ b/mail/courier-imap/Makefile        Tue Feb 19 18:45:14 2008 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.66 2007/10/15 15:37:20 jlam Exp $
+# $NetBSD: Makefile,v 1.67 2008/02/19 18:45:14 jlam Exp $
 
-DISTNAME=      courier-imap-4.2.1
+DISTNAME=      courier-imap-4.3.0
 CATEGORIES=    mail
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=courier/}
 EXTRACT_SUFX=  .tar.bz2
@@ -9,31 +9,28 @@
 COMMENT=       IMAP server for access to maildir-style mailboxes
 HOMEPAGE=      http://www.courier-mta.org/imap/
 
-DEPENDS+=      courier-maildir>=0.57.1:../../mail/courier-maildir
-DEPENDS+=      couriertcpd>=0.57.1:../../net/couriertcpd
+DEPENDS+=      courier-maildir>=0.58.0:../../mail/courier-maildir
+DEPENDS+=      couriertcpd>=0.58.0:../../net/couriertcpd
 
-USE_TOOLS+=            env gmake openssl:run perl
+PKG_DESTDIR_SUPPORT=   user-destdir
+
+USE_TOOLS+=            env gmake perl
 USE_LANGUAGES=         c c++
 USE_LIBTOOL=           yes
 
-PKG_OPTIONS_VAR=       PKG_OPTIONS.courier-imap
-PKG_SUPPORTED_OPTIONS= fam
-
-.include "../../mk/bsd.options.mk"
-
-.if !empty(PKG_OPTIONS:Mfam)
-.  include "../../mk/fam.buildlink3.mk"
-.endif
+.include "options.mk"
 
 .include "../../mail/courier-mta/Makefile.common"
 
+CONFIGURE_ENV+=                CERTTOOL=${COURIER_CERTTOOL:Q}
+CONFIGURE_ENV+=                OPENSSL=${COURIER_OPENSSL:Q}
+
 CONFIGURE_ARGS+=       --datadir=${DATADIR:Q}
 CONFIGURE_ARGS+=       --libexecdir=${LIBEXECDIR:Q}
 
-CONFIGURE_ARGS+=       --with-mailuser=${ROOT_USER:Q}
+CONFIGURE_ARGS+=       --with-mailuser=${REAL_ROOT_USER:Q}
 CONFIGURE_ARGS+=       --with-piddir=${COURIER_STATEDIR:Q}/tmp
 CONFIGURE_ARGS+=       --program-transform-name='s/\.rc$$//'
-CONFIGURE_ENV+=                OPENSSL=${TOOLS_OPENSSL:Q}
 
 # The rfc1035 and tcpd bits are built and installed by net/couriertcpd.
 # However, we still need to build in these directories because there
@@ -62,17 +59,18 @@
 
 SUBST_CLASSES+=                courier
 SUBST_FILES.courier=   imap/imapd-ssl.dist.in imap/imapd.8.in          \
-                       imap/imapd.cnf.in imap/imapd.dist.in            \
+                       imap/imapd.cnf.openssl.in imap/imapd.dist.in    \
                        imap/mkimapdcert.8.in imap/mkimapdcert.html.in  \
                        imap/mkimapdcert.in imapd-ssl.rc.in imapd.rc.in
 SUBST_FILES.courier+=  imap/courierpop3d.8.in imap/mkpop3dcert.8.in    \
                        imap/mkpop3dcert.html.in imap/mkpop3dcert.in    \
-                       imap/pop3d-ssl.dist.in imap/pop3d.cnf.in        \
+                       imap/pop3d-ssl.dist.in imap/pop3d.cnf.openssl.in \
                        imap/pop3d.dist.in pop3d-ssl.rc.in pop3d.rc.in
 SUBST_SED.courier=     -e "s|^IMAPDSTART=.*|IMAPDSTART=YES|g"          \
                        -e "s|^IMAPDSSLSTART=.*|IMAPDSSLSTART=YES|g"    \
                        -e "s|^POP3DSTART=.*|POP3DSTART=YES|g"          \
                        -e "s|^POP3DSSLSTART=.*|POP3DSSLSTART=YES|g"    \
+                       -e "s|@mydatadir@|@sysconfdir@|g"               \
                        -e "s|@datadir@/imapd.pem|@sysconfdir@/imapd.pem|g" \
                        -e "s|@datadir@/imapd.rand|@sysconfdir@/imapd.rand|g" \
                        -e "s|@datadir@/pop3d.pem|@sysconfdir@/pop3d.pem|g" \
@@ -86,16 +84,16 @@
 .include "../../security/courier-authlib/buildlink3.mk"
 
 post-install:
-       ${INSTALL_DATA_DIR} ${EGDIR}
-       ${INSTALL_DATA_DIR} ${DOCDIR}/imap
-       ${INSTALL_DATA} ${WRKSRC}/imap/BUGS.html ${DOCDIR}/imap
-       ${INSTALL_DATA} ${WRKSRC}/imap/README.html ${DOCDIR}/imap
-       ${INSTALL_DATA} ${WRKSRC}/imap/README.proxy.html ${DOCDIR}/imap
-       ${INSTALL_DATA} ${WRKSRC}/imap/courierpop3d.html ${DOCDIR}
-       ${INSTALL_DATA} ${WRKSRC}/imap/imapd.html ${DOCDIR}
-       ${INSTALL_DATA} ${WRKSRC}/imap/mkimapdcert.html ${DOCDIR}
-       ${INSTALL_DATA} ${WRKSRC}/imap/mkpop3dcert.html ${DOCDIR}
-       ${INSTALL_DATA} ${WRKSRC}/imap/imapd.pam ${EGDIR}/imap.authpam
-       ${INSTALL_DATA} ${WRKSRC}/imap/pop3d.pam ${EGDIR}/pop3.authpam
+       ${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
+       ${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}/imap
+       ${INSTALL_DATA} ${WRKSRC}/imap/BUGS.html ${DESTDIR}${DOCDIR}/imap
+       ${INSTALL_DATA} ${WRKSRC}/imap/README.html ${DESTDIR}${DOCDIR}/imap
+       ${INSTALL_DATA} ${WRKSRC}/imap/README.proxy.html ${DESTDIR}${DOCDIR}/imap
+       ${INSTALL_DATA} ${WRKSRC}/imap/courierpop3d.html ${DESTDIR}${DOCDIR}
+       ${INSTALL_DATA} ${WRKSRC}/imap/imapd.html ${DESTDIR}${DOCDIR}
+       ${INSTALL_DATA} ${WRKSRC}/imap/mkimapdcert.html ${DESTDIR}${DOCDIR}
+       ${INSTALL_DATA} ${WRKSRC}/imap/mkpop3dcert.html ${DESTDIR}${DOCDIR}
+       ${INSTALL_DATA} ${WRKSRC}/imap/imapd.pam ${DESTDIR}${EGDIR}/imap.authpam
+       ${INSTALL_DATA} ${WRKSRC}/imap/pop3d.pam ${DESTDIR}${EGDIR}/pop3.authpam
 
 .include "../../mk/bsd.pkg.mk"
diff -r 7ab09ef55ed0 -r 319bc6971eb4 mail/courier-imap/distinfo
--- a/mail/courier-imap/distinfo        Tue Feb 19 18:45:09 2008 +0000
+++ b/mail/courier-imap/distinfo        Tue Feb 19 18:45:14 2008 +0000
@@ -1,13 +1,14 @@
-$NetBSD: distinfo,v 1.22 2007/10/15 15:37:21 jlam Exp $
+$NetBSD: distinfo,v 1.23 2008/02/19 18:45:14 jlam Exp $
 
-SHA1 (courier-imap-4.2.1.tar.bz2) = e21b464680fb8fe2e473966bf6faa19944a68485
-RMD160 (courier-imap-4.2.1.tar.bz2) = 41151ebb892ad26d5ae2efd7e89105b4d7aa721b
-Size (courier-imap-4.2.1.tar.bz2) = 3300749 bytes
+SHA1 (courier-imap-4.3.0.tar.bz2) = b7c091f2bfdd22308ac26724e88b50e7a4f68cb2
+RMD160 (courier-imap-4.3.0.tar.bz2) = 8865d4b139af5f85a08ce5f1b6e1e453d3827120
+Size (courier-imap-4.3.0.tar.bz2) = 3342522 bytes
 SHA1 (patch-aa) = 9b60c07f2a8c4c3fea3fac8c22a8386de3f7d53b
-SHA1 (patch-ad) = d027f094eae80f6493380947cd98ed6bb3006d6d
+SHA1 (patch-ad) = 8a80f42a179e34a838317a0aac2d0a811fd47071
 SHA1 (patch-ae) = 9d925f4639086af9f6faecd6a2fab2a9ecab670c
 SHA1 (patch-af) = 37c54ed8aca2f86ac142f8fa920c217058c5fc29
 SHA1 (patch-ag) = 6ddd8b3f6a2cfbab4d814b51552dbf364384cf57
 SHA1 (patch-ah) = 1870daea8320cc9748961fc7e37237bd5cde1b3c
-SHA1 (patch-ak) = bdc5a6a25ab5f1c320feda40970073f3a1ef8e17
+SHA1 (patch-ak) = 057df5c41382768a0f221107137412c46200c035
 SHA1 (patch-an) = da8ce37a8a4ff57a25325153f1d68b7df865faee
+SHA1 (patch-ao) = f576d11ee217000a7760f153b131ed7a445d48f6
diff -r 7ab09ef55ed0 -r 319bc6971eb4 mail/courier-imap/files/courierimap.sh
--- a/mail/courier-imap/files/courierimap.sh    Tue Feb 19 18:45:09 2008 +0000
+++ b/mail/courier-imap/files/courierimap.sh    Tue Feb 19 18:45:14 2008 +0000
@@ -1,6 +1,6 @@
 #!@RCD_SCRIPTS_SHELL@
 #
-# $NetBSD: courierimap.sh,v 1.15 2007/09/22 04:42:03 jlam Exp $
+# $NetBSD: courierimap.sh,v 1.16 2008/02/19 18:45:14 jlam Exp $
 #
 # Courier IMAP services daemon
 #
@@ -17,9 +17,25 @@
 pidfile="@COURIER_STATEDIR@/tmp/imapd.pid"
 required_files="@PKG_SYSCONFDIR@/imapd @PKG_SYSCONFDIR@/imapd-ssl"
 
+start_precmd="${name}_prestart"
 start_cmd="${name}_doit start"
 stop_cmd="${name}_doit stop"
 
+mkdir_perms()
+{
+       dir="$1"; user="$2"; group="$3"; mode="$4"
+       @TEST@ -d $dir || @MKDIR@ $dir
+       @CHOWN@ $user $dir
+       @CHGRP@ $group $dir
+       @CHMOD@ $mode $dir
+}
+
+courierimap_prestart()
+{
+       mkdir_perms @COURIER_STATEDIR@/tmp \
+               @COURIER_USER@ @COURIER_GROUP@ 0770
+}
+
 courierimap_doit()
 {
        action=$1
diff -r 7ab09ef55ed0 -r 319bc6971eb4 mail/courier-imap/files/courierimaps.sh
--- a/mail/courier-imap/files/courierimaps.sh   Tue Feb 19 18:45:09 2008 +0000
+++ b/mail/courier-imap/files/courierimaps.sh   Tue Feb 19 18:45:14 2008 +0000
@@ -1,6 +1,6 @@
 #!@RCD_SCRIPTS_SHELL@
 #
-# $NetBSD: courierimaps.sh,v 1.17 2007/09/22 04:42:03 jlam Exp $
+# $NetBSD: courierimaps.sh,v 1.18 2008/02/19 18:45:14 jlam Exp $
 #
 # Courier IMAP/SSL services daemon
 #
@@ -17,9 +17,25 @@
 pidfile="@COURIER_STATEDIR@/tmp/imapd-ssl.pid"
 required_files="@PKG_SYSCONFDIR@/imapd @PKG_SYSCONFDIR@/imapd-ssl"
 
+start_precmd="${name}_prestart"
 start_cmd="${name}_doit start"
 stop_cmd="${name}_doit stop"
 
+mkdir_perms()
+{
+       dir="$1"; user="$2"; group="$3"; mode="$4"
+       @TEST@ -d $dir || @MKDIR@ $dir
+       @CHOWN@ $user $dir
+       @CHGRP@ $group $dir
+       @CHMOD@ $mode $dir
+}
+
+courierimaps_prestart()
+{
+       mkdir_perms @COURIER_STATEDIR@/tmp \
+               @COURIER_USER@ @COURIER_GROUP@ 0770
+}
+
 courierimaps_doit()
 {
        action=$1
diff -r 7ab09ef55ed0 -r 319bc6971eb4 mail/courier-imap/files/courierpop.sh
--- a/mail/courier-imap/files/courierpop.sh     Tue Feb 19 18:45:09 2008 +0000
+++ b/mail/courier-imap/files/courierpop.sh     Tue Feb 19 18:45:14 2008 +0000
@@ -1,6 +1,6 @@
 #!@RCD_SCRIPTS_SHELL@
 #
-# $NetBSD: courierpop.sh,v 1.15 2007/09/22 04:42:03 jlam Exp $
+# $NetBSD: courierpop.sh,v 1.16 2008/02/19 18:45:14 jlam Exp $
 #
 # Courier POP3 services daemon
 #
@@ -17,9 +17,25 @@
 pidfile="@COURIER_STATEDIR@/tmp/pop3d.pid"
 required_files="@PKG_SYSCONFDIR@/pop3d @PKG_SYSCONFDIR@/pop3d-ssl"
 
+start_precmd="${name}_prestart"
 start_cmd="${name}_doit start"
 stop_cmd="${name}_doit stop"
 
+mkdir_perms()
+{
+       dir="$1"; user="$2"; group="$3"; mode="$4"
+       @TEST@ -d $dir || @MKDIR@ $dir
+       @CHOWN@ $user $dir
+       @CHGRP@ $group $dir
+       @CHMOD@ $mode $dir
+}
+
+courierpop_prestart()
+{
+       mkdir_perms @COURIER_STATEDIR@/tmp \
+               @COURIER_USER@ @COURIER_GROUP@ 0770
+}
+
 courierpop_doit()
 {
        action=$1
diff -r 7ab09ef55ed0 -r 319bc6971eb4 mail/courier-imap/files/courierpops.sh
--- a/mail/courier-imap/files/courierpops.sh    Tue Feb 19 18:45:09 2008 +0000
+++ b/mail/courier-imap/files/courierpops.sh    Tue Feb 19 18:45:14 2008 +0000
@@ -1,6 +1,6 @@
 #!@RCD_SCRIPTS_SHELL@
 #
-# $NetBSD: courierpops.sh,v 1.17 2007/09/22 04:42:03 jlam Exp $
+# $NetBSD: courierpops.sh,v 1.18 2008/02/19 18:45:14 jlam Exp $
 #
 # Courier POP3/SSL services daemon
 #
@@ -17,9 +17,25 @@
 pidfile="@COURIER_STATEDIR@/tmp/pop3d-ssl.pid"
 required_files="@PKG_SYSCONFDIR@/pop3d @PKG_SYSCONFDIR@/pop3d-ssl"
 
+start_precmd="${name}_prestart"
 start_cmd="${name}_doit start"
 stop_cmd="${name}_doit stop"
 
+mkdir_perms()
+{
+       dir="$1"; user="$2"; group="$3"; mode="$4"
+       @TEST@ -d $dir || @MKDIR@ $dir
+       @CHOWN@ $user $dir
+       @CHGRP@ $group $dir
+       @CHMOD@ $mode $dir
+}
+
+courierpops_prestart()
+{
+       mkdir_perms @COURIER_STATEDIR@/tmp \
+               @COURIER_USER@ @COURIER_GROUP@ 0770
+}
+
 courierpops_doit()
 {
        action=$1
diff -r 7ab09ef55ed0 -r 319bc6971eb4 mail/courier-imap/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/courier-imap/options.mk      Tue Feb 19 18:45:14 2008 +0000
@@ -0,0 +1,37 @@
+# $NetBSD: options.mk,v 1.1 2008/02/19 18:45:14 jlam Exp $
+
+PKG_OPTIONS_VAR=               PKG_OPTIONS.courier-imap
+PKG_SUPPORTED_OPTIONS=         fam
+PKG_OPTIONS_OPTIONAL_GROUPS=   tls
+PKG_OPTIONS_GROUP.tls=         gnutls ssl
+PKG_SUGGESTED_OPTIONS=         ssl
+
+.include "../../mk/bsd.options.mk"
+
+###
+### File Alteration Monitor support.  This allows multiple imapd or pop3d
+### processes to be notified of changes to the underlying maildirs instead
+### of needing to poll the maildirs.
+###
+.if !empty(PKG_OPTIONS:Mfam)
+.  include "../../mk/fam.buildlink3.mk"
+.endif
+
+###
+### Default to using the OpenSSL or GNUTLS tools for creating certificates.



Home | Main Index | Thread Index | Old Index