[arch-commits] Commit in oath-toolkit/repos (3 files)

Evangelos Foutras foutrelis at archlinux.org
Fri Apr 5 14:59:26 UTC 2019


    Date: Friday, April 5, 2019 @ 14:59:26
  Author: foutrelis
Revision: 449848

archrelease: copy trunk to community-staging-x86_64

Added:
  oath-toolkit/repos/community-staging-x86_64/
  oath-toolkit/repos/community-staging-x86_64/PKGBUILD
    (from rev 449847, oath-toolkit/trunk/PKGBUILD)
  oath-toolkit/repos/community-staging-x86_64/fseeko.patch
    (from rev 449847, oath-toolkit/trunk/fseeko.patch)

--------------+
 PKGBUILD     |   53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 fseeko.patch |   22 ++++++++++++++++++++++
 2 files changed, 75 insertions(+)

Copied: oath-toolkit/repos/community-staging-x86_64/PKGBUILD (from rev 449847, oath-toolkit/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-04-05 14:59:26 UTC (rev 449848)
@@ -0,0 +1,53 @@
+# Maintainer: Christian Hesse <mail at eworm.de>
+# Contributor: Sébastien Luttringer
+# Contributor: L42y <423300 at gmail.com>
+
+pkgname=oath-toolkit
+pkgver=2.6.2
+pkgrel=6
+pkgdesc='OATH one-time password toolkit'
+arch=('x86_64')
+url='https://www.nongnu.org/oath-toolkit/'
+license=('GPL3')
+depends=('glibc' 'pam' 'xmlsec')
+validpgpkeys=('9AA9BDB11BB1B99A21285A330664A76954265E8C') # Simon Josefsson
+source=("https://download.savannah.gnu.org/releases/$pkgname/$pkgname-$pkgver.tar.gz"{,.sig}
+        'oath-toolkit-update-gnulib.patch::https://gitlab.com/oath-toolkit/oath-toolkit/commit/2fffce2a471f74a585939c84cce16ef3015e5d3d.diff'
+        'fseeko.patch')
+sha256sums=('b03446fa4b549af5ebe4d35d7aba51163442d255660558cd861ebce536824aa0'
+            'SKIP'
+            '4093d69a22af60fac339fcee22ff29c3b8418b76bc1286e5226505af884e0c21'
+            'b93dc7bafe32a3477127e55b1c470063660b1f5c3f25622ea581b41502783020')
+
+prepare() {
+  cd $pkgname-$pkgver
+
+  patch -Np1 < "${srcdir}"/oath-toolkit-update-gnulib.patch
+  patch -Np1 < "${srcdir}"/fseeko.patch
+  
+  autoreconf -fi
+}
+
+build() {
+  cd $pkgname-$pkgver
+
+  ./configure --prefix=/usr
+  make
+}
+
+check() {
+  cd $pkgname-$pkgver
+
+  make check
+}
+
+package() {
+  cd $pkgname-$pkgver
+
+  make DESTDIR="$pkgdir" install
+
+  # Install basic docs too
+  install -D -m 0644 pam_oath/README "$pkgdir/usr/share/doc/$pkgname/PAM_README"
+  install -D -m 0644 README "$pkgdir/usr/share/doc/$pkgname/README"
+}
+

Copied: oath-toolkit/repos/community-staging-x86_64/fseeko.patch (from rev 449847, oath-toolkit/trunk/fseeko.patch)
===================================================================
--- community-staging-x86_64/fseeko.patch	                        (rev 0)
+++ community-staging-x86_64/fseeko.patch	2019-04-05 14:59:26 UTC (rev 449848)
@@ -0,0 +1,22 @@
+diff --git a/liboath/gl/fseeko.c b/liboath/gl/fseeko.c
+index 67bb9ec..6adb80e 100644
+--- a/liboath/gl/fseeko.c
++++ b/liboath/gl/fseeko.c
+@@ -47,7 +47,7 @@ fseeko (FILE *fp, off_t offset, int whence)
+ #endif
+ 
+   /* These tests are based on fpurge.c.  */
+-#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
++#if defined _IO_EOF_SEEN || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
+   if (fp->_IO_read_end == fp->_IO_read_ptr
+       && fp->_IO_write_ptr == fp->_IO_write_base
+       && fp->_IO_save_base == NULL)
+@@ -123,7 +123,7 @@ fseeko (FILE *fp, off_t offset, int whence)
+           return -1;
+         }
+ 
+-#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
++#if defined _IO_EOF_SEEN || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
+       fp->_flags &= ~_IO_EOF_SEEN;
+       fp->_offset = pos;
+ #elif defined __sferror || defined __DragonFly__ || defined __ANDROID__


More information about the arch-commits mailing list