summaryrefslogtreecommitdiff
path: root/security/py-crypto
diff options
context:
space:
mode:
authorgdt <gdt>2010-07-22 19:34:11 +0000
committergdt <gdt>2010-07-22 19:34:11 +0000
commit5d4d4cc78926d1a3a1b0ebca07325b481d8ec235 (patch)
treed68bdb67255c2eb70a7f7727c6de9869d2db8b62 /security/py-crypto
parent05c546b0b107bd0fa27adc35d2b47f7fce384224 (diff)
downloadpkgsrc-5d4d4cc78926d1a3a1b0ebca07325b481d8ec235.tar.gz
Fix import; apparently importing a package that used to exist does not
go well.
Diffstat (limited to 'security/py-crypto')
-rw-r--r--security/py-crypto/Makefile20
-rw-r--r--security/py-crypto/distinfo6
-rw-r--r--security/py-crypto/patches/patch-ab20
3 files changed, 46 insertions, 0 deletions
diff --git a/security/py-crypto/Makefile b/security/py-crypto/Makefile
new file mode 100644
index 00000000000..89cfac6085d
--- /dev/null
+++ b/security/py-crypto/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.16 2010/07/22 19:34:11 gdt Exp $
+#
+
+DISTNAME= pycrypto-2.1.0
+PKGNAME= ${PYPKGPREFIX}-crypto-2.1.0
+CATEGORIES= security python
+MASTER_SITES= http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://www.dlitz.net/software/pycrypto/
+COMMENT= Cryptographic and hash functions for Python
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+PYDISTUTILSPKG= yes
+
+.include "../../devel/gmp/buildlink3.mk"
+.include "../../lang/python/extension.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/security/py-crypto/distinfo b/security/py-crypto/distinfo
new file mode 100644
index 00000000000..46f104f457d
--- /dev/null
+++ b/security/py-crypto/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.4 2010/07/22 19:34:11 gdt Exp $
+
+SHA1 (pycrypto-2.1.0.tar.gz) = b4baa1b5f349a7e5c497f4c7b4070c3f630519f8
+RMD160 (pycrypto-2.1.0.tar.gz) = 57589935b0aad4bee9008a840fda9b12c8e8c0f5
+Size (pycrypto-2.1.0.tar.gz) = 265388 bytes
+SHA1 (patch-ab) = 3a2839d62e5d7d26cf8128ca0ee34a8e86820ea7
diff --git a/security/py-crypto/patches/patch-ab b/security/py-crypto/patches/patch-ab
new file mode 100644
index 00000000000..0411b007613
--- /dev/null
+++ b/security/py-crypto/patches/patch-ab
@@ -0,0 +1,20 @@
+$NetBSD: patch-ab,v 1.3 2010/07/22 19:34:11 gdt Exp $
+
+Something in the build fails to detect that we have wchar.h. This
+change make it build on NetBSD; a better fix is welcome.
+
+--- src/libtom/tomcrypt_pk.h.orig 2009-12-13 20:39:29.000000000 +0000
++++ src/libtom/tomcrypt_pk.h
+@@ -495,12 +495,7 @@ int der_length_printable_string(const un
+ int der_printable_char_encode(int c);
+ int der_printable_value_decode(int v);
+
+-/* UTF-8 */
+-#if (defined(SIZE_MAX) || __STDC_VERSION__ >= 199901L || defined(WCHAR_MAX) || defined(_WCHAR_T) || defined(_WCHAR_T_DEFINED)) && !defined(LTC_NO_WCHAR)
+ #include <wchar.h>
+-#else
+-typedef ulong32 wchar_t;
+-#endif
+
+ int der_encode_utf8_string(const wchar_t *in, unsigned long inlen,
+ unsigned char *out, unsigned long *outlen);