Gentoo Archives: gentoo-commits

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-auth/oath-toolkit/
Date: Wed, 01 Feb 2017 22:50:15
Message-Id: 1485989346.8d14d3d9d83bac85ca36a0eb1372f1d440c6a06c.robbat2@gentoo
1 commit: 8d14d3d9d83bac85ca36a0eb1372f1d440c6a06c
2 Author: Zoltan Puskas <zoltan <AT> sinustrom <DOT> info>
3 AuthorDate: Wed Feb 1 06:38:50 2017 +0000
4 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 1 22:49:06 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d14d3d9
7
8 sys-auth/oath-toolkit: Update to version 2.6.2
9
10 (cherry picked from commit c3879f88f49d45bb548681b4d90b683bb7394d94)
11 Package-Manager: Portage-2.3.3, Repoman-2.3.1
12 Fixes: https://github.com/gentoo/gentoo/pull/3758
13 Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
14
15 sys-auth/oath-toolkit/Manifest | 1 +
16 sys-auth/oath-toolkit/oath-toolkit-2.6.2.ebuild | 59 +++++++++++++++++++++++++
17 2 files changed, 60 insertions(+)
18
19 diff --git a/sys-auth/oath-toolkit/Manifest b/sys-auth/oath-toolkit/Manifest
20 index d3d9253..8465e52 100644
21 --- a/sys-auth/oath-toolkit/Manifest
22 +++ b/sys-auth/oath-toolkit/Manifest
23 @@ -1 +1,2 @@
24 DIST oath-toolkit-2.6.1.tar.gz 4238966 SHA256 9c57831907bc26eadcdf90ba1827d0bd962dd1f737362e817a1dd6d6ec036f79 SHA512 59feadbc06d11a52bf5879493227c40358fc1f4f17ec3ff92e3a313e47b92f3154396fa3ff38ef163852b32c8bfcef1f59753b614d0138478b8f7e7971f55e62 WHIRLPOOL 4c32514c265f430272d255eb6557f3b3d434c1700d4f6a5c3607808ba761d182dde679f9248b486f9e3c45d402d902bf4863b630d3415529303b2013aabe0223
25 +DIST oath-toolkit-2.6.2.tar.gz 4295786 SHA256 b03446fa4b549af5ebe4d35d7aba51163442d255660558cd861ebce536824aa0 SHA512 201a702a05a2e9fb3a66d04750e1a34e293342126caf02c344954a0d9fd0daafe73ca7f1fe273be129ae555a29b82b72fa2b4770ea2ad10711924e1926ec2cfb WHIRLPOOL 7321ba452070a92d60453ca3b1cb2d9c8ffff86b9fcbe48dcf8e8f00485fed809274fd2c4f6eee7cdd86d83f6f512682c3642ffe991c996140a0121c6314faf4
26
27 diff --git a/sys-auth/oath-toolkit/oath-toolkit-2.6.2.ebuild b/sys-auth/oath-toolkit/oath-toolkit-2.6.2.ebuild
28 new file mode 100644
29 index 00000000..ca54179
30 --- /dev/null
31 +++ b/sys-auth/oath-toolkit/oath-toolkit-2.6.2.ebuild
32 @@ -0,0 +1,59 @@
33 +# Copyright 1999-2017 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +# $Id$
36 +EAPI=6
37 +
38 +inherit pam eutils autotools
39 +DESCRIPTION="Toolkit for using one-time password authentication with HOTP/TOTP algorithms"
40 +HOMEPAGE="http://www.nongnu.org/oath-toolkit/ http://gitorious.org/oath-toolkit/"
41 +SRC_URI="http://download.savannah.gnu.org/releases/${PN}/${P}.tar.gz"
42 +LICENSE="GPL-3 LGPL-2.1"
43 +
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~x86"
46 +IUSE="pam pskc test"
47 +
48 +RDEPEND="
49 + pam? ( virtual/pam )
50 + pskc? ( dev-libs/xmlsec )"
51 +DEPEND="${RDEPEND}
52 + test? ( dev-libs/libxml2 )
53 + dev-util/gtk-doc-am"
54 +
55 +src_prepare() {
56 + # These tests need git/cvs and don't reflect anything in the final app
57 + sed -i -r \
58 + -e '/TESTS/s,test-vc-list-files-(git|cvs).sh,,g' \
59 + gl/tests/Makefile.am
60 + # disable portability warnings, caused by gtk-doc.make
61 + sed -i \
62 + -e '/AM_INIT_AUTOMAKE/ s:-Wall:\0 -Wno-portability:' \
63 + {liboath,libpskc}/configure.ac
64 + eautoreconf
65 + default
66 +}
67 +
68 +src_configure() {
69 + econf \
70 + $(use_enable test xmltest ) \
71 + $(use_enable pam) \
72 + $(use_with pam pam-dir $(getpam_mod_dir)) \
73 + $(use_enable pskc)
74 +}
75 +
76 +src_install() {
77 + default
78 + if use pam; then
79 + newdoc pam_oath/README README.pam
80 + fi
81 + if use pskc; then
82 + doman pskctool/pskctool.1
83 + fi
84 +}
85 +
86 +src_test() {
87 + # without keep-going, it will bail out after the first testsuite failure,
88 + # skipping the other testsuites. as they are mostly independant, this sucks.
89 + emake --keep-going check
90 + [ $? -ne 0 ] && die "At least one testsuite failed"
91 +}