mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
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:
@@ -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
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user