[gentoo-commits] repo/gentoo:master commit in: dev-libs/libfido2/files/, dev-libs/libfido2/

2023-01-26 Thread Patrick McLean
commit: f9754b4fdfdaffdbd43584fd81951fb002a814c2
Author: Patrick McLean  gentoo  org>
AuthorDate: Thu Jan 26 19:38:48 2023 +
Commit: Patrick McLean  gentoo  org>
CommitDate: Thu Jan 26 19:38:55 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9754b4f

dev-libs/libfido2: add 1.12.0

Signed-off-by: Patrick McLean  gentoo.org>

 dev-libs/libfido2/Manifest |  1 +
 .../files/libfido2-1.12.0-cmakelists.patch | 35 
 dev-libs/libfido2/libfido2-1.12.0.ebuild   | 63 ++
 3 files changed, 99 insertions(+)

diff --git a/dev-libs/libfido2/Manifest b/dev-libs/libfido2/Manifest
index 67fdce2dddbf..90e91ea15503 100644
--- a/dev-libs/libfido2/Manifest
+++ b/dev-libs/libfido2/Manifest
@@ -1 +1,2 @@
 DIST libfido2-1.11.0.tar.gz 624148 BLAKE2B 
ac123145f22260922e1d83653ba5781c5f41b410760f2c26b7cab7cb0871079aed66a8d9747393843738e4c2ed7ba8ba0292075516ef0354fd4328df967b7a6d
 SHA512 
d9644453d67b84ec8385dfb63796adb3eae2d7f7cb47fbb1bcf9ca7f5cce400623738cc3317d629c2f0af630424cb2788217f8c7f20d1b52b7369c729052d572
+DIST libfido2-1.12.0.tar.gz 652326 BLAKE2B 
e206c9c76e27037c49d3b0e842487b0711559483eb9ae638590bb7175761251c6f60dae6c6dc6cc8b13e49b9f32432ce4368e709b4aacf71f43b760092e3b00d
 SHA512 
ae8c716fe9b2fa52f191c4b3fe61442ba0b7a364a23c6c3a29afdba4f47c5eff89cb1d6c9fcacaefd7d4ebce641d35600527ee33934786c2096ac97f78e9418f

diff --git a/dev-libs/libfido2/files/libfido2-1.12.0-cmakelists.patch 
b/dev-libs/libfido2/files/libfido2-1.12.0-cmakelists.patch
new file mode 100644
index ..48dac6268342
--- /dev/null
+++ b/dev-libs/libfido2/files/libfido2-1.12.0-cmakelists.patch
@@ -0,0 +1,35 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index dc31cc0..81528d9 100644
+--- a/CMakeLists.txt
 b/CMakeLists.txt
+@@ -272,7 +272,6 @@ else()
+ 
+   add_compile_options(-Wall)
+   add_compile_options(-Wextra)
+-  add_compile_options(-Werror)
+   add_compile_options(-Wshadow)
+   add_compile_options(-Wcast-qual)
+   add_compile_options(-Wwrite-strings)
+@@ -280,7 +279,6 @@ else()
+   add_compile_options(-Wbad-function-cast)
+   add_compile_options(-Wimplicit-fallthrough)
+   add_compile_options(-pedantic)
+-  add_compile_options(-pedantic-errors)
+ 
+   set(EXTRA_CFLAGS "-Wconversion -Wsign-conversion")
+ 
+diff --git a/man/CMakeLists.txt b/man/CMakeLists.txt
+index cf32a3a..4aa6005 100644
+--- a/man/CMakeLists.txt
 b/man/CMakeLists.txt
+@@ -4,10 +4,8 @@
+ # SPDX-License-Identifier: BSD-2-Clause
+ 
+ find_program(MANDOC_PATH mandoc)
+-find_program(GZIP_PATH gzip)
+ 
+ message(STATUS "MANDOC_PATH: ${MANDOC_PATH}")
+-message(STATUS "GZIP_PATH: ${GZIP_PATH}")
+ 
+ list(APPEND MAN_SOURCES
+   eddsa_pk_new.3

diff --git a/dev-libs/libfido2/libfido2-1.12.0.ebuild 
b/dev-libs/libfido2/libfido2-1.12.0.ebuild
new file mode 100644
index ..5fba80836f19
--- /dev/null
+++ b/dev-libs/libfido2/libfido2-1.12.0.ebuild
@@ -0,0 +1,63 @@
+# Copyright 2022-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake udev linux-info
+
+DESCRIPTION="Provides library functionality for FIDO 2.0"
+HOMEPAGE="https://github.com/Yubico/libfido2";
+SRC_URI="https://github.com/Yubico/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0/1"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86"
+IUSE="nfc static-libs"
+
+DEPEND="
+   dev-libs/libcbor:=
+   dev-libs/openssl:=
+   sys-libs/zlib:=
+   virtual/libudev:=
+"
+RDEPEND="
+   ${DEPEND}
+   acct-group/plugdev
+"
+
+PATCHES=(
+   "${FILESDIR}"/${PN}-1.12.0-cmakelists.patch
+)
+
+pkg_pretend() {
+   CONFIG_CHECK="
+   ~USB_HID
+   ~HIDRAW
+   "
+
+   check_extra_config
+}
+
+src_configure() {
+   local mycmakeargs=(
+   -DBUILD_EXAMPLES=OFF
+   -DBUILD_STATIC_LIBS=$(usex static-libs ON OFF)
+   -DNFC_LINUX=$(usex nfc ON OFF)
+   )
+
+   cmake_src_configure
+}
+
+src_install() {
+   cmake_src_install
+
+   udev_newrules udev/70-u2f.rules 70-libfido2-u2f.rules
+}
+
+pkg_postinst() {
+   udev_reload
+}
+
+pkg_postrm() {
+   udev_reload
+}



[gentoo-commits] repo/gentoo:master commit in: dev-libs/libfido2/files/, dev-libs/libfido2/

2021-05-10 Thread David Seifert
commit: 8906ecbf08f32d9f0adcbce373fc0189ff6d6fcb
Author: David Seifert  gentoo  org>
AuthorDate: Mon May 10 14:43:46 2021 +
Commit: David Seifert  gentoo  org>
CommitDate: Mon May 10 14:43:46 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8906ecbf

dev-libs/libfido2: Remove old 1.5.0-r1, 1.6.0

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: David Seifert  gentoo.org>

 dev-libs/libfido2/Manifest |  2 -
 .../libfido2/files/libfido2-1.5.0-cmakelists.patch | 30 -
 dev-libs/libfido2/libfido2-1.5.0-r1.ebuild | 49 --
 dev-libs/libfido2/libfido2-1.6.0.ebuild| 49 --
 4 files changed, 130 deletions(-)

diff --git a/dev-libs/libfido2/Manifest b/dev-libs/libfido2/Manifest
index 0436533ab99..d46b9898315 100644
--- a/dev-libs/libfido2/Manifest
+++ b/dev-libs/libfido2/Manifest
@@ -1,3 +1 @@
-DIST libfido2-1.5.0.tar.gz 407259 BLAKE2B 
23a04f9230c45652aa1ac9fd8b3e809096ae31699c65ca0fda27b27b1b47263e375bb99e5b1ebc515b9edfb801bb2fba9c4f50d88e755efe3eaa23463ca01946
 SHA512 
240e2368e43846fddf5e98bbcc247468833565bcde4ec27976b88c814d787f1a477241a82b064818aa0eb0a98ff46a65d80b8243f4d0bbd763270e42492354e2
-DIST libfido2-1.6.0.tar.gz 413904 BLAKE2B 
59444cc9e32b5d9f2a0f9138fe4f3ad644865e1f7f24f50bbace262308aa7c10b58aa0e890a3493e8fd102468e26947f7fc0864b5d7a1e185e40ad730064db8e
 SHA512 
c473732a2f7ef54156097d315e44457d89056446ab3112a7c7a6fd99d5c2c8ae0ca2451ff9cd45be6c32de1ab335d6dfdb2b0c56b40cae9eb41391d18d83be4a
 DIST libfido2-1.7.0.tar.gz 517426 BLAKE2B 
c7ad55d1402808ad12dc999b0ec67161a5fe82dfeaeed362c35f4183144af9bd2771c1e3318a731db46fd8fc21ccd0737024b72c8dd3c754e34625118817742f
 SHA512 
f40d394883d909e9e3ea3308b32f7ca31a882c709e11b3b143ed5734d16b0c244d4932effe06965d566776b03d152b1fc280e73cdfeeb81b65d8414042af19fe

diff --git a/dev-libs/libfido2/files/libfido2-1.5.0-cmakelists.patch 
b/dev-libs/libfido2/files/libfido2-1.5.0-cmakelists.patch
deleted file mode 100644
index df7f489b45c..000
--- a/dev-libs/libfido2/files/libfido2-1.5.0-cmakelists.patch
+++ /dev/null
@@ -1,30 +0,0 @@
 a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -128,13 +128,11 @@ else()
- 
-   set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
-   set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wextra")
--  set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror")
-   set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wshadow")
-   set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wwrite-strings")
-   set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wmissing-prototypes")
-   set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wbad-function-cast")
-   set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pedantic")
--  set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pedantic-errors")
-   check_c_compiler_flag("-fstack-protector-all" HAVE_STACK_PROTECTOR_ALL)
-   if(HAVE_STACK_PROTECTOR_ALL)
-   set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fstack-protector-all")
 a/man/CMakeLists.txt
-+++ b/man/CMakeLists.txt
-@@ -3,10 +3,8 @@
- # license that can be found in the LICENSE file.
- 
- find_program(MANDOC_PATH mandoc)
--find_program(GZIP_PATH gzip)
- 
- message(STATUS "MANDOC_PATH: ${MANDOC_PATH}")
--message(STATUS "GZIP_PATH: ${GZIP_PATH}")
- 
- list(APPEND MAN_SOURCES
-   eddsa_pk_new.3
- 

diff --git a/dev-libs/libfido2/libfido2-1.5.0-r1.ebuild 
b/dev-libs/libfido2/libfido2-1.5.0-r1.ebuild
deleted file mode 100644
index 51d2ad33032..000
--- a/dev-libs/libfido2/libfido2-1.5.0-r1.ebuild
+++ /dev/null
@@ -1,49 +0,0 @@
-# Copyright 2020-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit cmake udev linux-info
-
-DESCRIPTION="Provides library functionality for FIDO 2.0"
-HOMEPAGE="https://github.com/Yubico/libfido2";
-SRC_URI="https://github.com/Yubico/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="BSD-2"
-SLOT="0/1"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~s390 sparc x86"
-IUSE="+static-libs"
-
-DEPEND="
-   dev-libs/libcbor:=
-   virtual/libudev:=
-   dev-libs/openssl:0=
-"
-
-RDEPEND="
-   ${DEPEND}
-   acct-group/plugdev
-"
-
-PATCHES=(
-   "${FILESDIR}/libfido2-1.5.0-cmakelists.patch"
-)
-
-pkg_pretend() {
-   CONFIG_CHECK="
-   ~USB_HID
-   ~HIDRAW
-   "
-
-   check_extra_config
-}
-
-src_install() {
-   cmake_src_install
-
-   if ! use static-libs; then
-   rm -f "${ED}/$(get_libdir)"/*.a || die
-   fi
-
-   udev_newrules udev/70-u2f.rules 70-libfido2-u2f.rules
-}

diff --git a/dev-libs/libfido2/libfido2-1.6.0.ebuild 
b/dev-libs/libfido2/libfido2-1.6.0.ebuild
deleted file mode 100644
index 7834bfb309a..000
--- a/dev-libs/libfido2/libfido2-1.6.0.ebuild
+++ /dev/null
@@ -1,49 +0,0 @@
-# Copyright 2020-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit cmake udev linux-info
-
-DESCRIPTION="Provides library functionality for

[gentoo-commits] repo/gentoo:master commit in: dev-libs/libfido2/files/, dev-libs/libfido2/

2021-03-30 Thread Lars Wendler
commit: de1d381ac3aa9f001125f3b290a35afdbda0e6e4
Author: Lars Wendler  gentoo  org>
AuthorDate: Tue Mar 30 08:06:19 2021 +
Commit: Lars Wendler  gentoo  org>
CommitDate: Tue Mar 30 08:06:52 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de1d381a

dev-libs/libfido2: Bump to version 1.7.0

Signed-off-by: Lars Wendler  gentoo.org>

 dev-libs/libfido2/Manifest |  1 +
 .../libfido2/files/libfido2-1.7.0-cmakelists.patch | 30 
 dev-libs/libfido2/libfido2-1.7.0.ebuild| 57 ++
 dev-libs/libfido2/metadata.xml |  3 ++
 4 files changed, 91 insertions(+)

diff --git a/dev-libs/libfido2/Manifest b/dev-libs/libfido2/Manifest
index 364924cc4ac..0436533ab99 100644
--- a/dev-libs/libfido2/Manifest
+++ b/dev-libs/libfido2/Manifest
@@ -1,2 +1,3 @@
 DIST libfido2-1.5.0.tar.gz 407259 BLAKE2B 
23a04f9230c45652aa1ac9fd8b3e809096ae31699c65ca0fda27b27b1b47263e375bb99e5b1ebc515b9edfb801bb2fba9c4f50d88e755efe3eaa23463ca01946
 SHA512 
240e2368e43846fddf5e98bbcc247468833565bcde4ec27976b88c814d787f1a477241a82b064818aa0eb0a98ff46a65d80b8243f4d0bbd763270e42492354e2
 DIST libfido2-1.6.0.tar.gz 413904 BLAKE2B 
59444cc9e32b5d9f2a0f9138fe4f3ad644865e1f7f24f50bbace262308aa7c10b58aa0e890a3493e8fd102468e26947f7fc0864b5d7a1e185e40ad730064db8e
 SHA512 
c473732a2f7ef54156097d315e44457d89056446ab3112a7c7a6fd99d5c2c8ae0ca2451ff9cd45be6c32de1ab335d6dfdb2b0c56b40cae9eb41391d18d83be4a
+DIST libfido2-1.7.0.tar.gz 517426 BLAKE2B 
c7ad55d1402808ad12dc999b0ec67161a5fe82dfeaeed362c35f4183144af9bd2771c1e3318a731db46fd8fc21ccd0737024b72c8dd3c754e34625118817742f
 SHA512 
f40d394883d909e9e3ea3308b32f7ca31a882c709e11b3b143ed5734d16b0c244d4932effe06965d566776b03d152b1fc280e73cdfeeb81b65d8414042af19fe

diff --git a/dev-libs/libfido2/files/libfido2-1.7.0-cmakelists.patch 
b/dev-libs/libfido2/files/libfido2-1.7.0-cmakelists.patch
new file mode 100644
index 000..2a1bfc1614d
--- /dev/null
+++ b/dev-libs/libfido2/files/libfido2-1.7.0-cmakelists.patch
@@ -0,0 +1,30 @@
+--- libfido2-1.7.0/CMakeLists.txt
 libfido2-1.7.0/CMakeLists.txt
+@@ -246,14 +246,12 @@
+ 
+   add_compile_options(-Wall)
+   add_compile_options(-Wextra)
+-  add_compile_options(-Werror)
+   add_compile_options(-Wshadow)
+   add_compile_options(-Wcast-qual)
+   add_compile_options(-Wwrite-strings)
+   add_compile_options(-Wmissing-prototypes)
+   add_compile_options(-Wbad-function-cast)
+   add_compile_options(-pedantic)
+-  add_compile_options(-pedantic-errors)
+ 
+   if(HAVE_SHORTEN_64_TO_32)
+   add_compile_options(-Wshorten-64-to-32)
+--- libfido2-1.7.0/man/CMakeLists.txt
 libfido2-1.7.0/man/CMakeLists.txt
+@@ -3,10 +3,8 @@
+ # license that can be found in the LICENSE file.
+ 
+ find_program(MANDOC_PATH mandoc)
+-find_program(GZIP_PATH gzip)
+ 
+ message(STATUS "MANDOC_PATH: ${MANDOC_PATH}")
+-message(STATUS "GZIP_PATH: ${GZIP_PATH}")
+ 
+ list(APPEND MAN_SOURCES
+   eddsa_pk_new.3

diff --git a/dev-libs/libfido2/libfido2-1.7.0.ebuild 
b/dev-libs/libfido2/libfido2-1.7.0.ebuild
new file mode 100644
index 000..21c57df8955
--- /dev/null
+++ b/dev-libs/libfido2/libfido2-1.7.0.ebuild
@@ -0,0 +1,57 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake udev linux-info
+
+DESCRIPTION="Provides library functionality for FIDO 2.0"
+HOMEPAGE="https://github.com/Yubico/libfido2";
+SRC_URI="https://github.com/Yubico/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0/1"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
+IUSE="nfc +static-libs"
+
+DEPEND="
+   dev-libs/libcbor:=
+   dev-libs/openssl:0=
+   sys-libs/zlib:0=
+   virtual/libudev:=
+"
+
+RDEPEND="
+   ${DEPEND}
+   acct-group/plugdev
+"
+
+PATCHES=(
+   "${FILESDIR}/libfido2-1.7.0-cmakelists.patch"
+)
+
+pkg_pretend() {
+   CONFIG_CHECK="
+   ~USB_HID
+   ~HIDRAW
+   "
+
+   check_extra_config
+}
+
+src_configure() {
+   local mycmakeargs=(
+   -DNFC_LINUX="$(usex nfc)"
+   )
+   cmake_src_configure
+}
+
+src_install() {
+   cmake_src_install
+
+   if ! use static-libs; then
+   rm -f "${ED}/$(get_libdir)"/*.a || die
+   fi
+
+   udev_newrules udev/70-u2f.rules 70-libfido2-u2f.rules
+}

diff --git a/dev-libs/libfido2/metadata.xml b/dev-libs/libfido2/metadata.xml
index 4eb20a048df..faf987beddf 100644
--- a/dev-libs/libfido2/metadata.xml
+++ b/dev-libs/libfido2/metadata.xml
@@ -5,4 +5,7 @@
base-sys...@gentoo.org
Gentoo Base System

+   
+   Enable experimental NFC support
+   
 



[gentoo-commits] repo/gentoo:master commit in: dev-libs/libfido2/files/, dev-libs/libfido2/

2020-02-15 Thread Patrick McLean
commit: a8134142c199931d74b905328e4de4531df70a64
Author: Patrick McLean  gentoo  org>
AuthorDate: Sun Feb 16 04:58:27 2020 +
Commit: Patrick McLean  gentoo  org>
CommitDate: Sun Feb 16 05:04:28 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8134142

dev-libs/libfido2: New package

Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Patrick McLean  gentoo.org>

 dev-libs/libfido2/Manifest |  1 +
 .../libfido2/files/libfido2-1.3.0-cmakelists.patch | 38 ++
 .../libfido2-1.3.0-remove-openssh-middleware.patch | 45 ++
 dev-libs/libfido2/libfido2-1.3.0.ebuild| 38 ++
 dev-libs/libfido2/metadata.xml |  8 
 5 files changed, 130 insertions(+)

diff --git a/dev-libs/libfido2/Manifest b/dev-libs/libfido2/Manifest
new file mode 100644
index 000..15353641673
--- /dev/null
+++ b/dev-libs/libfido2/Manifest
@@ -0,0 +1 @@
+DIST libfido2-1.3.0.tar.gz 1516842 BLAKE2B 
18a0036127a9f643ef7ca917dab909bfa344caecdfdef3f1f0881bd7c84b73ea8273a57a2daccc95cc448dc389a8f573f663895abd78c48b3340a45f7764
 SHA512 
9cfb872b898fb6659e0c5e377b5f80738c22dadc4768be02b8cb5e4f4932cb4edde360cd84aac78eb3e3a57d3bc10b4147740a4830d16adcdefe7c48fa460d36

diff --git a/dev-libs/libfido2/files/libfido2-1.3.0-cmakelists.patch 
b/dev-libs/libfido2/files/libfido2-1.3.0-cmakelists.patch
new file mode 100644
index 000..a5a4b721ed0
--- /dev/null
+++ b/dev-libs/libfido2/files/libfido2-1.3.0-cmakelists.patch
@@ -0,0 +1,38 @@
+diff --git a/man/CMakeLists.txt b/man/CMakeLists.txt
+index 71bc502..ac424d2 100644
+--- a/man/CMakeLists.txt
 b/man/CMakeLists.txt
+@@ -2,11 +2,12 @@
+ # Use of this source code is governed by a BSD-style
+ # license that can be found in the LICENSE file.
+ 
++include(GNUInstallDirs)
++
+ find_program(MANDOC_PATH mandoc)
+ message(STATUS "MANDOC_PATH: ${MANDOC_PATH}")
+ 
+ if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
+-  find_program(GZIP_PATH gzip)
+   message(STATUS "GZIP_PATH: ${GZIP_PATH}")
+ endif()
+ 
+@@ -301,16 +302,16 @@ elseif(NOT MSVC)
+   foreach(f ${MAN_SOURCES})
+   if (${f} MATCHES ".1$")
+   install(FILES ${CMAKE_BINARY_DIR}/man/${f}
+-  DESTINATION "${CMAKE_INSTALL_PREFIX}/man/man1")
++  DESTINATION "${CMAKE_INSTALL_MANDIR}/man1")
+   elseif(${f} MATCHES ".3$")
+   install(FILES ${CMAKE_BINARY_DIR}/man/${f}
+-  DESTINATION "${CMAKE_INSTALL_PREFIX}/man/man3")
++  DESTINATION "${CMAKE_INSTALL_MANDIR}/man3")
+   endif()
+   endforeach()
+   foreach(i RANGE 0 ${MAN_ALIAS_MAX} 2)
+   math(EXPR j "${i} + 1")
+   list(GET MAN_ALIAS ${j} DST)
+   install(FILES ${CMAKE_BINARY_DIR}/man/${DST}.3
+-  DESTINATION ${CMAKE_INSTALL_PREFIX}/man/man3)
++  DESTINATION ${CMAKE_INSTALL_MANDIR}/man3)
+   endforeach()
+ endif()

diff --git 
a/dev-libs/libfido2/files/libfido2-1.3.0-remove-openssh-middleware.patch 
b/dev-libs/libfido2/files/libfido2-1.3.0-remove-openssh-middleware.patch
new file mode 100644
index 000..7dec27b861f
--- /dev/null
+++ b/dev-libs/libfido2/files/libfido2-1.3.0-remove-openssh-middleware.patch
@@ -0,0 +1,45 @@
+diff --git a/README.adoc b/README.adoc
+index 8693417..023f2e9 100644
+--- a/README.adoc
 b/README.adoc
+@@ -71,18 +71,3 @@ KERNEL=="hidraw*", SUBSYSTEM=="hidraw", \
+ On Windows 1903 and newer versions, access to FIDO devices has been restricted
+ to applications using the operating system's native API. Use of *libfido2*
+ is still possible in privileged applications.
+-
+-=== OpenSSH Integration
+-
+-*libfido2* includes middleware allowing https://www.openssh.com[OpenSSH] to
+-talk to U2F/FIDO2 devices. Note that server support is required for
+-authentication. In a nutshell:
+-
+- Key Generation
+-
+-  $ ssh-keygen -t [ecdsa-sk|ed25519-sk] -w /path/to/libsk-libfido2.so
+-
+- Authentication
+-
+-  $ ssh-agent -P /path/to/libsk-libfido2.so
+-  $ ssh-add -S /path/to/libsk-libfido2.so
+diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt
+index 5f27e88..c44d1df 100644
+--- a/tools/CMakeLists.txt
 b/tools/CMakeLists.txt
+@@ -49,17 +49,9 @@ add_executable(fido2-token
+   ${COMPAT_SOURCES}
+ )
+ 
+-add_library(sk-libfido2 MODULE sk-libfido2.c)
+-set_target_properties(sk-libfido2 PROPERTIES
+-  COMPILE_FLAGS "-DSK_STANDALONE -DWITH_OPENSSL"
+-  OUTPUT_NAME sk-libfido2
+-)
+-
+ target_link_libraries(fido2-cred ${CRYPTO_LIBRARIES} fido2_shared)
+ target_link_libraries(fido2-assert ${CRYPTO_LIBRARIES} fido2_shared)
+ target_link_libraries(fido2-token ${CRYPTO_LIBRARIES} fido2_shared)
+-target_link_libraries(sk-libfido2 ${CRYPTO_LIBRARIES} fido2_shared)
+ 
+ install(TARGETS fido2-cred fido2-assert fido2-token
+   DEST