diff options
Diffstat (limited to 'security')
-rw-r--r-- | security/py-crypto/Makefile | 49 | ||||
-rw-r--r-- | security/py-crypto/files/md5 | 3 | ||||
-rw-r--r-- | security/py-crypto/patches/patch-aa | 26 | ||||
-rw-r--r-- | security/py-crypto/patches/patch-ab | 17 | ||||
-rw-r--r-- | security/py-crypto/pkg/COMMENT | 1 | ||||
-rw-r--r-- | security/py-crypto/pkg/DESCR | 18 | ||||
-rw-r--r-- | security/py-crypto/pkg/PLIST | 45 |
7 files changed, 159 insertions, 0 deletions
diff --git a/security/py-crypto/Makefile b/security/py-crypto/Makefile new file mode 100644 index 00000000000..61d31fb3bb5 --- /dev/null +++ b/security/py-crypto/Makefile @@ -0,0 +1,49 @@ +# $NetBSD: Makefile,v 1.1 1998/08/07 14:50:49 tsarna Exp $ + +DISTNAME= pycrypt100 +PKGNAME= py-crypto-1.0.0 +CATEGORIES= security +MASTER_SITES= ftp://ftp.cwi.nl/pub/pct/ +EXTRACT_SUFX= .tgz + +MAINTAINER= tsarna@netbsd.org + +DEPENDS+= python-1.5.1:../../lang/python + +MIRROR_DISTFILE=no +RESTRICTED= crypto + +WRKSRC= ${WRKDIR}/Extensions/Crypto +MAKE_FLAGS= 'OPT=${CFLAGS}' + +INFO_FILES= pct.info + +.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "mips" || ${MACHINE_ARCH} == "alpha" +IGNORE="Needs dynamic loading" +.endif + +post-extract: + @(cd ${WRKDIR}; tar xf pycrypt.tar) + +do-configure: + @(cd ${WRKSRC}; ${PREFIX}/bin/python buildkit) + ${CP} ${PREFIX}/lib/python1.5/config/Makefile.pre.in ${WRKSRC}/src + ${CP} ${WRKSRC}/Setup.in ${WRKSRC}/src + @(cd ${WRKSRC}/src; make -f Makefile.pre.in boot) + +do-build: + @(cd ${WRKSRC}/src; make) + ${PREFIX}/bin/python ${PREFIX}/lib/python1.5/compileall.py \ + ${WRKSRC}/Lib + ${PREFIX}/bin/python -O ${PREFIX}/lib/python1.5/compileall.py \ + ${WRKSRC}/Lib + +do-install: + (cd ${WRKSRC}/Lib ; ${INSTALL_DATA} *.py *.pyc *.pyo \ + ${PREFIX}/lib/python1.5/site-packages) + (cd ${WRKSRC}/src ; ${INSTALL_DATA} *.so \ + ${PREFIX}/lib/python1.5/site-packages) + (cd ${WRKSRC}/Doc ; ${INSTALL_MAN} *info* \ + ${PREFIX}/info) + +.include "../../mk/bsd.pkg.mk" diff --git a/security/py-crypto/files/md5 b/security/py-crypto/files/md5 new file mode 100644 index 00000000000..6e712a8dd73 --- /dev/null +++ b/security/py-crypto/files/md5 @@ -0,0 +1,3 @@ +$NetBSD: md5,v 1.1 1998/08/07 14:51:55 tsarna Exp $ + +MD5 (pycrypt100.tgz) = 9b7482b704cb7aa05e0eb60cf3ee96cb diff --git a/security/py-crypto/patches/patch-aa b/security/py-crypto/patches/patch-aa new file mode 100644 index 00000000000..e6de80428a7 --- /dev/null +++ b/security/py-crypto/patches/patch-aa @@ -0,0 +1,26 @@ +$NetBSD: patch-aa,v 1.1 1998/08/07 14:51:56 tsarna Exp $ + +Some of these things are now included with Python + +--- Setup.in.orig Thu Aug 6 11:00:18 1998 ++++ Setup.in Thu Aug 6 11:02:11 1998 +@@ -5,7 +5,7 @@ + + md2 md2module.c # MD4 + md4 md4module.c # MD4 +-md5 md5module.c # MD5 ++#md5 md5module.c # MD5 + sha shamodule.c # SHA + haval havalmodule.c # HAVAL + +@@ -25,8 +25,8 @@ + + # "Simple" modules + +-rotor rotormodule.c +-crypt cryptmodule.c ++#rotor rotormodule.c ++#crypt cryptmodule.c + ufcrypt ufcryptmodule.c + + diff --git a/security/py-crypto/patches/patch-ab b/security/py-crypto/patches/patch-ab new file mode 100644 index 00000000000..b0fb8dc05c8 --- /dev/null +++ b/security/py-crypto/patches/patch-ab @@ -0,0 +1,17 @@ +$NetBSD: patch-ab,v 1.1 1998/08/07 14:51:56 tsarna Exp $ + +Make this work with more recent (post Great Renaming) Pythons. + +--- simple/ufcrypt.c.orig Thu Aug 6 10:56:35 1998 ++++ simple/ufcrypt.c Thu Aug 6 10:56:53 1998 +@@ -1,8 +1,9 @@ + /* cryptmodule.c - by Steve Majewski + */ + +-#include "allobjects.h" ++#include "Python.h" + #include "modsupport.h" ++#include "rename2.h" + + #include <sys/types.h> + diff --git a/security/py-crypto/pkg/COMMENT b/security/py-crypto/pkg/COMMENT new file mode 100644 index 00000000000..f93c252e10f --- /dev/null +++ b/security/py-crypto/pkg/COMMENT @@ -0,0 +1 @@ +Python Cryptography Toolkit, version 1.0.0 diff --git a/security/py-crypto/pkg/DESCR b/security/py-crypto/pkg/DESCR new file mode 100644 index 00000000000..0a373d95de9 --- /dev/null +++ b/security/py-crypto/pkg/DESCR @@ -0,0 +1,18 @@ +This is version 1.0.0 of the Python Cryptography Toolkit, a +collection of cryptographic routines for the Python programming +language, written by Andrew Kuchling <andrewk@cst.ca> + +The PCT is a collection of secure hash functions (such as MD5 +and SHA), and various encryption algorithms (IDEA, DES, RSA, ElGamal, +etc.). The package is structured to make adding new modules easy. + +One possible application of the PCT is writing secure administration +tools. Another application is in writing daemons and servers. Clients +and servers can encrypt the data being exchanged and mutually +authenticate themselves; daemons can encrypt private data for added +security. Python also provides a pleasant framework for prototyping and +experimentation with cryptographic algorithms; thanks to its +arbitrary-length integers, public key algorithms based on number theory +are easily implemented. + +See pct.info for more information. diff --git a/security/py-crypto/pkg/PLIST b/security/py-crypto/pkg/PLIST new file mode 100644 index 00000000000..a78d728bd15 --- /dev/null +++ b/security/py-crypto/pkg/PLIST @@ -0,0 +1,45 @@ +@comment $NetBSD: PLIST,v 1.1 1998/08/07 14:51:56 tsarna Exp $ +lib/python1.5/site-packages/arc4module.so +lib/python1.5/site-packages/blowfishmodule.so +lib/python1.5/site-packages/des3module.so +lib/python1.5/site-packages/desmodule.so +lib/python1.5/site-packages/diamondmodule.so +lib/python1.5/site-packages/havalmodule.so +lib/python1.5/site-packages/ideamodule.so +lib/python1.5/site-packages/md2module.so +lib/python1.5/site-packages/md4module.so +lib/python1.5/site-packages/rc5module.so +lib/python1.5/site-packages/redoc3module.so +lib/python1.5/site-packages/sapphiremodule.so +lib/python1.5/site-packages/shamodule.so +lib/python1.5/site-packages/ufcryptmodule.so +lib/python1.5/site-packages/DSA.py +lib/python1.5/site-packages/DSA.pyc +lib/python1.5/site-packages/DSA.pyo +lib/python1.5/site-packages/ESIGN.py +lib/python1.5/site-packages/ESIGN.pyc +lib/python1.5/site-packages/ESIGN.pyo +lib/python1.5/site-packages/ElGamal.py +lib/python1.5/site-packages/ElGamal.pyc +lib/python1.5/site-packages/ElGamal.pyo +lib/python1.5/site-packages/RSA.py +lib/python1.5/site-packages/RSA.pyc +lib/python1.5/site-packages/RSA.pyo +lib/python1.5/site-packages/pubkey.py +lib/python1.5/site-packages/pubkey.pyc +lib/python1.5/site-packages/pubkey.pyo +lib/python1.5/site-packages/randpool.py +lib/python1.5/site-packages/randpool.pyc +lib/python1.5/site-packages/randpool.pyo +lib/python1.5/site-packages/rfc1751.py +lib/python1.5/site-packages/rfc1751.pyc +lib/python1.5/site-packages/rfc1751.pyo +lib/python1.5/site-packages/testpk.py +lib/python1.5/site-packages/testpk.pyc +lib/python1.5/site-packages/testpk.pyo +@unexec %D/bin/install-info --delete %D/info/pct.info %D/info/dir +info/pct.info +@exec %D/bin/install-info %D/info/pct.info %D/info/dir +info/pct.info-1 +info/pct.info-2 + |