summaryrefslogtreecommitdiff
path: root/security/py-m2crypto/Makefile
diff options
context:
space:
mode:
authorWill Andrews <will@FreeBSD.org>2001-03-31 01:52:00 +0000
committerWill Andrews <will@FreeBSD.org>2001-03-31 01:52:00 +0000
commitd057b0a10594b8caaf0793969c813d6e3ea2a641 (patch)
treed894bdd8bb6c5f5db93dd3aae2a789e7f82a59fd /security/py-m2crypto/Makefile
parentAdd pr 1.0, a daemon that connects local terminal device to a (diff)
Add py-m2crypto 0.06, a python wrapper for OpenSSL.
PR: 26155 Submitted by: Peter Haight <peterh@sapros.com>
Diffstat (limited to 'security/py-m2crypto/Makefile')
-rw-r--r--security/py-m2crypto/Makefile41
1 files changed, 41 insertions, 0 deletions
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>