pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/py-SSLCrypto Initial import of py-SSLCrypto-0...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c11753942604
branches:  trunk
changeset: 528477:c11753942604
user:      agc <agc%pkgsrc.org@localhost>
date:      Sat May 05 00:03:54 2007 +0000

description:
Initial import of py-SSLCrypto-0.1.1 into the Packages Collection.

        SSLCrypto is a package for Python that dramatically eases the task of
        adding encryption to Python programs.

        It provides a unified API that is almost totally compatible with that
        of ezPyCrypto, except that it takes advantage of the OpenSSL Crypto
        Library to deliver massive improvements in speed and security.

        After using ezPyCrypto myself, I found that while it performed ok with
        smaller public key sizes, it proved impossibly slow with larger keys.
        This slowness, resulting from non-optimal code in its backend (the
        Python Cryptography Toolkit) meant that on a 1.5 GHz Athlon XP, it was
        taking several minutes to generate 4096-bit keys.  Completely
        unacceptable if you need real security.

        Performance is absolutely critical for an encryption API.  If slowness
        deters people from using adequate-sized keys, security will be
        severely compromised, almost to the extent that there's little point
        in using encryption in the first place.

diffstat:

 security/py-SSLCrypto/DESCR         |  18 ++++++++++++++++++
 security/py-SSLCrypto/Makefile      |  28 ++++++++++++++++++++++++++++
 security/py-SSLCrypto/PLIST         |   2 ++
 security/py-SSLCrypto/buildlink3.mk |  21 +++++++++++++++++++++
 security/py-SSLCrypto/distinfo      |   5 +++++
 5 files changed, 74 insertions(+), 0 deletions(-)

diffs (94 lines):

diff -r ce4edd5badbc -r c11753942604 security/py-SSLCrypto/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/py-SSLCrypto/DESCR       Sat May 05 00:03:54 2007 +0000
@@ -0,0 +1,18 @@
+SSLCrypto is a package for Python that dramatically eases the task of
+adding encryption to Python programs.
+
+It provides a unified API that is almost totally compatible with that
+of ezPyCrypto, except that it takes advantage of the OpenSSL Crypto
+Library to deliver massive improvements in speed and security.
+
+After using ezPyCrypto myself, I found that while it performed ok with
+smaller public key sizes, it proved impossibly slow with larger keys.
+This slowness, resulting from non-optimal code in its backend (the
+Python Cryptography Toolkit) meant that on a 1.5 GHz Athlon XP, it was
+taking several minutes to generate 4096-bit keys.  Completely
+unacceptable if you need real security.
+
+Performance is absolutely critical for an encryption API.  If slowness
+deters people from using adequate-sized keys, security will be
+severely compromised, almost to the extent that there's little point
+in using encryption in the first place.
diff -r ce4edd5badbc -r c11753942604 security/py-SSLCrypto/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/py-SSLCrypto/Makefile    Sat May 05 00:03:54 2007 +0000
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/05/05 00:03:54 agc Exp $
+#
+
+DISTNAME=      SSLCrypto-0.1.1
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=    security python
+MASTER_SITES=  http://www.freenet.org.nz/python/SSLCrypto/
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      http://www.freenet.org.nz/python/SSLCrypto/
+COMMENT=       Python bindings for openssl
+
+DEPENDS+=      py24-pyrex>=0.9.4.1:../../lang/py-pyrex
+
+PYTHON_VERSIONS_ACCEPTED=      24
+
+PLIST_SUBST+=          PYSITELIB=${PYSITELIB:Q}
+
+do-build:
+       cd ${WRKSRC} && ${PYTHONBIN} setup.py build
+
+do-install:
+       cd ${WRKSRC} && ${PYTHONBIN} setup.py install
+
+.include "../../lang/python/application.mk"
+.include "../../security/openssl/buildlink3.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff -r ce4edd5badbc -r c11753942604 security/py-SSLCrypto/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/py-SSLCrypto/PLIST       Sat May 05 00:03:54 2007 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2007/05/05 00:03:54 agc Exp $
+${PYSITELIB}/SSLCrypto.so
diff -r ce4edd5badbc -r c11753942604 security/py-SSLCrypto/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/py-SSLCrypto/buildlink3.mk       Sat May 05 00:03:54 2007 +0000
@@ -0,0 +1,21 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2007/05/05 00:03:54 agc Exp $
+
+BUILDLINK_DEPTH:=              ${BUILDLINK_DEPTH}+
+PY24_SSLCRYPTO_BUILDLINK3_MK:= ${PY24_SSLCRYPTO_BUILDLINK3_MK}+
+
+.if ${BUILDLINK_DEPTH} == "+"
+BUILDLINK_DEPENDS+=    py24-SSLCrypto
+.endif
+
+BUILDLINK_PACKAGES:=   ${BUILDLINK_PACKAGES:Npy24-SSLCrypto}
+BUILDLINK_PACKAGES+=   py24-SSLCrypto
+BUILDLINK_ORDER:=      ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}py24-SSLCrypto
+
+.if ${PY24_SSLCRYPTO_BUILDLINK3_MK} == "+"
+BUILDLINK_API_DEPENDS.py24-SSLCrypto+= py24-SSLCrypto>=0.1.1
+BUILDLINK_PKGSRCDIR.py24-SSLCrypto?=   ../../security/py-SSLCrypto
+.endif # PY24_SSLCRYPTO_BUILDLINK3_MK
+
+#.include "../../security/openssl/buildlink3.mk"
+
+BUILDLINK_DEPTH:=              ${BUILDLINK_DEPTH:S/+$//}
diff -r ce4edd5badbc -r c11753942604 security/py-SSLCrypto/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/py-SSLCrypto/distinfo    Sat May 05 00:03:54 2007 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2007/05/05 00:03:54 agc Exp $
+
+SHA1 (SSLCrypto-0.1.1.tar.gz) = 3e33e86ed6ad0db5546f53d6809008398d7b8ae5
+RMD160 (SSLCrypto-0.1.1.tar.gz) = c2dfaaed00105ff0d039cda3b1a2f19cca556632
+Size (SSLCrypto-0.1.1.tar.gz) = 141376 bytes



Home | Main Index | Thread Index | Old Index