pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mail/mailsync Upgrade mailsync to version 4.4.4. Patc...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fcdd112aa409
branches:  trunk
changeset: 473679:fcdd112aa409
user:      ben <ben%pkgsrc.org@localhost>
date:      Thu Apr 22 23:41:27 2004 +0000

description:
Upgrade mailsync to version 4.4.4.  Patch from Michael Pasternak.  Notable
changes include:
 * Check every fetch operation for success
 * documented the fact that mailsync is not really fit for concurrent
   mailbox access
 * extended loging
 * reengineering - clearer naming of variables (I hope)
                 - int msgno -> unsigned long msgno (as in c-client)
                 - functions and variables that return/contain only true/false
                   are now booleans
 * do not copy deleted mails
 * documented list mode
 * list mode can display contents of mailboxes
 * more docu
 * reordered code to make it more coherent (IMHO)
 * various functions (fetch_mail_ids, tdc_mail_open) had too many crucial
   side effects which made the code very hard to follow. Untangled that.
 * closing a stream before writing in it (c-client logic!) so that new
   messages are not marked as seen. That means, that mutt users should be
   happy(er?) now.
 * more explicit and consistent error messages, more sensible debug output
 * documented the code and renamed stuff so that it makes sense
 * messages-ids are sanitized and saved in RFC822 format only.
 * warnings about spaces in the message id are now optional, see the "-bd"
   option
 * fixed a bug that occured when files were copied over but could not be saved
   for some reason

diffstat:

 mail/mailsync/Makefile         |  16 ++++++++--------
 mail/mailsync/distinfo         |   9 +++++----
 mail/mailsync/patches/patch-aa |  31 ++++++++++++++++---------------
 mail/mailsync/patches/patch-ab |  12 ++++++++++++
 4 files changed, 41 insertions(+), 27 deletions(-)

diffs (126 lines):

diff -r dfe00c0449bf -r fcdd112aa409 mail/mailsync/Makefile
--- a/mail/mailsync/Makefile    Thu Apr 22 23:22:26 2004 +0000
+++ b/mail/mailsync/Makefile    Thu Apr 22 23:41:27 2004 +0000
@@ -1,9 +1,8 @@
-# $NetBSD: Makefile,v 1.12 2004/04/15 23:24:04 wiz Exp $
+# $NetBSD: Makefile,v 1.13 2004/04/22 23:41:27 ben Exp $
 #
 
-DISTNAME=      mailsync_4.3-2
-PKGNAME=       mailsync-4.3.2
-PKGREVISION=   1
+DISTNAME=      mailsync_4.4.4-1
+PKGNAME=       mailsync-4.4.4
 CATEGORIES=    mail
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=mailsync/}
 
@@ -11,16 +10,15 @@
 HOMEPAGE=      http://mailsync.sourceforge.net/
 COMMENT=       Mailsync is a way of synchronizing a collection of mailboxes
 
-DEPENDS+=      imap-uw-[0-9]*:../../mail/imap-uw
-
-WRKSRC=                ${WRKDIR}/mailsync-4.3
+WRKSRC=                ${WRKDIR}/${PKGBASE}
+USE_BUILDLINK3=        yes
 USE_GNU_TOOLS+=        make
 USE_GCC_SHLIB= yes
 ALL_TARGET=    default
 
 .include "../../mk/bsd.prefs.mk"
 
-.if ${OPSYS} == "Darwin"
+.if ${OPSYS} == "Darwin" || ${OPSYS} == "FreeBSD"
 CFLAGS+=       -fno-operator-names
 .endif
 
@@ -34,4 +32,6 @@
        ${INSTALL_DATA} ${WRKSRC}/WHATSNEW ${PREFIX}/share/doc/mailsync
        ${INSTALL_MAN} ${WRKSRC}/mailsync.1 ${PREFIX}/man/man1
 
+.include "../../security/openssl/buildlink3.mk"
+.include "../../mail/imap-uw/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r dfe00c0449bf -r fcdd112aa409 mail/mailsync/distinfo
--- a/mail/mailsync/distinfo    Thu Apr 22 23:22:26 2004 +0000
+++ b/mail/mailsync/distinfo    Thu Apr 22 23:41:27 2004 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.3 2002/12/09 00:19:46 rh Exp $
+$NetBSD: distinfo,v 1.4 2004/04/22 23:41:27 ben Exp $
 
-SHA1 (mailsync_4.3-2.tar.gz) = 239f58aeb98718de347c1b53682fb6add156b7e3
-Size (mailsync_4.3-2.tar.gz) = 20257 bytes
-SHA1 (patch-aa) = 2e18288d7549211ac0e77ee091fc24074d84d38f
+SHA1 (mailsync_4.4.4-1.tar.gz) = 0e45f1136c7aae78730317c0dd74734a0df2a873
+Size (mailsync_4.4.4-1.tar.gz) = 27408 bytes
+SHA1 (patch-aa) = b637925e91cca6b8675144be4e3f012ea7c219d0
+SHA1 (patch-ab) = 47530d92d127a3f45a6158d34b6f25dfb7d60192
diff -r dfe00c0449bf -r fcdd112aa409 mail/mailsync/patches/patch-aa
--- a/mail/mailsync/patches/patch-aa    Thu Apr 22 23:22:26 2004 +0000
+++ b/mail/mailsync/patches/patch-aa    Thu Apr 22 23:41:27 2004 +0000
@@ -1,33 +1,34 @@
-$NetBSD: patch-aa,v 1.2 2002/12/09 00:19:47 rh Exp $
+$NetBSD: patch-aa,v 1.3 2004/04/22 23:41:27 ben Exp $
 
---- Makefile.orig      Tue Apr 16 04:26:35 2002
+--- Makefile.orig      Thu Oct 24 07:03:07 2002
 +++ Makefile
-@@ -1,7 +1,7 @@
+@@ -1,13 +1,13 @@
  # compiling with g++-3 worked for me with the commented ## lines - tpo
  
  # path to c-client headers
 -C = /usr/include/c-client
 +C = ${PREFIX}/include/c-client
+ #C = ../../libs/imap-2002.RC5/c-client/
  ##C = /usr/include/c-client -I/usr/include/g++-v3/
  
  # path to c-client library
-@@ -15,16 +15,16 @@ CC = g++
+ # linking dynamically
+-CCLIENTLIB = /usr/lib/libc-client.so
++CCLIENTLIB = ${PREFIX}/lib/libc-client.so
+ # linkging statically
+ #CCLIENTLIB = ../imap-2001a/c-client/c-client.a
+ 
+@@ -16,10 +16,11 @@ CC = g++
  ##CC = g++-3.0
  
  # flags for your compiler
--CFLAGS = -g  -O2 -Wall -I$(C) 
-+CFLAGS += -Wall -I$(C) 
+-CFLAGS = -g  -O2 -Wall -I$(C)
++CFLAGS += -I$(C)
  
  # required libraries
--LDFLAGS = -lm -lssl
-+LDFLAGS+= -lm -lssl -lcrypto -lc-client
+-LDFLAGS = -lm -lssl -lgssapi_krb5
++LDFLAGS += -lm -lssl 
++# -lgssapi_krb5
  # if your system requires pam to access crypt() you have to link pam in
  #LDFLAGS = -lm -lssl -lpam
  
- default: mailsync
- 
--mailsync: mailsync.o $(CCLIENTLIB)
-+mailsync: mailsync.o
-       $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
- 
- clean:
diff -r dfe00c0449bf -r fcdd112aa409 mail/mailsync/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/mailsync/patches/patch-ab    Thu Apr 22 23:41:27 2004 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-ab,v 1.1 2004/04/22 23:41:27 ben Exp $
+
+--- mailsync.c.orig    Thu Apr 15 23:36:22 2004
++++ mailsync.c
+@@ -17,6 +17,7 @@
+ #include <ctype.h>
+ #include <stdio.h>
+ #include <errno.h>
++#include <assert.h>
+ extern int errno;               // Just in case
+ #include <sys/stat.h>           // Stat()
+ 



Home | Main Index | Thread Index | Old Index