net-dialup/freeradius-client: Try #1 to fix AR
Package-Manager: Portage-2.3.99, Repoman-2.3.23 Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr>
This commit is contained in:
parent
0b311ecff5
commit
85a2aac10b
|
@ -27,23 +27,26 @@ src_prepare() {
|
||||||
default
|
default
|
||||||
mv configure.in configure.ac || die \
|
mv configure.in configure.ac || die \
|
||||||
"Renaming configure.in to configure.ac failed"
|
"Renaming configure.in to configure.ac failed"
|
||||||
|
|
||||||
|
echo "AM_PROG_AR = ${AR}" >> Makefile.am
|
||||||
|
|
||||||
eautoreconf
|
eautoreconf
|
||||||
|
|
||||||
|
tc-export AR
|
||||||
|
|
||||||
|
for MAKEFILE in $(find -name Makefile.in); do
|
||||||
|
sed -i "s|@AR@|${AR}|" "${MAKEFILE}" || \
|
||||||
|
die "Patching ${MAKEFILE} for ${AR} failed"
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
src_configure() {
|
src_configure() {
|
||||||
tc-export AR
|
|
||||||
|
|
||||||
local myeconfargs=(
|
local myeconfargs=(
|
||||||
$(use_enable scp)
|
$(use_enable scp)
|
||||||
$(use_enable shadow)
|
$(use_enable shadow)
|
||||||
--with-secure-path
|
--with-secure-path
|
||||||
)
|
)
|
||||||
econf "${myeconfargs[@]}"
|
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() {
|
src_install() {
|
||||||
|
|
Loading…
Reference in a new issue