Merge pull request 'net-dialup/freeradius-client: tc-export AR' (#5) from net-dialup/freeradius-client into master
This commit is contained in:
commit
5a97795acc
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
EAPI=7
|
EAPI=7
|
||||||
|
|
||||||
inherit autotools
|
inherit autotools toolchain-funcs
|
||||||
|
|
||||||
DESCRIPTION="FreeRADIUS Client framework"
|
DESCRIPTION="FreeRADIUS Client framework"
|
||||||
HOMEPAGE="https://wiki.freeradius.org/project/Radiusclient"
|
HOMEPAGE="https://wiki.freeradius.org/project/Radiusclient"
|
||||||
|
@ -31,12 +31,19 @@ src_prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
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