From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- dev-python/certifi/Manifest | 4 ++ dev-python/certifi/certifi-2018.4.16.ebuild | 43 ++++++++++++++++++++++ .../certifi-2018.4.16-use-system-cacerts.patch | 15 ++++++++ dev-python/certifi/metadata.xml | 11 ++++++ 4 files changed, 73 insertions(+) create mode 100644 dev-python/certifi/Manifest create mode 100644 dev-python/certifi/certifi-2018.4.16.ebuild create mode 100644 dev-python/certifi/files/certifi-2018.4.16-use-system-cacerts.patch create mode 100644 dev-python/certifi/metadata.xml (limited to 'dev-python/certifi') diff --git a/dev-python/certifi/Manifest b/dev-python/certifi/Manifest new file mode 100644 index 000000000000..a5d982c6f456 --- /dev/null +++ b/dev-python/certifi/Manifest @@ -0,0 +1,4 @@ +AUX certifi-2018.4.16-use-system-cacerts.patch 340 BLAKE2B 42278c6b40ef6daef71a2ef3da75baf78833906c1cd018757b0b45d8ca623cbb5de15e5d5cfa444eb360738b368ad2111bb5594beaeb910275c65267b7532a34 SHA512 8c0b36be0ce23132fe739be4a173f537f4f8870fe0f5e2c98add13e94c0c23490cd0aac30e289193820790eb8580770e178e32b9f16b28255fd95565d6015faa +DIST certifi-2018.4.16.tar.gz 149967 BLAKE2B 4a69ec495266d54032dfabc9c17d0b1e78ad1467214f9f981feb4fae279c1f4b5f0bc3f7a643c2229b17d19e32c1ea894dc16d73b036a0b32f17faa9ac55615c SHA512 96369b318df9592ed4ff48d79ae695f89d27d85e8f5de72548fccb19ac15b83a33fb8bc096a3092d7a7f5b201af08805576888418c7927cf48b892df56464682 +EBUILD certifi-2018.4.16.ebuild 1430 BLAKE2B ac27d6e38c40c4869dc5a69be1c63e990c16496e539190388b5fbd7c1c7749baa42ad9023704807d4ee60eccaab649465fc0d5e385adb501b9c37f90d4b094a6 SHA512 bc0ffe9fe6b9847be34af0de7f5a5954cd0fdde932f86ac234a601aa67ce347281ca36d3c3512761939df143c7b7a050467c6b4e9d8139c4d998f428d16294a6 +MISC metadata.xml 320 BLAKE2B ba5c3c1018c5cba293969a523ab6c388f5bc0d0cfdfc69a4b143f1c966aad036df449bb091eacdeae2335a6bdc722da85882caad2a447bf87b600da2ed7c5309 SHA512 0e99564887f0a0b314056b2e1f4b6e3afcaf908de6824a2cc87deab9d1832566e97b8ba88cc7d2bdc5d11e7f1c8532830fc59602efd8c2f1a6061c0ad4853fdd diff --git a/dev-python/certifi/certifi-2018.4.16.ebuild b/dev-python/certifi/certifi-2018.4.16.ebuild new file mode 100644 index 000000000000..7daec8f073af --- /dev/null +++ b/dev-python/certifi/certifi-2018.4.16.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy pypy3 ) + +inherit distutils-r1 prefix readme.gentoo-r1 versionator + +DESCRIPTION="Python package for providing Mozilla's CA Bundle" +HOMEPAGE="http://certifi.io/ https://pypi.org/project/certifi" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MPL-2.0" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +RDEPEND="app-misc/ca-certificates" +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" + +# Do not drop this patch -- this will affect system's security +PATCHES=( "${FILESDIR}"/certifi-2018.4.16-use-system-cacerts.patch ) + +python_prepare_all() { + distutils-r1_python_prepare_all + + eprefixify certifi/core.py +} + +python_install_all() { + distutils-r1_python_install_all + + local DOC_CONTENTS=" + In Gentoo, we don't use certifi's bundled CA certificates. + Instead we remove bundled cacert.pem and patch certifi + to return system's CA certificates. + " + readme.gentoo_create_doc + + # Precaution -- nothing should use bundled CA certificates + find "${D}" -name 'cacert.pem' -delete || die "Failed to delete bundled CA certificates" +} diff --git a/dev-python/certifi/files/certifi-2018.4.16-use-system-cacerts.patch b/dev-python/certifi/files/certifi-2018.4.16-use-system-cacerts.patch new file mode 100644 index 000000000000..009f21168c1e --- /dev/null +++ b/dev-python/certifi/files/certifi-2018.4.16-use-system-cacerts.patch @@ -0,0 +1,15 @@ +Use system's CA certificate store + +--- a/certifi/core.py ++++ b/certifi/core.py +@@ -19,9 +19,7 @@ class DeprecatedBundleWarning(DeprecationWarning): + + + def where(): +- f = os.path.dirname(__file__) +- +- return os.path.join(f, 'cacert.pem') ++ return "@GENTOO_PORTAGE_EPREFIX@/etc/ssl/certs/ca-certificates.crt" + + + def old_where(): diff --git a/dev-python/certifi/metadata.xml b/dev-python/certifi/metadata.xml new file mode 100644 index 000000000000..85d50281c54b --- /dev/null +++ b/dev-python/certifi/metadata.xml @@ -0,0 +1,11 @@ + + + + + python@gentoo.org + Python + + + certifi + + -- cgit v1.2.3