Import of pkgsrc-2015Q1

This commit is contained in:
2016-01-21 23:40:00 +01:00
committed by sambuc
parent 9a8c06dafb
commit 4af1cdf7a9
25114 changed files with 870539 additions and 795424 deletions
+13 -4
View File
@@ -1,22 +1,31 @@
# $NetBSD: Makefile,v 1.5 2014/03/22 00:07:20 wiz Exp $
# $NetBSD: Makefile,v 1.19 2015/03/15 21:10:16 wiz Exp $
DISTNAME= cryptography-0.2.2
DISTNAME= cryptography-0.8
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
PKGREVISION= 2
CATEGORIES= security python
MASTER_SITES= https://pypi.python.org/packages/source/c/cryptography/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://pypi.python.org/pypi/cryptography/
COMMENT= Cryptographic recipes and primitives for Python
LICENSE= apache-2.0
LICENSE= apache-2.0 OR modified-bsd
DEPENDS+= ${PYPKGPREFIX}-asn1-[0-9]*:../../security/py-asn1
DEPENDS+= ${PYPKGPREFIX}-cffi>=0.8:../../devel/py-cffi
DEPENDS+= ${PYPKGPREFIX}-cparser>=2.10:../../devel/py-cparser
DEPENDS+= ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
# actually, TEST_DEPENDS
BUILD_DEPENDS+= ${PYPKGPREFIX}-iso8601-[0-9]*:../../time/py-iso8601
BUILD_DEPENDS+= ${PYPKGPREFIX}-pretend-[0-9]*:../../devel/py-pretend
BUILD_DEPENDS+= ${PYPKGPREFIX}-requests>=0.8:../../devel/py-requests
BUILD_DEPENDS+= ${PYPKGPREFIX}-test>=0.8:../../devel/py-test
.include "../../lang/python/pyversion.mk"
.if ${PYPKGPREFIX} == "py26" || ${PYPKGPREFIX} == "py27" || ${PYPKGPREFIX} == "py33"
DEPENDS+= ${PYPKGPREFIX}-enum34-[0-9]*:../../devel/py-enum34
.endif
do-test:
cd ${WRKSRC} && py.test-${PYVERSSUFFIX}
+115 -5
View File
@@ -1,7 +1,8 @@
@comment $NetBSD: PLIST,v 1.2 2014/03/21 14:02:45 wiz Exp $
@comment $NetBSD: PLIST,v 1.8 2015/03/15 21:10:16 wiz Exp $
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
${PYSITELIB}/${EGG_INFODIR}/requires.txt
${PYSITELIB}/${EGG_INFODIR}/top_level.txt
@@ -11,7 +12,6 @@ ${PYSITELIB}/cryptography/__about__.pyo
${PYSITELIB}/cryptography/__init__.py
${PYSITELIB}/cryptography/__init__.pyc
${PYSITELIB}/cryptography/__init__.pyo
${PYSITELIB}/cryptography/checkpkcs7padding.so
${PYSITELIB}/cryptography/constanttime.so
${PYSITELIB}/cryptography/cryptography.so
${PYSITELIB}/cryptography/exceptions.py
@@ -32,6 +32,15 @@ ${PYSITELIB}/cryptography/hazmat/backends/commoncrypto/__init__.pyo
${PYSITELIB}/cryptography/hazmat/backends/commoncrypto/backend.py
${PYSITELIB}/cryptography/hazmat/backends/commoncrypto/backend.pyc
${PYSITELIB}/cryptography/hazmat/backends/commoncrypto/backend.pyo
${PYSITELIB}/cryptography/hazmat/backends/commoncrypto/ciphers.py
${PYSITELIB}/cryptography/hazmat/backends/commoncrypto/ciphers.pyc
${PYSITELIB}/cryptography/hazmat/backends/commoncrypto/ciphers.pyo
${PYSITELIB}/cryptography/hazmat/backends/commoncrypto/hashes.py
${PYSITELIB}/cryptography/hazmat/backends/commoncrypto/hashes.pyc
${PYSITELIB}/cryptography/hazmat/backends/commoncrypto/hashes.pyo
${PYSITELIB}/cryptography/hazmat/backends/commoncrypto/hmac.py
${PYSITELIB}/cryptography/hazmat/backends/commoncrypto/hmac.pyc
${PYSITELIB}/cryptography/hazmat/backends/commoncrypto/hmac.pyo
${PYSITELIB}/cryptography/hazmat/backends/interfaces.py
${PYSITELIB}/cryptography/hazmat/backends/interfaces.pyc
${PYSITELIB}/cryptography/hazmat/backends/interfaces.pyo
@@ -44,15 +53,48 @@ ${PYSITELIB}/cryptography/hazmat/backends/openssl/__init__.pyo
${PYSITELIB}/cryptography/hazmat/backends/openssl/backend.py
${PYSITELIB}/cryptography/hazmat/backends/openssl/backend.pyc
${PYSITELIB}/cryptography/hazmat/backends/openssl/backend.pyo
${PYSITELIB}/cryptography/hazmat/backends/openssl/ciphers.py
${PYSITELIB}/cryptography/hazmat/backends/openssl/ciphers.pyc
${PYSITELIB}/cryptography/hazmat/backends/openssl/ciphers.pyo
${PYSITELIB}/cryptography/hazmat/backends/openssl/cmac.py
${PYSITELIB}/cryptography/hazmat/backends/openssl/cmac.pyc
${PYSITELIB}/cryptography/hazmat/backends/openssl/cmac.pyo
${PYSITELIB}/cryptography/hazmat/backends/openssl/dsa.py
${PYSITELIB}/cryptography/hazmat/backends/openssl/dsa.pyc
${PYSITELIB}/cryptography/hazmat/backends/openssl/dsa.pyo
${PYSITELIB}/cryptography/hazmat/backends/openssl/ec.py
${PYSITELIB}/cryptography/hazmat/backends/openssl/ec.pyc
${PYSITELIB}/cryptography/hazmat/backends/openssl/ec.pyo
${PYSITELIB}/cryptography/hazmat/backends/openssl/hashes.py
${PYSITELIB}/cryptography/hazmat/backends/openssl/hashes.pyc
${PYSITELIB}/cryptography/hazmat/backends/openssl/hashes.pyo
${PYSITELIB}/cryptography/hazmat/backends/openssl/hmac.py
${PYSITELIB}/cryptography/hazmat/backends/openssl/hmac.pyc
${PYSITELIB}/cryptography/hazmat/backends/openssl/hmac.pyo
${PYSITELIB}/cryptography/hazmat/backends/openssl/rsa.py
${PYSITELIB}/cryptography/hazmat/backends/openssl/rsa.pyc
${PYSITELIB}/cryptography/hazmat/backends/openssl/rsa.pyo
${PYSITELIB}/cryptography/hazmat/backends/openssl/utils.py
${PYSITELIB}/cryptography/hazmat/backends/openssl/utils.pyc
${PYSITELIB}/cryptography/hazmat/backends/openssl/utils.pyo
${PYSITELIB}/cryptography/hazmat/backends/openssl/x509.py
${PYSITELIB}/cryptography/hazmat/backends/openssl/x509.pyc
${PYSITELIB}/cryptography/hazmat/backends/openssl/x509.pyo
${PYSITELIB}/cryptography/hazmat/bindings/__init__.py
${PYSITELIB}/cryptography/hazmat/bindings/__init__.pyc
${PYSITELIB}/cryptography/hazmat/bindings/__init__.pyo
${PYSITELIB}/cryptography/hazmat/bindings/__pycache__/constanttime.c
${PYSITELIB}/cryptography/hazmat/bindings/__pycache__/cryptography.hazmat.bindings.openssl.x509_vfy.c
${PYSITELIB}/cryptography/hazmat/bindings/__pycache__/padding.c
${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/__init__.py
${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/__init__.pyc
${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/__init__.pyo
${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/binding.py
${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/binding.pyc
${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/binding.pyo
${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/cf.py
${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/cf.pyc
${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/cf.pyo
${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/common_cryptor.py
${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/common_cryptor.pyc
${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/common_cryptor.pyo
@@ -65,6 +107,21 @@ ${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/common_hmac.pyo
${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/common_key_derivation.py
${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/common_key_derivation.pyc
${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/common_key_derivation.pyo
${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/secimport.py
${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/secimport.pyc
${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/secimport.pyo
${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/secitem.py
${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/secitem.pyc
${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/secitem.pyo
${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/seckey.py
${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/seckey.pyc
${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/seckey.pyo
${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/seckeychain.py
${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/seckeychain.pyc
${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/seckeychain.pyo
${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/sectransform.py
${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/sectransform.pyc
${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/sectransform.pyo
${PYSITELIB}/cryptography/hazmat/bindings/openssl/__init__.py
${PYSITELIB}/cryptography/hazmat/bindings/openssl/__init__.pyc
${PYSITELIB}/cryptography/hazmat/bindings/openssl/__init__.pyo
@@ -83,6 +140,12 @@ ${PYSITELIB}/cryptography/hazmat/bindings/openssl/binding.pyo
${PYSITELIB}/cryptography/hazmat/bindings/openssl/bio.py
${PYSITELIB}/cryptography/hazmat/bindings/openssl/bio.pyc
${PYSITELIB}/cryptography/hazmat/bindings/openssl/bio.pyo
${PYSITELIB}/cryptography/hazmat/bindings/openssl/cmac.py
${PYSITELIB}/cryptography/hazmat/bindings/openssl/cmac.pyc
${PYSITELIB}/cryptography/hazmat/bindings/openssl/cmac.pyo
${PYSITELIB}/cryptography/hazmat/bindings/openssl/cms.py
${PYSITELIB}/cryptography/hazmat/bindings/openssl/cms.pyc
${PYSITELIB}/cryptography/hazmat/bindings/openssl/cms.pyo
${PYSITELIB}/cryptography/hazmat/bindings/openssl/conf.py
${PYSITELIB}/cryptography/hazmat/bindings/openssl/conf.pyc
${PYSITELIB}/cryptography/hazmat/bindings/openssl/conf.pyo
@@ -98,6 +161,12 @@ ${PYSITELIB}/cryptography/hazmat/bindings/openssl/dsa.pyo
${PYSITELIB}/cryptography/hazmat/bindings/openssl/ec.py
${PYSITELIB}/cryptography/hazmat/bindings/openssl/ec.pyc
${PYSITELIB}/cryptography/hazmat/bindings/openssl/ec.pyo
${PYSITELIB}/cryptography/hazmat/bindings/openssl/ecdh.py
${PYSITELIB}/cryptography/hazmat/bindings/openssl/ecdh.pyc
${PYSITELIB}/cryptography/hazmat/bindings/openssl/ecdh.pyo
${PYSITELIB}/cryptography/hazmat/bindings/openssl/ecdsa.py
${PYSITELIB}/cryptography/hazmat/bindings/openssl/ecdsa.pyc
${PYSITELIB}/cryptography/hazmat/bindings/openssl/ecdsa.pyo
${PYSITELIB}/cryptography/hazmat/bindings/openssl/engine.py
${PYSITELIB}/cryptography/hazmat/bindings/openssl/engine.pyc
${PYSITELIB}/cryptography/hazmat/bindings/openssl/engine.pyo
@@ -143,6 +212,9 @@ ${PYSITELIB}/cryptography/hazmat/bindings/openssl/ssl.pyo
${PYSITELIB}/cryptography/hazmat/bindings/openssl/x509.py
${PYSITELIB}/cryptography/hazmat/bindings/openssl/x509.pyc
${PYSITELIB}/cryptography/hazmat/bindings/openssl/x509.pyo
${PYSITELIB}/cryptography/hazmat/bindings/openssl/x509_vfy.py
${PYSITELIB}/cryptography/hazmat/bindings/openssl/x509_vfy.pyc
${PYSITELIB}/cryptography/hazmat/bindings/openssl/x509_vfy.pyo
${PYSITELIB}/cryptography/hazmat/bindings/openssl/x509name.py
${PYSITELIB}/cryptography/hazmat/bindings/openssl/x509name.pyc
${PYSITELIB}/cryptography/hazmat/bindings/openssl/x509name.pyo
@@ -158,9 +230,24 @@ ${PYSITELIB}/cryptography/hazmat/primitives/__init__.pyo
${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/__init__.py
${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/__init__.pyc
${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/__init__.pyo
${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/dh.py
${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/dh.pyc
${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/dh.pyo
${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/dsa.py
${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/dsa.pyc
${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/dsa.pyo
${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/ec.py
${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/ec.pyc
${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/ec.pyo
${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/padding.py
${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/padding.pyc
${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/padding.pyo
${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/rsa.py
${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/rsa.pyc
${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/rsa.pyo
${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/utils.py
${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/utils.pyc
${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/utils.pyo
${PYSITELIB}/cryptography/hazmat/primitives/ciphers/__init__.py
${PYSITELIB}/cryptography/hazmat/primitives/ciphers/__init__.pyc
${PYSITELIB}/cryptography/hazmat/primitives/ciphers/__init__.pyo
@@ -173,6 +260,9 @@ ${PYSITELIB}/cryptography/hazmat/primitives/ciphers/base.pyo
${PYSITELIB}/cryptography/hazmat/primitives/ciphers/modes.py
${PYSITELIB}/cryptography/hazmat/primitives/ciphers/modes.pyc
${PYSITELIB}/cryptography/hazmat/primitives/ciphers/modes.pyo
${PYSITELIB}/cryptography/hazmat/primitives/cmac.py
${PYSITELIB}/cryptography/hazmat/primitives/cmac.pyc
${PYSITELIB}/cryptography/hazmat/primitives/cmac.pyo
${PYSITELIB}/cryptography/hazmat/primitives/constant_time.py
${PYSITELIB}/cryptography/hazmat/primitives/constant_time.pyc
${PYSITELIB}/cryptography/hazmat/primitives/constant_time.pyo
@@ -182,9 +272,9 @@ ${PYSITELIB}/cryptography/hazmat/primitives/hashes.pyo
${PYSITELIB}/cryptography/hazmat/primitives/hmac.py
${PYSITELIB}/cryptography/hazmat/primitives/hmac.pyc
${PYSITELIB}/cryptography/hazmat/primitives/hmac.pyo
${PYSITELIB}/cryptography/hazmat/primitives/interfaces.py
${PYSITELIB}/cryptography/hazmat/primitives/interfaces.pyc
${PYSITELIB}/cryptography/hazmat/primitives/interfaces.pyo
${PYSITELIB}/cryptography/hazmat/primitives/interfaces/__init__.py
${PYSITELIB}/cryptography/hazmat/primitives/interfaces/__init__.pyc
${PYSITELIB}/cryptography/hazmat/primitives/interfaces/__init__.pyo
${PYSITELIB}/cryptography/hazmat/primitives/kdf/__init__.py
${PYSITELIB}/cryptography/hazmat/primitives/kdf/__init__.pyc
${PYSITELIB}/cryptography/hazmat/primitives/kdf/__init__.pyo
@@ -197,6 +287,26 @@ ${PYSITELIB}/cryptography/hazmat/primitives/kdf/pbkdf2.pyo
${PYSITELIB}/cryptography/hazmat/primitives/padding.py
${PYSITELIB}/cryptography/hazmat/primitives/padding.pyc
${PYSITELIB}/cryptography/hazmat/primitives/padding.pyo
${PYSITELIB}/cryptography/hazmat/primitives/serialization.py
${PYSITELIB}/cryptography/hazmat/primitives/serialization.pyc
${PYSITELIB}/cryptography/hazmat/primitives/serialization.pyo
${PYSITELIB}/cryptography/hazmat/primitives/src/constant_time.c
${PYSITELIB}/cryptography/hazmat/primitives/src/constant_time.h
${PYSITELIB}/cryptography/hazmat/primitives/src/padding.c
${PYSITELIB}/cryptography/hazmat/primitives/src/padding.h
${PYSITELIB}/cryptography/hazmat/primitives/twofactor/__init__.py
${PYSITELIB}/cryptography/hazmat/primitives/twofactor/__init__.pyc
${PYSITELIB}/cryptography/hazmat/primitives/twofactor/__init__.pyo
${PYSITELIB}/cryptography/hazmat/primitives/twofactor/hotp.py
${PYSITELIB}/cryptography/hazmat/primitives/twofactor/hotp.pyc
${PYSITELIB}/cryptography/hazmat/primitives/twofactor/hotp.pyo
${PYSITELIB}/cryptography/hazmat/primitives/twofactor/totp.py
${PYSITELIB}/cryptography/hazmat/primitives/twofactor/totp.pyc
${PYSITELIB}/cryptography/hazmat/primitives/twofactor/totp.pyo
${PYSITELIB}/cryptography/padding.so
${PYSITELIB}/cryptography/utils.py
${PYSITELIB}/cryptography/utils.pyc
${PYSITELIB}/cryptography/utils.pyo
${PYSITELIB}/cryptography/x509.py
${PYSITELIB}/cryptography/x509.pyc
${PYSITELIB}/cryptography/x509.pyo
+7 -9
View File
@@ -1,10 +1,8 @@
$NetBSD: distinfo,v 1.4 2014/03/21 22:04:19 wiz Exp $
$NetBSD: distinfo,v 1.13 2015/03/15 21:10:16 wiz Exp $
SHA1 (cryptography-0.2.2.tar.gz) = 578e6a4cae6e24ecfa7069e1924ca99bd3c7d3ba
RMD160 (cryptography-0.2.2.tar.gz) = 8203428fbef935cafe897ae0878ac7e482781211
Size (cryptography-0.2.2.tar.gz) = 13772494 bytes
SHA1 (patch-cryptography_____init____.py) = 540544faa803a1b07d8d4cedec164622601f5550
SHA1 (patch-cryptography_hazmat_bindings_openssl_ssl.py) = f599f85c9b4e344cc9cd5d97a5a94ee9e5bcb9a9
SHA1 (patch-cryptography_hazmat_bindings_utils.py) = ca5d740e397c5d49eb6934a4e94009866cef20ef
SHA1 (patch-cryptography_hazmat_primitives_constant__time.py) = 75a2a83930917059ad6e4dac14fcae0c7585d426
SHA1 (patch-cryptography_hazmat_primitives_padding.py) = 7c8b367c95a76f769e641587118d75597e3ce552
SHA1 (cryptography-0.8.tar.gz) = 2b901c5e07bde4e4dcb2768994e84440980eb80d
RMD160 (cryptography-0.8.tar.gz) = d2c0d15b645f0eca6007e17b34a9b5d9fa7f1343
Size (cryptography-0.8.tar.gz) = 268083 bytes
SHA1 (patch-src_cryptography_hazmat_bindings_utils.py) = 1dbe88db3f1af4dd1b5836d9f353223d532d79bb
SHA1 (patch-src_cryptography_hazmat_primitives_constant__time.py) = dae1d27d76589a0f1f4236e4b8a311bb44c43185
SHA1 (patch-src_cryptography_hazmat_primitives_padding.py) = 26320f2a5c8a756476e4e61a136adf79a2d3d3d1
@@ -1,16 +0,0 @@
$NetBSD: patch-cryptography_____init____.py,v 1.1 2014/03/21 22:04:19 wiz Exp $
Fix use with python-2.x.
--- cryptography/__init__.py.orig 2014-03-04 00:51:26.000000000 +0000
+++ cryptography/__init__.py
@@ -10,6 +10,9 @@
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
+
+from __future__ import absolute_import, division, print_function
+
from cryptography.__about__ import (
__title__, __summary__, __uri__, __version__, __author__, __email__,
__license__, __copyright__
@@ -1,48 +0,0 @@
$NetBSD: patch-cryptography_hazmat_bindings_openssl_ssl.py,v 1.1 2014/03/21 15:14:21 wiz Exp $
Fixes linkage on NetBSD-current up to the version that has openssl fixed
to include d1_meth.c.
Based on upstream patch from
https://gist.github.com/reaperhulk/5e4d3d30ac1598473206
--- cryptography/hazmat/bindings/openssl/ssl.py.orig 2014-03-04 01:53:14.000000000 +0000
+++ cryptography/hazmat/bindings/openssl/ssl.py
@@ -37,6 +37,7 @@ static const int Cryptography_HAS_RELEAS
static const int Cryptography_HAS_OP_NO_COMPRESSION;
static const int Cryptography_HAS_SSL_OP_MSIE_SSLV2_RSA_PADDING;
+static const long Cryptography_HAS_NETBSD_D1_METH;
static const int SSL_FILETYPE_PEM;
static const int SSL_FILETYPE_ASN1;
@@ -365,6 +366,19 @@ const long SSL_OP_MSIE_SSLV2_RSA_PADDING
#ifdef OPENSSL_NO_EC
long (*SSL_CTX_set_tmp_ecdh)(SSL_CTX *, EC_KEY *) = NULL;
#endif
+
+// NetBSD shipped without including d1_meth.c. Sad trombone.
+#ifdef __NetBSD__
+# include <sys/param.h>
+# if (__NetBSD_Version__ < 699003800)
+static const long Cryptography_HAS_NETBSD_D1_METH = 0;
+const SSL_METHOD* DTLSv1_method(void) { return NULL; };
+# else
+static const long Cryptography_HAS_NETBSD_D1_METH = 1;
+# endif
+#else
+static const long Cryptography_HAS_NETBSD_D1_METH = 1;
+#endif
"""
CONDITIONAL_NAMES = {
@@ -408,5 +422,9 @@ CONDITIONAL_NAMES = {
"Cryptography_HAS_EC": [
"SSL_CTX_set_tmp_ecdh",
- ]
+ ],
+
+ "Cryptography_HAS_NETBSD_D1_METH": [
+ "DTLSv1_method",
+ ],
}
@@ -1,14 +0,0 @@
$NetBSD: patch-cryptography_hazmat_bindings_utils.py,v 1.1 2014/03/21 14:02:45 wiz Exp $
Fix soname so cffi doesn't invent one for each python version + platform.
--- cryptography/hazmat/bindings/utils.py.orig 2014-03-04 00:51:26.000000000 +0000
+++ cryptography/hazmat/bindings/utils.py
@@ -69,6 +69,7 @@ def build_ffi(module_prefix, modules, pr
customizations
),
libraries=libraries,
+ modulename=module_name,
ext_package="cryptography",
)
@@ -1,14 +0,0 @@
$NetBSD: patch-cryptography_hazmat_primitives_constant__time.py,v 1.1 2014/03/21 14:02:45 wiz Exp $
Fix soname so cffi doesn't invent one for each python version + platform.
--- cryptography/hazmat/primitives/constant_time.py.orig 2014-03-04 00:51:26.000000000 +0000
+++ cryptography/hazmat/primitives/constant_time.py
@@ -45,6 +45,7 @@ uint8_t Cryptography_constant_time_bytes
}
""",
ext_package="cryptography",
+ modulename="constanttime",
)
@@ -1,14 +0,0 @@
$NetBSD: patch-cryptography_hazmat_primitives_padding.py,v 1.1 2014/03/21 14:02:45 wiz Exp $
Fix soname so cffi doesn't invent one for each python version + platform.
--- cryptography/hazmat/primitives/padding.py.orig 2014-03-04 00:51:26.000000000 +0000
+++ cryptography/hazmat/primitives/padding.py
@@ -62,6 +62,7 @@ uint8_t Cryptography_check_pkcs7_padding
}
""",
ext_package="cryptography",
+ modulename="checkpkcs7padding",
)
@@ -0,0 +1,32 @@
$NetBSD: patch-src_cryptography_hazmat_bindings_utils.py,v 1.1 2015/01/03 16:00:55 wiz Exp $
Fix soname so cffi doesn't invent one for each python version + platform.
--- src/cryptography/hazmat/bindings/utils.py.orig 2014-12-29 01:46:47.000000000 +0000
+++ src/cryptography/hazmat/bindings/utils.py
@@ -93,6 +93,7 @@ def build_ffi_for_binding(module_prefix,
cdef_source="\n".join(types + functions + macros),
verify_source=verify_source,
libraries=libraries,
+ module_name=module_name,
extra_compile_args=extra_compile_args,
extra_link_args=extra_link_args,
)
@@ -100,7 +101,7 @@ def build_ffi_for_binding(module_prefix,
return ffi
-def build_ffi(cdef_source, verify_source, libraries=[], extra_compile_args=[],
+def build_ffi(cdef_source, verify_source, module_name, libraries=[], extra_compile_args=[],
extra_link_args=[]):
ffi = FFI()
ffi.cdef(cdef_source)
@@ -109,7 +110,7 @@ def build_ffi(cdef_source, verify_source
ffi,
verify_source,
tmpdir='',
- modulename=_create_modulename(cdef_source, verify_source, sys.version),
+ modulename=module_name,
libraries=libraries,
ext_package="cryptography",
extra_compile_args=extra_compile_args,
@@ -0,0 +1,15 @@
$NetBSD: patch-src_cryptography_hazmat_primitives_constant__time.py,v 1.1 2015/01/03 16:00:55 wiz Exp $
Fix soname so cffi doesn't invent one for each python version + platform.
--- src/cryptography/hazmat/primitives/constant_time.py.orig 2014-12-29 01:46:47.000000000 +0000
+++ src/cryptography/hazmat/primitives/constant_time.py
@@ -17,7 +17,7 @@ with open(os.path.join(os.path.dirname(_
FUNCTIONS = f.read()
-_ffi = build_ffi(cdef_source=TYPES, verify_source=FUNCTIONS)
+_ffi = build_ffi(cdef_source=TYPES, verify_source=FUNCTIONS, module_name='constanttime')
_lib = LazyLibrary(_ffi)
@@ -0,0 +1,15 @@
$NetBSD: patch-src_cryptography_hazmat_primitives_padding.py,v 1.2 2015/03/15 21:10:16 wiz Exp $
Fix soname so cffi doesn't invent one for each python version + platform.
--- src/cryptography/hazmat/primitives/padding.py.orig 2015-03-09 04:49:14.000000000 +0000
+++ src/cryptography/hazmat/primitives/padding.py
@@ -22,7 +22,7 @@ with open(os.path.join(os.path.dirname(_
FUNCTIONS = f.read()
-_ffi = build_ffi(cdef_source=TYPES, verify_source=FUNCTIONS)
+_ffi = build_ffi(cdef_source=TYPES, verify_source=FUNCTIONS, module_name='padding')
_lib = LazyLibrary(_ffi)