Drop bogus usage of SYSCONFDIR.

This commit is contained in:
ajacoutot 2014-10-12 23:08:48 +00:00
parent 5055db0dc4
commit 7371af8bb1
2 changed files with 4 additions and 6 deletions

View File

@ -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 <bsd.port.mk>

View File

@ -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())