libfprint/debian
谢炜 6369b1cbeb change format 2022-06-07 14:19:52 +08:00
..
source change format 2022-06-07 14:19:52 +08:00
README.source Import Debian changes 1:1.0-ok1 2022-06-07 14:19:49 +08:00
changelog Import Debian changes 1:1.0-ok1 2022-06-07 14:19:49 +08:00
compat Import Debian changes 1:1.0-ok1 2022-06-07 14:19:49 +08:00
control Import Debian changes 1:1.0-ok1 2022-06-07 14:19:49 +08:00
copyright Import Debian changes 1:1.0-ok1 2022-06-07 14:19:49 +08:00
docs Import Debian changes 1:1.0-ok1 2022-06-07 14:19:49 +08:00
gbp.conf Import Debian changes 1:1.0-ok1 2022-06-07 14:19:49 +08:00
libfprint-dev.install Import Debian changes 1:1.0-ok1 2022-06-07 14:19:49 +08:00
libfprint-doc.install Import Debian changes 1:1.0-ok1 2022-06-07 14:19:49 +08:00
libfprint0.install Import Debian changes 1:1.0-ok1 2022-06-07 14:19:49 +08:00
libfprint0.lintian-overrides Import Debian changes 1:1.0-ok1 2022-06-07 14:19:49 +08:00
libfprint0.postinst Import Debian changes 1:1.0-ok1 2022-06-07 14:19:49 +08:00
libfprint0.symbols Import Debian changes 1:1.0-ok1 2022-06-07 14:19:49 +08:00
rules Import Debian changes 1:1.0-ok1 2022-06-07 14:19:49 +08:00
watch Import Debian changes 1:1.0-ok1 2022-06-07 14:19:49 +08:00

README.source

The libfprint0 postinst script calls udevadmin trigger for all the supported
USB readers. The list of readers used in that file is generated by calling the
following awk script:

  /plugdev/ {
          printf ("\tudevadm trigger --action=add " )
          for (i=1;i<=NF; i++){
                  if (match($i,/idVendor/)>0) {
                          match($i, /"[^"]*"/); printf ("--attr-match=idVendor=%s ",substr($i,RSTART+1,RLENGTH-2))
                  }
                  if (match($i,/idProduct/)>0) {
                          match($i, /"[^"]*"/); printf ("--attr-match=idProduct=%s",substr($i,RSTART+1,RLENGTH-2))
                  }
          };
          printf("\n")
  }

When preparing a new upstream release, this script should be called against the
udev .rules file generated during the build of the package