From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-auth/google-authenticator-wrappers/
Date: Sat, 22 Feb 2025 09:38:48 +0000 (UTC) [thread overview]
Message-ID: <1740217101.23c69b8320a1065b14f943ddd6a60115c418c29c.ulm@gentoo> (raw)
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
}
next reply other threads:[~2025-02-22 9:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-22 9:38 Ulrich Müller [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-08-13 12:10 [gentoo-commits] repo/gentoo:master commit in: sys-auth/google-authenticator-wrappers/ Joonas Niilola
2023-07-25 21:00 Conrad Kostecki
2021-07-20 19:03 Conrad Kostecki
2021-07-20 19:03 Conrad Kostecki
2020-06-08 8:56 Michał Górny
2018-08-19 8:38 Michał Górny
2018-08-10 18:52 Michał Górny
2018-08-10 6:16 Michał Górny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1740217101.23c69b8320a1065b14f943ddd6a60115c418c29c.ulm@gentoo \
--to=ulm@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox