1 |
commit: 33d8979b7c7a2d634f66221aac3a616dc831ccc7 |
2 |
Author: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 5 18:47:34 2018 +0000 |
4 |
Commit: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 5 18:47:58 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33d8979b |
7 |
|
8 |
app-crypt/libu2f-server: bump to 1.1.0, introduce a subslot |
9 |
|
10 |
Package-Manager: Portage-2.3.13, Repoman-2.3.3 |
11 |
|
12 |
app-crypt/libu2f-server/Manifest | 1 + |
13 |
...r-1.1.0-disable-help2man-gengetopt-checks.patch | 37 ++++++++++++++++ |
14 |
app-crypt/libu2f-server/libu2f-server-1.1.0.ebuild | 51 ++++++++++++++++++++++ |
15 |
app-crypt/libu2f-server/metadata.xml | 3 ++ |
16 |
4 files changed, 92 insertions(+) |
17 |
|
18 |
diff --git a/app-crypt/libu2f-server/Manifest b/app-crypt/libu2f-server/Manifest |
19 |
index 456be3961ce..0c6a1457ec0 100644 |
20 |
--- a/app-crypt/libu2f-server/Manifest |
21 |
+++ b/app-crypt/libu2f-server/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST libu2f-server-1.0.1.tar.xz 268648 BLAKE2B 9c6c2e5bafb2a95fcc5c2773de49b4db197ee6283e90cf0e4e62ff3982bdde8a51635cd9771e4dd35d27c71634367197d3b01b9c26d8a3847fccf1daf676f04b SHA512 51020722f49f787c793808b667e91923bde46e9137bfe5065106f83bcdb678e8d11cca12cb605d9622cafc15a9794c9080cf08e2a704293a791ab6f27ac47f47 |
24 |
+DIST libu2f-server-1.1.0.tar.xz 269128 BLAKE2B 084b177a878e8216f2ee5af9eeee11e691edcd12b7ed1b1c57f74bcc45f0418a0d44a9e72423c41b4104aa9f69807a0289172d08d21d168c6be5b36ee8c70bc3 SHA512 ebdb7c8c20727f37f4e31d8f16df7966603374f78478ada723a7b9bec1b0b0622caf6d12a65067ac8651f6088aaad61b2ad6ed51b9d6ef0dc45f031c974d8ff9 |
25 |
|
26 |
diff --git a/app-crypt/libu2f-server/files/libu2f-server-1.1.0-disable-help2man-gengetopt-checks.patch b/app-crypt/libu2f-server/files/libu2f-server-1.1.0-disable-help2man-gengetopt-checks.patch |
27 |
new file mode 100644 |
28 |
index 00000000000..2dbe28b5aa6 |
29 |
--- /dev/null |
30 |
+++ b/app-crypt/libu2f-server/files/libu2f-server-1.1.0-disable-help2man-gengetopt-checks.patch |
31 |
@@ -0,0 +1,37 @@ |
32 |
+Reverted, removed the second hunk about dev-libs/check, and further |
33 |
+adjusted. The tarball already contains the man page and gengetopt |
34 |
+generated command line parsing, so these checks are useless to us. |
35 |
+ |
36 |
+From fbd340d1c777e23b66ef27ce1c03c4eb3bafc511 Mon Sep 17 00:00:00 2001 |
37 |
+From: Thordur Bjornsson <thorduri@××××××.com> |
38 |
+Date: Thu, 12 Jan 2017 14:28:31 +0100 |
39 |
+Subject: [PATCH] auto: Check for help2man/gengetopt, and bail out if not |
40 |
+ found. |
41 |
+ |
42 |
+Both are required to build. |
43 |
+ |
44 |
+While here, if `--enable-tests` passed, check for `check` and |
45 |
+if not found, bail out as well. |
46 |
+--- |
47 |
+ configure.ac | 11 +++++++++-- |
48 |
+ 1 file changed, 9 insertions(+), 2 deletions(-) |
49 |
+ |
50 |
+diff --git a/configure.ac b/configure.ac |
51 |
+index ad409a2..6decb78 100644 |
52 |
+--- b/configure.ac |
53 |
++++ a/configure.ac |
54 |
+@@ -43,14 +43,7 @@ |
55 |
+ LT_INIT([win32-dll]) |
56 |
+ |
57 |
+ AM_MISSING_PROG(HELP2ADOC, help2adoc, $missing_dir) |
58 |
+ AM_MISSING_PROG(HELP2MAN, help2man, $missing_dir) |
59 |
+-if ! which help2man >/dev/null ; then |
60 |
+- AC_MSG_ERROR([help2man missing]) |
61 |
+-fi |
62 |
+-if ! which gengetopt >/dev/null ; then |
63 |
+- AC_MSG_ERROR([gengetopt missing]) |
64 |
+-fi |
65 |
+- |
66 |
+ gl_LD_VERSION_SCRIPT |
67 |
+ |
68 |
+ PKG_CHECK_MODULES([LIBJSON], [json-c], [], [ |
69 |
|
70 |
diff --git a/app-crypt/libu2f-server/libu2f-server-1.1.0.ebuild b/app-crypt/libu2f-server/libu2f-server-1.1.0.ebuild |
71 |
new file mode 100644 |
72 |
index 00000000000..b2ada443d40 |
73 |
--- /dev/null |
74 |
+++ b/app-crypt/libu2f-server/libu2f-server-1.1.0.ebuild |
75 |
@@ -0,0 +1,51 @@ |
76 |
+# Copyright 1999-2018 Gentoo Foundation |
77 |
+# Distributed under the terms of the GNU General Public License v2 |
78 |
+ |
79 |
+EAPI=6 |
80 |
+ |
81 |
+inherit autotools multilib-minimal |
82 |
+ |
83 |
+DESCRIPTION="Yubico Universal 2nd Factor (U2F) server C Library" |
84 |
+HOMEPAGE="https://developers.yubico.com/libu2f-server/" |
85 |
+SRC_URI="https://developers.yubico.com/${PN}/Releases/${P}.tar.xz" |
86 |
+ |
87 |
+LICENSE="BSD-2" |
88 |
+SLOT="0/0.1" |
89 |
+KEYWORDS="~amd64 ~x86" |
90 |
+IUSE="libressl static-libs test" |
91 |
+ |
92 |
+RDEPEND=" |
93 |
+ !libressl? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] ) |
94 |
+ libressl? ( dev-libs/libressl:=[${MULTILIB_USEDEP}] ) |
95 |
+ dev-libs/hidapi[${MULTILIB_USEDEP}] |
96 |
+ dev-libs/json-c:=[${MULTILIB_USEDEP}] |
97 |
+" |
98 |
+DEPEND="${RDEPEND} |
99 |
+ virtual/pkgconfig |
100 |
+ test? ( dev-libs/check[${MULTILIB_USEDEP}] ) |
101 |
+" |
102 |
+ |
103 |
+PATCHES=( |
104 |
+ "${FILESDIR}/${PN}-1.1.0-disable-help2man-gengetopt-checks.patch" |
105 |
+) |
106 |
+ |
107 |
+src_prepare() { |
108 |
+ default |
109 |
+ eautoreconf |
110 |
+ touch man/u2f-server.1 || die # do not rebuild the man page |
111 |
+} |
112 |
+ |
113 |
+multilib_src_configure() { |
114 |
+ myeconfargs=( |
115 |
+ --disable-h2a # tarball already contains the manpage |
116 |
+ $(use_enable static-libs static) |
117 |
+ $(use_enable test tests) |
118 |
+ ) |
119 |
+ |
120 |
+ ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
121 |
+} |
122 |
+ |
123 |
+multilib_src_install_all() { |
124 |
+ default |
125 |
+ find "${D}" -name '*.la' -delete || die |
126 |
+} |
127 |
|
128 |
diff --git a/app-crypt/libu2f-server/metadata.xml b/app-crypt/libu2f-server/metadata.xml |
129 |
index 2d0a0e34de1..2c6ea3e5892 100644 |
130 |
--- a/app-crypt/libu2f-server/metadata.xml |
131 |
+++ b/app-crypt/libu2f-server/metadata.xml |
132 |
@@ -9,4 +9,7 @@ |
133 |
<email>gokturk@g.o</email> |
134 |
<name>Göktürk Yüksek</name> |
135 |
</maintainer> |
136 |
+ <slots> |
137 |
+ <subslots>Reflects ABI compatibility for libu2f-server.so</subslots> |
138 |
+ </slots> |
139 |
</pkgmetadata> |