SwordArMor-gentoo-overlay/net-dialup/freeradius-client/freeradius-client-1.1.7-r1.ebuild
Alarig Le Lay 85a2aac10b
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>
2020-07-05 18:34:53 +02:00

59 lines
1.2 KiB
Bash

# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools toolchain-funcs
DESCRIPTION="FreeRADIUS Client framework"
HOMEPAGE="https://wiki.freeradius.org/project/Radiusclient"
SRC_URI="ftp://ftp.freeradius.org/pub/freeradius/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
IUSE="scp shadow static-libs"
DEPEND="!net-dialup/radiusclient-ng"
RDEPEND="${DEPEND}"
DOCS=(
BUGS doc/{ChangeLog,login.example,release-method.txt,instop.html}
README.{radexample,rst}
)
src_prepare() {
default
mv configure.in configure.ac || die \
"Renaming configure.in to configure.ac failed"
echo "AM_PROG_AR = ${AR}" >> Makefile.am
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() {
local myeconfargs=(
$(use_enable scp)
$(use_enable shadow)
--with-secure-path
)
econf "${myeconfargs[@]}"
}
src_install() {
default
newdoc doc/README README.login.example
use static-libs || \
find "${ED}" -name '*.a' -delete
}