pkgsrc/security/py-crypto/Makefile
gls 863ba719f6 Update py-crypto to version 2.3
pkgsrc changes:
 - add a patch to fix an hardcoded interpreter path
 - add a patch to actually find gmp library.
 - add CONFLICTS with py-amkCrypto, both have files in common.

upstream changes:

2.3
===
* Fix NameError when attempting to use deprecated getRandomNumber()
function.
* _slowmath: Compute RSA u parameter when it's not given to
RSA.construct. This makes _slowmath behave the same as _fastmath in
this regard.
* Make RSA.generate raise a more user-friendly exception message when
the user tries to generate a bogus-length key.

2.2
===
* Deprecated Crypto.Util.number.getRandomNumber(), which had confusing
semantics.  It's been replaced by getRandomNBitInteger and
getRandomInteger.  (Thanks: Lorenz Quack)
* Better isPrime() and getPrime() implementations that do a real
Rabin-Miller probabilistic primality test (not the phony test we did
before with fixed bases).  (Thanks: Lorenz Quack)
* getStrongPrime() implementation for generating RSA primes.
(Thanks: Lorenz Quack)
* Support for importing and exporting RSA keys in DER and PEM format
(Thanks: Legrandin)
* Fix PyCrypto when floor division (python -Qnew) is enabled.
* When building using gcc, use -std=c99 for compilation.  This should
fix building on FreeBSD and NetBSD.
2010-12-05 17:13:09 +00:00

34 lines
1 KiB
Makefile

# $NetBSD: Makefile,v 1.20 2010/12/05 17:13:09 gls Exp $
#
DISTNAME= pycrypto-2.3
PKGNAME= ${PYPKGPREFIX}-crypto-2.3
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
# mostly public domain, but a few bits are:
LICENSE= python-software-foundation
CONFLICTS+= py-amkCrypto-[0-9]*
PKG_DESTDIR_SUPPORT= user-destdir
SUBST_CLASSES+= python
SUBST_STAGE.python= post-patch
SUBST_MESSAGE.python= Fix hardcoded paths
SUBST_FILES.python= lib/Crypto/Util/RFC1751.py
SUBST_SED.python= -e 's,@@PYTHON@@,${PYTHONBIN},'
SUBST_CLASSES+= libdir
SUBST_STAGE.libdir= post-patch
SUBST_MESSAGE.libdir= Fix hardcoded libraries directory paths
SUBST_FILES.libdir+= setup.py
SUBST_SED.libdir= -e 's,@@LIBDIR@@,${PREFIX}/lib,'
.include "../../devel/gmp/buildlink3.mk"
.include "../../lang/python/distutils.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"