diff options
Diffstat (limited to 'dev-python/pyldap')
-rw-r--r-- | dev-python/pyldap/Manifest | 4 | ||||
-rw-r--r-- | dev-python/pyldap/files/pyldap-2.4.20-bytes_string-backport.patch | 49 | ||||
-rw-r--r-- | dev-python/pyldap/pyldap-2.4.20-r1.ebuild | 76 | ||||
-rw-r--r-- | dev-python/pyldap/pyldap-2.4.20-r2.ebuild | 76 | ||||
-rw-r--r-- | dev-python/pyldap/pyldap-2.4.21.ebuild | 74 | ||||
-rw-r--r-- | dev-python/pyldap/pyldap-2.4.25.1.ebuild | 74 | ||||
-rw-r--r-- | dev-python/pyldap/pyldap-2.4.25.ebuild | 74 |
7 files changed, 0 insertions, 427 deletions
diff --git a/dev-python/pyldap/Manifest b/dev-python/pyldap/Manifest index b7af4c6fcda3..ded048581d70 100644 --- a/dev-python/pyldap/Manifest +++ b/dev-python/pyldap/Manifest @@ -1,5 +1 @@ -DIST pyldap-2.4.20.tar.gz 122175 SHA256 9f3c5679e6a2c26a852d0468c538239e458a39ee86ddbbd2f1ec5c6fc73a3755 SHA512 f29df58fa1617b8b61631ad4532fde7569dd9742d141e31c1724568c0b46ed63cbc83135089196a07e4dca22d76f05f3c5a74e9b1e8034e5673196912baa8642 WHIRLPOOL 27dcf5919b83e3236b2b18b02943080fe5f5e48e5e931f27dfae45612c075e58bd798bee1f52dde8674571f377dd99479ef0f4a4e917f8c55962cce51fc150a3 -DIST pyldap-2.4.21.tar.gz 124575 SHA256 7a2b1dc31679466db11320b91bd2058574ba25ef27224967040918046ff4c450 SHA512 14aa87421017cd8ba4dc9c9787995ab28c0a656bc665c82de0eaaf4dfe312c731e98bb30f8de5200f23518e9d18d0265eed8a77c1aa58a0551e2d06dbc91a292 WHIRLPOOL 466ed66c77be629b0184efabb2ca5129e0d7d7b9a600f122b875287157c6b7ceb4af9d325c1f17e9f49233739fe8071373d900b0b435a730480eabf365178565 -DIST pyldap-2.4.25.1.tar.gz 124042 SHA256 fdc46e9cad1fd515017b6109edd8d35a5ab655daa2708743285e8356bb5c2bee SHA512 e28a13f4eca447dea3a2829c2523b103ebaa0e669d6772d24adc8e20505e552f9201ff37b1c71a904575e53739ef93e3b99a984f28d1bb0577a89e43e1b250e6 WHIRLPOOL 00389234dbb7eb4a18f65e448a5d5696812acd9a4fd5d9ff69f43a1e9ecbf29cb1cbd98b21d12178b34bab669f9eef3ec11192dcb4e9405ee1569d8ec81f689a -DIST pyldap-2.4.25.tar.gz 125234 SHA256 6a81ff791ee82fc246af724904d5d38f5fac97f5698a68e2907eaa5bb00bcc79 SHA512 23c34c0510d0e44f3d5d3af7c683ff41384c7fd06213ff50b14e43db27a1d1cdcc7c63477503f049ce7cbd1584ab1da0c0a88acb74b3ca7e05f3a841565e4713 WHIRLPOOL f537212124f2719507eee111801e985b6051d77e07a143fed5f4721ef0899ed4dd95d99eabfc3dd423401575f374448ed6b45f7546385eb983926be636d60efe DIST pyldap-2.4.28.tar.gz 130651 SHA256 d38f31018f0c15925f50aec39f7255c15463f98797af53931e0e2a9ac21f6661 SHA512 d8bdf79c63d94289f2503fefe77b4e5c3edca6bf42a6fc039cffc4ebb9db57808c5f4fbf9265d3f33b672971ba3194c35b3b6034543c4f6f7ff80497ff050a7b WHIRLPOOL ff72c9d451e9d47872f78b4cc27cd51a3f5a156ea9a49a01ade35e1e52d74a92abf69301670fcc8be6eb3e32da69d4290dd4d590ae8971eec2cc1c77491d6bdb diff --git a/dev-python/pyldap/files/pyldap-2.4.20-bytes_string-backport.patch b/dev-python/pyldap/files/pyldap-2.4.20-bytes_string-backport.patch deleted file mode 100644 index ff4519bb0cd2..000000000000 --- a/dev-python/pyldap/files/pyldap-2.4.20-bytes_string-backport.patch +++ /dev/null @@ -1,49 +0,0 @@ -From 6e9e1902f33bff8ea179dc32ce4d2aa71b3335de Mon Sep 17 00:00:00 2001 -From: Petr Viktorin <pviktori@redhat.com> -Date: Fri, 2 Oct 2015 14:06:12 +0200 -Subject: [PATCH] Fix sasl string/bytes mismatch -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -The SASL mechanism and response are always bytes; encode them if necessary. - -Based on patch by Michael Šimáček: https://github.com/pyldap/pyldap/pull/20 ---- - Lib/ldap/sasl.py | 9 ++++++++- - 1 file changed, 8 insertions(+), 1 deletion(-) - -diff --git a/Lib/ldap/sasl.py b/Lib/ldap/sasl.py -index 1158671..de38393 100644 ---- a/Lib/ldap/sasl.py -+++ b/Lib/ldap/sasl.py -@@ -46,6 +46,8 @@ def __init__(self,cb_value_dict,mech): - SASL callback id's. The mech argument is a string that specifies - the SASL mechaninsm to be uesd.""" - self.cb_value_dict = cb_value_dict or {} -+ if not isinstance(mech, bytes): -+ mech = mech.encode('utf-8') - self.mech = mech - - def callback(self,cb_id,challenge,prompt,defresult): -@@ -62,7 +64,10 @@ def callback(self,cb_id,challenge,prompt,defresult): - cb_value_dictionary. Note that the current callback interface is not very - useful for writing generic sasl GUIs, which would need to know all - the questions to ask, before the answers are returned to the sasl -- lib (in contrast to one question at a time).""" -+ lib (in contrast to one question at a time). -+ -+ Unicode strings are always converted to bytes. -+ """ - - # The following print command might be useful for debugging - # new sasl mechanisms. So it is left here -@@ -72,6 +77,8 @@ def callback(self,cb_id,challenge,prompt,defresult): - _trace_file.write("*** id=%d, challenge=%s, prompt=%s, defresult=%s\n-> %s\n" % ( - cb_id, challenge, prompt, repr(defresult), repr(self.cb_value_dict.get(cb_result)) - )) -+ if not isinstance(cb_result, bytes): -+ cb_result = cb_result.encode('utf-8') - return cb_result - - diff --git a/dev-python/pyldap/pyldap-2.4.20-r1.ebuild b/dev-python/pyldap/pyldap-2.4.20-r1.ebuild deleted file mode 100644 index 7f281cdb0ad9..000000000000 --- a/dev-python/pyldap/pyldap-2.4.20-r1.ebuild +++ /dev/null @@ -1,76 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -PYTHON_COMPAT=( python2_7 python3_4 pypy ) - -inherit distutils-r1 multilib - -DESCRIPTION="Various LDAP-related Python modules" -HOMEPAGE="https://pypi.python.org/pypi/pyldap https://github.com/pyldap/pyldap/" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="PSF-2" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-solaris" -IUSE="doc examples sasl ssl" - -# If you need support for openldap-2.3.x, please use python-ldap-2.3.9. -# python team: Please do not remove python-ldap-2.3.9 from the tree. -# OpenSSL is an optional runtime dep. -# setup.py sets setuptools and misses pyasn1 and pyasn1-modules in install_requires -RDEPEND=" - >net-nds/openldap-2.4.11 - dev-python/pyasn1[${PYTHON_USEDEP}] - dev-python/pyasn1-modules[${PYTHON_USEDEP}] - sasl? ( >=dev-libs/cyrus-sasl-2.1 )" -DEPEND="${RDEPEND} - dev-python/setuptools[${PYTHON_USEDEP}] - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" -RDEPEND+=" !dev-python/python-ldap" - -PATCHES=( "${FILESDIR}"/${P}-bytes_string-backport.patch ) - -python_prepare_all() { - sed -e "s:^library_dirs =.*:library_dirs = /usr/$(get_libdir) /usr/$(get_libdir)/sasl2:" \ - -e "s:^include_dirs =.*:include_dirs = ${EPREFIX}/usr/include ${EPREFIX}/usr/include/sasl:" \ - -i setup.cfg || die "error fixing setup.cfg" - - local mylibs="ldap" - if use sasl; then - use ssl && mylibs="ldap_r" - mylibs="${mylibs} sasl2" - else - sed -e 's/HAVE_SASL//g' -i setup.cfg || die - fi - use ssl && mylibs="${mylibs} ssl crypto" - use elibc_glibc && mylibs="${mylibs} resolv" - - sed -e "s:^libs = .*:libs = lber ${mylibs}:" \ - -i setup.cfg || die "error setting up libs in setup.cfg" - - # set test expected to fail to expectedFailure - sed -e "s:^ def test_bad_urls: @unittest.expectedFailure\n def test_bad_urls:" \ - -i Tests/t_ldapurl.py || die - - distutils-r1_python_prepare_all -} - -python_compile_all() { - use doc && emake -C Doc html -} - -python_test() { - # XXX: the tests supposedly can start local slapd - # but it requires some manual config, it seems. - - "${PYTHON}" Tests/t_ldapurl.py || die "Tests fail with ${EPYTHON}" -} - -python_install_all() { - use examples && local EXAMPLES=( Demo/. ) - use doc && local HTML_DOCS=( Doc/.build/html/. ) - - distutils-r1_python_install_all -} diff --git a/dev-python/pyldap/pyldap-2.4.20-r2.ebuild b/dev-python/pyldap/pyldap-2.4.20-r2.ebuild deleted file mode 100644 index 7f281cdb0ad9..000000000000 --- a/dev-python/pyldap/pyldap-2.4.20-r2.ebuild +++ /dev/null @@ -1,76 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -PYTHON_COMPAT=( python2_7 python3_4 pypy ) - -inherit distutils-r1 multilib - -DESCRIPTION="Various LDAP-related Python modules" -HOMEPAGE="https://pypi.python.org/pypi/pyldap https://github.com/pyldap/pyldap/" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="PSF-2" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-solaris" -IUSE="doc examples sasl ssl" - -# If you need support for openldap-2.3.x, please use python-ldap-2.3.9. -# python team: Please do not remove python-ldap-2.3.9 from the tree. -# OpenSSL is an optional runtime dep. -# setup.py sets setuptools and misses pyasn1 and pyasn1-modules in install_requires -RDEPEND=" - >net-nds/openldap-2.4.11 - dev-python/pyasn1[${PYTHON_USEDEP}] - dev-python/pyasn1-modules[${PYTHON_USEDEP}] - sasl? ( >=dev-libs/cyrus-sasl-2.1 )" -DEPEND="${RDEPEND} - dev-python/setuptools[${PYTHON_USEDEP}] - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" -RDEPEND+=" !dev-python/python-ldap" - -PATCHES=( "${FILESDIR}"/${P}-bytes_string-backport.patch ) - -python_prepare_all() { - sed -e "s:^library_dirs =.*:library_dirs = /usr/$(get_libdir) /usr/$(get_libdir)/sasl2:" \ - -e "s:^include_dirs =.*:include_dirs = ${EPREFIX}/usr/include ${EPREFIX}/usr/include/sasl:" \ - -i setup.cfg || die "error fixing setup.cfg" - - local mylibs="ldap" - if use sasl; then - use ssl && mylibs="ldap_r" - mylibs="${mylibs} sasl2" - else - sed -e 's/HAVE_SASL//g' -i setup.cfg || die - fi - use ssl && mylibs="${mylibs} ssl crypto" - use elibc_glibc && mylibs="${mylibs} resolv" - - sed -e "s:^libs = .*:libs = lber ${mylibs}:" \ - -i setup.cfg || die "error setting up libs in setup.cfg" - - # set test expected to fail to expectedFailure - sed -e "s:^ def test_bad_urls: @unittest.expectedFailure\n def test_bad_urls:" \ - -i Tests/t_ldapurl.py || die - - distutils-r1_python_prepare_all -} - -python_compile_all() { - use doc && emake -C Doc html -} - -python_test() { - # XXX: the tests supposedly can start local slapd - # but it requires some manual config, it seems. - - "${PYTHON}" Tests/t_ldapurl.py || die "Tests fail with ${EPYTHON}" -} - -python_install_all() { - use examples && local EXAMPLES=( Demo/. ) - use doc && local HTML_DOCS=( Doc/.build/html/. ) - - distutils-r1_python_install_all -} diff --git a/dev-python/pyldap/pyldap-2.4.21.ebuild b/dev-python/pyldap/pyldap-2.4.21.ebuild deleted file mode 100644 index 8d8db7702146..000000000000 --- a/dev-python/pyldap/pyldap-2.4.21.ebuild +++ /dev/null @@ -1,74 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -PYTHON_COMPAT=( python2_7 python3_4 pypy ) - -inherit distutils-r1 multilib - -DESCRIPTION="Various LDAP-related Python modules" -HOMEPAGE="https://pypi.python.org/pypi/pyldap https://github.com/pyldap/pyldap/" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="PSF-2" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-solaris" -IUSE="doc examples sasl ssl" - -# If you need support for openldap-2.3.x, please use python-ldap-2.3.9. -# python team: Please do not remove python-ldap-2.3.9 from the tree. -# OpenSSL is an optional runtime dep. -# setup.py sets setuptools and misses pyasn1 and pyasn1-modules in install_requires -RDEPEND=" - >net-nds/openldap-2.4.11 - dev-python/pyasn1[${PYTHON_USEDEP}] - dev-python/pyasn1-modules[${PYTHON_USEDEP}] - sasl? ( >=dev-libs/cyrus-sasl-2.1 )" -DEPEND="${RDEPEND} - dev-python/setuptools[${PYTHON_USEDEP}] - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" -RDEPEND+=" !dev-python/python-ldap" - -python_prepare_all() { - sed -e "s:^library_dirs =.*:library_dirs = /usr/$(get_libdir) /usr/$(get_libdir)/sasl2:" \ - -e "s:^include_dirs =.*:include_dirs = ${EPREFIX}/usr/include ${EPREFIX}/usr/include/sasl:" \ - -i setup.cfg || die "error fixing setup.cfg" - - local mylibs="ldap" - if use sasl; then - use ssl && mylibs="ldap_r" - mylibs="${mylibs} sasl2" - else - sed -e 's/HAVE_SASL//g' -i setup.cfg || die - fi - use ssl && mylibs="${mylibs} ssl crypto" - use elibc_glibc && mylibs="${mylibs} resolv" - - sed -e "s:^libs = .*:libs = lber ${mylibs}:" \ - -i setup.cfg || die "error setting up libs in setup.cfg" - - # set test expected to fail to expectedFailure - sed -e "s:^ def test_bad_urls: @unittest.expectedFailure\n def test_bad_urls:" \ - -i Tests/t_ldapurl.py || die - - distutils-r1_python_prepare_all -} - -python_compile_all() { - use doc && emake -C Doc html -} - -python_test() { - # XXX: the tests supposedly can start local slapd - # but it requires some manual config, it seems. - - "${PYTHON}" Tests/t_ldapurl.py || die "Tests fail with ${EPYTHON}" -} - -python_install_all() { - use examples && local EXAMPLES=( Demo/. ) - use doc && local HTML_DOCS=( Doc/.build/html/. ) - - distutils-r1_python_install_all -} diff --git a/dev-python/pyldap/pyldap-2.4.25.1.ebuild b/dev-python/pyldap/pyldap-2.4.25.1.ebuild deleted file mode 100644 index cd3459a71842..000000000000 --- a/dev-python/pyldap/pyldap-2.4.25.1.ebuild +++ /dev/null @@ -1,74 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -PYTHON_COMPAT=( python2_7 python3_{4,5} pypy ) - -inherit distutils-r1 multilib - -DESCRIPTION="Various LDAP-related Python modules" -HOMEPAGE="https://pypi.python.org/pypi/pyldap https://github.com/pyldap/pyldap/" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="PSF-2" -SLOT="0" -KEYWORDS="~alpha amd64 ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc x86 ~x86-fbsd ~x86-solaris" -IUSE="doc examples sasl ssl" - -# If you need support for openldap-2.3.x, please use python-ldap-2.3.9. -# python team: Please do not remove python-ldap-2.3.9 from the tree. -# OpenSSL is an optional runtime dep. -# setup.py sets setuptools and misses pyasn1 and pyasn1-modules in install_requires -RDEPEND=" - >net-nds/openldap-2.4.11 - dev-python/pyasn1[${PYTHON_USEDEP}] - dev-python/pyasn1-modules[${PYTHON_USEDEP}] - sasl? ( >=dev-libs/cyrus-sasl-2.1 )" -DEPEND="${RDEPEND} - dev-python/setuptools[${PYTHON_USEDEP}] - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" -RDEPEND+=" !dev-python/python-ldap" - -python_prepare_all() { - sed -e "s:^library_dirs =.*:library_dirs = /usr/$(get_libdir) /usr/$(get_libdir)/sasl2:" \ - -e "s:^include_dirs =.*:include_dirs = ${EPREFIX}/usr/include ${EPREFIX}/usr/include/sasl:" \ - -i setup.cfg || die "error fixing setup.cfg" - - local mylibs="ldap" - if use sasl; then - use ssl && mylibs="ldap_r" - mylibs="${mylibs} sasl2" - else - sed -e 's/HAVE_SASL//g' -i setup.cfg || die - fi - use ssl && mylibs="${mylibs} ssl crypto" - use elibc_glibc && mylibs="${mylibs} resolv" - - sed -e "s:^libs = .*:libs = lber ${mylibs}:" \ - -i setup.cfg || die "error setting up libs in setup.cfg" - - # set test expected to fail to expectedFailure - sed -e "s:^ def test_bad_urls: @unittest.expectedFailure\n def test_bad_urls:" \ - -i Tests/t_ldapurl.py || die - - distutils-r1_python_prepare_all -} - -python_compile_all() { - use doc && emake -C Doc html -} - -python_test() { - # XXX: the tests supposedly can start local slapd - # but it requires some manual config, it seems. - - "${PYTHON}" Tests/t_ldapurl.py || die "Tests fail with ${EPYTHON}" -} - -python_install_all() { - use examples && local EXAMPLES=( Demo/. ) - use doc && local HTML_DOCS=( Doc/.build/html/. ) - - distutils-r1_python_install_all -} diff --git a/dev-python/pyldap/pyldap-2.4.25.ebuild b/dev-python/pyldap/pyldap-2.4.25.ebuild deleted file mode 100644 index 8d8db7702146..000000000000 --- a/dev-python/pyldap/pyldap-2.4.25.ebuild +++ /dev/null @@ -1,74 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -PYTHON_COMPAT=( python2_7 python3_4 pypy ) - -inherit distutils-r1 multilib - -DESCRIPTION="Various LDAP-related Python modules" -HOMEPAGE="https://pypi.python.org/pypi/pyldap https://github.com/pyldap/pyldap/" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="PSF-2" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-solaris" -IUSE="doc examples sasl ssl" - -# If you need support for openldap-2.3.x, please use python-ldap-2.3.9. -# python team: Please do not remove python-ldap-2.3.9 from the tree. -# OpenSSL is an optional runtime dep. -# setup.py sets setuptools and misses pyasn1 and pyasn1-modules in install_requires -RDEPEND=" - >net-nds/openldap-2.4.11 - dev-python/pyasn1[${PYTHON_USEDEP}] - dev-python/pyasn1-modules[${PYTHON_USEDEP}] - sasl? ( >=dev-libs/cyrus-sasl-2.1 )" -DEPEND="${RDEPEND} - dev-python/setuptools[${PYTHON_USEDEP}] - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" -RDEPEND+=" !dev-python/python-ldap" - -python_prepare_all() { - sed -e "s:^library_dirs =.*:library_dirs = /usr/$(get_libdir) /usr/$(get_libdir)/sasl2:" \ - -e "s:^include_dirs =.*:include_dirs = ${EPREFIX}/usr/include ${EPREFIX}/usr/include/sasl:" \ - -i setup.cfg || die "error fixing setup.cfg" - - local mylibs="ldap" - if use sasl; then - use ssl && mylibs="ldap_r" - mylibs="${mylibs} sasl2" - else - sed -e 's/HAVE_SASL//g' -i setup.cfg || die - fi - use ssl && mylibs="${mylibs} ssl crypto" - use elibc_glibc && mylibs="${mylibs} resolv" - - sed -e "s:^libs = .*:libs = lber ${mylibs}:" \ - -i setup.cfg || die "error setting up libs in setup.cfg" - - # set test expected to fail to expectedFailure - sed -e "s:^ def test_bad_urls: @unittest.expectedFailure\n def test_bad_urls:" \ - -i Tests/t_ldapurl.py || die - - distutils-r1_python_prepare_all -} - -python_compile_all() { - use doc && emake -C Doc html -} - -python_test() { - # XXX: the tests supposedly can start local slapd - # but it requires some manual config, it seems. - - "${PYTHON}" Tests/t_ldapurl.py || die "Tests fail with ${EPYTHON}" -} - -python_install_all() { - use examples && local EXAMPLES=( Demo/. ) - use doc && local HTML_DOCS=( Doc/.build/html/. ) - - distutils-r1_python_install_all -} |