summaryrefslogtreecommitdiff
path: root/security/py-amkCrypto
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2001-05-07 00:56:48 +0000
committerwiz <wiz@pkgsrc.org>2001-05-07 00:56:48 +0000
commite5cf129f6e3e232813727035db3a6c1324f8fa8f (patch)
tree2d4f3e65276003e2f36ef99fd85abf4157616c93 /security/py-amkCrypto
parent71476c2de71070626dec29625208ee1d2e15808d (diff)
downloadpkgsrc-e5cf129f6e3e232813727035db3a6c1324f8fa8f.tar.gz
Initial import of py-amkCrypto, crypto functions for python, to
replace security/py-crypto (which isn't python-2.0-ready, and failed the last dozen bulk builds for that reason). Some help provided by Ty Sarna -- thanks!
Diffstat (limited to 'security/py-amkCrypto')
-rw-r--r--security/py-amkCrypto/Makefile38
-rw-r--r--security/py-amkCrypto/distinfo5
-rw-r--r--security/py-amkCrypto/patches/patch-aa17
-rw-r--r--security/py-amkCrypto/pkg/DESCR3
-rw-r--r--security/py-amkCrypto/pkg/PLIST74
5 files changed, 137 insertions, 0 deletions
diff --git a/security/py-amkCrypto/Makefile b/security/py-amkCrypto/Makefile
new file mode 100644
index 00000000000..b88c1617a99
--- /dev/null
+++ b/security/py-amkCrypto/Makefile
@@ -0,0 +1,38 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/05/07 00:56:48 wiz Exp $
+#
+
+DISTNAME= amkCrypto-0.1.3
+PKGNAME= py-${DISTNAME}
+CATEGORIES= security
+MASTER_SITES= http://www.amk.ca/files/python/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://www.amk.ca/python/code/crypto.html
+COMMENT= cryptographic and hash functions for Python
+
+DEPENDS+= python-2.*:../../lang/python
+
+USE_SSL= YES
+PLIST_SRC= ${WRKDIR}/PLIST
+# we borrow py-Scientific's printpypath
+FILESDIR= ${.CURDIR}/../../math/py-Scientific/files
+MAKE_ENV+= SSLBASE="${SSLBASE}"
+
+do-configure:
+ ${SED} -e "s|/usr/local/ssl|${SSL_BASE}|g" \
+ ${WRKSRC}/setup.py > ${WRKSRC}/setup.py.tmp
+ ${MV} -f ${WRKSRC}/setup.py.tmp ${WRKSRC}/setup.py
+
+do-build:
+ cd ${WRKSRC} && ${LOCALBASE}/bin/python setup.py build
+
+post-build:
+ eval `${LOCALBASE}/bin/python ${FILESDIR}/printpypath.py` && \
+ ${SED} "s|PYINC|$${PYINC}|g;s|PYSITELIB|$${PYSITELIB}|g" \
+ ${PKGDIR}/PLIST >${PLIST_SRC}
+
+do-install:
+ cd ${WRKSRC} && ${LOCALBASE}/bin/python setup.py install
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/security/py-amkCrypto/distinfo b/security/py-amkCrypto/distinfo
new file mode 100644
index 00000000000..e33fd4ef94e
--- /dev/null
+++ b/security/py-amkCrypto/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2001/05/07 00:56:48 wiz Exp $
+
+SHA1 (amkCrypto-0.1.3.tgz) = aa50bc2df65dc21b50f7c2e801814a6f827738d1
+Size (amkCrypto-0.1.3.tgz) = 203870 bytes
+SHA1 (patch-aa) = 46fb8adcf355c0a001dce47720690245dafa4bf5
diff --git a/security/py-amkCrypto/patches/patch-aa b/security/py-amkCrypto/patches/patch-aa
new file mode 100644
index 00000000000..0ccfce5b141
--- /dev/null
+++ b/security/py-amkCrypto/patches/patch-aa
@@ -0,0 +1,17 @@
+$NetBSD: patch-aa,v 1.1.1.1 2001/05/07 00:56:48 wiz Exp $
+
+--- mxCrypto/Setup.orig Fri Jan 21 02:01:19 2000
++++ mxCrypto/Setup
+@@ -18,10 +18,10 @@
+ mxCrypto \
+ #
+ # SSLeay Libs:
+- -L/usr/local/ssl/lib -lcrypto \
++ -Wl,-R${SSLBASE} -L${SSLBASE}/lib -lcrypto \
+ #
+ # SSLeay Include files:
+- -I/usr/local/ssl/include \
++ -I${SSLBASE}/include \
+ #
+ # Some C++ compiler setups "forget" to link to the c++ libs (noteably
+ # on Solaris), so you might succeed in linking them in by hand:
diff --git a/security/py-amkCrypto/pkg/DESCR b/security/py-amkCrypto/pkg/DESCR
new file mode 100644
index 00000000000..886b4c6abbd
--- /dev/null
+++ b/security/py-amkCrypto/pkg/DESCR
@@ -0,0 +1,3 @@
+Python extensions using OpenSSL which contains hashing algorithms,
+chaffing/winnowing, random number generation, various utility modules,
+and several block encryption and digital signature algorithms.
diff --git a/security/py-amkCrypto/pkg/PLIST b/security/py-amkCrypto/pkg/PLIST
new file mode 100644
index 00000000000..86b9c95e51e
--- /dev/null
+++ b/security/py-amkCrypto/pkg/PLIST
@@ -0,0 +1,74 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2001/05/07 00:56:48 wiz Exp $
+PYSITELIB/Crypto/Cipher/ARC2.py
+PYSITELIB/Crypto/Cipher/ARC2.pyc
+PYSITELIB/Crypto/Cipher/ARC4.py
+PYSITELIB/Crypto/Cipher/ARC4.pyc
+PYSITELIB/Crypto/Cipher/Blowfish.py
+PYSITELIB/Crypto/Cipher/Blowfish.pyc
+PYSITELIB/Crypto/Cipher/CAST.py
+PYSITELIB/Crypto/Cipher/CAST.pyc
+PYSITELIB/Crypto/Cipher/DES.py
+PYSITELIB/Crypto/Cipher/DES.pyc
+PYSITELIB/Crypto/Cipher/DES3.py
+PYSITELIB/Crypto/Cipher/DES3.pyc
+PYSITELIB/Crypto/Cipher/IDEA.py
+PYSITELIB/Crypto/Cipher/IDEA.pyc
+PYSITELIB/Crypto/Cipher/RC5.py
+PYSITELIB/Crypto/Cipher/RC5.pyc
+PYSITELIB/Crypto/Cipher/__init__.py
+PYSITELIB/Crypto/Cipher/__init__.pyc
+PYSITELIB/Crypto/Ciphers.py
+PYSITELIB/Crypto/Ciphers.pyc
+PYSITELIB/Crypto/Hash/HMAC.py
+PYSITELIB/Crypto/Hash/HMAC.pyc
+PYSITELIB/Crypto/Hash/MD2.py
+PYSITELIB/Crypto/Hash/MD2.pyc
+PYSITELIB/Crypto/Hash/MD5.py
+PYSITELIB/Crypto/Hash/MD5.pyc
+PYSITELIB/Crypto/Hash/RIPEMD.py
+PYSITELIB/Crypto/Hash/RIPEMD.pyc
+PYSITELIB/Crypto/Hash/SHA.py
+PYSITELIB/Crypto/Hash/SHA.pyc
+PYSITELIB/Crypto/Hash/__init__.py
+PYSITELIB/Crypto/Hash/__init__.pyc
+PYSITELIB/Crypto/Hashes.py
+PYSITELIB/Crypto/Hashes.pyc
+PYSITELIB/Crypto/Protocol/AllOrNothing.py
+PYSITELIB/Crypto/Protocol/AllOrNothing.pyc
+PYSITELIB/Crypto/Protocol/__init__.py
+PYSITELIB/Crypto/Protocol/__init__.pyc
+PYSITELIB/Crypto/PublicKey/DSA.py
+PYSITELIB/Crypto/PublicKey/DSA.pyc
+PYSITELIB/Crypto/PublicKey/ElGamal.py
+PYSITELIB/Crypto/PublicKey/ElGamal.pyc
+PYSITELIB/Crypto/PublicKey/RSA.py
+PYSITELIB/Crypto/PublicKey/RSA.pyc
+PYSITELIB/Crypto/PublicKey/__init__.py
+PYSITELIB/Crypto/PublicKey/__init__.pyc
+PYSITELIB/Crypto/PublicKey/pubkey.py
+PYSITELIB/Crypto/PublicKey/pubkey.pyc
+PYSITELIB/Crypto/PublicKey/qNEW.py
+PYSITELIB/Crypto/PublicKey/qNEW.pyc
+PYSITELIB/Crypto/Util/RFC1751.py
+PYSITELIB/Crypto/Util/RFC1751.pyc
+PYSITELIB/Crypto/Util/__init__.py
+PYSITELIB/Crypto/Util/__init__.pyc
+PYSITELIB/Crypto/Util/number.py
+PYSITELIB/Crypto/Util/number.pyc
+PYSITELIB/Crypto/Util/randpool.py
+PYSITELIB/Crypto/Util/randpool.pyc
+PYSITELIB/Crypto/Util/test.py
+PYSITELIB/Crypto/Util/test.pyc
+PYSITELIB/Crypto/Util/testdata.py
+PYSITELIB/Crypto/Util/testdata.pyc
+PYSITELIB/Crypto/Utils.py
+PYSITELIB/Crypto/Utils.pyc
+PYSITELIB/Crypto/__init__.py
+PYSITELIB/Crypto/__init__.pyc
+PYSITELIB/Crypto/mxCrypto.so
+@dirrm PYSITELIB/Crypto/Util
+@dirrm PYSITELIB/Crypto/PublicKey
+@dirrm PYSITELIB/Crypto/Protocol
+@dirrm PYSITELIB/Crypto/Hash
+@dirrm PYSITELIB/Crypto/Cipher
+@dirrm PYSITELIB/Crypto