From owner-svn-ports-head@freebsd.org Sun Jul 16 18:57:34 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3B5FBC31941; Sun, 16 Jul 2017 18:57:34 +0000 (UTC) (envelope-from cpm@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0C6D73D0F; Sun, 16 Jul 2017 18:57:33 +0000 (UTC) (envelope-from cpm@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v6GIvXMS005038; Sun, 16 Jul 2017 18:57:33 GMT (envelope-from cpm@FreeBSD.org) Received: (from cpm@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v6GIvWSK005032; Sun, 16 Jul 2017 18:57:32 GMT (envelope-from cpm@FreeBSD.org) Message-Id: <201707161857.v6GIvWSK005032@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: cpm set sender to cpm@FreeBSD.org using -f From: "Carlos J. Puga Medina" Date: Sun, 16 Jul 2017 18:57:32 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r446043 - in head: . security/libu2f-host security/libu2f-host/files X-SVN-Group: ports-head X-SVN-Commit-Author: cpm X-SVN-Commit-Paths: in head: . security/libu2f-host security/libu2f-host/files X-SVN-Commit-Revision: 446043 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Jul 2017 18:57:34 -0000 Author: cpm Date: Sun Jul 16 18:57:32 2017 New Revision: 446043 URL: https://svnweb.freebsd.org/changeset/ports/446043 Log: - Fix LICENSE - Use GROUPS - Add sample config file - Add pkg-message - Pass maintainership to submitter - Bump PORTREVISION Submitted by: cpm Reviewed by: bapt, jbeich, hselasky, uqs Approved by: bapt (maintainer), jbeich, hselasky MFH: 2017Q3 Differential Revision: https://reviews.freebsd.org/D11328 Added: head/security/libu2f-host/files/ head/security/libu2f-host/files/pkg-message.in (contents, props changed) head/security/libu2f-host/files/u2f.conf.sample (contents, props changed) Modified: head/GIDs head/security/libu2f-host/Makefile head/security/libu2f-host/pkg-plist Modified: head/GIDs ============================================================================== --- head/GIDs Sun Jul 16 18:15:47 2017 (r446042) +++ head/GIDs Sun Jul 16 18:57:32 2017 (r446043) @@ -57,7 +57,7 @@ dcc:*:112: amavis:*:113: dhis:*:114: _symon:*:115: -# free: 116 +u2f:*:116: smokeping:*:117: ircproxyd:*:118: mythtv:*:119: Modified: head/security/libu2f-host/Makefile ============================================================================== --- head/security/libu2f-host/Makefile Sun Jul 16 18:15:47 2017 (r446042) +++ head/security/libu2f-host/Makefile Sun Jul 16 18:57:32 2017 (r446043) @@ -3,12 +3,13 @@ PORTNAME= libu2f-host PORTVERSION= 1.1.3 DISTVERSIONPREFIX= ${PORTNAME}- +PORTREVISION= 1 CATEGORIES= security devel -MAINTAINER= bapt@FreeBSD.org +MAINTAINER= cpm@FreeBSD.org COMMENT= Yubico Universal 2nd Factor (U2F) Host C Library -LICENSE= LGPL21 GPLv3 +LICENSE= LGPL21+ GPLv3+ LICENSE_COMB= multi BUILD_DEPENDS= gengetopt:devel/gengetopt \ @@ -25,5 +26,13 @@ USE_LDCONFIG= yes CONFIGRUE_ARGS= --disable-gtk-doc INSTALL_TARGET= install-strip + +SUB_FILES= pkg-message + +GROUPS= u2f + +post-install: + ${INSTALL_DATA} ${FILESDIR}/u2f.conf.sample \ + ${STAGEDIR}${PREFIX}/etc/devd .include Added: head/security/libu2f-host/files/pkg-message.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/libu2f-host/files/pkg-message.in Sun Jul 16 18:57:32 2017 (r446043) @@ -0,0 +1,13 @@ +====================================================================== + +The package requires read/write access to USB devices. To facilitate +such access it comes with a devd.conf(5) file, but you still need to +restart devd(8), add the desired users to "u2f" group and log those +out of the current session. For example: + +$ pw group mod u2f -m +$ shutdown -r now + +For details, see %%PREFIX%%/etc/devd/u2f.conf + +====================================================================== Added: head/security/libu2f-host/files/u2f.conf.sample ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/libu2f-host/files/u2f.conf.sample Sun Jul 16 18:57:32 2017 (r446043) @@ -0,0 +1,91 @@ +# Allow members of group u2f to access U2F devices + +# 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 "chgrp u2f /dev/$cdev; 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 "chgrp u2f /dev/$cdev; 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 "chgrp u2f /dev/$cdev; 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 "chgrp u2f /dev/$cdev; 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 "chgrp u2f /dev/$cdev; 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 "chgrp u2f /dev/$cdev; 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 "chgrp u2f /dev/$cdev; 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 "chgrp u2f /dev/$cdev; 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 "chgrp u2f /dev/$cdev; chmod g+rw /dev/$cdev"; +}; Modified: head/security/libu2f-host/pkg-plist ============================================================================== --- head/security/libu2f-host/pkg-plist Sun Jul 16 18:15:47 2017 (r446042) +++ head/security/libu2f-host/pkg-plist Sun Jul 16 18:57:32 2017 (r446043) @@ -1,4 +1,5 @@ bin/u2f-host +@sample etc/devd/u2f.conf.sample include/u2f-host/u2f-host-types.h include/u2f-host/u2f-host-version.h include/u2f-host/u2f-host.h