From 2d8896d6420b2e0004cccb47cb372936f4677767 Mon Sep 17 00:00:00 2001 From: Alarig Le Lay Date: Tue, 16 Jun 2020 09:01:38 +0200 Subject: [PATCH] net-dialup/freeradius-client: Syncing with ::gentoo Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Alarig Le Lay --- .../freeradius-client-1.1.7-r1.ebuild | 48 +++++++++++++++++++ .../freeradius-client-1.1.7.ebuild | 34 ++++++------- 2 files changed, 62 insertions(+), 20 deletions(-) create mode 100644 net-dialup/freeradius-client/freeradius-client-1.1.7-r1.ebuild diff --git a/net-dialup/freeradius-client/freeradius-client-1.1.7-r1.ebuild b/net-dialup/freeradius-client/freeradius-client-1.1.7-r1.ebuild new file mode 100644 index 0000000..f9ac866 --- /dev/null +++ b/net-dialup/freeradius-client/freeradius-client-1.1.7-r1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools + +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" + eautoreconf +} + +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 +} diff --git a/net-dialup/freeradius-client/freeradius-client-1.1.7.ebuild b/net-dialup/freeradius-client/freeradius-client-1.1.7.ebuild index 297eb05..c915acf 100644 --- a/net-dialup/freeradius-client/freeradius-client-1.1.7.ebuild +++ b/net-dialup/freeradius-client/freeradius-client-1.1.7.ebuild @@ -1,12 +1,12 @@ # Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI="5" -inherit autotools +inherit autotools-utils DESCRIPTION="FreeRADIUS Client framework" -HOMEPAGE="https://wiki.freeradius.org/project/Radiusclient" +HOMEPAGE="http://wiki.freeradius.org/Radiusclient" SRC_URI="ftp://ftp.freeradius.org/pub/freeradius/${P}.tar.gz" LICENSE="BSD" @@ -15,30 +15,24 @@ KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 sparc x86" IUSE="scp shadow static-libs" -DEPEND="!net-dialup/radiusclient-ng" +DEPEND="!net-dialup/radiusclient + !net-dialup/radiusclient-ng" RDEPEND="${DEPEND}" -DOCS=( - BUGS doc/ChangeLog doc/login.example doc/release-method.txt doc/instop.html -) - -src_prepare() { - default - mv configure.in configure.ac - eautoreconf -} +DOCS=( BUGS doc/ChangeLog doc/login.example doc/release-method.txt ) src_configure() { - econf \ - $(use_enable scp) \ - $(use_enable shadow) \ + local myeconfargs=( + $(use_enable scp) + $(use_enable shadow) --with-secure-path + ) + autotools-utils_src_configure } src_install() { - default - emake DESTDIR="${D}" install - newdoc doc/README README.login.example - rm doc/README + autotools-utils_src_install dodoc README* + newdoc doc/README README.login.example + dohtml doc/instop.html }