commit: f9cc5a2a23d0572150ca753c48c4d780cf722589
Author: Craig Andrews <candrews <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 13 16:07:31 2025 +0000
Commit: Craig Andrews <candrews <AT> gentoo <DOT> org>
CommitDate: Thu Feb 13 16:09:25 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9cc5a2a
sys-auth/google-authenticator: add 1.11
Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>
sys-auth/google-authenticator/Manifest | 1 +
.../google-authenticator-1.11.ebuild | 51 ++++++++++++++++++++++
2 files changed, 52 insertions(+)
diff --git a/sys-auth/google-authenticator/Manifest
b/sys-auth/google-authenticator/Manifest
index 5d3e7ab2a6fa..e69994ff24d6 100644
--- a/sys-auth/google-authenticator/Manifest
+++ b/sys-auth/google-authenticator/Manifest
@@ -1 +1,2 @@
DIST google-authenticator-1.10.tar.gz 64409 BLAKE2B
c0941c226362688cfc6cf9777515dd7c8af3d711952559bd1c9e5fb1102fa5f43234cee15b1e72a1ff0575957752f8a5ea903d92e5a4d4192459a9357758f4a1
SHA512
6e2448f1e643d33c67e126e09a8de5a134e9b3b7a91fc6b7ee5e27a95020348cad8d3bb3a73a8ba17ab5312baee7ab14e4370b3ae4c67034a2938877b699a6e1
+DIST google-authenticator-1.11.tar.gz 64634 BLAKE2B
a1c8b1450cf58edf2ff9310765441ad35a2d6014bd9b73a0eabd31861d0c3ee97d7d3fe9d7c9b977c79524289769eddd372109b37082c7e9a307e40321556b74
SHA512
5bbee53f293a67e6f92e956a24904a0197ba65270e096965e8b91f50e87c176ece9ba81c92392b199aa45f4fe5b38e77069b9c5e2f5800c6a5dbb6a35f20d21b
diff --git a/sys-auth/google-authenticator/google-authenticator-1.11.ebuild
b/sys-auth/google-authenticator/google-authenticator-1.11.ebuild
new file mode 100644
index 000000000000..4155aa70b428
--- /dev/null
+++ b/sys-auth/google-authenticator/google-authenticator-1.11.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools
+
+if [[ ${PV} == 9999 ]] ; then
+
EGIT_REPO_URI="https://github.com/google/google-authenticator-libpam.git"
+ inherit git-r3
+else
+
SRC_URI="https://github.com/google/google-authenticator-libpam/archive/${PV}.tar.gz
-> ${P}.tar.gz"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~m68k ~mips ~ppc ~ppc64 ~s390
~sparc ~x86"
+ S="${WORKDIR}/google-authenticator-libpam-${PV}"
+fi
+
+DESCRIPTION="PAM Module for two step verification via mobile platform"
+HOMEPAGE="https://github.com/google/google-authenticator-libpam"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+
+DEPEND="sys-libs/pam"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}/1.08-remove-failing-tests.patch" )
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ # We might want to use getpam_mod_dir from pam eclass,
+ # but the build already appends "/security" for us.
+ econf --libdir="/$(get_libdir)"
+}
+
+src_install() {
+ default
+ find "${D}" -name '*.la' -delete || die
+}
+
+pkg_postinst() {
+ if [[ -z ${REPLACING_VERSIONS} ]] ; then
+ elog "For further information see"
+ elog "https://wiki.gentoo.org/wiki/Google_Authenticator"
+ elog ""
+ elog "If you want support for QR-Codes, install
media-gfx/qrencode."
+ fi
+}