Toshaan Bharvani
4 months ago
commit
d2845ce9ae
2 changed files with 116 additions and 0 deletions
@ -0,0 +1,25 @@
@@ -0,0 +1,25 @@
|
||||
From 0447ae4fa84def63d6ce97c251ea3fa5af0dcc07 Mon Sep 17 00:00:00 2001 |
||||
From: Juan Orti Alcaine <jortialc@redhat.com> |
||||
Date: Sat, 5 Nov 2022 07:45:25 +0100 |
||||
Subject: [PATCH] Fix HOTP counter increases |
||||
|
||||
--- |
||||
otp.bash | 2 +- |
||||
1 file changed, 1 insertion(+), 1 deletion(-) |
||||
|
||||
diff --git a/otp.bash b/otp.bash |
||||
index a0688d2..a58a96c 100755 |
||||
--- a/otp.bash |
||||
+++ b/otp.bash |
||||
@@ -370,7 +370,7 @@ cmd_otp_code() { |
||||
|
||||
if [[ "$otp_type" == "hotp" ]]; then |
||||
# Increment HOTP counter in-place |
||||
- local line replaced uri=${otp_uri/&counter=$otp_counter/&counter=$counter} |
||||
+ local line replaced uri=${otp_uri/&counter=$otp_counter/"&counter=$counter"} |
||||
while IFS= read -r line; do |
||||
[[ "$line" == otpauth://* ]] && line="$uri" |
||||
[[ -n "$replaced" ]] && replaced+=$'\n' |
||||
-- |
||||
2.38.1 |
||||
|
@ -0,0 +1,91 @@
@@ -0,0 +1,91 @@
|
||||
Name: pass-otp |
||||
Version: 1.2.0 |
||||
Release: 11%{?dist} |
||||
Summary: A pass extension for managing one-time-password (OTP) tokens |
||||
License: GPLv3+ |
||||
BuildArch: noarch |
||||
URL: https://github.com/tadfisher/pass-otp |
||||
Source: https://github.com/tadfisher/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz |
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=2136582 |
||||
Patch0: %{name}-1.2.0-fix_hotp_counter.patch |
||||
BuildRequires: make |
||||
BuildRequires: expect |
||||
BuildRequires: git |
||||
BuildRequires: pass >= 1.7.0 |
||||
BuildRequires: oathtool |
||||
Requires: pass >= 1.7.0 |
||||
Requires: oathtool |
||||
Requires: qrencode |
||||
Suggests: zbar |
||||
|
||||
%description |
||||
pass-otp extends the pass utility with the otp command for adding OTP secrets, |
||||
generating OTP codes, and displaying secret key URIs using the standard |
||||
otpauth:// scheme. |
||||
|
||||
%prep |
||||
%autosetup |
||||
|
||||
%build |
||||
|
||||
%install |
||||
%make_install |
||||
|
||||
%check |
||||
%make_build test |
||||
|
||||
%files |
||||
%doc README.md CHANGELOG.md |
||||
%license LICENSE |
||||
%{_usr}/lib/password-store/extensions/otp.bash |
||||
%{_mandir}/man1/%{name}.1* |
||||
%{_sysconfdir}/bash_completion.d/pass-otp |
||||
|
||||
%changelog |
||||
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-11 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild |
||||
|
||||
* Sat Nov 05 2022 Juan Orti Alcaine <jortialc@redhat.com> - 1.2.0-10 |
||||
- Add patch to fix RHBZ#2136582 |
||||
|
||||
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-9 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild |
||||
|
||||
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-8 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild |
||||
|
||||
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-7 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild |
||||
|
||||
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-6 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild |
||||
|
||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-5 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild |
||||
|
||||
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-4 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild |
||||
|
||||
* Mon Jan 06 2020 Juan Orti Alcaine <jortialc@redhat.com> - 1.2.0-3 |
||||
- Run tests |
||||
|
||||
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild |
||||
|
||||
* Wed Mar 13 2019 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.2.0-1 |
||||
- Version 1.2.0 |
||||
|
||||
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-3 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild |
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-2 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild |
||||
|
||||
* Fri Jun 29 2018 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.1.1-1 |
||||
- Version 1.1.1 |
||||
|
||||
* Sun Apr 01 2018 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.1.0-2 |
||||
- Requires: qrencode and pass >= 1.7.0 |
||||
|
||||
* Sat Mar 31 2018 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.1.0-1 |
||||
- Initial release |
Loading…
Reference in new issue