View | Details | Raw Unified | Return to bug 230414 | Differences between
and this patch

Collapse All | Expand All

(-)security/py-certifi/Makefile (+10 lines)
Lines 12-19 Link Here
12
12
13
LICENSE=	MPL20
13
LICENSE=	MPL20
14
14
15
OPTIONS_DEFINE=	CA_ROOT_NSS
16
CA_ROOT_NSS_DESC=	Use CA bundle from ca_root_nss
17
18
CA_ROOT_NSS_RUN_DEPENDS=	ca_root_nss>0:security/ca_root_nss
19
CA_ROOT_NSS_EXTRA_PATCHES=	${PATCHDIR}/extra-patch-ca_root_nss
20
15
NO_ARCH=	yes
21
NO_ARCH=	yes
16
USES=		python
22
USES=		python
17
USE_PYTHON=	autoplist concurrent distutils
23
USE_PYTHON=	autoplist concurrent distutils
18
24
25
post-patch-CA_ROOT_NSS-on:
26
	@${RM} ${WRKSRC}/certifi/cacert.pem
27
	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/certifi/core.py
28
19
.include <bsd.port.mk>
29
.include <bsd.port.mk>
(-)security/py-certifi/files/extra-patch-ca_root_nss (+28 lines)
Line 0 Link Here
1
--- MANIFEST.in.orig	2018-01-18 20:27:24 UTC
2
+++ MANIFEST.in
3
@@ -1 +1 @@
4
-include MANIFEST.in README.rst LICENSE certifi/cacert.pem
5
+include MANIFEST.in README.rst LICENSE
6
--- certifi/core.py.orig	2018-08-07 10:22:00 UTC
7
+++ certifi/core.py
8
@@ -19,9 +19,7 @@ class DeprecatedBundleWarning(Deprecatio
9
 
10
 
11
 def where():
12
-    f = os.path.dirname(__file__)
13
-
14
-    return os.path.join(f, 'cacert.pem')
15
+    return '%%PREFIX%%/etc/ssl/cert.pem'
16
 
17
 
18
 def old_where():
19
--- setup.py.orig	2018-01-18 20:27:24 UTC
20
+++ setup.py
21
@@ -44,7 +44,6 @@ setup(
22
         'certifi',
23
     ],
24
     package_dir={'certifi': 'certifi'},
25
-    package_data={'certifi': ['*.pem']},
26
     # data_files=[('certifi', ['certifi/cacert.pem'])],
27
     include_package_data=True,
28
     zip_safe=False,

Return to bug 230414