Import of pkgsrc-2014Q1

This commit is contained in:
2014-04-17 16:38:45 +02:00
parent 785076ae39
commit 9a8c06dafb
19365 changed files with 828089 additions and 278039 deletions

View File

@@ -0,0 +1,7 @@
cryptography is a package designed to expose cryptographic recipes
and primitives to Python developers. Our goal is for it to be your
"cryptographic standard library".
cryptography includes both high level recipes, and low level
interfaces to common cryptographic algorithms such as symmetric
ciphers, message digests and key derivation functions.

View File

@@ -0,0 +1,25 @@
# $NetBSD: Makefile,v 1.5 2014/03/22 00:07:20 wiz Exp $
DISTNAME= cryptography-0.2.2
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
DEPENDS+= ${PYPKGPREFIX}-cffi>=0.8:../../devel/py-cffi
DEPENDS+= ${PYPKGPREFIX}-cparser>=2.10:../../devel/py-cparser
DEPENDS+= ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
BUILD_DEPENDS+= ${PYPKGPREFIX}-requests>=0.8:../../devel/py-requests
BUILD_DEPENDS+= ${PYPKGPREFIX}-test>=0.8:../../devel/py-test
do-test:
cd ${WRKSRC} && py.test-${PYVERSSUFFIX}
.include "../../lang/python/egg.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

View File

@@ -0,0 +1,202 @@
@comment $NetBSD: PLIST,v 1.2 2014/03/21 14:02:45 wiz Exp $
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
${PYSITELIB}/${EGG_INFODIR}/requires.txt
${PYSITELIB}/${EGG_INFODIR}/top_level.txt
${PYSITELIB}/cryptography/__about__.py
${PYSITELIB}/cryptography/__about__.pyc
${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
${PYSITELIB}/cryptography/exceptions.pyc
${PYSITELIB}/cryptography/exceptions.pyo
${PYSITELIB}/cryptography/fernet.py
${PYSITELIB}/cryptography/fernet.pyc
${PYSITELIB}/cryptography/fernet.pyo
${PYSITELIB}/cryptography/hazmat/__init__.py
${PYSITELIB}/cryptography/hazmat/__init__.pyc
${PYSITELIB}/cryptography/hazmat/__init__.pyo
${PYSITELIB}/cryptography/hazmat/backends/__init__.py
${PYSITELIB}/cryptography/hazmat/backends/__init__.pyc
${PYSITELIB}/cryptography/hazmat/backends/__init__.pyo
${PYSITELIB}/cryptography/hazmat/backends/commoncrypto/__init__.py
${PYSITELIB}/cryptography/hazmat/backends/commoncrypto/__init__.pyc
${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/interfaces.py
${PYSITELIB}/cryptography/hazmat/backends/interfaces.pyc
${PYSITELIB}/cryptography/hazmat/backends/interfaces.pyo
${PYSITELIB}/cryptography/hazmat/backends/multibackend.py
${PYSITELIB}/cryptography/hazmat/backends/multibackend.pyc
${PYSITELIB}/cryptography/hazmat/backends/multibackend.pyo
${PYSITELIB}/cryptography/hazmat/backends/openssl/__init__.py
${PYSITELIB}/cryptography/hazmat/backends/openssl/__init__.pyc
${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/bindings/__init__.py
${PYSITELIB}/cryptography/hazmat/bindings/__init__.pyc
${PYSITELIB}/cryptography/hazmat/bindings/__init__.pyo
${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/common_cryptor.py
${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/common_cryptor.pyc
${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/common_cryptor.pyo
${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/common_digest.py
${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/common_digest.pyc
${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/common_digest.pyo
${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/common_hmac.py
${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/common_hmac.pyc
${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/openssl/__init__.py
${PYSITELIB}/cryptography/hazmat/bindings/openssl/__init__.pyc
${PYSITELIB}/cryptography/hazmat/bindings/openssl/__init__.pyo
${PYSITELIB}/cryptography/hazmat/bindings/openssl/aes.py
${PYSITELIB}/cryptography/hazmat/bindings/openssl/aes.pyc
${PYSITELIB}/cryptography/hazmat/bindings/openssl/aes.pyo
${PYSITELIB}/cryptography/hazmat/bindings/openssl/asn1.py
${PYSITELIB}/cryptography/hazmat/bindings/openssl/asn1.pyc
${PYSITELIB}/cryptography/hazmat/bindings/openssl/asn1.pyo
${PYSITELIB}/cryptography/hazmat/bindings/openssl/bignum.py
${PYSITELIB}/cryptography/hazmat/bindings/openssl/bignum.pyc
${PYSITELIB}/cryptography/hazmat/bindings/openssl/bignum.pyo
${PYSITELIB}/cryptography/hazmat/bindings/openssl/binding.py
${PYSITELIB}/cryptography/hazmat/bindings/openssl/binding.pyc
${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/conf.py
${PYSITELIB}/cryptography/hazmat/bindings/openssl/conf.pyc
${PYSITELIB}/cryptography/hazmat/bindings/openssl/conf.pyo
${PYSITELIB}/cryptography/hazmat/bindings/openssl/crypto.py
${PYSITELIB}/cryptography/hazmat/bindings/openssl/crypto.pyc
${PYSITELIB}/cryptography/hazmat/bindings/openssl/crypto.pyo
${PYSITELIB}/cryptography/hazmat/bindings/openssl/dh.py
${PYSITELIB}/cryptography/hazmat/bindings/openssl/dh.pyc
${PYSITELIB}/cryptography/hazmat/bindings/openssl/dh.pyo
${PYSITELIB}/cryptography/hazmat/bindings/openssl/dsa.py
${PYSITELIB}/cryptography/hazmat/bindings/openssl/dsa.pyc
${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/engine.py
${PYSITELIB}/cryptography/hazmat/bindings/openssl/engine.pyc
${PYSITELIB}/cryptography/hazmat/bindings/openssl/engine.pyo
${PYSITELIB}/cryptography/hazmat/bindings/openssl/err.py
${PYSITELIB}/cryptography/hazmat/bindings/openssl/err.pyc
${PYSITELIB}/cryptography/hazmat/bindings/openssl/err.pyo
${PYSITELIB}/cryptography/hazmat/bindings/openssl/evp.py
${PYSITELIB}/cryptography/hazmat/bindings/openssl/evp.pyc
${PYSITELIB}/cryptography/hazmat/bindings/openssl/evp.pyo
${PYSITELIB}/cryptography/hazmat/bindings/openssl/hmac.py
${PYSITELIB}/cryptography/hazmat/bindings/openssl/hmac.pyc
${PYSITELIB}/cryptography/hazmat/bindings/openssl/hmac.pyo
${PYSITELIB}/cryptography/hazmat/bindings/openssl/nid.py
${PYSITELIB}/cryptography/hazmat/bindings/openssl/nid.pyc
${PYSITELIB}/cryptography/hazmat/bindings/openssl/nid.pyo
${PYSITELIB}/cryptography/hazmat/bindings/openssl/objects.py
${PYSITELIB}/cryptography/hazmat/bindings/openssl/objects.pyc
${PYSITELIB}/cryptography/hazmat/bindings/openssl/objects.pyo
${PYSITELIB}/cryptography/hazmat/bindings/openssl/opensslv.py
${PYSITELIB}/cryptography/hazmat/bindings/openssl/opensslv.pyc
${PYSITELIB}/cryptography/hazmat/bindings/openssl/opensslv.pyo
${PYSITELIB}/cryptography/hazmat/bindings/openssl/osrandom_engine.py
${PYSITELIB}/cryptography/hazmat/bindings/openssl/osrandom_engine.pyc
${PYSITELIB}/cryptography/hazmat/bindings/openssl/osrandom_engine.pyo
${PYSITELIB}/cryptography/hazmat/bindings/openssl/pem.py
${PYSITELIB}/cryptography/hazmat/bindings/openssl/pem.pyc
${PYSITELIB}/cryptography/hazmat/bindings/openssl/pem.pyo
${PYSITELIB}/cryptography/hazmat/bindings/openssl/pkcs12.py
${PYSITELIB}/cryptography/hazmat/bindings/openssl/pkcs12.pyc
${PYSITELIB}/cryptography/hazmat/bindings/openssl/pkcs12.pyo
${PYSITELIB}/cryptography/hazmat/bindings/openssl/pkcs7.py
${PYSITELIB}/cryptography/hazmat/bindings/openssl/pkcs7.pyc
${PYSITELIB}/cryptography/hazmat/bindings/openssl/pkcs7.pyo
${PYSITELIB}/cryptography/hazmat/bindings/openssl/rand.py
${PYSITELIB}/cryptography/hazmat/bindings/openssl/rand.pyc
${PYSITELIB}/cryptography/hazmat/bindings/openssl/rand.pyo
${PYSITELIB}/cryptography/hazmat/bindings/openssl/rsa.py
${PYSITELIB}/cryptography/hazmat/bindings/openssl/rsa.pyc
${PYSITELIB}/cryptography/hazmat/bindings/openssl/rsa.pyo
${PYSITELIB}/cryptography/hazmat/bindings/openssl/ssl.py
${PYSITELIB}/cryptography/hazmat/bindings/openssl/ssl.pyc
${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/x509name.py
${PYSITELIB}/cryptography/hazmat/bindings/openssl/x509name.pyc
${PYSITELIB}/cryptography/hazmat/bindings/openssl/x509name.pyo
${PYSITELIB}/cryptography/hazmat/bindings/openssl/x509v3.py
${PYSITELIB}/cryptography/hazmat/bindings/openssl/x509v3.pyc
${PYSITELIB}/cryptography/hazmat/bindings/openssl/x509v3.pyo
${PYSITELIB}/cryptography/hazmat/bindings/utils.py
${PYSITELIB}/cryptography/hazmat/bindings/utils.pyc
${PYSITELIB}/cryptography/hazmat/bindings/utils.pyo
${PYSITELIB}/cryptography/hazmat/primitives/__init__.py
${PYSITELIB}/cryptography/hazmat/primitives/__init__.pyc
${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/rsa.py
${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/rsa.pyc
${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/rsa.pyo
${PYSITELIB}/cryptography/hazmat/primitives/ciphers/__init__.py
${PYSITELIB}/cryptography/hazmat/primitives/ciphers/__init__.pyc
${PYSITELIB}/cryptography/hazmat/primitives/ciphers/__init__.pyo
${PYSITELIB}/cryptography/hazmat/primitives/ciphers/algorithms.py
${PYSITELIB}/cryptography/hazmat/primitives/ciphers/algorithms.pyc
${PYSITELIB}/cryptography/hazmat/primitives/ciphers/algorithms.pyo
${PYSITELIB}/cryptography/hazmat/primitives/ciphers/base.py
${PYSITELIB}/cryptography/hazmat/primitives/ciphers/base.pyc
${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/constant_time.py
${PYSITELIB}/cryptography/hazmat/primitives/constant_time.pyc
${PYSITELIB}/cryptography/hazmat/primitives/constant_time.pyo
${PYSITELIB}/cryptography/hazmat/primitives/hashes.py
${PYSITELIB}/cryptography/hazmat/primitives/hashes.pyc
${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/kdf/__init__.py
${PYSITELIB}/cryptography/hazmat/primitives/kdf/__init__.pyc
${PYSITELIB}/cryptography/hazmat/primitives/kdf/__init__.pyo
${PYSITELIB}/cryptography/hazmat/primitives/kdf/hkdf.py
${PYSITELIB}/cryptography/hazmat/primitives/kdf/hkdf.pyc
${PYSITELIB}/cryptography/hazmat/primitives/kdf/hkdf.pyo
${PYSITELIB}/cryptography/hazmat/primitives/kdf/pbkdf2.py
${PYSITELIB}/cryptography/hazmat/primitives/kdf/pbkdf2.pyc
${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/utils.py
${PYSITELIB}/cryptography/utils.pyc
${PYSITELIB}/cryptography/utils.pyo

View File

@@ -0,0 +1,10 @@
$NetBSD: distinfo,v 1.4 2014/03/21 22:04:19 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

View File

@@ -0,0 +1,16 @@
$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__

View File

@@ -0,0 +1,48 @@
$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",
+ ],
}

View File

@@ -0,0 +1,14 @@
$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",
)

View File

@@ -0,0 +1,14 @@
$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",
)

View File

@@ -0,0 +1,14 @@
$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",
)