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

Felix Yan felixonmars at archlinux.org
Tue Aug 7 08:42:02 UTC 2018


    Date: Tuesday, August 7, 2018 @ 08:42:01
  Author: felixonmars
Revision: 370108

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 370107, oath-toolkit/trunk/PKGBUILD)
  oath-toolkit/repos/community-staging-x86_64/fseeko.patch
    (from rev 370107, oath-toolkit/trunk/fseeko.patch)

--------------+
 PKGBUILD     |   54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 fseeko.patch |   22 ++++++++++++++++++++++
 2 files changed, 76 insertions(+)

Copied: oath-toolkit/repos/community-staging-x86_64/PKGBUILD (from rev 370107, oath-toolkit/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-08-07 08:42:01 UTC (rev 370108)
@@ -0,0 +1,54 @@
+# $Id$
+# 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=4
+pkgdesc='OATH one-time password toolkit'
+arch=('x86_64')
+url='http://www.nongnu.org/oath-toolkit/'
+license=('GPL3')
+depends=('glibc' 'pam' 'xmlsec')
+validpgpkeys=('9AA9BDB11BB1B99A21285A330664A76954265E8C') # Simon Josefsson
+source=("http://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 370107, oath-toolkit/trunk/fseeko.patch)
===================================================================
--- community-staging-x86_64/fseeko.patch	                        (rev 0)
+++ community-staging-x86_64/fseeko.patch	2018-08-07 08:42:01 UTC (rev 370108)
@@ -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