View | Details | Raw Unified | Return to bug 187002 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-12 / +10 lines)
Lines 2-8 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	openssl
4
PORTNAME=	openssl
5
PORTVERSION=	0.13
5
PORTVERSION=	0.14
6
CATEGORIES=	security python
6
CATEGORIES=	security python
7
MASTER_SITES=	CHEESESHOP
7
MASTER_SITES=	CHEESESHOP
8
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
8
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
Lines 12-37 Link Here
12
COMMENT=	Python interface to the OpenSSL library
12
COMMENT=	Python interface to the OpenSSL library
13
13
14
LICENSE=	APACHE20
14
LICENSE=	APACHE20
15
LICENSE_FILE=	${WRKSRC}/LICENSE
16
15
17
USE_PYTHON=	yes
16
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cryptography>=0.2.1:${PORTSDIR}/security/py-cryptography \
18
USE_PYTHON_PREFIX=	yes
17
		${PYTHON_PKGNAMEPREFIX}six>=1.5.2:${PORTSDIR}/devel/py-six
18
19
OPTIONS_DEFINE=	EXAMPLES
20
21
USE_PYTHON=		yes
19
USE_PYDISTUTILS=	yes
22
USE_PYDISTUTILS=	yes
20
PYDISTUTILS_AUTOPLIST=	yes
23
PYDISTUTILS_AUTOPLIST=	yes
21
USE_OPENSSL=	yes
22
24
23
EXAMPLESDIR=	${PREFIX}/share/examples/py-${PORTNAME}
25
EXAMPLESDIR=	${PREFIX}/share/examples/py-${PORTNAME}
24
PORTEXAMPLES=	*
26
PORTEXAMPLES=	*
25
27
26
OPTIONS_DEFINE=	EXAMPLES
27
28
pre-configure:
29
	@${ECHO_CMD} "[build_ext]" >> ${WRKSRC}/setup.cfg
30
	@${ECHO_CMD} "include-dirs = ${OPENSSLINC}" >> ${WRKSRC}/setup.cfg
31
	@${ECHO_CMD} "library-dirs = ${OPENSSLLIB}" >> ${WRKSRC}/setup.cfg
32
33
post-install:
28
post-install:
34
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
29
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
35
	(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
30
	(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
36
31
32
regression-test: build
33
	@cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test
34
37
.include <bsd.port.mk>
35
.include <bsd.port.mk>
(-)distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (pyOpenSSL-0.13.tar.gz) = 21e12b03abaa0e04ecc8cd9c251598f71bae11c9f385304234e4ea5618c6163b
1
SHA256 (pyOpenSSL-0.14.tar.gz) = a99db8e59c120138ad8a72eecedcc24b4510d2eed3ce48213b7e32f22cc4ee6e
2
SIZE (pyOpenSSL-0.13.tar.gz) = 250489
2
SIZE (pyOpenSSL-0.14.tar.gz) = 128005
(-)files/patch-OpenSSL__ssl__ssl.h (-11 lines)
Lines 1-11 Link Here
1
--- ./OpenSSL/ssl/ssl.h.orig	2011-09-02 17:46:13.000000000 +0200
2
+++ ./OpenSSL/ssl/ssl.h	2011-09-12 15:49:37.000000000 +0200
3
@@ -73,4 +73,8 @@
4
 
5
 #endif /* SSL_MODULE */
6
 
7
+#if !defined(TLSEXT_NAMETYPE_host_name) && defined(__FreeBSD__)
8
+#define TLSEXT_NAMETYPE_host_name	0
9
+#endif
10
+
11
 #endif /* PyOpenSSL_SSL_H_ */
(-)pkg-descr (-1 / +1 lines)
Lines 1-3 Link Here
1
pyOpenSSL - A Python wrapper around the OpenSSL library
1
pyOpenSSL - A Python wrapper around the OpenSSL library
2
2
3
WWW: http://pyopenssl.sourceforge.net/
3
WWW: https://github.com/pyca/pyopenssl/

Return to bug 187002