[Python-modules-commits] r16016 - in packages/pydkim/tags (18 files)

kitterman at users.alioth.debian.org kitterman at users.alioth.debian.org
Mon Mar 7 05:30:32 UTC 2011


    Date: Monday, March 7, 2011 @ 05:30:08
  Author: kitterman
Revision: 16016

Tagging 0.3-5.

Added:
  packages/pydkim/tags/0.3-5/
  packages/pydkim/tags/0.3-5/debian/
  packages/pydkim/tags/0.3-5/debian/README.source
  packages/pydkim/tags/0.3-5/debian/changelog
  packages/pydkim/tags/0.3-5/debian/compat
  packages/pydkim/tags/0.3-5/debian/control
  packages/pydkim/tags/0.3-5/debian/copyright
  packages/pydkim/tags/0.3-5/debian/dkimsign.1
  packages/pydkim/tags/0.3-5/debian/dkimverify.1
  packages/pydkim/tags/0.3-5/debian/docs
  packages/pydkim/tags/0.3-5/debian/manpages
  packages/pydkim/tags/0.3-5/debian/patches/
  packages/pydkim/tags/0.3-5/debian/patches/adjust-setup.py.patch
  packages/pydkim/tags/0.3-5/debian/patches/fix-key-record-validation.patch
  packages/pydkim/tags/0.3-5/debian/patches/relaxed-canonicalization.patch
  packages/pydkim/tags/0.3-5/debian/patches/series
  packages/pydkim/tags/0.3-5/debian/rules
  packages/pydkim/tags/0.3-5/debian/watch

Added: packages/pydkim/tags/0.3-5/debian/README.source
===================================================================
--- packages/pydkim/tags/0.3-5/debian/README.source	                        (rev 0)
+++ packages/pydkim/tags/0.3-5/debian/README.source	2011-03-07 05:30:08 UTC (rev 16016)
@@ -0,0 +1,5 @@
+This package uses quilt for patches.  dpkg-source -x does produce source
+ready for building with dpkg-buildpackage.  It does not procude source ready
+for editing.  See /usr/share/doc/quilt/README.source for information on using
+quilt.
+

Added: packages/pydkim/tags/0.3-5/debian/changelog
===================================================================
--- packages/pydkim/tags/0.3-5/debian/changelog	                        (rev 0)
+++ packages/pydkim/tags/0.3-5/debian/changelog	2011-03-07 05:30:08 UTC (rev 16016)
@@ -0,0 +1,60 @@
+pydkim (0.3-5) unstable; urgency=low
+
+  * Add debian/patches/relaxed-canonicalization.patch to fix body hash
+    verification failures due to out of sequence operations.  Thanks to
+    Martin Pool for the patch
+  * Add debian/patches/fix-key-record-validation.patch to fix incorrect key
+    record validation failures due to invalid assumptions about public key
+    record requirements
+  * Bump standards version to 3.9.1 without further change
+  * Change XS-Python-Version to X-Python-Version
+  * Add Breaks: ${python:Breaks}
+  * Drop XB-Python-Version
+
+ -- Scott Kitterman <scott at kitterman.com>  Mon, 07 Mar 2011 00:09:56 -0500
+
+pydkim (0.3-4) unstable; urgency=low
+
+  * Convert from CDBS to Debhelper 7:
+    - Drop cdbs from build-depends and bump required debhelper verion
+    - Change compat to 7
+    - Change debian/rules to DH 7 tiny --with quilt
+    - Add quilt to build-depends
+    - Update README.source for quilt
+    - Remove autogenerated pycompat
+  * Convert from python-central to dh_python2
+    - Drop python-central from build-depends
+    - Build --with python2
+    - Bump python version requirement to 2.6.5-2~
+  * Bump standards version to 3.8.4 without further change
+  * Remove DM-Upload-Allowed (no longer needed)
+  * Update debian/dkimsign.1 and debian/dkimverify.1 to specify their license
+  * Use correct © symbol in debian/copyright
+  * Remove pointless debian/examples file
+  * Fix typo in previous debian/changelog entry to make lintian happy
+
+ -- Scott Kitterman <scott at kitterman.com>  Mon, 21 Jun 2010 23:20:36 -0400
+
+pydkim (0.3-3) unstable; urgency=low
+
+  * Adjust dkimproxy conflict to << 1.0.1-8.1 due to filename collision
+    (Closes: #511037)
+  * Add ${misc:Depends}
+
+ -- Scott Kitterman <scott at kitterman.com>  Mon, 12 Jan 2009 23:17:26 -0500
+
+pydkim (0.3-2) unstable; urgency=low
+
+  * Conflict dkimproxy << 1.0.1-8 due to filename collision
+    (Closes: #509045)
+
+ -- Scott Kitterman <scott at kitterman.com>  Fri, 19 Dec 2008 14:34:10 -0500
+
+pydkim (0.3-1) unstable; urgency=low
+
+  * Initial Debian package (Closes: #502264)
+  * Add adjust-setup.py.patch to correct shebang in setup.py and to 
+    not install dkimsend.sh in /usr/bin (at best it's an example and not
+    suitable for actual use - will install with docs)
+
+ -- Scott Kitterman <scott at kitterman.com>  Thu, 06 Nov 2008 23:53:21 -0500

Added: packages/pydkim/tags/0.3-5/debian/compat
===================================================================
--- packages/pydkim/tags/0.3-5/debian/compat	                        (rev 0)
+++ packages/pydkim/tags/0.3-5/debian/compat	2011-03-07 05:30:08 UTC (rev 16016)
@@ -0,0 +1,2 @@
+7
+

Added: packages/pydkim/tags/0.3-5/debian/control
===================================================================
--- packages/pydkim/tags/0.3-5/debian/control	                        (rev 0)
+++ packages/pydkim/tags/0.3-5/debian/control	2011-03-07 05:30:08 UTC (rev 16016)
@@ -0,0 +1,21 @@
+Source: pydkim
+Section: python
+Priority: optional
+Maintainer: Scott Kitterman <scott at kitterman.com>
+Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org> 
+Build-Depends: debhelper (>= 7.3.16), python (>= 2.6.5-2~), quilt (>= 0.46-7)
+X-Python-Version: >= 2.5
+Vcs-Svn: svn://svn.debian.org/python-modules/packages/pydkim/trunk/
+Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/pydkim/trunk/
+Standards-Version: 3.9.1
+Homepage: http://hewgill.com/pydkim
+
+Package: python-dkim
+Architecture: all
+Depends: ${python:Depends}, ${misc:Depends}, python-dnspython
+Breaks: ${python:Breaks}
+Conflicts: dkimproxy (<< 1.0.1-8.1~)
+Description: Python module for DKIM signing and verification
+ Python module that implements DKIM (DomainKeys Identified Mail) email signing
+ and verification. It also provides helper scripts for command line signing
+ and verification.

Added: packages/pydkim/tags/0.3-5/debian/copyright
===================================================================
--- packages/pydkim/tags/0.3-5/debian/copyright	                        (rev 0)
+++ packages/pydkim/tags/0.3-5/debian/copyright	2011-03-07 05:30:08 UTC (rev 16016)
@@ -0,0 +1,29 @@
+This package was debianized by Scott Kitterman <scott at kitterman.com> on
+Thu, 06 Nov 2008 23:12:29 -0500.
+
+It was downloaded from http://hewgill.com/pydkim
+
+Copyright Holder: Copyright © 2008 Greg Hewgill http://hewgill.com
+
+License:
+
+# This software is provided 'as-is', without any express or implied
+# warranty.  In no event will the author be held liable for any damages
+# arising from the use of this software.
+#
+# Permission is granted to anyone to use this software for any purpose,
+# including commercial applications, and to alter it and redistribute it
+# freely, subject to the following restrictions:
+#
+# 1. The origin of this software must not be misrepresented; you must not
+#    claim that you wrote the original software. If you use this software
+#    in a product, an acknowledgment in the product documentation would be
+#    appreciated but is not required.
+# 2. Altered source versions must be plainly marked as such, and must not be
+#    misrepresented as being the original software.
+# 3. This notice may not be removed or altered from any source distribution.
+#
+# Copyright © 2008 Greg Hewgill http://hewgill.com
+
+The Debian packaging is © 2008, Scott Kitterman <scott at kitterman.com> and
+is licensed under the same terms as pydkim, see above.

Added: packages/pydkim/tags/0.3-5/debian/dkimsign.1
===================================================================
--- packages/pydkim/tags/0.3-5/debian/dkimsign.1	                        (rev 0)
+++ packages/pydkim/tags/0.3-5/debian/dkimsign.1	2011-03-07 05:30:08 UTC (rev 16016)
@@ -0,0 +1,158 @@
+\"
+.\" Standard preamble:
+.\" ========================================================================
+.de Sh \" Subsection heading
+.br
+.if t .Sp
+.ne 5
+.PP
+\fB\\$1\fR
+.PP
+..
+.de Sp \" Vertical space (when we can't use .PP)
+.if t .sp .5v
+.if n .sp
+..
+.de Vb \" Begin verbatim text
+.ft CW
+.nf
+.ne \\$1
+..
+.de Ve \" End verbatim text
+.ft R
+.fi
+..
+.\" Set up some character translations and predefined strings.  \*(-- will
+.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
+.\" double quote, and \*(R" will give a right double quote.  \*(C+ will
+.\" give a nicer C++.  Capital omega is used to do unbreakable dashes and
+.\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff,
+.\" nothing in troff, for use with C<>.
+.tr \(*W-
+.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
+.ie n \{\
+.    ds -- \(*W-
+.    ds PI pi
+.    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
+.    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
+.    ds L" ""
+.    ds R" ""
+.    ds C` ""
+.    ds C' ""
+'br\}
+.el\{\
+.    ds -- \|\(em\|
+.    ds PI \(*p
+.    ds L" ``
+.    ds R" ''
+'br\}
+.\"
+.\" If the F register is turned on, we'll generate index entries on stderr for
+.\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index
+.\" entries marked with X<> in POD.  Of course, you'll have to process the
+.\" output yourself in some meaningful fashion.
+.if \nF \{\
+.    de IX
+.    tm Index:\\$1\t\\n%\t"\\$2"
+..
+.    nr % 0
+.    rr F
+.\}
+.\"
+.\" For nroff, turn off justification.  Always turn off hyphenation; it makes
+.\" way too many mistakes in technical documents.
+.hy 0
+.if n .na
+.\"
+.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
+.\" Fear.  Run.  Save yourself.  No user-serviceable parts.
+.    \" fudge factors for nroff and troff
+.if n \{\
+.    ds #H 0
+.    ds #V .8m
+.    ds #F .3m
+.    ds #[ \f1
+.    ds #] \fP
+.\}
+.if t \{\
+.    ds #H ((1u-(\\\\n(.fu%2u))*.13m)
+.    ds #V .6m
+.    ds #F 0
+.    ds #[ \&
+.    ds #] \&
+.\}
+.    \" simple accents for nroff and troff
+.if n \{\
+.    ds ' \&
+.    ds ` \&
+.    ds ^ \&
+.    ds , \&
+.    ds ~ ~
+.    ds /
+.\}
+.if t \{\
+.    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
+.    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
+.    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
+.    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
+.    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
+.    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
+.\}
+.    \" troff and (daisy-wheel) nroff accents
+.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
+.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
+.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
+.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
+.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
+.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
+.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
+.ds ae a\h'-(\w'a'u*4/10)'e
+.ds Ae A\h'-(\w'A'u*4/10)'E
+.    \" corrections for vroff
+.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
+.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
+.    \" for low resolution devices (crt and lpr)
+.if \n(.H>23 .if \n(.V>19 \
+\{\
+.    ds : e
+.    ds 8 ss
+.    ds o a
+.    ds d- d\h'-1'\(ga
+.    ds D- D\h'-1'\(hy
+.    ds th \o'bp'
+.    ds Th \o'LP'
+.    ds ae ae
+.    ds Ae AE
+.\}
+.rm #[ #] #H #V #F C
+.\" ========================================================================
+.\"
+.IX Title "dkimsign 1"
+.TH dkimsign 1 "2008-11-07"
+.SH "NAME"
+dkimsign \- Script for DKIM signing messages on stdin
+.SH "VERSION"
+.IX Header "VERSION"
+0\.3
+
+.SH "DESCRIPTION"
+.IX Header "DESCRIPTION"
+
+dkimsign is a filter that reads an RFC822 message on standard input, and writes
+the same message on standard output with a DKIM-Signature line prepended.  
+
+.SH "USAGE"
+.IX Header "USAGE"
+
+The signing options are specified on the command line:
+
+dkimsign selector domain privatekeyfile [identity]
+
+The identity is optional and defaults to "@domain".
+
+.SH "AUTHORS"
+.IX Header "AUTHORS"
+This version of \fBdkimsign\fR was written by Greg Hewgill <greg at hewgill.com>.
+.PP
+This man-page was created by Scott Kitterman <scott at kitterman.com> and is
+licensed under the same terms as pydkim.

Added: packages/pydkim/tags/0.3-5/debian/dkimverify.1
===================================================================
--- packages/pydkim/tags/0.3-5/debian/dkimverify.1	                        (rev 0)
+++ packages/pydkim/tags/0.3-5/debian/dkimverify.1	2011-03-07 05:30:08 UTC (rev 16016)
@@ -0,0 +1,150 @@
+\"
+.\" Standard preamble:
+.\" ========================================================================
+.de Sh \" Subsection heading
+.br
+.if t .Sp
+.ne 5
+.PP
+\fB\\$1\fR
+.PP
+..
+.de Sp \" Vertical space (when we can't use .PP)
+.if t .sp .5v
+.if n .sp
+..
+.de Vb \" Begin verbatim text
+.ft CW
+.nf
+.ne \\$1
+..
+.de Ve \" End verbatim text
+.ft R
+.fi
+..
+.\" Set up some character translations and predefined strings.  \*(-- will
+.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
+.\" double quote, and \*(R" will give a right double quote.  \*(C+ will
+.\" give a nicer C++.  Capital omega is used to do unbreakable dashes and
+.\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff,
+.\" nothing in troff, for use with C<>.
+.tr \(*W-
+.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
+.ie n \{\
+.    ds -- \(*W-
+.    ds PI pi
+.    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
+.    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
+.    ds L" ""
+.    ds R" ""
+.    ds C` ""
+.    ds C' ""
+'br\}
+.el\{\
+.    ds -- \|\(em\|
+.    ds PI \(*p
+.    ds L" ``
+.    ds R" ''
+'br\}
+.\"
+.\" If the F register is turned on, we'll generate index entries on stderr for
+.\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index
+.\" entries marked with X<> in POD.  Of course, you'll have to process the
+.\" output yourself in some meaningful fashion.
+.if \nF \{\
+.    de IX
+.    tm Index:\\$1\t\\n%\t"\\$2"
+..
+.    nr % 0
+.    rr F
+.\}
+.\"
+.\" For nroff, turn off justification.  Always turn off hyphenation; it makes
+.\" way too many mistakes in technical documents.
+.hy 0
+.if n .na
+.\"
+.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
+.\" Fear.  Run.  Save yourself.  No user-serviceable parts.
+.    \" fudge factors for nroff and troff
+.if n \{\
+.    ds #H 0
+.    ds #V .8m
+.    ds #F .3m
+.    ds #[ \f1
+.    ds #] \fP
+.\}
+.if t \{\
+.    ds #H ((1u-(\\\\n(.fu%2u))*.13m)
+.    ds #V .6m
+.    ds #F 0
+.    ds #[ \&
+.    ds #] \&
+.\}
+.    \" simple accents for nroff and troff
+.if n \{\
+.    ds ' \&
+.    ds ` \&
+.    ds ^ \&
+.    ds , \&
+.    ds ~ ~
+.    ds /
+.\}
+.if t \{\
+.    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
+.    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
+.    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
+.    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
+.    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
+.    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
+.\}
+.    \" troff and (daisy-wheel) nroff accents
+.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
+.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
+.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
+.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
+.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
+.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
+.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
+.ds ae a\h'-(\w'a'u*4/10)'e
+.ds Ae A\h'-(\w'A'u*4/10)'E
+.    \" corrections for vroff
+.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
+.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
+.    \" for low resolution devices (crt and lpr)
+.if \n(.H>23 .if \n(.V>19 \
+\{\
+.    ds : e
+.    ds 8 ss
+.    ds o a
+.    ds d- d\h'-1'\(ga
+.    ds D- D\h'-1'\(hy
+.    ds th \o'bp'
+.    ds Th \o'LP'
+.    ds ae ae
+.    ds Ae AE
+.\}
+.rm #[ #] #H #V #F C
+.\" ========================================================================
+.\"
+.IX Title "dkimverify 1"
+.TH dkimverify 1 "2008-11-07"
+.SH "NAME"
+dkimverify \- Script for DKIM verifying messages on stdin
+.SH "VERSION"
+.IX Header "VERSION"
+0\.3
+
+.SH "DESCRIPTION"
+.IX Header "DESCRIPTION"
+
+dkimverify reads an RFC822 message on standard input, and returns with exit
+code 0 if the signature verifies successfully. Otherwise, it returns with exit
+code 1.
+
+.SH "AUTHORS"
+.IX Header "AUTHORS"
+This version of \fBdkimsign\fR was written by Greg Hewgill <greg at hewgill.com>.
+.PP
+This man-page was created by Scott Kitterman <scott at kitterman.com> and is
+licensed under the same terms as pydkim.

Added: packages/pydkim/tags/0.3-5/debian/docs
===================================================================
--- packages/pydkim/tags/0.3-5/debian/docs	                        (rev 0)
+++ packages/pydkim/tags/0.3-5/debian/docs	2011-03-07 05:30:08 UTC (rev 16016)
@@ -0,0 +1,2 @@
+README
+dkimsend.sh

Added: packages/pydkim/tags/0.3-5/debian/manpages
===================================================================
--- packages/pydkim/tags/0.3-5/debian/manpages	                        (rev 0)
+++ packages/pydkim/tags/0.3-5/debian/manpages	2011-03-07 05:30:08 UTC (rev 16016)
@@ -0,0 +1,3 @@
+debian/dkimsign.1
+debian/dkimverify.1
+

Added: packages/pydkim/tags/0.3-5/debian/patches/adjust-setup.py.patch
===================================================================
--- packages/pydkim/tags/0.3-5/debian/patches/adjust-setup.py.patch	                        (rev 0)
+++ packages/pydkim/tags/0.3-5/debian/patches/adjust-setup.py.patch	2011-03-07 05:30:08 UTC (rev 16016)
@@ -0,0 +1,20 @@
+This is a Debian specific patch that should not go upstream.  See debian/
+changelog for source and rationale.
+
+Index: pydkim-0.3/setup.py
+===================================================================
+--- pydkim-0.3.orig/setup.py	2010-06-21 23:43:45.503817777 -0400
++++ pydkim-0.3/setup.py	2010-06-21 23:43:55.486817085 -0400
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/python
+ 
+ # This software is provided 'as-is', without any express or implied
+ # warranty.  In no event will the author be held liable for any damages
+@@ -34,5 +34,5 @@
+     url = "http://hewgill.com/pydkim/",
+     license = "BSD-like",
+     py_modules = ["dkim"],
+-    scripts = ["dkimsign.py", "dkimverify.py", "dkimsend.sh"],
++    scripts = ["dkimsign.py", "dkimverify.py"],
+ )

Added: packages/pydkim/tags/0.3-5/debian/patches/fix-key-record-validation.patch
===================================================================
--- packages/pydkim/tags/0.3-5/debian/patches/fix-key-record-validation.patch	                        (rev 0)
+++ packages/pydkim/tags/0.3-5/debian/patches/fix-key-record-validation.patch	2011-03-07 05:30:08 UTC (rev 16016)
@@ -0,0 +1,15 @@
+Index: pydkim-0.3/dkim.py
+===================================================================
+--- pydkim-0.3.orig/dkim.py	2011-03-06 23:33:14.000000000 -0500
++++ pydkim-0.3/dkim.py	2011-03-06 23:34:13.000000000 -0500
+@@ -557,6 +557,10 @@
+     if not s:
+         return False
+     a = re.split(r"\s*;\s*", s)
++    # Trailing ';' on signature record is valid, see RFC 4871 3.2
++    #  tag-list  =  tag-spec 0*( ";" tag-spec ) [ ";" ]
++    if a[-1] == '':
++        a.pop(-1)
+     pub = {}
+     for f in a:
+         m = re.match(r"(\w+)=(.*)", f)

Added: packages/pydkim/tags/0.3-5/debian/patches/relaxed-canonicalization.patch
===================================================================
--- packages/pydkim/tags/0.3-5/debian/patches/relaxed-canonicalization.patch	                        (rev 0)
+++ packages/pydkim/tags/0.3-5/debian/patches/relaxed-canonicalization.patch	2011-03-07 05:30:08 UTC (rev 16016)
@@ -0,0 +1,44 @@
+Index: pydkim-0.3/dkim.py
+===================================================================
+--- pydkim-0.3.orig/dkim.py	2010-08-25 20:45:42.000000000 +0000
++++ pydkim-0.3/dkim.py	2010-08-25 20:45:53.000000000 +0000
+@@ -363,18 +363,23 @@
+         ('bh', bodyhash),
+         ('b', ""),
+     ] if x]
+-    sig = "DKIM-Signature: " + "; ".join("%s=%s" % x for x in sigfields)
+ 
+-    sig = fold(sig)
++    sig_value = fold("; ".join("%s=%s" % x for x in sigfields))
++    dkim_header = canonicalize[0].canonicalize_headers([
++        ['DKIM-Signature', ' ' + sig_value]])[0]
++    # the dkim sig is hashed with no trailing crlf, even if the
++    # canonicalization algorithm would add one.
++    if dkim_header[1][-2:] == '\r\n':
++        dkim_header = (dkim_header[0], dkim_header[1][:-2])
++    sign_headers.append(dkim_header)
+ 
+     if debuglog is not None:
+-        print >>debuglog, "sign headers:", sign_headers + [("DKIM-Signature", " "+"; ".join("%s=%s" % x for x in sigfields))]
++        print >>debuglog, "sign headers:", sign_headers
+     h = hashlib.sha256()
+     for x in sign_headers:
+         h.update(x[0])
+         h.update(":")
+         h.update(x[1])
+-    h.update(sig)
+     d = h.digest()
+     if debuglog is not None:
+         print >>debuglog, "sign digest:", " ".join("%02x" % ord(x) for x in d)
+@@ -392,9 +397,9 @@
+     if len(dinfo)+3 > modlen:
+         raise ParameterError("Hash too large for modulus")
+     sig2 = int2str(pow(str2int("\x00\x01"+"\xff"*(modlen-len(dinfo)-3)+"\x00"+dinfo), pk['privateExponent'], pk['modulus']), modlen)
+-    sig += base64.b64encode(''.join(sig2))
++    sig_value += base64.b64encode(''.join(sig2))
+ 
+-    return sig + "\r\n"
++    return 'DKIM-Signature: ' + sig_value + "\r\n"
+ 
+ def verify(message, debuglog=None):
+     """Verify a DKIM signature on an RFC822 formatted message.

Added: packages/pydkim/tags/0.3-5/debian/patches/series
===================================================================
--- packages/pydkim/tags/0.3-5/debian/patches/series	                        (rev 0)
+++ packages/pydkim/tags/0.3-5/debian/patches/series	2011-03-07 05:30:08 UTC (rev 16016)
@@ -0,0 +1,3 @@
+adjust-setup.py.patch
+relaxed-canonicalization.patch
+fix-key-record-validation.patch

Added: packages/pydkim/tags/0.3-5/debian/rules
===================================================================
--- packages/pydkim/tags/0.3-5/debian/rules	                        (rev 0)
+++ packages/pydkim/tags/0.3-5/debian/rules	2011-03-07 05:30:08 UTC (rev 16016)
@@ -0,0 +1,10 @@
+#!/usr/bin/make -f
+
+%:
+	dh $@ --with quilt, --with python2
+
+override_dh_install:
+	mv debian/python-dkim/usr/bin/dkimsign.py  debian/python-dkim/usr/bin/dkimsign
+	mv debian/python-dkim/usr/bin/dkimverify.py  debian/python-dkim/usr/bin/dkimverify
+	dh_install
+


Property changes on: packages/pydkim/tags/0.3-5/debian/rules
___________________________________________________________________
Added: svn:executable
   + *

Added: packages/pydkim/tags/0.3-5/debian/watch
===================================================================
--- packages/pydkim/tags/0.3-5/debian/watch	                        (rev 0)
+++ packages/pydkim/tags/0.3-5/debian/watch	2011-03-07 05:30:08 UTC (rev 16016)
@@ -0,0 +1,3 @@
+version=3
+http://hewgill.com/pydkim/pydkim-(.*)\.tar\.gz debian uupdate
+




More information about the Python-modules-commits mailing list