From 7371af8bb1f9fb969cca985bf4f360208496c7cc Mon Sep 17 00:00:00 2001 From: ajacoutot Date: Sun, 12 Oct 2014 23:08:48 +0000 Subject: [PATCH] Drop bogus usage of SYSCONFDIR. --- devel/py-certifi/Makefile | 6 ++---- devel/py-certifi/patches/patch-certifi_core_py | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/devel/py-certifi/Makefile b/devel/py-certifi/Makefile index 739dd942a8f..18b88f51f2a 100644 --- a/devel/py-certifi/Makefile +++ b/devel/py-certifi/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.1.1.1 2014/10/12 20:40:39 juanfra Exp $ +# $OpenBSD: Makefile,v 1.2 2014/10/12 23:08:48 ajacoutot Exp $ COMMENT = python package to check certificates using the OpenBSD CA @@ -6,6 +6,7 @@ MODPY_EGG_VERSION = 14.05.14 DISTNAME = certifi-${MODPY_EGG_VERSION} PKGNAME = py-certifi-${MODPY_EGG_VERSION} CATEGORIES = devel security +REVISION = 0 HOMEPAGE = http://python-requests.org @@ -19,7 +20,4 @@ MASTER_SITES = ${MASTER_SITE_PYPI:=c/certifi/} MODULES = lang/python MODPY_SETUPTOOLS = Yes -pre-install: - @${SUBST_CMD} ${WRKSRC}/certifi/core.py - .include diff --git a/devel/py-certifi/patches/patch-certifi_core_py b/devel/py-certifi/patches/patch-certifi_core_py index fe81519ddb3..59102c2ef58 100644 --- a/devel/py-certifi/patches/patch-certifi_core_py +++ b/devel/py-certifi/patches/patch-certifi_core_py @@ -1,4 +1,4 @@ -$OpenBSD: patch-certifi_core_py,v 1.1.1.1 2014/10/12 20:40:39 juanfra Exp $ +$OpenBSD: patch-certifi_core_py,v 1.2 2014/10/12 23:08:48 ajacoutot Exp $ --- certifi/core.py.orig Mon Oct 6 16:01:46 2014 +++ certifi/core.py Mon Oct 6 16:02:24 2014 @@ -11,9 +11,7 @@ This module returns the installation location of cacer @@ -8,7 +8,7 @@ $OpenBSD: patch-certifi_core_py,v 1.1.1.1 2014/10/12 20:40:39 juanfra Exp $ - f = os.path.split(__file__)[0] - - return os.path.join(f, 'cacert.pem') -+ return '${SYSCONFDIR}/ssl/cert.pem' ++ return '/etc/ssl/cert.pem' if __name__ == '__main__': print(where())