2011-11-25 15:19:30 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.18 2011/11/25 20:19:30 eric Exp $
|
2004-01-25 11:58:54 -05:00
|
|
|
|
2007-09-15 19:29:57 -04:00
|
|
|
COMMENT= Python interface to the OpenSSL library
|
2004-01-25 11:58:54 -05:00
|
|
|
|
2011-11-25 15:19:30 -05:00
|
|
|
MODPY_EGG_VERSION= 0.13
|
2009-06-01 16:25:24 -04:00
|
|
|
DISTNAME= pyOpenSSL-${MODPY_EGG_VERSION}
|
|
|
|
PKGNAME= py-openssl-${MODPY_EGG_VERSION}
|
|
|
|
CATEGORIES= security devel
|
2004-01-25 11:58:54 -05:00
|
|
|
|
2011-11-25 15:19:30 -05:00
|
|
|
HOMEPAGE= https://launchpad.net/pyopenssl/
|
2004-01-25 11:58:54 -05:00
|
|
|
|
2008-03-25 18:20:09 -04:00
|
|
|
MAINTAINER= Eric Faurot <eric@openbsd.org>
|
2004-01-25 11:58:54 -05:00
|
|
|
|
2009-06-01 16:25:24 -04:00
|
|
|
# LGPLv2.1
|
2004-01-25 11:58:54 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2008-03-25 18:20:09 -04:00
|
|
|
|
2011-11-04 04:42:25 -04:00
|
|
|
WANTLIB= crypto ssl ${MODPY_WANTLIB}
|
2004-01-25 11:58:54 -05:00
|
|
|
|
2011-11-25 15:19:30 -05:00
|
|
|
MASTER_SITES= ${MASTER_SITE_PYPI:=p/pyOpenSSL/}
|
2004-01-25 11:58:54 -05:00
|
|
|
|
2004-08-03 17:31:06 -04:00
|
|
|
MODULES= lang/python
|
2004-01-25 11:58:54 -05:00
|
|
|
|
2011-11-25 15:19:30 -05:00
|
|
|
REGRESS_DEPENDS=${FULLPKGNAME}:${BUILD_PKGPATH}
|
2004-01-25 11:58:54 -05:00
|
|
|
|
2008-04-15 07:00:52 -04:00
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/py-openssl
|
2004-01-25 11:58:54 -05:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${EXAMPLESDIR}/simple
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/README ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/*.py ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/simple/* ${EXAMPLESDIR}/simple
|
|
|
|
|
2011-11-25 15:19:30 -05:00
|
|
|
REGRESSDIR=${WRKSRC}/regress
|
|
|
|
|
|
|
|
do-regress:
|
|
|
|
mkdir ${REGRESSDIR}
|
|
|
|
cd ${REGRESSDIR} && ${MODPY_BIN} ${WRKSRC}/OpenSSL/test/test_crypto.py
|
|
|
|
cd ${REGRESSDIR} && ${MODPY_BIN} ${WRKSRC}/OpenSSL/test/test_rand.py
|
|
|
|
cd ${REGRESSDIR} && ${MODPY_BIN} ${WRKSRC}/OpenSSL/test/test_ssl.py
|
2008-04-15 07:00:52 -04:00
|
|
|
|
2004-01-25 11:58:54 -05:00
|
|
|
.include <bsd.port.mk>
|