- Set u2f-devd PORTVERSION to be equal to libu2f-host's instead of bumping PORTREVISION

- Fix PID typo
- Add u2f rules for SoloKeys
- Take maintainership

Approved by:	Greg V <greg@unrelenting.technology> (maintainer)
This commit is contained in:
Carlos J. Puga Medina
2019-05-30 11:14:04 +00:00
parent 77b331d518
commit 45d1023906
2 changed files with 23 additions and 8 deletions

View File

@@ -2,13 +2,12 @@
# $FreeBSD$
PORTNAME= u2f-devd
PORTVERSION= 1.0.0
PORTREVISION= 2
PORTVERSION= 1.1.10
CATEGORIES= security
MASTER_SITES= #
DISTFILES= #
MAINTAINER= greg@unrelenting.technology
MAINTAINER= cpm@FreeBSD.org
COMMENT= Devd hotplug rules for Universal 2nd Factor (U2F) tokens
LICENSE= BSD2CLAUSE

View File

@@ -8,13 +8,13 @@ notify 100 {
match "subsystem" "DEVICE";
match "type" "ATTACH";
match "vendor" "0x1050";
match "product" "(0x0113|0x0114|0x0115|0x0116|0x0120|0x0200|0x0420|0x0403|0x0406|0x0407|0x0410)";
match "product" "(0x0113|0x0114|0x0115|0x0116|0x0120|0x0200|0x0402|0x0403|0x0406|0x0407|0x0410)";
action "chgrp u2f /dev/$cdev; chmod g+rw /dev/$cdev";
};
attach 100 {
match "vendor" "0x1050";
match "product" "(0x0113|0x0114|0x0115|0x0116|0x0120|0x0200|0x0420|0x0403|0x0406|0x0407|0x0410)";
match "product" "(0x0113|0x0114|0x0115|0x0116|0x0120|0x0200|0x0402|0x0403|0x0406|0x0407|0x0410)";
action "chgrp u2f /dev/$device-name; chmod g+rw /dev/$device-name";
};
@@ -194,18 +194,34 @@ attach 100 {
action "chgrp u2f /dev/$device-name; chmod g+rw /dev/$device-name";
};
# Tomu board + chopstx U2F
# Tomu board + chopstx U2F + SoloKeys
notify 100 {
match "system" "USB";
match "subsystem" "DEVICE";
match "type" "ATTACH";
match "vendor" "0x0483";
match "product" "0xcdab";
match "product" "(0xcdab|0xa2ca)";
action "chgrp u2f /dev/$cdev; chmod g+rw /dev/$cdev";
};
attach 100 {
match "vendor" "0x0483";
match "product" "0xcdab";
match "product" "(0xcdab|0xa2ca)";
action "chgrp u2f /dev/$device-name; chmod g+rw /dev/$device-name";
};
# SoloKeys
notify 100 {
match "system" "USB";
match "subsystem" "DEVICE";
match "type" "ATTACH";
match "vendor" "0x1209";
match "product" "(0x5070|0x50b0)";
action "chgrp u2f /dev/$cdev; chmod g+rw /dev/$cdev";
};
attach 100 {
match "vendor" "0x1209";
match "product" "(0x5070|0x50b0)";
action "chgrp u2f /dev/$device-name; chmod g+rw /dev/$device-name";
};