Index: security/Makefile =================================================================== --- security/Makefile +++ security/Makefile @@ -341,6 +341,7 @@ SUBDIR += libssh2 SUBDIR += libtasn1 SUBDIR += libtomcrypt + SUBDIR += libu2f-host SUBDIR += libuecc SUBDIR += libwhisker SUBDIR += libyubikey Index: security/libu2f-host/Makefile =================================================================== --- security/libu2f-host/Makefile +++ security/libu2f-host/Makefile @@ -0,0 +1,33 @@ +# Created by: Carlos J. Puga Medina +# $FreeBSD$ + +PORTNAME= libu2f-host +PORTVERSION= 1.1.3 +CATEGORIES= security + +MAINTAINER= cpm@FreeBSD.org +COMMENT= Yubico Universal 2nd Factor (U2F) Host C Library + +LICENSE= LGPL21+ +LICENSE_FILE= ${WRKSRC}/COPYING.LGPLv2 + +BUILD_DEPENDS= gengetopt:devel/gengetopt \ + help2man:misc/help2man +LIB_DEPENDS= libhidapi.so:comms/hidapi \ + libjson-c.so:devel/json-c + +USES= autoreconf gmake libtool localbase pathfix pkgconfig +GNU_CONFIGURE= yes +SUB_FILES= u2f.conf +USE_LDCONFIG= yes +INSTALL_TARGET= install-strip + +USE_GITHUB= yes +GH_ACCOUNT= Yubico +GH_TAGNAME= 129acbb + +post-install: + @${MKDIR} ${STAGEDIR}${PREFIX}/etc/devd + ${INSTALL_DATA} ${WRKDIR}/u2f.conf ${STAGEDIR}${PREFIX}/etc/devd + +.include Index: security/libu2f-host/distinfo =================================================================== --- security/libu2f-host/distinfo +++ security/libu2f-host/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1496338707 +SHA256 (Yubico-libu2f-host-1.1.3-129acbb_GH0.tar.gz) = 250e561a227877907f62ee43264797115072dec0f8f72b989ad7166585a6b270 +SIZE (Yubico-libu2f-host-1.1.3-129acbb_GH0.tar.gz) = 142398 Index: security/libu2f-host/files/u2f.conf.in =================================================================== --- security/libu2f-host/files/u2f.conf.in +++ security/libu2f-host/files/u2f.conf.in @@ -0,0 +1,89 @@ +# Yubico Yubikey +notify 100 { + match "system" "USB"; + match "subsystem" "DEVICE"; + match "type" "ATTACH"; + match "vendor" "0x1050"; + match "product" "(0x0113|0x0114|0x0115|0x0116|0x0120|0x0420|0x0403|0x0406|0x0407|0x0410)"; + action "chmod g+rw /dev/$cdev"; +}; + +# Happlink (formerly Plug-Up) Security KEY +notify 100 { + match "system" "USB"; + match "subsystem" "DEVICE"; + match "type" "ATTACH"; + match "vendor" "0x2581"; + match "product" "0xf1d0"; + action "chmod g+rw /dev/$cdev"; +}; + +# Neowave Keydo and Keydo AES +notify 100 { + match "system" "USB"; + match "subsystem" "DEVICE"; + match "type" "ATTACH"; + match "vendor" "0x1e0d"; + match "product" "(0xf1d0|0xf1ae)"; + action "chmod g+rw /dev/$cdev"; +}; + +# HyperSecu HyperFIDO +notify 100 { + match "system" "USB"; + match "subsystem" "DEVICE"; + match "type" "ATTACH"; + match "vendor" "(0x096e|0x2ccf)"; + match "product" "0x0880"; + action "chmod g+rw /dev/$cdev"; +}; + +# Feitian ePass FIDO +notify 100 { + match "system" "USB"; + match "subsystem" "DEVICE"; + match "type" "ATTACH"; + match "vendor" "0x096e"; + match "product" "(0x0850|0x0852|0x0853|0x0854|0x0856|0x0858|0x085a|0x085b)"; + action "chmod g+rw /dev/$cdev"; +}; + +# JaCarta U2F +notify 100 { + match "system" "USB"; + match "subsystem" "DEVICE"; + match "type" "ATTACH"; + match "vendor" "0x24dc"; + match "product" "0x0101"; + action "chmod g+rw /dev/$cdev"; +}; + +# U2F Zero +notify 100 { + match "system" "USB"; + match "subsystem" "DEVICE"; + match "type" "ATTACH"; + match "vendor" "0x10c4"; + match "product" "0x8acf"; + action "chmod g+rw /dev/$cdev"; +}; + +# VASCO SeccureClick +notify 100 { + match "system" "USB"; + match "subsystem" "DEVICE"; + match "type" "ATTACH"; + match "vendor" "0x1a44"; + match "product" "0x00bb"; + action "chmod g+rw /dev/$cdev"; +}; + +# Bluink Key +notify 100 { + match "system" "USB"; + match "subsystem" "DEVICE"; + match "type" "ATTACH"; + match "vendor" "0x2abe"; + match "product" "0x1002"; + action "chmod g+rw /dev/$cdev"; +}; Index: security/libu2f-host/pkg-descr =================================================================== --- security/libu2f-host/pkg-descr +++ security/libu2f-host/pkg-descr @@ -0,0 +1,7 @@ +Libu2f-host 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. + +WWW: https://developers.yubico.com/libu2f-host/ Index: security/libu2f-host/pkg-plist =================================================================== --- security/libu2f-host/pkg-plist +++ security/libu2f-host/pkg-plist @@ -0,0 +1,11 @@ +bin/u2f-host +etc/devd/u2f.conf +include/u2f-host/u2f-host-types.h +include/u2f-host/u2f-host-version.h +include/u2f-host/u2f-host.h +lib/libu2f-host.a +lib/libu2f-host.so +lib/libu2f-host.so.0 +lib/libu2f-host.so.0.1.3 +libdata/pkgconfig/u2f-host.pc +man/man1/u2f-host.1.gz