diff --git a/app-crypt/libu2f_host/libu2f_host-1.1.10.recipe b/app-crypt/libu2f_host/libu2f_host-1.1.10.recipe new file mode 100644 index 000000000..7cf629101 --- /dev/null +++ b/app-crypt/libu2f_host/libu2f_host-1.1.10.recipe @@ -0,0 +1,84 @@ +SUMMARY="Yubico universal 2nd factor (U2F) host C library" +DESCRIPTION="libu2fhost provides a C library and command-line tool \ +that implements the host-side of the U2F protocol. +There are APIs to talk to a U2F device and perform the \ +U2F Register and U2F Authenticate operations." +HOMEPAGE="https://developers.yubico.com/libu2f-host/ + https://github.com/Yubico/libu2f-host" +COPYRIGHT="2013-2014 Yubico AB" +LICENSE="GNU GPL v3 + GNU LGPL v2" +REVISION="1" +SOURCE_URI="https://github.com/Yubico/libu2f-host/archive/libu2f-host-$portVersion.tar.gz" +CHECKSUM_SHA256="45937c6c04349f865d9f047d3a68cc50ea24e9085d18ac2c7d31fa38eb749303" +SOURCE_DIR="libu2f-host-libu2f-host-$portVersion" +PATCHES="libu2f_host-$portVersion.patchset" + +ARCHITECTURES="!x86_gcc2 x86_64" +SECONDARY_ARCHITECTURES="x86" + +commandBinDir=$binDir +commandSuffix=$secondaryArchSuffix +if [ "$targetArchitecture" = x86_gcc2 ]; then + commandSuffix= + commandBinDir=$prefix/bin +fi + +libVersion="0.1.10" +libVersionCompat="$libVersion compat >= ${libVersion%%.*}" + +PROVIDES=" + libu2f_host$secondaryArchSuffix = $portVersion + cmd:u2f_host$commandSuffix = $portVersion + lib:libu2f_host$secondaryArchSuffix = $libVersionCompat + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libjson_c$secondaryArchSuffix + lib:libhidapi$secondaryArchSuffix + " + +PROVIDES_devel=" + libu2f_host_devel$secondaryArchSuffix = $portVersion + devel:libu2f_host$secondaryArchSuffix = $libVersionCompat + " +REQUIRES_devel=" + libu2f_host$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libjson_c$secondaryArchSuffix + devel:libhidapi$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:autoconf + cmd:automake + cmd:awk + cmd:gcc$secondaryArchSuffix + cmd:gengetopt + cmd:help2man + cmd:libtoolize$secondaryArchSuffix + cmd:make + cmd:pkg_config$secondaryArchSuffix + " + +BUILD() +{ + autoreconf -vfi + runConfigure --omit-dirs "binDir" ./configure \ + --bindir="$commandBinDir" + make $jobArgs +} + +INSTALL() +{ + make install + rm -f "$libDir"/*.la + + prepareInstalledDevelLib libu2f-host + fixPkgconfig + + packageEntries devel \ + $developDir +} diff --git a/app-crypt/libu2f_host/patches/libu2f_host-1.1.10.patchset b/app-crypt/libu2f_host/patches/libu2f_host-1.1.10.patchset new file mode 100644 index 000000000..ca4ecddd8 --- /dev/null +++ b/app-crypt/libu2f_host/patches/libu2f_host-1.1.10.patchset @@ -0,0 +1,19 @@ +From 13c3c844649c028c3ade42e16efb50e4f0e576c1 Mon Sep 17 00:00:00 2001 +From: Panagiotis Vasilopoulos +Date: Sat, 28 Dec 2019 15:37:58 +0200 +Subject: Fixed help2man + + +diff --git a/src/Makefile.am b/src/Makefile.am +index 5dd747a..127ac6f 100644 +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -39,4 +39,4 @@ u2f-host.1: $(srcdir)/u2f-host.c $(srcdir)/cmdline.ggo $(top_srcdir)/configure.a + $(AM_V_GEN)$(HELP2MAN) \ + --output=$@ $(builddir)/u2f-host$(EXEEXT) \ + --name="Yubico Universal 2nd Factor (U2F) Host Tool" \ +- --no-info ++ --no-info --no-discard-stderr +-- +2.19.0 +