aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
Diffstat (limited to 'security')
-rw-r--r--security/Makefile1
-rw-r--r--security/py-m2crypto/Makefile41
-rw-r--r--security/py-m2crypto/distinfo1
-rw-r--r--security/py-m2crypto/files/patch-_evp.i13
-rw-r--r--security/py-m2crypto/files/patch-demo::evp_ciph_test.py10
-rw-r--r--security/py-m2crypto/pkg-comment1
-rw-r--r--security/py-m2crypto/pkg-descr8
-rw-r--r--security/py-m2crypto/pkg-plist78
8 files changed, 153 insertions, 0 deletions
diff --git a/security/Makefile b/security/Makefile
index 31b0d56b4e53..734ad0d0be23 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -119,6 +119,7 @@
SUBDIR += portscanner
SUBDIR += portsentry
SUBDIR += pscan
+ SUBDIR += py-m2crypto
SUBDIR += racoon
SUBDIR += radiusniff
SUBDIR += rid
diff --git a/security/py-m2crypto/Makefile b/security/py-m2crypto/Makefile
new file mode 100644
index 000000000000..b785537622ad
--- /dev/null
+++ b/security/py-m2crypto/Makefile
@@ -0,0 +1,41 @@
+# New ports collection makefile for: py-m2crypto
+# Date created: 27 March 2001
+# Whom: Peter Haight <peterh@sapros.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= m2crypto
+PORTVERSION= 0.06
+CATEGORIES= security python
+MASTER_SITES= http://www.post1.com/home/ngps/m2/
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= ${PORTNAME}-${PORTVERSION}-snap3
+
+MAINTAINER= peterh@sapros.com
+
+BUILD_DEPENDS= swig:${PORTSDIR}/devel/SWIG \
+ pinstall:${PORTSDIR}/devel/pinstall
+
+WRKSRC= ${WRKDIR}/${DISTNAME}/swig
+USE_PYTHON= yes
+USE_ZIP= yes
+USE_OPENSSL= yes
+
+PINSTALL_PLIST= ${WRKDIR}/pinstall-plist
+PLIST_SUB+= PYTHON_VERSION=${PYTHON_VERSION}
+
+pre-build:
+ ${TOUCH} ${WRKSRC}/_m2crypto_wrap.doc
+
+post-build:
+ ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}/../M2Crypto
+
+do-install:
+ ${MKDIR} ${WRKDIR}/lib/${PYTHON_VERSION}/site-packages
+ cd ${WRKDIR}/lib/${PYTHON_VERSION}/site-packages && ${LN} -sf ../../../${DISTNAME}/M2Crypto
+
+post-install:
+ pinstall -v -f ${TMPPLIST} -d ${WRKDIR}
+
+.include <bsd.port.mk>
diff --git a/security/py-m2crypto/distinfo b/security/py-m2crypto/distinfo
new file mode 100644
index 000000000000..fe60e75c23cb
--- /dev/null
+++ b/security/py-m2crypto/distinfo
@@ -0,0 +1 @@
+MD5 (m2crypto-0.06-snap3.zip) = 61391a84e131eb100169c88ec9d3037c
diff --git a/security/py-m2crypto/files/patch-_evp.i b/security/py-m2crypto/files/patch-_evp.i
new file mode 100644
index 000000000000..0d3f17bd1d65
--- /dev/null
+++ b/security/py-m2crypto/files/patch-_evp.i
@@ -0,0 +1,13 @@
+--- _evp.i.orig Tue Mar 27 12:13:08 2001
++++ _evp.i Tue Mar 27 12:13:13 2001
+@@ -36,10 +36,6 @@
+ %name(bf_cbc) extern EVP_CIPHER *EVP_bf_cbc(void);
+ %name(bf_cfb) extern EVP_CIPHER *EVP_bf_cfb(void);
+ %name(bf_ofb) extern EVP_CIPHER *EVP_bf_ofb(void);
+-%name(idea_ecb) extern EVP_CIPHER *EVP_idea_ecb(void);
+-%name(idea_cbc) extern EVP_CIPHER *EVP_idea_cbc(void);
+-%name(idea_cfb) extern EVP_CIPHER *EVP_idea_cfb(void);
+-%name(idea_ofb) extern EVP_CIPHER *EVP_idea_ofb(void);
+ %name(cast5_ecb) extern EVP_CIPHER *EVP_cast5_ecb(void);
+ %name(cast5_cbc) extern EVP_CIPHER *EVP_cast5_cbc(void);
+ %name(cast5_cfb) extern EVP_CIPHER *EVP_cast5_cfb(void);
diff --git a/security/py-m2crypto/files/patch-demo::evp_ciph_test.py b/security/py-m2crypto/files/patch-demo::evp_ciph_test.py
new file mode 100644
index 000000000000..0fcfbc27e398
--- /dev/null
+++ b/security/py-m2crypto/files/patch-demo::evp_ciph_test.py
@@ -0,0 +1,10 @@
+--- ../demo/evp_ciph_test.py.orig Tue Mar 27 12:34:18 2001
++++ ../demo/evp_ciph_test.py Tue Mar 27 12:34:25 2001
+@@ -47,7 +47,6 @@
+
+ if __name__=='__main__':
+ ciphers=['bf_ecb', 'bf_cbc', 'bf_cfb', 'bf_ofb',\
+- 'idea_ecb', 'idea_cbc', 'idea_cfb', 'idea_ofb',\
+ 'cast5_ecb', 'cast5_cbc', 'cast5_cfb', 'cast5_ofb',\
+ 'rc5_ecb', 'rc5_cbc', 'rc5_cfb', 'rc5_ofb',\
+ 'des_ecb', 'des_cbc', 'des_cfb', 'des_ofb',\
diff --git a/security/py-m2crypto/pkg-comment b/security/py-m2crypto/pkg-comment
new file mode 100644
index 000000000000..793b2fc31765
--- /dev/null
+++ b/security/py-m2crypto/pkg-comment
@@ -0,0 +1 @@
+Python wrapper for OpenSSL
diff --git a/security/py-m2crypto/pkg-descr b/security/py-m2crypto/pkg-descr
new file mode 100644
index 000000000000..4d39fb06c93c
--- /dev/null
+++ b/security/py-m2crypto/pkg-descr
@@ -0,0 +1,8 @@
+M2Crypto is a Python wrapper for OpenSSL.
+It makes accessible to the Python programmer the following:
+
+ - DH, RSA, DSA, symmetric ciphers, message digests, HMACs.
+ - SSL functionality to implement clients and servers.
+ - S/MIME v2.
+
+WWW: http://www.post1.com/home/ngps/m2/
diff --git a/security/py-m2crypto/pkg-plist b/security/py-m2crypto/pkg-plist
new file mode 100644
index 000000000000..bf530530847a
--- /dev/null
+++ b/security/py-m2crypto/pkg-plist
@@ -0,0 +1,78 @@
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/ASN1.py
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/ASN1.pyc
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/BIO.py
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/BIO.pyc
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/callback.py
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/callback.pyc
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/DH.py
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/DH.pyc
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/DSA.py
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/DSA.pyc
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/Err.py
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/Err.pyc
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/EVP.py
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/EVP.pyc
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/httpslib.py
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/httpslib.pyc
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/m2.py
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/m2.pyc
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/m2urllib.py
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/m2urllib.pyc
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/PGP/constants.py
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/PGP/constants.pyc
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/PGP/packet.py
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/PGP/packet.pyc
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/PGP/PublicKey.py
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/PGP/PublicKey.pyc
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/PGP/PublicKeyRing.py
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/PGP/PublicKeyRing.pyc
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/PGP/RSA.py
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/PGP/RSA.pyc
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/PGP/__init__.py
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/PGP/__init__.pyc
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/Rand.py
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/Rand.pyc
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/RC4.py
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/RC4.pyc
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/RSA.py
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/RSA.pyc
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/SMIME.py
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/SMIME.pyc
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/SSL/cb.py
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/SSL/cb.pyc
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/SSL/Cipher.py
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/SSL/Cipher.pyc
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/SSL/Connection.py
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/SSL/Connection.pyc
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/SSL/Context.py
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/SSL/Context.pyc
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/SSL/Session.py
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/SSL/Session.pyc
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/SSL/SSLServer.py
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/SSL/SSLServer.pyc
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/SSL/ssl_dispatcher.py
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/SSL/ssl_dispatcher.pyc
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/SSL/timeout.py
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/SSL/timeout.pyc
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/SSL/__init__.py
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/SSL/__init__.pyc
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/SSL/Error.py
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/SSL/Error.pyc
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/threading.py
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/threading.pyc
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/util.py
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/util.pyc
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/X509.py
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/X509.pyc
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/xmlrpclib2.py
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/xmlrpclib2.pyc
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/__init__.py
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/__init__.pyc
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/_m2cryptoc.so
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/_m2crypto.py
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/_m2crypto.pyc
+lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/_m2crypto_wrap.doc
+@dirrm lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/PGP
+@dirrm lib/%%PYTHON_VERSION%%/site-packages/M2Crypto/SSL
+@dirrm lib/%%PYTHON_VERSION%%/site-packages/M2Crypto
+