Date: Friday, October 20, 2017 @ 12:37:25
  Author: foxboron
Revision: 263720

archrelease: copy trunk to community-any

Added:
  pass-otp/repos/community-any/PKGBUILD
    (from rev 263719, pass-otp/trunk/PKGBUILD)
  pass-otp/repos/community-any/otp_algorithm-is-lowercase.patch
    (from rev 263719, pass-otp/trunk/otp_algorithm-is-lowercase.patch)
Deleted:
  pass-otp/repos/community-any/PKGBUILD

----------------------------------+
 PKGBUILD                         |   47 +++++++++++++++++++++----------------
 otp_algorithm-is-lowercase.patch |   24 ++++++++++++++++++
 2 files changed, 51 insertions(+), 20 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2017-10-20 12:37:16 UTC (rev 263719)
+++ PKGBUILD    2017-10-20 12:37:25 UTC (rev 263720)
@@ -1,20 +0,0 @@
-# Maintainer: Morten Linderud <[email protected]>
-# Contibutor: Alexandre Pujol <[email protected]>
-
-pkgname='pass-otp'
-pkgver=1.0.0
-pkgrel=2
-pkgdesc='A pass extension for managing one-time-password (OTP) tokens.'
-arch=('any')
-url='https://github.com/tadfisher/pass-otp'
-license=('GPL3')
-depends=('pass'
-         'oath-toolkit'
-        'qrencode')
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/tadfisher/pass-otp/archive/v${pkgver}.tar.gz";)
-sha256sums=('ed409b50c417814f9feed913bb4c09916a10f635404a6d8c2f4e842319c58052')
-
-package() {
-  cd "${pkgname}-${pkgver}"
-  make DESTDIR="${pkgdir}" install
-}

Copied: pass-otp/repos/community-any/PKGBUILD (from rev 263719, 
pass-otp/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2017-10-20 12:37:25 UTC (rev 263720)
@@ -0,0 +1,27 @@
+# Maintainer: Morten Linderud <[email protected]>
+# Contibutor: Alexandre Pujol <[email protected]>
+
+pkgname='pass-otp'
+pkgver=1.0.0
+pkgrel=3
+pkgdesc='A pass extension for managing one-time-password (OTP) tokens.'
+arch=('any')
+url='https://github.com/tadfisher/pass-otp'
+license=('GPL3')
+depends=('pass'
+         'oath-toolkit'
+        'qrencode')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/tadfisher/pass-otp/archive/v${pkgver}.tar.gz";
+       "otp_algorithm-is-lowercase.patch")
+sha256sums=('ed409b50c417814f9feed913bb4c09916a10f635404a6d8c2f4e842319c58052'
+            'b6a3ca22b8efcd7936e4c48fdde8b3ff50a7ff6497be001a04632fd823ad2293')
+
+prepare(){
+  cd "${pkgname}-${pkgver}"
+  patch -Np1 -i "${srcdir}/otp_algorithm-is-lowercase.patch"
+}
+
+package() {
+  cd "${pkgname}-${pkgver}"
+  make DESTDIR="${pkgdir}" install
+}

Copied: pass-otp/repos/community-any/otp_algorithm-is-lowercase.patch (from rev 
263719, pass-otp/trunk/otp_algorithm-is-lowercase.patch)
===================================================================
--- otp_algorithm-is-lowercase.patch                            (rev 0)
+++ otp_algorithm-is-lowercase.patch    2017-10-20 12:37:25 UTC (rev 263720)
@@ -0,0 +1,24 @@
+From 6ff06cc7f17e0ea1af88e6d295c9bfa35933adfd Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Bart=C5=82omiej=20Piotrowski?=
+ <[email protected]>
+Date: Sun, 4 Jun 2017 23:30:09 +0200
+Subject: [PATCH] Make sure $otp_algorithm is lowercase (#33)
+
+Otherwise oathtool is unhappy.
+---
+ otp.bash | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/otp.bash b/otp.bash
+index c46954e..95f171a 100755
+--- a/otp.bash
++++ b/otp.bash
+@@ -243,7 +243,7 @@ cmd_otp_code() {
+   case "$otp_type" in
+     totp)
+       cmd="$OATH -b --totp"
+-      [[ -n "$otp_algorithm" ]] && cmd+="=$otp_algorithm"
++      [[ -n "$otp_algorithm" ]] && cmd+="=${otp_algorithm,,}"
+       [[ -n "$otp_period" ]] && cmd+=" --time-step-size=$otp_period"s
+       [[ -n "$otp_digits" ]] && cmd+=" --digits=$otp_digits"
+       cmd+=" $otp_secret"

Reply via email to