diff options
author | tron <tron@pkgsrc.org> | 2016-02-06 11:25:09 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2016-02-06 11:25:09 +0000 |
commit | 7d0546b2c76d7f876c268c248d6d2f11d15188a3 (patch) | |
tree | 9cd40189a29946f6a67a6ffd1f44191549eb9346 /lang/python27/Makefile | |
parent | 99b493d28bb5484834b68d905e43068238713798 (diff) | |
download | pkgsrc-7d0546b2c76d7f876c268c248d6d2f11d15188a3.tar.gz |
Use the "cacert.pem" file from the "mozilla-rootcerts" package as an *extra*
location to load CA certificates from in the "ssl" module.
HTTPS requests to a site with a valid certificate now work out of the box
(even without the "mozilla-rootcerts-openssl").
Diffstat (limited to 'lang/python27/Makefile')
-rw-r--r-- | lang/python27/Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lang/python27/Makefile b/lang/python27/Makefile index a4bd8a2f331..034704f5bff 100644 --- a/lang/python27/Makefile +++ b/lang/python27/Makefile @@ -1,8 +1,9 @@ -# $NetBSD: Makefile,v 1.54 2015/12/06 18:22:35 adam Exp $ +# $NetBSD: Makefile,v 1.55 2016/02/06 11:25:09 tron Exp $ .include "dist.mk" PKGNAME= python27-${PY_DISTVERSION} +PKGREVISION= 1 CATEGORIES= lang python MAINTAINER= pkgsrc-users@NetBSD.org @@ -10,6 +11,8 @@ HOMEPAGE= http://www.python.org/ COMMENT= Interpreted, interactive, object-oriented programming language LICENSE= python-software-foundation +DEPENDS= mozilla-rootcerts>=1.0.20150804nb1:../../security/mozilla-rootcerts + CONFLICTS+= python-[0-9]* GNU_CONFIGURE= yes @@ -171,6 +174,12 @@ SUBST_STAGE.sslbase= pre-configure SUBST_FILES.sslbase= setup.py SUBST_VARS.sslbase= SSLBASE +SUBST_CLASSES+= cacert +SUBST_MESSAGE.cacert= Configuring location of default CA certificate file. +SUBST_STAGE.cacert= pre-configure +SUBST_FILES.cacert= Modules/_ssl.c +SUBST_SED.cacert= -e 's,@PREFIX@,${PREFIX},' + post-extract: ${LN} -s ${WRKSRC}/Lib/smtpd.py ${WRKSRC}/Tools/scripts/smtpd${PY_VER_SUFFIX}.py ${MV} ${WRKSRC}/Tools/scripts/pydoc ${WRKSRC}/Tools/scripts/pydoc${PY_VER_SUFFIX} |