summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Black <dragonheart@gentoo.org>2010-07-19 01:00:44 +0000
committerDaniel Black <dragonheart@gentoo.org>2010-07-19 01:00:44 +0000
commit08cd3b5be1082586747013b1b001070a2872608a (patch)
treee9c36c8d60c2aac8483f84482b776250647d2103 /mail-filter/pypolicyd-spf
parentpurge unused patch (diff)
downloadhistorical-08cd3b5be1082586747013b1b001070a2872608a.tar.gz
historical-08cd3b5be1082586747013b1b001070a2872608a.tar.bz2
historical-08cd3b5be1082586747013b1b001070a2872608a.zip
purge 2to3 patches - they break python2
Package-Manager: portage-2.2_rc67/cvs/Linux x86_64
Diffstat (limited to 'mail-filter/pypolicyd-spf')
-rw-r--r--mail-filter/pypolicyd-spf/ChangeLog7
-rw-r--r--mail-filter/pypolicyd-spf/Manifest8
-rw-r--r--mail-filter/pypolicyd-spf/files/0.7.3-2to3.patch85
-rw-r--r--mail-filter/pypolicyd-spf/files/0.8.0-2to3.patch114
-rw-r--r--mail-filter/pypolicyd-spf/pypolicyd-spf-0.7.3.ebuild3
-rw-r--r--mail-filter/pypolicyd-spf/pypolicyd-spf-0.8.0.ebuild3
6 files changed, 11 insertions, 209 deletions
diff --git a/mail-filter/pypolicyd-spf/ChangeLog b/mail-filter/pypolicyd-spf/ChangeLog
index 75d62bcdbc55..43973d8bcd28 100644
--- a/mail-filter/pypolicyd-spf/ChangeLog
+++ b/mail-filter/pypolicyd-spf/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for mail-filter/pypolicyd-spf
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/pypolicyd-spf/ChangeLog,v 1.11 2010/07/19 00:31:05 dragonheart Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/pypolicyd-spf/ChangeLog,v 1.12 2010/07/19 01:00:44 dragonheart Exp $
+
+ 19 Jul 2010; Daniel Black <dragonheart@gentoo.org>
+ pypolicyd-spf-0.7.3.ebuild, pypolicyd-spf-0.8.0.ebuild,
+ -files/0.7.3-2to3.patch, -files/0.8.0-2to3.patch:
+ purge 2to3 patches - they break python2
19 Jul 2010; Daniel Black <dragonheart@gentoo.org>
pypolicyd-spf-0.7.3.ebuild, pypolicyd-spf-0.8.0.ebuild:
diff --git a/mail-filter/pypolicyd-spf/Manifest b/mail-filter/pypolicyd-spf/Manifest
index a922b3f17c75..138610869d93 100644
--- a/mail-filter/pypolicyd-spf/Manifest
+++ b/mail-filter/pypolicyd-spf/Manifest
@@ -1,10 +1,8 @@
-AUX 0.7.3-2to3.patch 2692 RMD160 ba64abfbd06bbf6baf0627d5bf1ce7e24da376fb SHA1 eaed49ec0b20170d97d9b0c85252d866cac8c24f SHA256 54d5d949abcc06dd2a055831bacef973579feefe6c90e6c436ca8e496e5933bf
-AUX 0.8.0-2to3.patch 3968 RMD160 9792681cfa5587924c3c8cc980fbc4894e8be9dd SHA1 ab71d0378d5a2ab8e8a7b439b2c7744d5c874ac8 SHA256 dcf2d3fa9b30b60534743c5b245251bd96823d1e7ad4cd7f8b1794b6f634635b
DIST pypolicyd-spf-0.7.1.tar.gz 25217 RMD160 63cc686735a130d552b535db3bd5f21612f76625 SHA1 21dcc089e633cf275f845cf67fcf33ac7b7d323b SHA256 40b9d846a93e4fd87b63e4b9a540b4eeafd40808d19595efa37f62b91c8aad5e
DIST pypolicyd-spf-0.7.3.tar.gz 29845 RMD160 33696b7171184d7f7aa95d8ecf60146bb1e9d542 SHA1 58c0359f1efdd84d1bd3f282b38543521a95bd8d SHA256 0104c24d0cde02eb69f496370d326234615439fd1a649e3ddb02f90b52d7749b
DIST pypolicyd-spf-0.8.0.tar.gz 32097 RMD160 d04f07536c44c0c37a19cf442541811255926ce4 SHA1 8fd6e14b7b18d4cb38a0e05f1ef980a1aed6c985 SHA256 fbfe3fd6979d21304f3e102ad8bdd58e9fe8389cae69113746756f07d15de78b
EBUILD pypolicyd-spf-0.7.1.ebuild 511 RMD160 386a179473290bd10ede97bcdac918df8e8be10a SHA1 f9ac5a0840e23404def85ac1f9a4d4dc834d81e3 SHA256 d67bda747ba8df244acab7261763921b02c613500b675df22b201e81373730c0
-EBUILD pypolicyd-spf-0.7.3.ebuild 801 RMD160 ab4265369f1ba7ce808d96df9d3cb9aaaa911333 SHA1 f241a1f5b1ab1363c614005d82dea6090389dd24 SHA256 5751450d689fb65cb967eb29d4690c772bd8384bf2b91aea0e19a48fa3527b1f
-EBUILD pypolicyd-spf-0.8.0.ebuild 817 RMD160 29f7183decb6589c4740a63df036aea768074667 SHA1 69b1b8a53f3b571f798b6040037b2c0f1222e39b SHA256 cb3d99dab94b172129bd3676ffea27f149fa30efd2ce6ce9ceaa90430ee54ffd
-MISC ChangeLog 2355 RMD160 ebe8a66c15b2795d630af46a7ba758e6bd56229d SHA1 27d49028e36f62f123895c35b962ca9a8d3f7dcb SHA256 987d53e2bd189ef9fa5f89d972abe06962d6584a1ef29972ff0a7af7b33b10f8
+EBUILD pypolicyd-spf-0.7.3.ebuild 762 RMD160 a09780bb5be978341466e4bf24e45a31f78ad2ae SHA1 4ecda8651c6a60002c056cf082740c1d6e2251f8 SHA256 5db7a7c5126e1f6245a58752ad1005cf0102f62a8e0ebe90180a5907717ae4ef
+EBUILD pypolicyd-spf-0.8.0.ebuild 778 RMD160 4b65e9c5dca7079645d87d62f58d3f3857bb84a2 SHA1 8daec4d928f90807281f5b0473ed21941d555ce7 SHA256 66688953270cbd9b046881fd9b2f47881e482ba61c7f36b70a5708c587ba0819
+MISC ChangeLog 2561 RMD160 2dadb122dacf134783eda19a519cc034f99bf410 SHA1 bdd1a1cf19874c5ef0e19c77b2c236296fab217f SHA256 80af9cbe08650a8c646cf8b0778d0f096622dd75f217b953c72c54906f62a136
MISC metadata.xml 374 RMD160 36c7b587b04bba133b9b106083dd7b485d9d2e45 SHA1 1d33c3e413603911ecb01f7a6ac8bb89c544562b SHA256 4638653661df3aa277ddfab4579d87598d17211e8b4d10114d4eeba5ddf2b7f1
diff --git a/mail-filter/pypolicyd-spf/files/0.7.3-2to3.patch b/mail-filter/pypolicyd-spf/files/0.7.3-2to3.patch
deleted file mode 100644
index 68ce6151e1f8..000000000000
--- a/mail-filter/pypolicyd-spf/files/0.7.3-2to3.patch
+++ /dev/null
@@ -1,85 +0,0 @@
---- ./policydspfsupp.py (original)
-+++ ./policydspfsupp.py (refactored)
-@@ -24,7 +24,7 @@
- import sys
- import string
- import re
--import urllib
-+import urllib.request, urllib.parse, urllib.error
- import stat
-
-
-@@ -57,7 +57,7 @@
- if filename != None:
- try:
- readConfigFile(filename, config)
-- except Exception, e:
-+ except Exception as e:
- if useSyslog:
- syslog.syslog(e.args[0])
- if useStderr:
-@@ -75,7 +75,7 @@
- def __call__(self, etype, evalue, etb):
- import traceback
- tb = traceback.format_exception(*(etype, evalue, etb))
-- tb = map(string.rstrip, tb)
-+ tb = list(map(string.rstrip, tb))
- tb = string.join(tb, '\n')
- for line in string.split(tb, '\n'):
- if self.useSyslog:
-@@ -95,7 +95,7 @@
- Address can either be a domain name, or local part.
- Returns the quoted address.'''
-
-- s = urllib.quote(s, '@_-+')
-+ s = urllib.parse.quote(s, '@_-+')
- if len(s) > 0 and s[0] == '.': s = '%2e' + s[1:]
- return(s)
-
-@@ -104,7 +104,7 @@
- def unquoteAddress(s):
- '''Undo the quoting of an address. Returns the unquoted address.'''
-
-- return(urllib.unquote(s))
-+ return(urllib.parse.unquote(s))
-
-
- ###############################################################
-@@ -137,7 +137,7 @@
- # check to see if it's a file
- try:
- mode = os.stat(path)[0]
-- except OSError, e:
-+ except OSError as e:
- syslog.syslog('ERROR stating "%s": %s' % ( path, e.strerror ))
- return(configData)
- if not stat.S_ISREG(mode):
-@@ -153,7 +153,7 @@
- # parse line
- line = string.strip(string.split(line, '#', 1)[0])
- if not line: continue
-- data = map(string.strip, string.split(line, '=', 1))
-+ data = list(map(string.strip, string.split(line, '=', 1)))
- if len(data) != 2:
- if len(data) == 1:
- if debugLevel >= 1:
---- policyd-spf (original)
-+++ policyd-spf (refactored)
-@@ -273,7 +273,7 @@
- instance = str(int(random.random()*100000))
- # This is to prevent multiple headers being prepended
- # for multi-recipient mail.
-- found_instance = instance_dict.has_key(instance)
-+ found_instance = instance in instance_dict
- '''Data structure for results is a list of:
- [0] SPF result
- [1] SPF reason
-@@ -400,7 +400,7 @@
- configFile = '/etc/python-policyd-spf/policyd-spf.conf'
- if len(sys.argv) > 1:
- if sys.argv[1] in ( '-?', '--help', '-h' ):
-- print 'usage: policyd-spf [<configfilename>]'
-+ print('usage: policyd-spf [<configfilename>]')
- sys.exit(1)
- configFile = sys.argv[1]
-
diff --git a/mail-filter/pypolicyd-spf/files/0.8.0-2to3.patch b/mail-filter/pypolicyd-spf/files/0.8.0-2to3.patch
deleted file mode 100644
index f842e03d3a9a..000000000000
--- a/mail-filter/pypolicyd-spf/files/0.8.0-2to3.patch
+++ /dev/null
@@ -1,114 +0,0 @@
---- ./policydspfsupp.py (original)
-+++ ./policydspfsupp.py (refactored)
-@@ -24,7 +24,7 @@
- import sys
- import string
- import re
--import urllib
-+import urllib.request, urllib.parse, urllib.error
- import stat
-
-
-@@ -57,7 +57,7 @@
- if filename != None:
- try:
- readConfigFile(filename, config)
-- except Exception, e:
-+ except Exception as e:
- if useSyslog:
- syslog.syslog(e.args[0])
- if useStderr:
-@@ -75,7 +75,7 @@
- def __call__(self, etype, evalue, etb):
- import traceback
- tb = traceback.format_exception(*(etype, evalue, etb))
-- tb = map(string.rstrip, tb)
-+ tb = list(map(string.rstrip, tb))
- tb = string.join(tb, '\n')
- for line in string.split(tb, '\n'):
- if self.useSyslog:
-@@ -122,7 +122,7 @@
- # check to see if it's a file
- try:
- mode = os.stat(path)[0]
-- except OSError, e:
-+ except OSError as e:
- syslog.syslog('ERROR stating "%s": %s' % ( path, e.strerror ))
- return(configData)
- if not stat.S_ISREG(mode):
-@@ -138,7 +138,7 @@
- # parse line
- line = string.strip(string.split(line, '#', 1)[0])
- if not line: continue
-- data = map(string.strip, string.split(line, '=', 1))
-+ data = list(map(string.strip, string.split(line, '=', 1)))
- if len(data) != 2:
- if len(data) == 1:
- if debugLevel >= 1:
---- ./policydspfuser.py (original)
-+++ ./policydspfuser.py (refactored)
-@@ -52,7 +52,7 @@
- # check to see if it's a file
- try:
- mode = os.stat(path)[0]
-- except OSError, e:
-+ except OSError as e:
- syslog.syslog('ERROR stating "%s": %s' % ( path, e.strerror ))
- return(configData)
-
-@@ -65,7 +65,7 @@
- # parse line
- line = string.strip(string.split(line, '#', 1)[0])
- if not line: continue
-- data = map(string.strip, string.split(line, ',', 1))
-+ data = list(map(string.strip, string.split(line, ',', 1)))
- user, value = data
- if user != recipient:
- peruser = False
-@@ -75,7 +75,7 @@
- for valuepair in valuelist:
- key, item = string.split(valuepair, '=')
- values[key] = item
-- for config in values.iteritems():
-+ for config in values.items():
- # check validity of name
- conversion = nameConversion.get(config[0])
- name, value = config
---- policyd-spf (original)
-+++ policyd-spf (refactored)
-@@ -241,7 +241,7 @@
- else:
- # Reverse lookup didn't find any records, so don't continue with the check
- rDNSName = None
-- except spf.TempError, e:
-+ except spf.TempError as e:
- # DNS timeout - continue with the base SPF check.
- rDNSName = None
- if (rDNSName is not None):
-@@ -275,7 +275,7 @@
- instance = str(int(random.random()*100000))
- # This is to prevent multiple headers being prepended
- # for multi-recipient mail.
-- if instance_dict.has_key(instance):
-+ if instance in instance_dict:
- found_instance = instance_dict[instance]
- else:
- found_instance = []
-@@ -570,7 +570,7 @@
- configFile = '/etc/python-policyd-spf/policyd-spf.conf'
- if len(sys.argv) > 1:
- if sys.argv[1] in ( '-?', '--help', '-h' ):
-- print 'usage: policyd-spf [<configfilename>]'
-+ print('usage: policyd-spf [<configfilename>]')
- sys.exit(1)
- configFile = sys.argv[1]
-
-@@ -593,7 +593,7 @@
- if not line:
- peruser = False
- if debugLevel >= 4: syslog.syslog('Found the end of entry')
-- configData = dict(configGlobal.items())
-+ configData = dict(list(configGlobal.items()))
- if configData.get('Per_User'):
- import policydspfuser
- configData, peruser = policydspfuser.datacheck(configData, data.get('recipient'))
diff --git a/mail-filter/pypolicyd-spf/pypolicyd-spf-0.7.3.ebuild b/mail-filter/pypolicyd-spf/pypolicyd-spf-0.7.3.ebuild
index 725e0c9a6b89..34144478b03c 100644
--- a/mail-filter/pypolicyd-spf/pypolicyd-spf-0.7.3.ebuild
+++ b/mail-filter/pypolicyd-spf/pypolicyd-spf-0.7.3.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/pypolicyd-spf/pypolicyd-spf-0.7.3.ebuild,v 1.2 2010/07/19 00:31:05 dragonheart Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/pypolicyd-spf/pypolicyd-spf-0.7.3.ebuild,v 1.3 2010/07/19 01:00:44 dragonheart Exp $
EAPI="3"
SUPPORT_PYTHON_ABIS="1"
@@ -21,6 +21,5 @@ DEPEND=">=dev-python/pyspf-2.0.3"
src_prepare() {
sed -i -e 's/[\xc2\xa9]//g' policydspfsupp.py policydspfuser.py policyd-spf
- epatch "${FILESDIR}"/${PV}-2to3.patch
distutils_src_prepare
}
diff --git a/mail-filter/pypolicyd-spf/pypolicyd-spf-0.8.0.ebuild b/mail-filter/pypolicyd-spf/pypolicyd-spf-0.8.0.ebuild
index ba21c34f80b8..9f6e87ed9995 100644
--- a/mail-filter/pypolicyd-spf/pypolicyd-spf-0.8.0.ebuild
+++ b/mail-filter/pypolicyd-spf/pypolicyd-spf-0.8.0.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/pypolicyd-spf/pypolicyd-spf-0.8.0.ebuild,v 1.3 2010/07/19 00:31:05 dragonheart Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/pypolicyd-spf/pypolicyd-spf-0.8.0.ebuild,v 1.4 2010/07/19 01:00:44 dragonheart Exp $
EAPI="3"
SUPPORT_PYTHON_ABIS="1"
@@ -21,7 +21,6 @@ DEPEND=">=dev-python/pyspf-2.0.3"
src_prepare() {
sed -i -e 's/[\xc2\xa9]//g' -e 's/FL/F/g' policydspfsupp.py policydspfuser.py policyd-spf
- epatch "${FILESDIR}"/0.8.0-2to3.patch
distutils_src_prepare
}