aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--debian/changelog5
-rw-r--r--debian/compat1
-rw-r--r--debian/control51
-rw-r--r--debian/copyright15
-rw-r--r--debian/gbp.conf6
-rw-r--r--debian/interimap.docs3
-rw-r--r--debian/interimap.install1
-rw-r--r--debian/interimap.manpages1
-rw-r--r--debian/libinterimap.install1
-rw-r--r--debian/patches/0001-Ignore-custom-lib-PATH.patch37
-rw-r--r--debian/patches/series1
-rw-r--r--debian/pullimap.docs2
-rw-r--r--debian/pullimap.install1
-rw-r--r--debian/pullimap.manpages1
-rwxr-xr-xdebian/rules4
-rw-r--r--debian/source/format1
-rwxr-xr-xinterimap1
-rwxr-xr-xpullimap1
18 files changed, 131 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..ad784b1
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+interimap (0.3-1) UNRELEASED; urgency=low
+
+ * Initial release.
+
+ -- Guilhem Moulin <guilhem@guilhem.org> Sat, 21 Mar 2015 15:04:45 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..6b8cd7c
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,51 @@
+Source: interimap
+Section: mail
+Priority: optional
+Maintainer: Guilhem Moulin <guilhem@guilhem.org>
+Build-Depends: debhelper (>= 9), jq, pandoc
+Standards-Version: 3.9.6
+Vcs-Git: https://git.guilhem.org/interimap
+Vcs-Browser: https://git.guilhem.org/interimap
+
+Package: interimap
+Architecture: all
+Depends: ${misc:Depends}, ${perl:Depends},
+ libinterimap, libdbi-perl, libdbd-sqlite3-perl
+Description: Fast bidirectional synchronization for QRESYNC-capable IMAP servers
+ InterIMAP performs stateful bi-directional synchronization between two
+ IMAP4rev1 servers. Compared to the so-called "full" synchronization
+ solutions, InterIMAP is both much faster and parsimonious regarding network
+ traffic.
+ .
+ Stateful synchronization is made possible by the QRESYNC extension from
+ [RFC7162]; for convenience reasons servers must also support LIST-EXTENDED
+ [RFC5258], LIST-STATUS [RFC5819] and UIDPLUS [RFC4315].
+ .
+ Furthermore, while InterIMAP can work with servers lacking support for LITERAL+
+ [RFC2088] and MULTIAPPEND [RFC3502], these extensions greatly improve
+ performance by reducing the number of required round trips hence are
+ strongly recommended.
+
+Package: libinterimap
+Architecture: all
+Depends: ${misc:Depends}, ${perl:Depends},
+ libconfig-tiny-perl, libnet-ssleay-perl
+Description: Net::IMAP::InterIMAP library and utils
+ Net::IMAP::InterIMAP is a minimal IMAP4 client for QRESYNC-capable servers,
+ used by interimap. It can also be used for non QRESYNC-capable servers, but
+ that can be unsafe as it does not keep a mapping between message sequence
+ numbers and UIDs.
+
+Package: pullimap
+Architecture: all
+Depends: ${misc:Depends}, ${perl:Depends},
+ libinterimap
+Description: Pull mails from an IMAP mailbox and deliver them to a SMTP session
+ PullIMAP retrieves messages from an IMAP mailbox and deliver them to a SMTP
+ or LMTP transmission channel. It can also remove old messages after a
+ configurable retention period.
+ .
+ A statefile is used to keep track of the mailbox’s UIDVALIDITY and UIDNEXT
+ values. While PullIMAP is running, the statefile is also used to keep track
+ of UIDs being delivered, which avoids duplicate deliveries if the process is
+ interrupted.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..51440e8
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,15 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Source: native package
+
+Files: *
+Copyright: © 2015 Guilhem Moulin <guilhem@fripost.org>
+License: GPL-3+
+
+License: GPL-3+
+ This package is free software; you can redistribute it and/or modify it
+ under the terms of the GNU General Public License as published by the
+ Free Software Foundation; either version 3 of the License, or (at your
+ option) any later version.
+ .
+ On Debian systems, the complete text of the GNU General Public License
+ version 3 can be found in file "/usr/share/common-licenses/GPL-3".
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..4daf79f
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,6 @@
+[DEFAULT]
+upstream-branch = master
+debian-branch = debian
+upstream-tag = upstream/%(version)s
+debian-tag = debian/%(version)s
+pristine-tar = False
diff --git a/debian/interimap.docs b/debian/interimap.docs
new file mode 100644
index 0000000..54ed176
--- /dev/null
+++ b/debian/interimap.docs
@@ -0,0 +1,3 @@
+README
+interimap.sample
+interimap.service
diff --git a/debian/interimap.install b/debian/interimap.install
new file mode 100644
index 0000000..011cb62
--- /dev/null
+++ b/debian/interimap.install
@@ -0,0 +1 @@
+interimap /usr/bin
diff --git a/debian/interimap.manpages b/debian/interimap.manpages
new file mode 100644
index 0000000..02f8f0d
--- /dev/null
+++ b/debian/interimap.manpages
@@ -0,0 +1 @@
+interimap.1
diff --git a/debian/libinterimap.install b/debian/libinterimap.install
new file mode 100644
index 0000000..c79d222
--- /dev/null
+++ b/debian/libinterimap.install
@@ -0,0 +1 @@
+lib/Net/IMAP/InterIMAP.pm /usr/share/perl5/Net/IMAP
diff --git a/debian/patches/0001-Ignore-custom-lib-PATH.patch b/debian/patches/0001-Ignore-custom-lib-PATH.patch
new file mode 100644
index 0000000..d12268e
--- /dev/null
+++ b/debian/patches/0001-Ignore-custom-lib-PATH.patch
@@ -0,0 +1,37 @@
+From cd68468db941799d18343c8b931965c1cd04c7ed Mon Sep 17 00:00:00 2001
+From: Guilhem Moulin <guilhem@fripost.org>
+Date: Wed, 9 Mar 2016 21:16:42 +0100
+Subject: [PATCH] Ignore custom lib PATH.
+
+---
+ interimap | 1 -
+ pullimap | 1 -
+ 2 files changed, 2 deletions(-)
+
+diff --git a/interimap b/interimap
+index 7097f17..849aa85 100755
+--- a/interimap
++++ b/interimap
+@@ -29,7 +29,6 @@ use DBI ();
+ use Fcntl qw/F_GETFD F_SETFD FD_CLOEXEC/;
+ use List::Util 'first';
+
+-use lib 'lib';
+ use Net::IMAP::InterIMAP qw/read_config compact_set/;
+
+ # Clean up PATH
+diff --git a/pullimap b/pullimap
+index 02aedf6..79da152 100755
+--- a/pullimap
++++ b/pullimap
+@@ -30,7 +30,6 @@ use Getopt::Long qw/:config posix_default no_ignore_case gnu_getopt auto_version
+ use List::Util 'first';
+ use Socket qw/PF_INET PF_INET6 SOCK_STREAM/;
+
+-use lib 'lib';
+ use Net::IMAP::InterIMAP qw/read_config compact_set/;
+
+ my %CONFIG;
+--
+2.7.0
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..ba71084
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Ignore-custom-lib-PATH.patch
diff --git a/debian/pullimap.docs b/debian/pullimap.docs
new file mode 100644
index 0000000..17d6c56
--- /dev/null
+++ b/debian/pullimap.docs
@@ -0,0 +1,2 @@
+pullimap.sample
+pullimap@.service
diff --git a/debian/pullimap.install b/debian/pullimap.install
new file mode 100644
index 0000000..76b9d90
--- /dev/null
+++ b/debian/pullimap.install
@@ -0,0 +1 @@
+pullimap /usr/bin
diff --git a/debian/pullimap.manpages b/debian/pullimap.manpages
new file mode 100644
index 0000000..4d13657
--- /dev/null
+++ b/debian/pullimap.manpages
@@ -0,0 +1 @@
+pullimap.1
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..2d33f6a
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,4 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/interimap b/interimap
index 17d28c2..b714480 100755
--- a/interimap
+++ b/interimap
@@ -29,7 +29,6 @@ use DBI ();
use Fcntl qw/F_GETFD F_SETFD FD_CLOEXEC/;
use List::Util 'first';
-use lib 'lib';
use Net::IMAP::InterIMAP qw/read_config compact_set/;
# Clean up PATH
diff --git a/pullimap b/pullimap
index 317e880..49fc837 100755
--- a/pullimap
+++ b/pullimap
@@ -30,7 +30,6 @@ use Getopt::Long qw/:config posix_default no_ignore_case gnu_getopt auto_version
use List::Util 'first';
use Socket qw/PF_INET PF_INET6 SOCK_STREAM/;
-use lib 'lib';
use Net::IMAP::InterIMAP qw/read_config compact_set/;
my %CONFIG;