From 80e87db4d9ed551615eb2d0309bf370e79500716 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 8 Mar 2025 01:47:45 +0000 Subject: gentoo auto-resync : 08:03:2025 - 01:47:44 --- sys-auth/oath-toolkit/Manifest | 2 +- .../oath-toolkit/oath-toolkit-2.6.12-r1.ebuild | 85 ++++++++++++++++++++++ sys-auth/oath-toolkit/oath-toolkit-2.6.12.ebuild | 81 --------------------- 3 files changed, 86 insertions(+), 82 deletions(-) create mode 100644 sys-auth/oath-toolkit/oath-toolkit-2.6.12-r1.ebuild delete mode 100644 sys-auth/oath-toolkit/oath-toolkit-2.6.12.ebuild (limited to 'sys-auth/oath-toolkit') diff --git a/sys-auth/oath-toolkit/Manifest b/sys-auth/oath-toolkit/Manifest index 3577149e19e3..c6cb2ba2323b 100644 --- a/sys-auth/oath-toolkit/Manifest +++ b/sys-auth/oath-toolkit/Manifest @@ -1,3 +1,3 @@ DIST oath-toolkit-2.6.12.tar.gz 4706950 BLAKE2B 8bd184fa7166bc35af3bd632d0dd24ae00480f78a850e2ed4f058ec22711852757f01623ede16c8990daa366752578430be7c93a27d87c8ae92faf9a3aade1a1 SHA512 f82967e4b86bac57bec4b048fedd351ca7ae6f368f4b3a61135057c28c531a2c9845b51660dee2a6f5db66d5065619d22921b94229c672d1889077a710a0f0ce -EBUILD oath-toolkit-2.6.12.ebuild 1823 BLAKE2B aab6e792dd4121d95fdb4e479b3fd13dd1f24dce5db6d875659d565e1d8cafa7ff93543f40332939045bedf61174858372504a9b1a715f29b322ca2718f0cd5a SHA512 cdb5dd25d19ed4d1e8599ae6a91691ea0190f387ace00d18b1b65237e1fe36daaebcc7d524abe7c8e8a395503a53a23403cda879a79c1a36cade415c62ae6df8 +EBUILD oath-toolkit-2.6.12-r1.ebuild 2116 BLAKE2B db50a37b3ba20d1b51fdcacf3b9d7f3434e5986751fa835213698be10010259f0291858b989c1d58e20a72d706b91903ecc7897bc3d5d8b207c459467ac9d2cd SHA512 c18735e1ee2ff4d0bab9caec4ec730c8377d79f29c0d4c70cf03e3277efea30dfd60678fadfb458add2b5d59770737bde83aab01b7225965f0abe1b03c239bb5 MISC metadata.xml 592 BLAKE2B c5428eac278df13bc3cf23e1d5dce5ac4802a262d9f586574035a54af1e0b70547d9ce645636159e3f0cd8942bd77fb4e4f2253ba962d373189ea17f209dc824 SHA512 ed86f998c76cbe3bbcf2e1efa7c91cca0d3872530b6194f8534ff41da407bb8b642c6742fae5a65f2fc216144c977ca33c1b7f414872e5e23c3862b01c256a43 diff --git a/sys-auth/oath-toolkit/oath-toolkit-2.6.12-r1.ebuild b/sys-auth/oath-toolkit/oath-toolkit-2.6.12-r1.ebuild new file mode 100644 index 000000000000..a2d357e1055a --- /dev/null +++ b/sys-auth/oath-toolkit/oath-toolkit-2.6.12-r1.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit libtool pam + +DESCRIPTION="Toolkit for using one-time password authentication with HOTP/TOTP algorithms" +HOMEPAGE="https://www.nongnu.org/oath-toolkit/" +SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz" + +LICENSE="GPL-3 LGPL-2.1" +SLOT="0" +KEYWORDS="amd64 arm arm64 ~loong ppc64 ~riscv x86" +IUSE="pam static-libs test" +RESTRICT="!test? ( test )" + +DEPEND=" + dev-libs/libxml2 + dev-libs/xmlsec:= + pam? ( sys-libs/pam ) +" +RDEPEND="${DEPEND}" +BDEPEND=" + dev-build/gtk-doc-am + test? ( dev-libs/libxml2 ) +" + +# fpurge is from gnulib, and unused as of 2.6.11 +QA_CONFIG_IMPL_DECL_SKIP=( + MIN # glibc fp + alignof + fpurge + static_assert + unreachable +) + +src_prepare() { + default + elibtoolize + # upstream has a gdoc.mk, which declares that Makefile.am -> Makefile.in has a rebuild rule on: + # $(top_builddir)/configure + # which is baffling and also totally breaks elibtoolize. Munge the timestamps into forgetting about this. + touch */man/Makefile.gdoc */man/Makefile.in || die + + # After patching, we have to fix the mtime on libpskc/global.c so + # that it doesn't cause Makefile.gdoc to be rebuilt so that it + # doesn't cause Makefile.in to be rebuilt so that it doesn't try to + # run automake-1.16.5 for no reason. Bug 936309. + touch --reference=libpskc/errors.c libpskc/global.c || die +} + +src_configure() { + local myeconfargs=( + --cache-file="${S}"/config.cache + --enable-pskc + $(use_enable test xmltest) + $(use_enable pam) + $(use_with pam pam-dir $(getpam_mod_dir)) + $(use_enable static-libs static) + ) + + econf "${myeconfargs[@]}" +} + +src_test() { + # Without -k, it will bail out after the first testsuite failure, + # skipping the other testsuites. as they are mostly independent, this sucks. + emake -k check + + # Avoid errant QA notice for no tests run on these + rm -f libpskc/gtk-doc/test-suite.log liboath/gtk-doc/test-suite.log || die +} + +src_install() { + default + + find "${ED}" -name '*.la' -type f -delete || die + + if use pam; then + newdoc pam_oath/README README.pam + fi + + doman pskctool/pskctool.1 +} diff --git a/sys-auth/oath-toolkit/oath-toolkit-2.6.12.ebuild b/sys-auth/oath-toolkit/oath-toolkit-2.6.12.ebuild deleted file mode 100644 index 5ac94c24f38e..000000000000 --- a/sys-auth/oath-toolkit/oath-toolkit-2.6.12.ebuild +++ /dev/null @@ -1,81 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit pam - -DESCRIPTION="Toolkit for using one-time password authentication with HOTP/TOTP algorithms" -HOMEPAGE="https://www.nongnu.org/oath-toolkit/" -SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz" - -LICENSE="GPL-3 LGPL-2.1" -SLOT="0" -KEYWORDS="amd64 arm arm64 ~loong ppc64 ~riscv x86" -IUSE="pam static-libs test" -RESTRICT="!test? ( test )" - -DEPEND=" - dev-libs/icu:= - dev-libs/libxml2 - dev-libs/xmlsec:= - pam? ( sys-libs/pam ) -" -RDEPEND="${DEPEND}" -BDEPEND=" - dev-build/gtk-doc-am - test? ( dev-libs/libxml2 ) -" - -# fpurge is from gnulib, and unused as of 2.6.11 -QA_CONFIG_IMPL_DECL_SKIP=( - MIN # glibc fp - alignof - fpurge - static_assert - unreachable -) - -src_prepare() { - default - - # After patching, we have to fix the mtime on libpskc/global.c so - # that it doesn't cause Makefile.gdoc to be rebuilt so that it - # doesn't cause Makefile.in to be rebuilt so that it doesn't try to - # run automake-1.16.5 for no reason. Bug 936309. - touch --reference=libpskc/errors.c libpskc/global.c || die -} - -src_configure() { - local myeconfargs=( - --cache-file="${S}"/config.cache - --enable-pskc - $(use_enable test xmltest) - $(use_enable pam) - $(use_with pam pam-dir $(getpam_mod_dir)) - $(use_enable static-libs static) - ) - - econf "${myeconfargs[@]}" -} - -src_test() { - # Without -k, it will bail out after the first testsuite failure, - # skipping the other testsuites. as they are mostly independent, this sucks. - emake -k check - - # Avoid errant QA notice for no tests run on these - rm -f libpskc/gtk-doc/test-suite.log liboath/gtk-doc/test-suite.log || die -} - -src_install() { - default - - find "${ED}" -name '*.la' -type f -delete || die - - if use pam; then - newdoc pam_oath/README README.pam - fi - - doman pskctool/pskctool.1 -} -- cgit v1.2.3