summaryrefslogtreecommitdiff
path: root/security/py-SSLCrypto
diff options
context:
space:
mode:
authoragc <agc>2007-05-05 00:03:54 +0000
committeragc <agc>2007-05-05 00:03:54 +0000
commit3eeb87bba0560f44a90649fad4085830451f1581 (patch)
treeec1bca5ffe8c47af90c0b120a6a0ec41100940af /security/py-SSLCrypto
parent297e26947580a8a2f128086b1cd3d80be5c805a2 (diff)
downloadpkgsrc-3eeb87bba0560f44a90649fad4085830451f1581.tar.gz
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 (limited to 'security/py-SSLCrypto')
-rw-r--r--security/py-SSLCrypto/DESCR18
-rw-r--r--security/py-SSLCrypto/Makefile28
-rw-r--r--security/py-SSLCrypto/PLIST2
-rw-r--r--security/py-SSLCrypto/buildlink3.mk21
-rw-r--r--security/py-SSLCrypto/distinfo5
5 files changed, 74 insertions, 0 deletions
diff --git a/security/py-SSLCrypto/DESCR b/security/py-SSLCrypto/DESCR
new file mode 100644
index 00000000000..f15834802f0
--- /dev/null
+++ b/security/py-SSLCrypto/DESCR
@@ -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 --git a/security/py-SSLCrypto/Makefile b/security/py-SSLCrypto/Makefile
new file mode 100644
index 00000000000..3b7cf3a137f
--- /dev/null
+++ b/security/py-SSLCrypto/Makefile
@@ -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
+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 --git a/security/py-SSLCrypto/PLIST b/security/py-SSLCrypto/PLIST
new file mode 100644
index 00000000000..b809b2fa4d7
--- /dev/null
+++ b/security/py-SSLCrypto/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2007/05/05 00:03:54 agc Exp $
+${PYSITELIB}/SSLCrypto.so
diff --git a/security/py-SSLCrypto/buildlink3.mk b/security/py-SSLCrypto/buildlink3.mk
new file mode 100644
index 00000000000..13864701dcc
--- /dev/null
+++ b/security/py-SSLCrypto/buildlink3.mk
@@ -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 --git a/security/py-SSLCrypto/distinfo b/security/py-SSLCrypto/distinfo
new file mode 100644
index 00000000000..5371b595098
--- /dev/null
+++ b/security/py-SSLCrypto/distinfo
@@ -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