Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Oct 2015 03:13:54 +0000 (UTC)
From:      Kubilay Kocak <koobs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r399604 - in head/security/py-cryptography: . files
Message-ID:  <201510180313.t9I3DsjZ094702@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: koobs
Date: Sun Oct 18 03:13:53 2015
New Revision: 399604
URL: https://svnweb.freebsd.org/changeset/ports/399604

Log:
  security/py-cryptography: Update to 1.0.2
  
  - Update to 1.0.2
  - Strip shared libraries
  - Add patch to support building with LibreSSL
  - Remove ALPN patch (upstreamed)
  
  Changes:
  
    https://github.com/pyca/cryptography/blob/1.0.2/CHANGELOG.rst
  
  PR:		203819
  Submitted by:	Ralf van der Enden <tremere cainites net>

Added:
  head/security/py-cryptography/files/patch-src___cffi__src_openssl_ec.py   (contents, props changed)
Deleted:
  head/security/py-cryptography/files/patch-src_cryptography_hazmat_bindings_openssl_ssl.py
Modified:
  head/security/py-cryptography/Makefile
  head/security/py-cryptography/distinfo

Modified: head/security/py-cryptography/Makefile
==============================================================================
--- head/security/py-cryptography/Makefile	Sat Oct 17 21:37:14 2015	(r399603)
+++ head/security/py-cryptography/Makefile	Sun Oct 18 03:13:53 2015	(r399604)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	cryptography
-PORTVERSION=	0.8.2
+PORTVERSION=	1.0.2
 CATEGORIES=	security python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -33,6 +33,9 @@ LDFLAGS+=	-L${OPENSSLLIB}
 BUILD_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}enum34>0:${PORTSDIR}/devel/py-enum34
 .endif
 
+post-install:
+	${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/cryptography/hazmat/bindings/*.so
+
 regression-test: build
 	@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
 

Modified: head/security/py-cryptography/distinfo
==============================================================================
--- head/security/py-cryptography/distinfo	Sat Oct 17 21:37:14 2015	(r399603)
+++ head/security/py-cryptography/distinfo	Sun Oct 18 03:13:53 2015	(r399604)
@@ -1,2 +1,2 @@
-SHA256 (cryptography-0.8.2.tar.gz) = 1c9a022ab3decaf152093e2ef2d5ee4258c72c7d429446c86bd68ff8c0929db6
-SIZE (cryptography-0.8.2.tar.gz) = 268288
+SHA256 (cryptography-1.0.2.tar.gz) = d64cd491e91ddf642c643bea16532c2a2da2da054cca6df756edadd55a8bacca
+SIZE (cryptography-1.0.2.tar.gz) = 332870

Added: head/security/py-cryptography/files/patch-src___cffi__src_openssl_ec.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/py-cryptography/files/patch-src___cffi__src_openssl_ec.py	Sun Oct 18 03:13:53 2015	(r399604)
@@ -0,0 +1,12 @@
+--- src/_cffi_src/openssl/ec.py.orig	2015-09-27 13:51:07 UTC
++++ src/_cffi_src/openssl/ec.py
+@@ -396,7 +396,8 @@ EC_GROUP *(*EC_GROUP_new_curve_GF2m)(
+ static const long Cryptography_HAS_EC2M = 1;
+ #endif
+ 
+-#if defined(OPENSSL_NO_EC) || OPENSSL_VERSION_NUMBER < 0x1000200f || \
++#if defined(OPENSSL_NO_EC) || \
++    OPENSSL_VERSION_NUMBER < 0x1000200f && !defined(LIBRESSL_VERSION_NUMBER) || \
+     defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20020002L
+ static const long Cryptography_HAS_EC_1_0_2 = 0;
+ const char *(*EC_curve_nid2nist)(int) = NULL;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510180313.t9I3DsjZ094702>