From nobody Fri Nov 05 08:37:15 2021 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 48E971836419; Fri, 5 Nov 2021 08:37:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Hlv5771Tdz4T8w; Fri, 5 Nov 2021 08:37:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C41EC14B1E; Fri, 5 Nov 2021 08:37:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1A58bFCm024317; Fri, 5 Nov 2021 08:37:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1A58bFvE024315; Fri, 5 Nov 2021 08:37:15 GMT (envelope-from git) Date: Fri, 5 Nov 2021 08:37:15 GMT Message-Id: <202111050837.1A58bFvE024315@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Kai Knoblich Subject: git: 81389bf63ec7 - main - net/pyrad: Update to 2.4 [1] List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kai X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 81389bf63ec797a6797a05a10fab6a958a281da5 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kai: URL: https://cgit.FreeBSD.org/ports/commit/?id=81389bf63ec797a6797a05a10fab6a958a281da5 commit 81389bf63ec797a6797a05a10fab6a958a281da5 Author: Kai Knoblich AuthorDate: 2021-11-05 08:17:59 +0000 Commit: Kai Knoblich 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 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 - 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 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