diff options
author | Sam James <sam@gentoo.org> | 2023-01-10 10:48:54 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-01-10 10:52:12 +0000 |
commit | b9832472df5cd80f931ef2d6411a7b2a500918ad (patch) | |
tree | 3f0822241e70e3f9858af7744be2242fa59ae325 /net-dialup/freeradius-client/freeradius-client-1.1.7-r3.ebuild | |
parent | net-misc/dhcping: fix configure w/ clang 16 (diff) | |
download | gentoo-b9832472df5cd80f931ef2d6411a7b2a500918ad.tar.gz gentoo-b9832472df5cd80f931ef2d6411a7b2a500918ad.tar.bz2 gentoo-b9832472df5cd80f931ef2d6411a7b2a500918ad.zip |
net-dialup/freeradius-client: fix configure w/ clang 16
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-dialup/freeradius-client/freeradius-client-1.1.7-r3.ebuild')
-rw-r--r-- | net-dialup/freeradius-client/freeradius-client-1.1.7-r3.ebuild | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/net-dialup/freeradius-client/freeradius-client-1.1.7-r3.ebuild b/net-dialup/freeradius-client/freeradius-client-1.1.7-r3.ebuild new file mode 100644 index 000000000000..45d79ae7e6ab --- /dev/null +++ b/net-dialup/freeradius-client/freeradius-client-1.1.7-r3.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2023 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 ~riscv sparc x86" + +IUSE="scp shadow static-libs" + +DEPEND=" + !net-dialup/radiusclient-ng + virtual/libcrypt:= +" +RDEPEND="${DEPEND}" + +DOCS=( + BUGS doc/{ChangeLog,login.example,release-method.txt,instop.html} + README.{radexample,rst} +) + +PATCHES=( + "${FILESDIR}/${PN}-1.1.7-ar-configure.in.patch" + "${FILESDIR}/${PN}-1.1.7-configure-clang16.patch" +) + +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 +} |