commit: 23c69b8320a1065b14f943ddd6a60115c418c29c Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> AuthorDate: Fri Feb 14 14:12:05 2025 +0000 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> CommitDate: Sat Feb 22 09:38:21 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23c69b83
sys-auth/google-authenticator-wrappers: Port to ver_replacing Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> .../google-authenticator-wrappers-3-r1.ebuild | 30 +++++++++------------- 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/sys-auth/google-authenticator-wrappers/google-authenticator-wrappers-3-r1.ebuild b/sys-auth/google-authenticator-wrappers/google-authenticator-wrappers-3-r1.ebuild index 452bd4ae9b87..55a8078507e8 100644 --- a/sys-auth/google-authenticator-wrappers/google-authenticator-wrappers-3-r1.ebuild +++ b/sys-auth/google-authenticator-wrappers/google-authenticator-wrappers-3-r1.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -inherit cmake +inherit cmake eapi9-ver DESCRIPTION="Set of scripts to manage google-auth setup on Gentoo Infra" HOMEPAGE="https://github.com/projg2/google-authenticator-wrappers" @@ -23,22 +23,16 @@ RDEPEND=" " pkg_pretend() { - if [[ ${MERGE_TYPE} != buildonly ]]; then - local v - for v in ${REPLACING_VERSIONS}; do - if ver_test "${v}" -lt 3; then - ewarn "google-authenticator-wrappers v3 switches the secret store mechanism" - ewarn "from user-owned files to /var/lib/gauth. To migrate secrets, move" - ewarn "and chown, e.g.:" - ewarn - ewarn " mv /home/myuser/.google_authenticator /var/lib/gauth/myuser" - ewarn " chown gauth /var/lib/gauth/myuser" - ewarn - ewarn "If you do not migrate or reset secrets, second step authentication" - ewarn "will be disabled after the upgrade." - break - fi - done + if [[ ${MERGE_TYPE} != buildonly ]] && ver_replacing -lt 3; then + ewarn "google-authenticator-wrappers v3 switches the secret store mechanism" + ewarn "from user-owned files to /var/lib/gauth. To migrate secrets, move" + ewarn "and chown, e.g.:" + ewarn + ewarn " mv /home/myuser/.google_authenticator /var/lib/gauth/myuser" + ewarn " chown gauth /var/lib/gauth/myuser" + ewarn + ewarn "If you do not migrate or reset secrets, second step authentication" + ewarn "will be disabled after the upgrade." fi }
