From e0cd13956a3b5c9c552f936d1e67e229d0fae5e9 Mon Sep 17 00:00:00 2001 From: Sam James Date: Sat, 27 Feb 2021 00:55:04 +0000 Subject: net-dialup/radiusclient-ng: port to EAPI 7 Package-Manager: Portage-3.0.15, Repoman-3.0.2 Signed-off-by: Sam James --- .../radiusclient-ng-0.5.6-cross-compile.patch | 4 ++-- .../radiusclient-ng-0.5.6-r1.ebuild | 22 +++++++++++++++------- 2 files changed, 17 insertions(+), 9 deletions(-) (limited to 'net-dialup') diff --git a/net-dialup/radiusclient-ng/files/radiusclient-ng-0.5.6-cross-compile.patch b/net-dialup/radiusclient-ng/files/radiusclient-ng-0.5.6-cross-compile.patch index ff11d841bcec..4fd5c720359c 100644 --- a/net-dialup/radiusclient-ng/files/radiusclient-ng-0.5.6-cross-compile.patch +++ b/net-dialup/radiusclient-ng/files/radiusclient-ng-0.5.6-cross-compile.patch @@ -3,8 +3,8 @@ Fix by Bertrand Jacquin Gentoo bugreport: https://bugs.gentoo.org/show_bug.cgi?id=373365 Upstream bugreport: https://developer.berlios.de/bugs/?func=detailbug&bug_id=18190&group_id=1208 ---- configure.in.orig 2011-06-28 16:26:10.000000000 +0200 -+++ configure.in 2011-06-28 16:26:12.000000000 +0200 +--- a/configure.in ++++ b/configure.in @@ -104,32 +104,40 @@ AC_CHECK_FUNCS(flock fcntl uname gethostname sysinfo getdomainname) AC_CHECK_FUNCS(stricmp random rand snprintf vsnprintf) diff --git a/net-dialup/radiusclient-ng/radiusclient-ng-0.5.6-r1.ebuild b/net-dialup/radiusclient-ng/radiusclient-ng-0.5.6-r1.ebuild index cc56f4a66300..ab13afb91518 100644 --- a/net-dialup/radiusclient-ng/radiusclient-ng-0.5.6-r1.ebuild +++ b/net-dialup/radiusclient-ng/radiusclient-ng-0.5.6-r1.ebuild @@ -1,10 +1,9 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=5 +EAPI=7 -AUTOTOOLS_AUTORECONF=1 -inherit autotools-utils eutils toolchain-funcs +inherit autotools toolchain-funcs DESCRIPTION="RadiusClient NextGeneration - library for RADIUS clients" HOMEPAGE="https://sourceforge.net/projects/radiusclient-ng.berlios/" @@ -13,7 +12,6 @@ SRC_URI="mirror://sourceforge/${PN}.berlios/${P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="amd64 ~ppc ~sparc x86" -IUSE="static-libs" DEPEND="!net-dialup/radiusclient !net-dialup/freeradius-client" @@ -22,14 +20,24 @@ RDEPEND="${DEPEND}" DOCS=( BUGS CHANGES README ) HTML_DOCS=( doc/instop.html ) -PATCHES=( "${FILESDIR}/${P}-cross-compile.patch" ) +PATCHES=( + "${FILESDIR}/${P}-cross-compile.patch" +) src_prepare() { + default + + mv configure.{in,ac} || die + + eautoreconf +} + +src_configure() { # bug #373365 if tc-is-cross-compiler ; then export ac_cv_file__dev_urandom=yes export ac_cv_struct_utsname=no fi - autotools-utils_src_prepare + econf } -- cgit v1.2.3-65-gdbad