View | Details | Raw Unified | Return to bug 257009
Collapse All | Expand All

(-)b/security/py-gssapi/Makefile (-6 / +5 lines)
Lines 1-5 Link Here
1
PORTNAME=	gssapi
1
PORTNAME=	gssapi
2
DISTVERSION=	1.6.9
2
DISTVERSION=	1.6.14
3
CATEGORIES=	security python
3
CATEGORIES=	security python
4
MASTER_SITES=	CHEESESHOP
4
MASTER_SITES=	CHEESESHOP
5
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
5
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
Lines 9-17 COMMENT= High-level and low-level Python bindings to GSSAPI C libraries Link Here
9
9
10
LICENSE=	ISCL
10
LICENSE=	ISCL
11
11
12
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}six>1.4.0:devel/py-six@${PY_FLAVOR} \
12
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}decorator>0:devel/py-decorator@${PY_FLAVOR}
13
		${PYTHON_PKGNAMEPREFIX}decorator>0:devel/py-decorator@${PY_FLAVOR}
14
13
14
# Officially: 3.6, 3.7, 3.8, 3.9
15
USES=	python:3.6+
15
USES=	python:3.6+
16
USE_PYTHON=	distutils autoplist
16
USE_PYTHON=	distutils autoplist
17
17
Lines 23-32 GSSAPI_BASE_USES= gssapi ssl Link Here
23
GSSAPI_HEIMDAL_USES=	gssapi:heimdal
23
GSSAPI_HEIMDAL_USES=	gssapi:heimdal
24
GSSAPI_MIT_USES=	gssapi:mit
24
GSSAPI_MIT_USES=	gssapi:mit
25
25
26
post-patch:
26
MAKE_ENV+=	GSSAPI_KRB5CONFIG=${KRB5CONFIG}
27
	${REINPLACE_CMD} -e 's|%%KRB5CONFIG%%|${KRB5CONFIG}|' ${WRKSRC}/setup.py
28
27
29
post-install:
28
post-install:
30
	${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}/raw/*.so
29
	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME} -type f -name '*.so' -exec ${STRIP_CMD} {} +
31
30
32
.include <bsd.port.mk>
31
.include <bsd.port.mk>
(-)b/security/py-gssapi/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1595860695
1
TIMESTAMP = 1625524611
2
SHA256 (gssapi-1.6.9.tar.gz) = 0b0aac7138abd3c6d2d8b8400e83933c04a811734456e387e3cb7d59ec4547b9
2
SHA256 (gssapi-1.6.14.tar.gz) = 1bb0a41c9985ad78b973aa3c9f1fa200b543013e3a1b2a24463c2e5d8d1afaf1
3
SIZE (gssapi-1.6.9.tar.gz) = 1062048
3
SIZE (gssapi-1.6.14.tar.gz) = 1069988
(-)a/security/py-gssapi/files/patch-setup.py (-28 lines)
Removed Link Here
1
--- setup.py.orig	2019-08-10 14:36:16 UTC
2
+++ setup.py
3
@@ -84,7 +84,7 @@ if link_args is None:
4
     elif os.environ.get('MINGW_PREFIX'):
5
         link_args = ['-lgss']
6
     else:
7
-        link_args = shlex.split(get_output('krb5-config --libs gssapi'))
8
+        link_args = shlex.split(get_output('%%KRB5CONFIG%% --libs gssapi'))
9
 
10
 if compile_args is None:
11
     if osx_has_gss_framework:
12
@@ -97,14 +97,14 @@ if compile_args is None:
13
     elif os.environ.get('MINGW_PREFIX'):
14
         compile_args = ['-fPIC']
15
     else:
16
-        compile_args = shlex.split(get_output('krb5-config --cflags gssapi'))
17
+        compile_args = shlex.split(get_output('%%KRB5CONFIG%% --cflags gssapi'))
18
 
19
 # add in the extra workarounds for different include structures
20
 if winkrb_path:
21
     prefix = winkrb_path
22
 else:
23
     try:
24
-        prefix = get_output('krb5-config gssapi --prefix')
25
+        prefix = get_output('%%KRB5CONFIG%% gssapi --prefix')
26
     except Exception:
27
         print("WARNING: couldn't find krb5-config; assuming prefix of %s"
28
               % str(sys.prefix))

Return to bug 257009