[Midnightbsd-cvs] mports [21913] trunk/security: add python security ports
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Wed Sep 28 22:05:37 EDT 2016
Revision: 21913
http://svnweb.midnightbsd.org/mports/?rev=21913
Author: laffer1
Date: 2016-09-28 22:05:37 -0400 (Wed, 28 Sep 2016)
Log Message:
-----------
add python security ports
Modified Paths:
--------------
trunk/security/Makefile
Added Paths:
-----------
trunk/security/py-cryptography/
trunk/security/py-cryptography/Makefile
trunk/security/py-cryptography/distinfo
trunk/security/py-cryptography/files/
trunk/security/py-cryptography/files/patch-src___cffi__src_openssl_ec.py
trunk/security/py-cryptography/pkg-descr
trunk/security/py-openssl/
trunk/security/py-openssl/Makefile
trunk/security/py-openssl/distinfo
trunk/security/py-openssl/pkg-descr
Modified: trunk/security/Makefile
===================================================================
--- trunk/security/Makefile 2016-09-29 01:58:27 UTC (rev 21912)
+++ trunk/security/Makefile 2016-09-29 02:05:37 UTC (rev 21913)
@@ -109,8 +109,10 @@
SUBDIR += pinentry-gnome3
SUBDIR += pinentry-tty
SUBDIR += polarssl
+SUBDIR += py-cryptography
SUBDIR += py-ecdsa
SUBDIR += py-fail2ban
+SUBDIR += py-openssl
SUBDIR += py-paramiko
SUBDIR += py-pycrypto
SUBDIR += py-rsa
Added: trunk/security/py-cryptography/Makefile
===================================================================
--- trunk/security/py-cryptography/Makefile (rev 0)
+++ trunk/security/py-cryptography/Makefile 2016-09-29 02:05:37 UTC (rev 21913)
@@ -0,0 +1,47 @@
+# $MidnightBSD$
+# $FreeBSD: head/security/py-cryptography/Makefile 420137 2016-08-12 16:58:34Z swills $
+
+PORTNAME= cryptography
+PORTVERSION= 1.4
+CATEGORIES= security python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= ports at MidnightBSD.org
+COMMENT= Cryptographic recipes and primitives for Python developers
+
+LICENSE= apache2
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.4.1:${PORTSDIR}/devel/py-cffi
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>=1.4.1:${PORTSDIR}/devel/py-six \
+ ${PYTHON_PKGNAMEPREFIX}pyasn1>=0.1.8:${PORTSDIR}/devel/py-pyasn1 \
+ ${PYTHON_PKGNAMEPREFIX}cffi>=1.1.0:${PORTSDIR}/devel/py-cffi \
+ ${PYTHON_PKGNAMEPREFIX}idna>=2.0:${PORTSDIR}/dns/py-idna
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:${PORTSDIR}/devel/py-pytest \
+ ${PYTHON_PKGNAMEPREFIX}iso8601>0:${PORTSDIR}/devel/py-iso8601
+
+USES= python
+USE_OPENSSL= yes
+USE_PYTHON= autoplist distutils
+
+CFLAGS+= -I${OPENSSLINC}
+LDFLAGS+= -L${OPENSSLLIB}
+
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 3300
+RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}ipaddress>0:${PORTSDIR}/net/py-ipaddress
+.endif
+
+.if ${PYTHON_REL} < 3400
+RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}enum34>0:${PORTSDIR}/devel/py-enum34
+.endif
+
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/cryptography/hazmat/bindings/*.so
+
+do-test:
+ @cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
+
+.include <bsd.port.post.mk>
Property changes on: trunk/security/py-cryptography/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/security/py-cryptography/distinfo
===================================================================
--- trunk/security/py-cryptography/distinfo (rev 0)
+++ trunk/security/py-cryptography/distinfo 2016-09-29 02:05:37 UTC (rev 21913)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1471010865
+SHA256 (cryptography-1.4.tar.gz) = bb149540ed90c4b2171bf694fe6991d6331bc149ae623c8ff419324f4222d128
+SIZE (cryptography-1.4.tar.gz) = 399707
Property changes on: trunk/security/py-cryptography/distinfo
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/security/py-cryptography/files/patch-src___cffi__src_openssl_ec.py
===================================================================
--- trunk/security/py-cryptography/files/patch-src___cffi__src_openssl_ec.py (rev 0)
+++ trunk/security/py-cryptography/files/patch-src___cffi__src_openssl_ec.py 2016-09-29 02:05:37 UTC (rev 21913)
@@ -0,0 +1,12 @@
+--- src/_cffi_src/openssl/ec.py.orig 2016-06-04 17:06:01 UTC
++++ src/_cffi_src/openssl/ec.py
+@@ -371,7 +371,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;
Property changes on: trunk/security/py-cryptography/files/patch-src___cffi__src_openssl_ec.py
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/security/py-cryptography/pkg-descr
===================================================================
--- trunk/security/py-cryptography/pkg-descr (rev 0)
+++ trunk/security/py-cryptography/pkg-descr 2016-09-29 02:05:37 UTC (rev 21913)
@@ -0,0 +1,9 @@
+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". It supports Python 2.6-2.7, Python 3.2+, and PyPy.
+
+cryptography includes both high level recipes, and low level interfaces to
+common cryptographic algorithms such as symmetric ciphers, message digests
+and key derivation functions.
+
+WWW: http://github.com/pyca/cryptography/
Property changes on: trunk/security/py-cryptography/pkg-descr
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/security/py-openssl/Makefile
===================================================================
--- trunk/security/py-openssl/Makefile (rev 0)
+++ trunk/security/py-openssl/Makefile 2016-09-29 02:05:37 UTC (rev 21913)
@@ -0,0 +1,37 @@
+# $MidnightBSD$
+# $FreeBSD: head/security/py-openssl/Makefile 413233 2016-04-13 22:45:29Z sbz $
+
+PORTNAME= openssl
+PORTVERSION= 16.0.0
+CATEGORIES= security python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= pyOpenSSL-${PORTVERSION}
+
+MAINTAINER= ports at MidnightBSD.org
+COMMENT= Python interface to the OpenSSL library
+
+LICENSE= apache2
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cryptography>=0.2.1:${PORTSDIR}/security/py-cryptography \
+ ${PYTHON_PKGNAMEPREFIX}six>=1.5.2:${PORTSDIR}/devel/py-six
+
+OPTIONS_DEFINE= EXAMPLES
+
+USES= cpe python
+USE_PYTHON= autoplist concurrent distutils pythonprefix
+
+CPE_VENDOR= jean-paul_calderone
+CPE_PRODUCT= py${PORTNAME}
+
+EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
+PORTEXAMPLES= *
+
+post-install:
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ (cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
+
+regression-test: build
+ @(cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test)
+
+.include <bsd.port.mk>
Property changes on: trunk/security/py-openssl/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/security/py-openssl/distinfo
===================================================================
--- trunk/security/py-openssl/distinfo (rev 0)
+++ trunk/security/py-openssl/distinfo 2016-09-29 02:05:37 UTC (rev 21913)
@@ -0,0 +1,2 @@
+SHA256 (pyOpenSSL-16.0.0.tar.gz) = 363d10ee43d062285facf4e465f4f5163f9f702f9134f0a5896f134cbb92d17d
+SIZE (pyOpenSSL-16.0.0.tar.gz) = 171929
Property changes on: trunk/security/py-openssl/distinfo
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/security/py-openssl/pkg-descr
===================================================================
--- trunk/security/py-openssl/pkg-descr (rev 0)
+++ trunk/security/py-openssl/pkg-descr 2016-09-29 02:05:37 UTC (rev 21913)
@@ -0,0 +1,3 @@
+Python interface to the OpenSSL library
+
+WWW: https://github.com/pyca/pyopenssl
Property changes on: trunk/security/py-openssl/pkg-descr
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
More information about the Midnightbsd-cvs
mailing list