summaryrefslogtreecommitdiff
path: root/mail/isync
diff options
context:
space:
mode:
authorcjep <cjep>2002-12-07 15:12:41 +0000
committercjep <cjep>2002-12-07 15:12:41 +0000
commit9a1d01db45e85fa74a4f081316a9337f19ed7a31 (patch)
tree65882ad82a0f0c8ebcbbc5122130151c692f7639 /mail/isync
parentb9c106d15b5d448ecaa209858270df0a8bc5d506 (diff)
downloadpkgsrc-9a1d01db45e85fa74a4f081316a9337f19ed7a31.tar.gz
Initial import of isync 0.8 into the NetBSD packages collection as
mail/isync. isync is a command line utility for synchronizing a remote IMAP mailbox with a local maildir-style mailbox. This is useful for working in disconnected mode, such as on a laptop. Modifications made locally and remotely are synchronized so that no message status flags are lost. Supplied by Ceri Storey in PR#19314. Thanks!
Diffstat (limited to 'mail/isync')
-rw-r--r--mail/isync/DESCR4
-rw-r--r--mail/isync/Makefile16
-rw-r--r--mail/isync/PLIST3
-rw-r--r--mail/isync/distinfo9
-rw-r--r--mail/isync/patches/patch-aa13
-rw-r--r--mail/isync/patches/patch-ab13
-rw-r--r--mail/isync/patches/patch-ac13
-rw-r--r--mail/isync/patches/patch-ad13
-rw-r--r--mail/isync/patches/patch-ae22
9 files changed, 106 insertions, 0 deletions
diff --git a/mail/isync/DESCR b/mail/isync/DESCR
new file mode 100644
index 00000000000..7e9519dbe46
--- /dev/null
+++ b/mail/isync/DESCR
@@ -0,0 +1,4 @@
+isync is a command line utility for synchronizing a remote IMAP mailbox
+with a local maildir-style mailbox. This is useful for working in
+disconnected mode, such as on a laptop. Modifications made locally and
+remotely are synchronized so that no message status flags are lost.
diff --git a/mail/isync/Makefile b/mail/isync/Makefile
new file mode 100644
index 00000000000..004e8523493
--- /dev/null
+++ b/mail/isync/Makefile
@@ -0,0 +1,16 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/12/07 15:12:41 cjep Exp $
+#
+
+DISTNAME= isync-0.8
+CATEGORIES= mail net
+MASTER_SITES= http://www.cs.hmc.edu/~me/isync/
+
+MAINTAINER= cez+misc.pkgsrc@compsoc.man.ac.uk
+HOMEPAGE= http://www.cs.hmc.edu/~me/isync/
+COMMENT= Syncronize a maildir with an imap server
+
+USE_BUILDLINK2= YES
+GNU_CONFIGURE= YES
+
+.include "../../security/openssl/buildlink2.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/mail/isync/PLIST b/mail/isync/PLIST
new file mode 100644
index 00000000000..7eb4262b125
--- /dev/null
+++ b/mail/isync/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/12/07 15:12:41 cjep Exp $
+bin/isync
+man/man1/isync.1
diff --git a/mail/isync/distinfo b/mail/isync/distinfo
new file mode 100644
index 00000000000..27439599cb0
--- /dev/null
+++ b/mail/isync/distinfo
@@ -0,0 +1,9 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/12/07 15:12:41 cjep Exp $
+
+SHA1 (isync-0.8.tar.gz) = d93b2e63f3239ea5ff15a037f957e252f380c3ac
+Size (isync-0.8.tar.gz) = 66347 bytes
+SHA1 (patch-aa) = 3c73e5b5b9d8a1a9e7eccc463b2489ef52e45184
+SHA1 (patch-ab) = 72c16339f5e588c71bd133bff2bbf345d1f91e53
+SHA1 (patch-ac) = e691332efb46c56c92e6a4e8fa0dfe3d126b91a7
+SHA1 (patch-ad) = 1862831c101c0d68e8bb2695f5803a705096ac74
+SHA1 (patch-ae) = 54440ab2d23b7a1808476b1b3d26061c62d19b44
diff --git a/mail/isync/patches/patch-aa b/mail/isync/patches/patch-aa
new file mode 100644
index 00000000000..735d7d9c2e5
--- /dev/null
+++ b/mail/isync/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/12/07 15:12:41 cjep Exp $
+
+--- configure.orig Sat Dec 7 13:58:13 2002
++++ configure
+@@ -1386,7 +1386,7 @@ else
+ #line 1387 "configure"
+ #include "confdefs.h"
+ #define DB_DBM_HSEARCH 1
+-#include <db.h>
++#include <ndbm.h>
+ int main() {
+ dbm_open(0,0,0);
+ ; return 0; }
diff --git a/mail/isync/patches/patch-ab b/mail/isync/patches/patch-ab
new file mode 100644
index 00000000000..77e1b34c0b1
--- /dev/null
+++ b/mail/isync/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 2002/12/07 15:12:41 cjep Exp $
+
+--- configure.in.orig Mon Jan 28 19:32:58 2002
++++ configure.in
+@@ -30,7 +30,7 @@ if test $ac_cv_dbmopen = no; then
+ LIBS="$LIBS -ldb"
+ ac_cv_libdb=no
+ AC_TRY_LINK([#define DB_DBM_HSEARCH 1
+-#include <db.h>],
++#include <ndbm.h>],
+ [dbm_open(0,0,0);],
+ [ac_cv_libdb=yes])
+ LIBS="$save_LIBS"])
diff --git a/mail/isync/patches/patch-ac b/mail/isync/patches/patch-ac
new file mode 100644
index 00000000000..ca74449f45a
--- /dev/null
+++ b/mail/isync/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1.1.1 2002/12/07 15:12:41 cjep Exp $
+
+--- sync.c.orig Mon Jan 28 19:19:56 2002
++++ sync.c
+@@ -48,7 +48,7 @@ set_uid (DBM * db, const char *f, unsign
+
+ key.dptr = (void *) f;
+ s = strchr (f, ':');
+- key.dsize = s ? (size_t) (s - key.dptr) : strlen (f);
++ key.dsize = s ? (size_t) (s - (char *)key.dptr) : strlen (f);
+ val.dptr = (void *) &uid;
+ val.dsize = sizeof (uid);
+ dbm_store (db, key, val, DBM_REPLACE);
diff --git a/mail/isync/patches/patch-ad b/mail/isync/patches/patch-ad
new file mode 100644
index 00000000000..78e4c9675c6
--- /dev/null
+++ b/mail/isync/patches/patch-ad
@@ -0,0 +1,13 @@
+$NetBSD: patch-ad,v 1.1.1.1 2002/12/07 15:12:41 cjep Exp $
+
+--- isync.h.orig Wed Jan 16 19:47:28 2002
++++ isync.h
+@@ -25,7 +25,7 @@
+ #if HAVE_LIBSSL
+ #include <openssl/ssl.h>
+ #endif
+-#include <db.h>
++#include <ndbm.h>
+ #include "debug.h"
+
+ typedef struct
diff --git a/mail/isync/patches/patch-ae b/mail/isync/patches/patch-ae
new file mode 100644
index 00000000000..9330296192d
--- /dev/null
+++ b/mail/isync/patches/patch-ae
@@ -0,0 +1,22 @@
+$NetBSD: patch-ae,v 1.1.1.1 2002/12/07 15:12:41 cjep Exp $
+
+--- maildir.c.orig Wed Jan 16 22:17:54 2002
++++ maildir.c
+@@ -280,7 +280,7 @@ maildir_open (const char *path, int flag
+ */
+ key.dptr = p->file;
+ s = strchr (key.dptr, ':');
+- key.dsize = s ? (size_t) (s - key.dptr) : strlen (key.dptr);
++ key.dsize = s ? (size_t) (s - (char *)key.dptr) : strlen (key.dptr);
+ key = dbm_fetch (m->db, key);
+ if (key.dptr)
+ {
+@@ -336,7 +336,7 @@ maildir_expunge (mailbox_t * mbox, int d
+ /* remove the message from the UID map */
+ key.dptr = tmp->file;
+ s = strchr (key.dptr, ':');
+- key.dsize = s ? (size_t) (s - key.dptr) : strlen (key.dptr);
++ key.dsize = s ? (size_t) (s - (char *)key.dptr) : strlen (key.dptr);
+ dbm_delete (mbox->db, key);
+ *cur = (*cur)->next;
+ free (tmp->file);