net-dialup/freeradius-client: respect AR

Closes: https://bugs.gentoo.org/730388
Package-Manager: Portage-3.0.4, Repoman-2.3.23
Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr>
Closes: https://github.com/gentoo/gentoo/pull/17351
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Alarig Le Lay
2020-08-31 21:27:17 +02:00
committed by Sam James
parent d82f303666
commit 97cf65fd93
2 changed files with 16 additions and 8 deletions

View File

@@ -0,0 +1,10 @@
--- a/configure.in 2020-07-08 19:20:38.180447370 +0200
+++ b/configure.in 2020-07-08 19:21:00.840479965 +0200
@@ -33,6 +33,6 @@
dnl Needed for normal compile
-AC_PATH_PROG(AR, ar)
+AM_PROG_AR
AM_PROG_LIBTOOL
dnl HAVE_SHADOW_PASSWORDS

View File

@@ -3,7 +3,7 @@
EAPI=7
inherit autotools toolchain-funcs
inherit autotools
DESCRIPTION="FreeRADIUS Client framework"
HOMEPAGE="https://wiki.freeradius.org/project/Radiusclient"
@@ -23,27 +23,25 @@ DOCS=(
README.{radexample,rst}
)
PATCHES=(
"${FILESDIR}/${P}-ar-configure.in.patch"
)
src_prepare() {
default
mv configure.in configure.ac || die \
"Renaming configure.in to configure.ac failed"
eautoreconf
}
src_configure() {
tc-export AR
local myeconfargs=(
$(use_enable scp)
$(use_enable shadow)
--with-secure-path
)
econf "${myeconfargs[@]}"
for MAKEFILE in $(find -name Makefile) libtool; do
sed -i "s|/usr/bin/ar|${AR}|" "${MAKEFILE}" || \
die "Patching ${MAKEFILE} for ${AR} failed"
done
}
src_install() {