[Python-apps-commits] r4469 - in packages/pypolicyd-spf/tags (18 files)

kitterma-guest at users.alioth.debian.org kitterma-guest at users.alioth.debian.org
Thu Jan 7 07:20:03 UTC 2010


    Date: Thursday, January 7, 2010 @ 07:19:59
  Author: kitterma-guest
Revision: 4469

pypolicyd-spf (0.7.3-1) unstable; urgency=low

  [ Sandro Tosi ]
  * debian/control
    - switch Vcs-Browser field to viewsvn

  [ Scott Kitterman ]
  * New upstream release
    - Works with Python 2.4 now
  * debian/control
    - Update homepage for new upstream location
    - Update XS/XB-Python-Version due to deprecation of current
    - Improve package description
  * Add upstream changelog (CHANGES) to postfix-policyd-spf-python.docs
  * Update debian/watch for the new upstream location

 -- Scott Kitterman <scott at kitterman.com>  Thu, 07 Jan 2010 01:23:58 -0500

Added:
  packages/pypolicyd-spf/tags/0.7.3-1/
  packages/pypolicyd-spf/tags/0.7.3-1/debian/
  packages/pypolicyd-spf/tags/0.7.3-1/debian/README.Debian
  packages/pypolicyd-spf/tags/0.7.3-1/debian/README.source
  packages/pypolicyd-spf/tags/0.7.3-1/debian/changelog
  packages/pypolicyd-spf/tags/0.7.3-1/debian/compat
  packages/pypolicyd-spf/tags/0.7.3-1/debian/control
  packages/pypolicyd-spf/tags/0.7.3-1/debian/copyright
  packages/pypolicyd-spf/tags/0.7.3-1/debian/logcheck
  packages/pypolicyd-spf/tags/0.7.3-1/debian/patches/
  packages/pypolicyd-spf/tags/0.7.3-1/debian/patches/install-conf-fix.patch
  packages/pypolicyd-spf/tags/0.7.3-1/debian/postfix-policyd-spf-python.docs
  packages/pypolicyd-spf/tags/0.7.3-1/debian/postfix-policyd-spf-python.postinst
  packages/pypolicyd-spf/tags/0.7.3-1/debian/postfix-policyd-spf-python.postrm
  packages/pypolicyd-spf/tags/0.7.3-1/debian/postfix-policyd-spf-python.preinst
  packages/pypolicyd-spf/tags/0.7.3-1/debian/pycompat
  packages/pypolicyd-spf/tags/0.7.3-1/debian/rules
  packages/pypolicyd-spf/tags/0.7.3-1/debian/watch

Added: packages/pypolicyd-spf/tags/0.7.3-1/debian/README.Debian
===================================================================
--- packages/pypolicyd-spf/tags/0.7.3-1/debian/README.Debian	                        (rev 0)
+++ packages/pypolicyd-spf/tags/0.7.3-1/debian/README.Debian	2010-01-07 07:19:59 UTC (rev 4469)
@@ -0,0 +1,26 @@
+See man 1 policyd-spf for additional documentation.
+
+Installing
+----------
+This package must be integrated with Postfix to be effective:
+
+ 1. Add the following to /etc/postfix/master.cf:
+
+        policyd-spf  unix  -       n       n       -       0       spawn
+            user=nobody argv=/usr/bin/python /usr/bin/policyd-spf /etc/postfix-policyd-spf-python/policyd-spf.conf
+
+ 2. Configure the Postfix policy service in /etc/postfix/main.cf:
+
+        smtpd_recipient_restrictions =
+            ...
+            reject_unauth_destination
+            check_policy_service unix:private/policyd-spf
+            ...
+
+        policyd-spf_time_limit = 3600
+
+    NOTE:  Specify check_policy_service AFTER reject_unauth_destination or
+    else your system can become an open relay.
+
+ 3. Reload Postfix.
+

Added: packages/pypolicyd-spf/tags/0.7.3-1/debian/README.source
===================================================================
--- packages/pypolicyd-spf/tags/0.7.3-1/debian/README.source	                        (rev 0)
+++ packages/pypolicyd-spf/tags/0.7.3-1/debian/README.source	2010-01-07 07:19:59 UTC (rev 4469)
@@ -0,0 +1,5 @@
+This package uses CDBS simple patchsys.  dpkg-source -x does produce source
+ready for building with dpkg-buildpackage.  It does not procude source ready
+for editing.  To edit or update a patch, use cdbs-edit-patch.  See man
+cdbs-edit-patch for details.
+

Added: packages/pypolicyd-spf/tags/0.7.3-1/debian/changelog
===================================================================
--- packages/pypolicyd-spf/tags/0.7.3-1/debian/changelog	                        (rev 0)
+++ packages/pypolicyd-spf/tags/0.7.3-1/debian/changelog	2010-01-07 07:19:59 UTC (rev 4469)
@@ -0,0 +1,198 @@
+pypolicyd-spf (0.7.3-1) unstable; urgency=low
+
+  [ Sandro Tosi ]
+  * debian/control
+    - switch Vcs-Browser field to viewsvn
+
+  [ Scott Kitterman ]
+  * New upstream release
+    - Works with Python 2.4 now
+  * debian/control
+    - Update homepage for new upstream location
+    - Update XS/XB-Python-Version due to deprecation of current
+    - Improve package description
+  * Add upstream changelog (CHANGES) to postfix-policyd-spf-python.docs
+  * Update debian/watch for the new upstream location
+
+ -- Scott Kitterman <scott at kitterman.com>  Thu, 07 Jan 2010 01:23:58 -0500
+
+pypolicyd-spf (0.7.2-1) unstable; urgency=low
+
+  * New upstream release
+    - Fix crash on missing "@" in mail from (closes: #551714)
+    - Fix man page type (closes: #517119)
+  * Add logcheck filter (closes: #499503)
+  * Add ${misc:Depends} to debian/control
+  * Bump standards version to 3.8.3 without further change
+  * Use proper © symbol in debian/changelog
+  * Set -e in all maintainer scripts
+
+ -- Scott Kitterman <scott at kitterman.com>  Thu, 12 Nov 2009 23:55:03 -0500
+
+pypolicyd-spf (0.7.1-1) unstable; urgency=low
+
+  * New upstream release
+    - Documentation updates
+    - Freshen install-conf-fix.patch for new release
+  * Create and use dedicated user instead of nobody
+    - Add postfix-policyd-spf-python.postinst to create user if needed
+    - Add depends on adduser 
+
+ -- Scott Kitterman <scott at kitterman.com>  Sat, 26 Jul 2008 00:14:50 -0400
+
+pypolicyd-spf (0.7-1) unstable; urgency=low
+
+  * New upstream release
+    - Added receiver policy options to reject softfail and neutral SPF
+      messages
+    - Use minimal configuration file by default and provide additional
+      fully commented config file
+  * Correct README.Debian directory names (thanks to Carlos Pasqualini
+    for noticing and letting me know)
+  * Freshen debian/patches/install-conf-fix.patch
+  * Install new policyd-spf.conf.commented file with docs
+  * Bump standards version to 3.8.0 and add README.source
+  * Switch to python-central
+    - Add XS/XB-Python-Version: current to debian/control
+    - Update build-dep and debian/rules
+    - Remove debian/pyversions
+
+ -- Scott Kitterman <scott at kitterman.com>  Sun, 22 Jun 2008 17:55:18 -0400
+
+pypolicyd-spf (0.6.1-1) unstable; urgency=low
+
+  [ Scott Kitterman ]
+  * New upstream release
+    - Fix crash if HELO checking is disabled
+
+  [ Piotr Ożarowski ]
+  * Add DM-Upload-Allowed: yes
+
+ -- Scott Kitterman <scott at kitterman.com>  Sat, 05 Apr 2008 01:58:32 -0400
+
+pypolicyd-spf (0.6-2) unstable; urgency=low
+
+  * Remove transitional package (rejected by ftp-masters)
+  * Rename debian/docs to debian/postfix-policyd-spf-python.docs for
+    consistency
+
+ -- Scott Kitterman <scott at kitterman.com>  Mon, 25 Feb 2008 14:30:12 -0500
+
+pypolicyd-spf (0.6-1) UNRELEASED; urgency=low
+
+  * New upstream release
+    - Domain whitelisting fixed
+    - IP whitelists with multiple items fixed
+    - IPv6 whitelist CIDR length fixed
+    - Logging and config file improvements
+  * Add transitional package to ease binary package name transition
+  * Remove pythonpath.patch (incorporated upstream)
+  * Update debian/copyright for 2008
+  * Update install-conf-fix.patch for new binary package name
+  * Add preinst and prerm to move conffile to correct directory for new
+    package name
+
+ -- Scott Kitterman <scott at kitterman.com>  Sat, 23 Feb 2008 00:38:02 -0500
+
+pypolicyd-spf (0.5.2-3) unstable; urgency=low
+
+  * Remove unneeded reference to debian/README.Debian and README in 
+    debian/docs
+  * Change postfix from recommends to depends
+  * Rename binary postfix-policyd-spf-python for clarity - add provides,
+    conflicts, replaces python-policyd-spf
+  * Bump standards version to 3.7.3 without further change
+
+ -- Scott Kitterman <scott at kitterman.com>  Tue, 08 Jan 2008 16:59:39 -0500
+
+pypolicyd-spf (0.5.2-2) unstable; urgency=low
+
+  * Finish freshening install-conf-fix.patch so that we actually use
+    the installed config file
+
+ -- Scott Kitterman <scott at kitterman.com>  Wed, 31 Oct 2007 09:13:34 -0400
+
+pypolicyd-spf (0.5.2-1) unstable; urgency=low
+
+  * New upstream release
+    - Fixes permerror processing some more
+    - Logging is more consistent
+  * Freshen install-conf-fix.patch and pythonpath.patch
+
+ -- Scott Kitterman <scott at kitterman.com>  Sat, 27 Oct 2007 12:56:31 -0400
+
+pypolicyd-spf (0.5.1-1) unstable; urgency=low
+
+  [ Piotr Ożarowski ]
+  * Rename XS-Vcs-* fields to Vcs-* (dpkg supports them now)
+
+  [ Scott Kitterman ]
+  * New upstream release.
+    - Fix per user restriction class filtering to work.
+    - Fix reject on SPF Permerror to work.
+  * Remove man-page-fixup.patch (incorporated upstream).
+  * Changed postfix restart to reload in README.Debian (Thanks John A. Martin)
+  * Update install-conf-fix.patch to adjust paths for Debian package in man
+    pages.
+
+ -- Scott Kitterman <scott at kitterman.com>  Wed, 17 Oct 2007 18:36:46 -0400
+
+pypolicyd-spf (0.5-1) unstable; urgency=low
+
+  * New Upstream release
+  * Remove unnecessary python provides in debian/control
+  * Patch out usr/local PYTHONPATH addition (pythonpath.patch)
+  * Freshen install-conf-fix.patch
+  * Add debian/pycompat
+  * Add Python Applications Packaging Team as Uploaders
+  * Add Homepage: field to debian/control
+  * Add XS-Vcs-Svn: and XS-Vcs-Browser: fields to debian/control
+  * Add debian/pyversions and remove XS/XB-Python-Version from debian/control
+  * Add debian/rules to install new upstream man page
+  * Add man-page-fixup.patch to quiet lintian
+  * Simplify debian/rules
+
+ -- Scott Kitterman <scott at kitterman.com>  Wed, 03 Oct 2007 16:48:12 -0400
+
+pypolicyd-spf (0.4.1-1) unstable; urgency=low
+
+  * Correct multi-recipient reject processing (Closes: #437361)
+  * Correct typos in README.Debian (Closes: #434623)
+  * Add debian/watch
+
+ -- Scott Kitterman <scott at kitterman.com>  Mon, 13 Aug 2007 11:03:09 -0400
+
+pypolicyd-spf (0.4-3) unstable; urgency=low
+
+  * Correct debian/rules to fix FTBFS (Closes: #434017)
+    - Change config file mv to install in debian/rules with correct path.
+    - Change dh_installdirs path to relative rather than absolute.
+
+ -- Scott Kitterman <scott at kitterman.com>  Sun, 21 Jul 2007 11:32:58 -0400
+
+pypolicyd-spf (0.4-2) unstable; urgency=low
+
+  * Merge debian/changelog entries from 0.3-1 and 0.4-1
+
+ -- Scott Kitterman <scott at kitterman.com>  Mon, 09 Jul 2007 23:17:09 -0400
+
+pypolicyd-spf (0.4-1) unstable; urgency=low
+
+  * New upstream release
+    - Mutliple receiver policy options controlled by config file
+    - SPF Whitelist via config file
+    - Many minor changes
+  * debian/control - Moved from section Python to Mail
+  * debian/rules - Changes to install default config file
+  * debian/pycompat - removed
+  * debain/README.Debian updated to match upstream changes
+
+ -- Scott Kitterman <scott at kitterman.com>  Mon, 09 Jul 2007 17:37:13 -0400
+
+pypolicyd-spf (0.3-1) unstable; urgency=low
+
+  * Initial Debian package for Python SPF policy server for Postfix
+    (Closes: #419887)
+
+ -- Scott Kitterman <scott at kitterman.com>  Wed, 18 Apr 2007 10:11:36 -0400
+

Added: packages/pypolicyd-spf/tags/0.7.3-1/debian/compat
===================================================================
--- packages/pypolicyd-spf/tags/0.7.3-1/debian/compat	                        (rev 0)
+++ packages/pypolicyd-spf/tags/0.7.3-1/debian/compat	2010-01-07 07:19:59 UTC (rev 4469)
@@ -0,0 +1 @@
+5

Added: packages/pypolicyd-spf/tags/0.7.3-1/debian/control
===================================================================
--- packages/pypolicyd-spf/tags/0.7.3-1/debian/control	                        (rev 0)
+++ packages/pypolicyd-spf/tags/0.7.3-1/debian/control	2010-01-07 07:19:59 UTC (rev 4469)
@@ -0,0 +1,27 @@
+Source: pypolicyd-spf
+Section: mail
+Priority: extra
+Maintainer: Scott Kitterman <scott at kitterman.com>
+Uploaders: Python Applications Packaging Team <python-apps-team at lists.alioth.debian.org>
+Build-Depends: cdbs (>= 0.4.43), debhelper (>= 5.0.37.1), python, python-central (>= 0.6)
+Standards-Version: 3.8.3
+Homepage: https://launchpad.net/pypolicyd-spf
+Vcs-Svn: svn://svn.debian.org/python-apps/packages/pypolicyd-spf/trunk/
+Vcs-Browser: http://svn.debian.org/viewsvn/python-apps/packages/pypolicyd-spf/trunk/
+DM-Upload-Allowed: yes
+XS-Python-Version: >= 2.3
+
+Package: postfix-policyd-spf-python
+Architecture: all
+XB-Python-Version: >= 2.3
+Depends: ${python:Depends}, ${misc:Depends}, python-spf (>= 2.0), postfix (>= 2.1), adduser
+Provides: python-policyd-spf
+Replaces: python-policyd-spf
+Conflicts: python-policyd-spf 
+Description: Postfix policy daemon for SPF checking
+ postfix-policyd-spf-python is a full featured Postfix SMTPd policy engine for
+ SPF checking. It includes a variety of whitelisting mechanisms and policy
+ options to enable it to support the widest variety of system requirements
+ It is implemented in pure Python and uses the python-spf module.  The SPF
+ web site is http://www.openspf.org/.
+

Added: packages/pypolicyd-spf/tags/0.7.3-1/debian/copyright
===================================================================
--- packages/pypolicyd-spf/tags/0.7.3-1/debian/copyright	                        (rev 0)
+++ packages/pypolicyd-spf/tags/0.7.3-1/debian/copyright	2010-01-07 07:19:59 UTC (rev 4469)
@@ -0,0 +1,36 @@
+This package was debianized by Scott Kitterman <scott at kitterman.com> on
+Wed January 17, 2007 19:04:29 -0500.
+
+It was downloaded from http://www.openspf.org/Software
+
+Copyright Holder: 
+Copyright © 2007,2008 Scott Kitterman <scott at kitterman.com>
+Portions Copyright  © 2004-2005, Sean Reifschneider, tummy.com, ltd.
+<jafo at tummy.com>
+Portions Copyright © 2003-2004 Meng Weng Wong <mengwong at pobox.com>
+
+License:
+
+This is free software; you can redistribute it and/or modify it under the terms
+of the GNU General Public License (version 2).
+
+    This program 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 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License along
+    with this program; if not, write to the Free Software Foundation, Inc.,
+    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+On Debian systems, the complete text of the GPL v2 can be found here:
+  /usr/share/common-licenses/GPL-2
+
+The Debian packaging is © 2007,2008, Scott Kitterman <scott at kitterman.com>
+and is licensed under the GPL.  See above.
+

Added: packages/pypolicyd-spf/tags/0.7.3-1/debian/logcheck
===================================================================
--- packages/pypolicyd-spf/tags/0.7.3-1/debian/logcheck	                        (rev 0)
+++ packages/pypolicyd-spf/tags/0.7.3-1/debian/logcheck	2010-01-07 07:19:59 UTC (rev 4469)
@@ -0,0 +1,2 @@
++^\w{3} [ :0-9]{11} [._[:alnum:]-]+ policyd-spf\[[0-9]+\]: (Pass|Neutral|None|Softfail|Fail|Temperror|Permerror); identity=(helo|mailfrom); client-ip=[0-9a-f.:]+; helo=.*; envelope-from=.*; receiver=
+

Added: packages/pypolicyd-spf/tags/0.7.3-1/debian/patches/install-conf-fix.patch
===================================================================
--- packages/pypolicyd-spf/tags/0.7.3-1/debian/patches/install-conf-fix.patch	                        (rev 0)
+++ packages/pypolicyd-spf/tags/0.7.3-1/debian/patches/install-conf-fix.patch	2010-01-07 07:19:59 UTC (rev 4469)
@@ -0,0 +1,86 @@
+diff -Nur -x '*.orig' -x '*~' pypolicyd-spf-0.7.1/policyd-spf pypolicyd-spf-0.7.1.new/policyd-spf
+--- pypolicyd-spf-0.7.1/policyd-spf	2008-07-25 23:58:29.000000000 -0400
++++ pypolicyd-spf-0.7.1.new/policyd-spf	2008-07-26 00:19:25.000000000 -0400
+@@ -385,7 +385,7 @@
+ ###################################################
+ #  load config file  {{{1
+ #  Default location:
+-configFile = '/etc/python-policyd-spf/policyd-spf.conf'
++configFile = '/etc/postfix-policyd-spf-python/policyd-spf.conf'
+ if len(sys.argv) > 1:
+     if sys.argv[1] in ( '-?', '--help', '-h' ):
+         print 'usage: policyd-spf [<configfilename>]'
+diff -Nur -x '*.orig' -x '*~' pypolicyd-spf-0.7.1/policyd-spf.1 pypolicyd-spf-0.7.1.new/policyd-spf.1
+--- pypolicyd-spf-0.7.1/policyd-spf.1	2008-07-25 23:58:29.000000000 -0400
++++ pypolicyd-spf-0.7.1.new/policyd-spf.1	2008-07-26 00:21:16.000000000 -0400
+@@ -145,12 +145,13 @@
+ 
+ $ policyd-spf \-h (Display usage message)
+ 
+-$ policyd-spf /etc/policyd-spf/policyd-spf.conf (Config file name to use)
++$ policyd-spf /etc/postfix-policyd-spf-python/policyd-spf.conf
++  (Config file name to use)
+ 
+-Configuration options are described in the sample configuration file provided
+-with the package (policyd-spf.conf.commented) and in policyd-spf.conf(5).  The
+-provided setup.py installs an uncommented configuration file in 
+-/etc/policyd-spf/.
++Configuration options are described in the sample configuration file installed
++in /usr/share/doc/postfix-policyd-spf-python (policyd-spf.conf.commented) and
++in policyd-spf.conf(5).  The provided setup.py installs an uncommented
++configuration file in /etc/postfix-policyd-spf-python/.
+ 
+ Additionally, whitelisting certain IP addresses or IP addresses used by listed
+ domains from SPF checks is supported.  Skipping SPF checks for local submission
+@@ -251,14 +252,12 @@
+  1. Add the following to /etc/postfix/master.cf:
+ 
+         policyd-spf  unix  -       n       n       -       0       spawn
+-            user=nobody argv=/usr/bin/policyd-spf
++            user=policyd-spf argv=/usr/bin/policyd-spf
+ 
+     NOTE: Check the path to both the installed Python interpreter and
+           policyd-spf.  These vary from system to system.  To use non-default
+           settings, you must also add the config file (see above and 
+-          policyd-spf.conf(5) for details).  If you run other services with
+-          user nobody, create a dedicated user for this policy server and use
+-          that instead.
++          policyd-spf.conf(5) for details).
+ 
+  2. Configure the Postfix policy service in /etc/postfix/main.cf:
+ 
+diff -Nur -x '*.orig' -x '*~' pypolicyd-spf-0.7.1/policyd-spf.conf.5 pypolicyd-spf-0.7.1.new/policyd-spf.conf.5
+--- pypolicyd-spf-0.7.1/policyd-spf.conf.5	2008-07-25 23:58:29.000000000 -0400
++++ pypolicyd-spf-0.7.1.new/policyd-spf.conf.5	2008-07-26 00:19:25.000000000 -0400
+@@ -138,7 +138,7 @@
+ .SH "USAGE"
+ .IX Header "USAGE"
+ Usage:
+-  policyd-spf [/etc/policyd-spf/policyd-spf.conf]
++  policyd-spf [/etc/postfix-policyd-spf-python/policyd-spf.conf]
+ 
+ .SH "OTHER DOCUMENTATION"
+ .IX Header "OTHER DOCUMENTATION"
+@@ -163,7 +163,7 @@
+ 
+ Configuration options are described here and in the configuration file 
+ provided with the package.  The provided setup.py installs this configuration 
+-file in /etc/policyd-spf/.
++file in /etc/postfix-policyd-spf-python/.
+ 
+ Additionally, whitelisting certain IP addresses from SPF checks is supported.
+ The this man page and the sample configuration file show the format to use.
+diff -Nur -x '*.orig' -x '*~' pypolicyd-spf-0.7.1/setup.py pypolicyd-spf-0.7.1.new/setup.py
+--- pypolicyd-spf-0.7.1/setup.py	2008-07-25 23:58:29.000000000 -0400
++++ pypolicyd-spf-0.7.1.new/setup.py	2008-07-26 00:19:25.000000000 -0400
+@@ -17,8 +17,8 @@
+       scripts = ['policyd-spf'],
+       data_files=[(os.path.join('share', 'man', 'man1'),
+           ['policyd-spf.1']), (os.path.join('share', 'man', 'man5'),
+-          ['policyd-spf.conf.5']), (os.path.join('../etc', 'python-policyd-spf'),
+-          ['policyd-spf.conf'])],
++          ['policyd-spf.conf.5']), (os.path.join('../etc',
++          'postfix-policyd-spf-python'), ['policyd-spf.conf'])],
+       classifiers = [
+ 	'Development Status :: 5 - Production/Stable',
+ 	'Environment :: No Input/Output (Daemon)',

Added: packages/pypolicyd-spf/tags/0.7.3-1/debian/postfix-policyd-spf-python.docs
===================================================================
--- packages/pypolicyd-spf/tags/0.7.3-1/debian/postfix-policyd-spf-python.docs	                        (rev 0)
+++ packages/pypolicyd-spf/tags/0.7.3-1/debian/postfix-policyd-spf-python.docs	2010-01-07 07:19:59 UTC (rev 4469)
@@ -0,0 +1,3 @@
+README.per_user_whitelisting
+policyd-spf.conf.commented
+CHANGES

Added: packages/pypolicyd-spf/tags/0.7.3-1/debian/postfix-policyd-spf-python.postinst
===================================================================
--- packages/pypolicyd-spf/tags/0.7.3-1/debian/postfix-policyd-spf-python.postinst	                        (rev 0)
+++ packages/pypolicyd-spf/tags/0.7.3-1/debian/postfix-policyd-spf-python.postinst	2010-01-07 07:19:59 UTC (rev 4469)
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = "configure" ]; then
+	if ! id -u policyd-spf >/dev/null 2>&1; then
+		adduser --quiet --system --group --no-create-home policyd-spf
+	elif [ -n "$2" ]; then
+		addgroup --quiet --system policyd-spf
+		usermod -g policyd-spf policyd-spf
+	fi
+fi
+
+#DEBHELPER#
+
+exit 0
+

Added: packages/pypolicyd-spf/tags/0.7.3-1/debian/postfix-policyd-spf-python.postrm
===================================================================
--- packages/pypolicyd-spf/tags/0.7.3-1/debian/postfix-policyd-spf-python.postrm	                        (rev 0)
+++ packages/pypolicyd-spf/tags/0.7.3-1/debian/postfix-policyd-spf-python.postrm	2010-01-07 07:19:59 UTC (rev 4469)
@@ -0,0 +1,20 @@
+#! /bin/sh
+
+set -e
+
+# conffile renamed in 0.6-1
+if dpkg --compare-versions "$2" lt-nl "0.6-1"; then
+    # "$1" is equal to "upgrade" (which means downgrading in this case) or "abort-upgrade"
+    # downgrading to <0.6-1 (0.5.2-3 most probably) -- restore old conffile name
+    if [ ! -e /etc/python-policyd-spf/policyd-spf.conf ]; then
+	test ! -d /etc/python-policyd-spf && mkdir /etc/python-policyd-spf/
+	# policyd-spf.conf should exist but lets test it anyway
+	test -f /etc/postfix-policyd-spf-python/policyd-spf.conf && \
+	mv /etc/postfix-policyd-spf-python/policyd-spf.conf /etc/python-policyd-spf/policyd-spf.conf
+	rmdir /etc/postfix-policyd-spf-python/
+    fi
+fi
+
+#DEBHELPER#
+
+exit 0

Added: packages/pypolicyd-spf/tags/0.7.3-1/debian/postfix-policyd-spf-python.preinst
===================================================================
--- packages/pypolicyd-spf/tags/0.7.3-1/debian/postfix-policyd-spf-python.preinst	                        (rev 0)
+++ packages/pypolicyd-spf/tags/0.7.3-1/debian/postfix-policyd-spf-python.preinst	2010-01-07 07:19:59 UTC (rev 4469)
@@ -0,0 +1,38 @@
+#! /bin/sh
+
+set -e
+
+
+# Prepare to move a conffile without triggering a dpkg question
+prep_mv_conffile() {
+    PKGNAME="$1"
+    CONFFILE="$2"
+    if [ -e "$CONFFILE" ]; then
+        md5sum="`md5sum \"$CONFFILE\" | sed -e \"s/ .*//\"`"
+        old_md5sum="`dpkg-query -W -f='${Conffiles}' $PKGNAME | sed -n -e \"\\\\' $CONFFILE'{s/ obsolete$//;s/.* //p}\"`"
+        if [ "$md5sum" = "$old_md5sum" ]; then
+            rm -f "$CONFFILE"
+            test -d /etc/python-policyd-spf/ && rmdir /etc/python-policyd-spf/
+        else
+            if [ -e "$CONFFILE" ]; then
+                if [ -n "/etc/postfix-policyd-spf-python/" ]; then
+                    mkdir "/etc/postfix-policyd-spf-python/"
+                fi
+                mv -f "$CONFFILE" "/etc/postfix-policyd-spf-python/policyd-spf.conf"
+                test -d /etc/python-policyd-spf/ && rmdir /etc/python-policyd-spf/
+            fi
+        fi
+    fi
+}
+case "$1" in
+install|upgrade)
+    if dpkg --compare-versions "$2" le "0.5.2-3"; then
+        prep_mv_conffile postfix-policyd-spf-python "/etc/python-policyd-spf/policyd-spf.conf"
+    fi
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+esac

Added: packages/pypolicyd-spf/tags/0.7.3-1/debian/pycompat
===================================================================
--- packages/pypolicyd-spf/tags/0.7.3-1/debian/pycompat	                        (rev 0)
+++ packages/pypolicyd-spf/tags/0.7.3-1/debian/pycompat	2010-01-07 07:19:59 UTC (rev 4469)
@@ -0,0 +1 @@
+2

Added: packages/pypolicyd-spf/tags/0.7.3-1/debian/rules
===================================================================
--- packages/pypolicyd-spf/tags/0.7.3-1/debian/rules	                        (rev 0)
+++ packages/pypolicyd-spf/tags/0.7.3-1/debian/rules	2010-01-07 07:19:59 UTC (rev 4469)
@@ -0,0 +1,14 @@
+#!/usr/bin/make -f
+# -*- mode: makefile; coding: utf-8 -*-
+
+DEB_PYTHON_SYSTEM=pycentral
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/python-distutils.mk
+include /usr/share/cdbs/1/rules/simple-patchsys.mk
+
+install/postfix-policyd-spf-python::
+	# Install logcheck filter
+	dh_install debian/logcheck etc/logcheck/ignore.d.server
+	mv $(CURDIR)/debian/postfix-policyd-spf-python/etc/logcheck/ignore.d.server/logcheck \
+	  $(CURDIR)/debian/postfix-policyd-spf-python/etc/logcheck/ignore.d.server/postfix-policyd-spf-python


Property changes on: packages/pypolicyd-spf/tags/0.7.3-1/debian/rules
___________________________________________________________________
Added: svn:executable
   + *

Added: packages/pypolicyd-spf/tags/0.7.3-1/debian/watch
===================================================================
--- packages/pypolicyd-spf/tags/0.7.3-1/debian/watch	                        (rev 0)
+++ packages/pypolicyd-spf/tags/0.7.3-1/debian/watch	2010-01-07 07:19:59 UTC (rev 4469)
@@ -0,0 +1,3 @@
+version=3
+http://launchpad.net/pypolicyd-spf/+download http://launchpad.net/pypolicyd-spf/.*/.*/pypolicyd-spf-(.*)\.tar\.gz debian uupdate
+




More information about the Python-apps-commits mailing list