diff options
author | plunky <plunky@pkgsrc.org> | 2019-01-22 06:14:32 +0000 |
---|---|---|
committer | plunky <plunky@pkgsrc.org> | 2019-01-22 06:14:32 +0000 |
commit | 6836de3ef2de485f292d6015e70e6d1c40f88e9a (patch) | |
tree | 315c8eb930e77e4db943be75f46c17c4ba2f4f96 /mail | |
parent | 19a7ff5bd96b0a98682d905f269dd694b923618a (diff) | |
download | pkgsrc-6836de3ef2de485f292d6015e70e6d1c40f88e9a.tar.gz |
add sieve-connect 0.89, A client for the ManageSieve protocol, as
specifed in RFC 5804.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/sieve-connect/DESCR | 18 | ||||
-rw-r--r-- | mail/sieve-connect/Makefile | 34 | ||||
-rw-r--r-- | mail/sieve-connect/PLIST | 3 | ||||
-rw-r--r-- | mail/sieve-connect/distinfo | 7 | ||||
-rw-r--r-- | mail/sieve-connect/patches/patch-sieve-connect.pl | 33 |
5 files changed, 95 insertions, 0 deletions
diff --git a/mail/sieve-connect/DESCR b/mail/sieve-connect/DESCR new file mode 100644 index 00000000000..0d23906ff6a --- /dev/null +++ b/mail/sieve-connect/DESCR @@ -0,0 +1,18 @@ +This is sieve-connect. A client for the ManageSieve protocol, as +specifed in RFC 5804. + +This is not yet fully compatible with RFC 5804, but is moving +towards that from the timsieved baseline; some issues to be +worked on are documented in the "TODO" file. + +sieve-connect speaks ManageSieve and supports TLS for connection +privacy and also authentication if using client certificates. +sieve-connect will use SASL authentication; SASL integrity layers +are not supported, use TLS instead. GSSAPI-based authentication +should generally work, provided that client and server can use a +common underlaying protocol. If it doesn't work for you, please +report the issue. + +sieve-connect is designed to be both a tool which can be invoked +from scripts and also a decent interactive client. It should also +be a drop-in replacement for "sieveshell", as supplied with Cyrus IMAP. diff --git a/mail/sieve-connect/Makefile b/mail/sieve-connect/Makefile new file mode 100644 index 00000000000..dee3aa4a834 --- /dev/null +++ b/mail/sieve-connect/Makefile @@ -0,0 +1,34 @@ +# $NetBSD: Makefile,v 1.1 2019/01/22 06:14:32 plunky Exp $ +# + +DISTNAME= sieve-connect-0.89 +CATEGORIES= mail +MASTER_SITES= https://people.spodhuis.org/phil.pennock/software/ +EXTRACT_SUFX= .tar.bz2 + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://github.com/philpennock/sieve-connect +COMMENT= Command line client for the ManageSieve protocol +LICENSE= modified-bsd + +USE_TOOLS+= sed chmod rm perl + +BUILD_MAKE_FLAGS+= PERL5BIN=${PERL5:Q} + +INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 +INSTALL_MAKE_FLAGS+= PREFIX=${DESTDIR}${PREFIX} MANDIR=${PKGMANDIR} + +DEPENDS+= p5-Authen-SASL-[0-9]*:../../security/p5-Authen-SASL +DEPENDS+= p5-IO-Socket-INET6-[0-9]*:../../net/p5-IO-Socket-INET6 +DEPENDS+= p5-IO-Socket-SSL>=1.14:../../security/p5-IO-Socket-SSL +DEPENDS+= p5-Net-DNS-[0-9]*:../../net/p5-Net-DNS +DEPENDS+= p5-Pod-Usage-[0-9]*:../../devel/p5-Pod-Usage + +# optional +DEPENDS+= p5-Term-ReadKey-[0-9]*:../../devel/p5-Term-ReadKey +DEPENDS+= p5-Term-ReadLine-[0-9]*:../../devel/p5-Term-ReadLine +#DEPENDS+= p5-Mozilla-PublicSuffix-[0-9]*:../../???/p5-Mozilla-PublicSuffix +#DEPENDS+= p5-Term-ReadLine-Gnu-[0-9]*:../../???/p5-Term-ReadLine-Gnu + +.include "../../lang/perl5/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/mail/sieve-connect/PLIST b/mail/sieve-connect/PLIST new file mode 100644 index 00000000000..f1f3cc725f8 --- /dev/null +++ b/mail/sieve-connect/PLIST @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST,v 1.1 2019/01/22 06:14:32 plunky Exp $ +bin/sieve-connect +man/man1/sieve-connect.1 diff --git a/mail/sieve-connect/distinfo b/mail/sieve-connect/distinfo new file mode 100644 index 00000000000..9b9e046b4d1 --- /dev/null +++ b/mail/sieve-connect/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1 2019/01/22 06:14:32 plunky Exp $ + +SHA1 (sieve-connect-0.89.tar.bz2) = b8544a7603c2f7778a6590cd72d47325438160f8 +RMD160 (sieve-connect-0.89.tar.bz2) = a3756bf3818804586883d32c759266366d82132f +SHA512 (sieve-connect-0.89.tar.bz2) = ddcc315f78c3dc127405ecbf9cd4f1bfa02eae018a5413f594e018d23043c856e2a1d09a7df0ed1712af821b207fd781085091afda1d18cf25e9b938563f67aa +Size (sieve-connect-0.89.tar.bz2) = 45683 bytes +SHA1 (patch-sieve-connect.pl) = 15742aedcdbdbe8d7484b2d1f30ccb0ae609c45b diff --git a/mail/sieve-connect/patches/patch-sieve-connect.pl b/mail/sieve-connect/patches/patch-sieve-connect.pl new file mode 100644 index 00000000000..f19cc823b41 --- /dev/null +++ b/mail/sieve-connect/patches/patch-sieve-connect.pl @@ -0,0 +1,33 @@ +$NetBSD: patch-sieve-connect.pl,v 1.1 2019/01/22 06:14:32 plunky Exp $ + +Fix RE errors (will be fatal in perl 5.30) + +--- sieve-connect.pl.orig 2017-02-15 00:13:15.000000000 +0000 ++++ sieve-connect.pl +@@ -927,7 +927,7 @@ if (defined $realm) { + if (/^"(.*)"\r?\n?$/) { + $challenge = $1; + } else { +- unless (/^{(\d+)\+?}\r?$/m) { ++ unless (/^\{(\d+)\+?}\r?$/m) { + sfinish $sock, "*"; + closedie($sock, "Failure to parse server SASL response.\n"); + } +@@ -1510,7 +1510,7 @@ sub sieve_download + warn qq{Empty script "$remotefn"? Not saved.\n}; + return; + } +- unless (/^{(\d+)\+?}\r?$/m) { ++ unless (/^\{(\d+)\+?}\r?$/m) { + die "QUIT:Failed to parse server response to GETSCRIPT"; + } + my $contentdata = $_; +@@ -1526,7 +1526,7 @@ sub sieve_download + or die "write-open($localfn) failed: $!\n"; + $oldouthandle = select $fh; + } +- $contentdata =~ s/^{\d+\+?}\r?\n?//m; ++ $contentdata =~ s/^\{\d+\+?}\r?\n?//m; + print $contentdata; + select $oldouthandle if defined $oldouthandle; + if (defined $fh) { |