From owner-svn-ports-all@freebsd.org Thu Sep 24 22:20:30 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A242E3E2520; Thu, 24 Sep 2020 22:20:30 +0000 (UTC) (envelope-from zi@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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4By8ct3mk4z4KHc; Thu, 24 Sep 2020 22:20:30 +0000 (UTC) (envelope-from zi@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 660F49249; Thu, 24 Sep 2020 22:20:30 +0000 (UTC) (envelope-from zi@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 08OMKUck051176; Thu, 24 Sep 2020 22:20:30 GMT (envelope-from zi@FreeBSD.org) Received: (from zi@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 08OMKTfU051171; Thu, 24 Sep 2020 22:20:29 GMT (envelope-from zi@FreeBSD.org) Message-Id: <202009242220.08OMKTfU051171@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: zi set sender to zi@FreeBSD.org using -f From: Ryan Steinmetz Date: Thu, 24 Sep 2020 22:20:29 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r549967 - in head: . net/freeradius3 X-SVN-Group: ports-head X-SVN-Commit-Author: zi X-SVN-Commit-Paths: in head: . net/freeradius3 X-SVN-Commit-Revision: 549967 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Sep 2020 22:20:30 -0000 Author: zi Date: Thu Sep 24 22:20:29 2020 New Revision: 549967 URL: https://svnweb.freebsd.org/changeset/ports/549967 Log: - Convert PYTHON support to use python 3.x - Add note to UPDATING PR: 249743 Submitted by: Steve Wills Modified: head/UPDATING head/net/freeradius3/Makefile head/net/freeradius3/pkg-plist Modified: head/UPDATING ============================================================================== --- head/UPDATING Thu Sep 24 22:15:28 2020 (r549966) +++ head/UPDATING Thu Sep 24 22:20:29 2020 (r549967) @@ -5,6 +5,18 @@ they are unavoidable. You should get into the habit of checking this file for changes each time you update your ports collection, before attempting any port upgrades. +20200924: + AFFECTS: users of net/freeradius3, who need python support + AUTHOR: zi@FreeBSD.org + + FreeRADIUS 3.x currently uses python 2.7 for rlm_python support, which has + been deprecated and will be removed from the tree at the end of this year. + + Starting in 3.0.21_2, the PYTHON option has been converted to use python 3.x. + + Users should verify their python scripts are 3.x compatible and upgrade to + 3.0.21_2 (or higher) to bring in python 3.x suppoort. + 20200921: AFFECTS: users of database/postgresql* and other software using PostgreSQL to run AUTHOR: kbowling@FreeBSD.org Modified: head/net/freeradius3/Makefile ============================================================================== --- head/net/freeradius3/Makefile Thu Sep 24 22:15:28 2020 (r549966) +++ head/net/freeradius3/Makefile Thu Sep 24 22:20:29 2020 (r549967) @@ -3,7 +3,7 @@ PORTNAME= freeradius DISTVERSION= 3.0.21 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net MASTER_SITES= ftp://ftp.freeradius.org/pub/freeradius/%SUBDIR%/ \ ftp://ftp.ntua.gr/pub/net/radius/freeradius/%SUBDIR%/ \ @@ -32,6 +32,7 @@ USE_RC_SUBR= radiusd SHEBANG_FILES= src/modules/rlm_counter/rad_counter scripts/sql/radsqlrelay GNU_CONFIGURE= yes +CONFIGURE_ARGS+=--without-rlm_python # Prevent /root/.rnd leftover MAKE_ARGS+= HOME=/dev/null CPPFLAGS+= -I${LOCALBASE}/include @@ -102,11 +103,12 @@ PERL_USES= perl5 PGSQL_USES= pgsql PGSQL_VARS= _REQUIRE+=postgresql PGSQL_CONFIGURE_WITH= rlm_sql_postgresql -PYTHON_CONFIGURE_WITH= rlm_python -PYTHON_CONFIGURE_ON= --with-rlm-python-lib-dir=${PYTHON_LIBDIR} \ - --with-rlm-python-include-dir=${PYTHON_INCLUDEDIR} -PYTHON_USES= python:2.7 gettext-runtime -PYTHON_VARS= SHEBANG_FILES+=src/modules/rlm_python/*.py +PYTHON_CONFIGURE_WITH= rlm_python3 +PYTHON_CONFIGURE_ON= --with-rlm-python3-lib-dir=${PYTHON_LIBDIR} \ + --with-rlm-python3-config-bin=${PYTHON_CMD}-config \ + --with-rlm-python3-include-dir=${PYTHON_INCLUDEDIR} +PYTHON_USES= python gettext-runtime +PYTHON_VARS= SHEBANG_FILES+=src/modules/rlm_python3/*.py REDIS_CONFIGURE_WITH= rlm_redis rlm_rediswho REDIS_LIB_DEPENDS= libhiredis.so:databases/hiredis REST_CONFIGURE_WITH= rlm_rest Modified: head/net/freeradius3/pkg-plist ============================================================================== --- head/net/freeradius3/pkg-plist Thu Sep 24 22:15:28 2020 (r549966) +++ head/net/freeradius3/pkg-plist Thu Sep 24 22:20:29 2020 (r549967) @@ -226,9 +226,9 @@ include/freeradius/vqp.h %%LIBDIR%%/rlm_preprocess.a %%LIBDIR%%/rlm_preprocess.la %%LIBDIR%%/rlm_preprocess.so -%%PYTHON%%%%LIBDIR%%/rlm_python.a -%%PYTHON%%%%LIBDIR%%/rlm_python.la -%%PYTHON%%%%LIBDIR%%/rlm_python.so +%%PYTHON%%%%LIBDIR%%/rlm_python3.a +%%PYTHON%%%%LIBDIR%%/rlm_python3.la +%%PYTHON%%%%LIBDIR%%/rlm_python3.so %%LIBDIR%%/rlm_radutmp.a %%LIBDIR%%/rlm_radutmp.la %%LIBDIR%%/rlm_radutmp.so @@ -612,8 +612,8 @@ sbin/radmin %%PERL%%%%EXAMPLESDIR%%/raddb/mods-config/perl/example.pl %%EXAMPLESDIR%%/raddb/mods-config/preprocess/hints %%EXAMPLESDIR%%/raddb/mods-config/preprocess/huntgroups -%%PYTHON%%%%EXAMPLESDIR%%/raddb/mods-config/python/example.py -%%PYTHON%%%%EXAMPLESDIR%%/raddb/mods-config/python/radiusd.py +%%PYTHON%%%%EXAMPLESDIR%%/raddb/mods-config/python3/example.py +%%PYTHON%%%%EXAMPLESDIR%%/raddb/mods-config/python3/radiusd.py %%EXAMPLESDIR%%/raddb/mods-config/sql/counter/mysql/dailycounter.conf %%EXAMPLESDIR%%/raddb/mods-config/sql/counter/mysql/expire_on_login.conf %%EXAMPLESDIR%%/raddb/mods-config/sql/counter/mysql/monthlycounter.conf