Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Nov 2021 08:37:15 GMT
From:      Kai Knoblich <kai@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 81389bf63ec7 - main - net/pyrad: Update to 2.4 [1]
Message-ID:  <202111050837.1A58bFvE024315@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kai:

URL: https://cgit.FreeBSD.org/ports/commit/?id=81389bf63ec797a6797a05a10fab6a958a281da5

commit 81389bf63ec797a6797a05a10fab6a958a281da5
Author:     Kai Knoblich <kai@FreeBSD.org>
AuthorDate: 2021-11-05 08:17:59 +0000
Commit:     Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2021-11-05 08:35:57 +0000

    net/pyrad: Update to 2.4 [1]
    
    While I'm here:
    
    * Switch to GitHub for a while to keep the EXAMPLES option as the
      useful examples aren't included with the sdist at the moment.
    
    * Make package concurrent safe due to the example files that are
      installed outside of Python's site-lib directory.
    
    * Convert to option helpers.
    
    * Add "do-test" target to make future QA easier.
    
    PR:             259332
    Reported by:    Gian-Simon Purkert [1]
    Approved by:    maintainer timeout (14+ days)
    MFH:            2021Q4
    Security:       17702e54-3da0-11ec-b7e0-3085a9a95629
---
 net/pyrad/Makefile | 28 +++++++++++++++++++---------
 net/pyrad/distinfo |  5 +++--
 2 files changed, 22 insertions(+), 11 deletions(-)

diff --git a/net/pyrad/Makefile b/net/pyrad/Makefile
index 44ad123387ec..89aa758a4efa 100644
--- a/net/pyrad/Makefile
+++ b/net/pyrad/Makefile
@@ -1,34 +1,44 @@
 # Created by: Blaz Zupan <blaz@si.FreeBSD.org>
 
 PORTNAME=	pyrad
-PORTVERSION=	2.0
-PORTREVISION=	1
+DISTVERSION=	2.4
 CATEGORIES=	net python
-MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
 MAINTAINER=	steve@energistic.com
 COMMENT=	Python implementation of RADIUS client
 
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}netaddr>0:net/py-netaddr@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}nose>=0.10.0b1:devel/py-nose@${PY_FLAVOR}
+
 USES=		cpe python:3.6+
-USE_PYTHON=	distutils autoplist
+USE_GITHUB=	yes
+GH_ACCOUNT=	pyradius
+USE_PYTHON=	autoplist concurrent distutils
 
 CPE_VENDOR=	pyrad_project
 
+TEST_ENV=	PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+NO_ARCH=	yes
+
 PORTEXAMPLES=	*
 
 OPTIONS_DEFINE=	EXAMPLES
 
-.include <bsd.port.options.mk>
-
 post-patch:
 	@${REINPLACE_CMD} -e 's|zip_safe=True|zip_safe=False|' \
 		${WRKSRC}/setup.py
 
-.if ${PORT_OPTIONS:MEXAMPLES}
-post-install:
+post-install-EXAMPLES-on:
 	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
 	(cd ${WRKSRC}/example && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
-.endif
+
+do-test:
+	@cd ${WRKSRC} && ${SETENV} ${TESTENV} ${PYTHON_CMD} -m nose -v
 
 .include <bsd.port.mk>
diff --git a/net/pyrad/distinfo b/net/pyrad/distinfo
index 554a8ddfa47b..56a25bf82aaa 100644
--- a/net/pyrad/distinfo
+++ b/net/pyrad/distinfo
@@ -1,2 +1,3 @@
-SHA256 (pyrad-2.0.tar.gz) = 6bdac1af328aceb4383c39986356b6bb8a880157c3fd95eefc28643526718999
-SIZE (pyrad-2.0.tar.gz) = 38388
+TIMESTAMP = 1635956882
+SHA256 (pyradius-pyrad-2.4_GH0.tar.gz) = aa3312a68c0a0d60fd2222df7ad0d22089c269bc8430dd840f4648431fa02c59
+SIZE (pyradius-pyrad-2.4_GH0.tar.gz) = 54431



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202111050837.1A58bFvE024315>