Import Debian changes 1:1.0-ok1

libfprint (1:1.0-ok1) yangtze; urgency=medium

  * build for openKylin.
This commit is contained in:
openKylinBot 2022-06-07 14:13:26 +08:00 committed by 谢炜
parent 956a7104ba
commit 953bc74cee
20 changed files with 521 additions and 0 deletions

19
debian/README.source vendored Normal file
View File

@ -0,0 +1,19 @@
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

5
debian/changelog vendored Normal file
View File

@ -0,0 +1,5 @@
libfprint (1:1.0-ok1) yangtze; urgency=medium
* build for openKylin.
-- openKylinBot <openKylinBot@openkylin.top> Tue, 07 Jun 2022 14:13:26 +0800

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
10

83
debian/control vendored Normal file
View File

@ -0,0 +1,83 @@
Source: libfprint
Priority: optional
Section: libs
Maintainer: FingerForce Team <fingerforce-devel@lists.alioth.debian.org>
Uploaders: Ulises Vitulli <dererk@debian.org>, Didier Raboud <odyx@debian.org>
Build-Depends: debhelper (>= 10.3),
gtk-doc-tools,
libglib2.0-dev (>= 2.50),
libnss3-dev,
libpixman-1-dev,
libusb-1.0-0-dev,
libxv-dev,
meson
Build-Depends-Indep: libglib2.0-doc
Standards-Version: 4.4.0
Homepage: https://www.freedesktop.org/wiki/Software/fprint/libfprint
Vcs-Browser: https://salsa.debian.org/debian/libfprint
Vcs-Git: https://salsa.debian.org/debian/libfprint.git
Package: libfprint-dev
Section: libdevel
Architecture: any
Depends: libfprint0 (= ${binary:Version}), ${misc:Depends}
Suggests: libfprint-doc
Description: async fingerprint library of fprint project, development headers
The fprint project aims to support for consumer fingerprint reader devices.
.
Previously, Linux support for such devices has been scattered amongst different
projects (many incomplete) and inconsistent in that application developers
would have to implement support for each type of fingerprint reader separately.
The idea is to change that by providing a central system to support all the
fingerprint readers as it's possible to get hands on.
.
libfprint is the centre of efforts, this component does the dirty job of
talking to fingerprint reading devices, and processing fingerprint data.
.
This library depends on the new libusb, which performs asynchronous callbacks,
allowing fprint to perform non-blocking device tasks.
.
This package provides development headers.
Package: libfprint0
Architecture: any
Multi-Arch: same
Depends: ${misc:Depends}, ${shlibs:Depends}
Pre-Depends: ${misc:Pre-Depends}
Description: async fingerprint library of fprint project, shared libraries
The fprint project aims to support for consumer fingerprint reader devices.
.
Previously, Linux support for such devices has been scattered amongst different
projects (many incomplete) and inconsistent in that application developers
would have to implement support for each type of fingerprint reader separately.
The idea is to change that by providing a central system to support all the
fingerprint readers as it's possible to get hands on.
.
libfprint is the centre of efforts, this component does the dirty job of
talking to fingerprint reading devices, and processing fingerprint data.
.
This library depends on the new libusb, which performs asynchronous callbacks,
allowing fprint to perform non-blocking device tasks.
.
This package provides shared libraries.
Package: libfprint-doc
Section: doc
Architecture: all
Depends: ${misc:Depends}
Description: async fingerprint library of fprint project, API documentation
The fprint project aims to support for consumer fingerprint reader devices.
.
Previously, Linux support for such devices has been scattered amongst different
projects (many incomplete) and inconsistent in that application developers
would have to implement support for each type of fingerprint reader separately.
The idea is to change that by providing a central system to support all the
fingerprint readers as it's possible to get hands on.
.
libfprint is the centre of efforts, this component does the dirty job of
talking to fingerprint reading devices, and processing fingerprint data.
.
This library depends on the new libusb, which performs asynchronous callbacks,
allowing fprint to perform non-blocking device tasks.
.
This package provides the API documentation.

45
debian/copyright vendored Normal file
View File

@ -0,0 +1,45 @@
This package was debianized by Ulises Vitulli <uvitulli@fi.uba.ar> on
Fri, 19 Sep 2008 05:14:30 -0300.
It was downloaded from <http://reactivated.net/fprint/wiki/Libfprint>
Upstream Authors, and Copyright:
Copyright © 2007 Daniel Drake <dsd@gentoo.org>
Copyright © 2006-2007 Timo Hoenig <thoenig@suse.de>
Copyright © 2006 Pavel Machek <pavel@suse.cz>
Copyright © 1999 Erik Walthinsen <omega@cse.ogi.edu>
Copyright © 2004,2006 Thomas Vander Stichele <thomas at apestaart dot org>
Copyright © 2007 Cyrille Bagard
Copyright © 2007 Vasily Khoruzhick
Copyright © 2007 Jan-Michael Brummer <buzz2@gmx.de>
Copyright © 2007 Anthony Bretaudeau <wxcover@users.sourceforge.net>
License:
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
The files under libfprint/nbis directory has this license:
This software was developed at the National Institute of Standards and
Technology (NIST) by employees of the Federal Government in the course
of their official duties. Pursuant to title 17 Section 105 of the
United States Code, this software is not subject to copyright protection
and is in the public domain. NIST assumes no responsibility whatsoever for
its use by other parties, and makes no guarantees, expressed or implied,
about its quality, reliability, or any other characteristic.
The Debian packaging is © 2008, Ulises Vitulli <uvitulli@fi.uba.ar> and is
licensed under the LGPL v2.1, see `/usr/share/common-licenses/LGPL-2.1'.

3
debian/docs vendored Normal file
View File

@ -0,0 +1,3 @@
NEWS
README
TODO

4
debian/gbp.conf vendored Normal file
View File

@ -0,0 +1,4 @@
[DEFAULT]
pristine-tar = True
debian-branch = debian
upstream-vcs-tag = V_%(version%.%_)s

3
debian/libfprint-dev.install vendored Normal file
View File

@ -0,0 +1,3 @@
usr/include/*
usr/lib/*/lib*.so
usr/lib/*/pkgconfig/*

1
debian/libfprint-doc.install vendored Normal file
View File

@ -0,0 +1 @@
usr/share/gtk-doc/

2
debian/libfprint0.install vendored Normal file
View File

@ -0,0 +1,2 @@
lib/udev/rules.d/
usr/lib/*/lib*.so.*

3
debian/libfprint0.lintian-overrides vendored Normal file
View File

@ -0,0 +1,3 @@
# For security reasons, we don't want the fingerprint readers to be accessible
# by unprivileged users
udev-rule-missing-uaccess

139
debian/libfprint0.postinst vendored Normal file
View File

@ -0,0 +1,139 @@
#!/bin/sh
set -e
#DEBHELPER#
if [ "$1" = "configure" -o "$1" = "upgrade" ] && command -V udevadm >/dev/null 2>&1; then
# apply udev rules at package installation, see
# <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=683863#27>
# NOTA BENE: after the DEBHELPER section since dh_installudev
# adds stuff there
udevadm trigger --action=add --attr-match=idVendor=0483 --attr-match=idProduct=2016
udevadm trigger --action=add --attr-match=idVendor=0483 --attr-match=idProduct=2015
udevadm trigger --action=add --attr-match=idVendor=147e --attr-match=idProduct=3001
udevadm trigger --action=add --attr-match=idVendor=147e --attr-match=idProduct=2016
udevadm trigger --action=add --attr-match=idVendor=147e --attr-match=idProduct=1000
udevadm trigger --action=add --attr-match=idVendor=147e --attr-match=idProduct=1001
udevadm trigger --action=add --attr-match=idVendor=061a --attr-match=idProduct=0110
udevadm trigger --action=add --attr-match=idVendor=045e --attr-match=idProduct=00bb
udevadm trigger --action=add --attr-match=idVendor=045e --attr-match=idProduct=00bc
udevadm trigger --action=add --attr-match=idVendor=045e --attr-match=idProduct=00bd
udevadm trigger --action=add --attr-match=idVendor=045e --attr-match=idProduct=00ca
udevadm trigger --action=add --attr-match=idVendor=05ba --attr-match=idProduct=0007
udevadm trigger --action=add --attr-match=idVendor=05ba --attr-match=idProduct=0008
udevadm trigger --action=add --attr-match=idVendor=05ba --attr-match=idProduct=000a
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=1600
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=1660
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=1680
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=1681
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=1682
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=1683
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=1684
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=1685
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=1686
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=1687
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=1688
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=1689
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=168a
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=168b
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=168c
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=168d
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=168e
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=168f
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=2500
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=2580
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=2550
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=2810
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=2660
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=2680
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=2681
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=2682
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=2683
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=2684
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=2685
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=2686
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=2687
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=2688
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=2689
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=268a
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=268b
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=268c
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=268d
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=268e
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=268f
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=2691
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=5731
udevadm trigger --action=add --attr-match=idVendor=08ff --attr-match=idProduct=5501
udevadm trigger --action=add --attr-match=idVendor=138a --attr-match=idProduct=0001
udevadm trigger --action=add --attr-match=idVendor=138a --attr-match=idProduct=0005
udevadm trigger --action=add --attr-match=idVendor=138a --attr-match=idProduct=0008
udevadm trigger --action=add --attr-match=idVendor=138a --attr-match=idProduct=0010
udevadm trigger --action=add --attr-match=idVendor=138a --attr-match=idProduct=0011
udevadm trigger --action=add --attr-match=idVendor=138a --attr-match=idProduct=0015
udevadm trigger --action=add --attr-match=idVendor=138a --attr-match=idProduct=0017
udevadm trigger --action=add --attr-match=idVendor=138a --attr-match=idProduct=0018
udevadm trigger --action=add --attr-match=idVendor=147e --attr-match=idProduct=2020
udevadm trigger --action=add --attr-match=idVendor=1c7a --attr-match=idProduct=0603
udevadm trigger --action=add --attr-match=idVendor=138a --attr-match=idProduct=0050
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0903
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0907
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c01
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c02
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c03
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c04
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c05
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c06
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c07
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c08
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c09
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c0a
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c0b
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c0c
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c0d
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c0e
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c0f
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c10
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c11
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c12
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c13
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c14
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c15
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c16
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c17
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c18
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c19
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c1a
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c1b
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c1c
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c1d
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c1e
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c1f
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c20
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c21
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c22
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c23
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c24
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c25
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c26
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c27
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c28
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c29
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c2a
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c2b
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c2c
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c2d
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c2e
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c2f
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c30
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c31
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c32
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c33
udevadm trigger --action=add --attr-match=idVendor=04f3 --attr-match=idProduct=0c42
udevadm trigger --action=add --attr-match=idVendor=138a --attr-match=idProduct=0090
udevadm trigger --action=add --attr-match=idVendor=138a --attr-match=idProduct=0091
udevadm trigger --action=add --attr-match=idVendor=138a --attr-match=idProduct=0094
udevadm trigger --action=add --attr-match=idVendor=138a --attr-match=idProduct=0097
fi
exit 0

77
debian/libfprint0.symbols vendored Normal file
View File

@ -0,0 +1,77 @@
libfprint.so.0 libfprint0 #MINVER#
* Build-Depends-Package: libfprint-dev
fp_async_capture_start@Base 1:0.6.0
fp_async_capture_stop@Base 1:0.6.0
fp_async_dev_close@Base 1:0.4.0
fp_async_dev_open@Base 1:0.4.0
fp_async_enroll_start@Base 1:0.4.0
fp_async_enroll_stop@Base 1:0.4.0
fp_async_identify_start@Base 1:0.4.0
fp_async_identify_stop@Base 1:0.4.0
fp_async_verify_start@Base 1:0.4.0
fp_async_verify_stop@Base 1:0.4.0
fp_dev_close@Base 1:0.4.0
fp_dev_get_devtype@Base 1:0.4.0
fp_dev_get_driver@Base 1:0.4.0
fp_dev_get_img_height@Base 1:0.4.0
fp_dev_get_img_width@Base 1:0.4.0
fp_dev_get_nr_enroll_stages@Base 1:0.4.0
fp_dev_img_capture@Base 1:0.4.0
fp_dev_open@Base 1:0.4.0
fp_dev_supports_dscv_print@Base 1:0.4.0
fp_dev_supports_identification@Base 1:0.4.0
fp_dev_supports_imaging@Base 1:0.4.0
fp_dev_supports_print_data@Base 1:0.4.0
fp_discover_devs@Base 1:0.4.0
fp_discover_prints@Base 1:0.4.0
fp_driver_get_driver_id@Base 1:0.4.0
fp_driver_get_full_name@Base 1:0.4.0
fp_driver_get_name@Base 1:0.4.0
fp_driver_get_scan_type@Base 1:0.4.0
fp_driver_supports_imaging@Base 1:0.99.0
fp_dscv_dev_for_dscv_print@Base 1:0.4.0
fp_dscv_dev_for_print_data@Base 1:0.4.0
fp_dscv_dev_get_devtype@Base 1:0.4.0
fp_dscv_dev_get_driver@Base 1:0.4.0
fp_dscv_dev_get_driver_id@Base 1:0.8.1
fp_dscv_dev_supports_dscv_print@Base 1:0.4.0
fp_dscv_dev_supports_print_data@Base 1:0.4.0
fp_dscv_devs_free@Base 1:0.4.0
fp_dscv_print_delete@Base 1:0.4.0
fp_dscv_print_get_devtype@Base 1:0.4.0
fp_dscv_print_get_driver_id@Base 1:0.4.0
fp_dscv_print_get_finger@Base 1:0.4.0
fp_dscv_prints_free@Base 1:0.4.0
fp_enroll_finger@Base 1:0.8.1
fp_enroll_finger_img@Base 1:0.4.0
fp_exit@Base 1:0.4.0
fp_get_next_timeout@Base 1:0.4.0
fp_get_pollfds@Base 1:0.4.0
fp_handle_events@Base 1:0.4.0
fp_handle_events_timeout@Base 1:0.4.0
fp_identify_finger@Base 1:0.8.1
fp_identify_finger_img@Base 1:0.4.0
fp_img_binarize@Base 1:0.4.0
fp_img_free@Base 1:0.4.0
fp_img_get_data@Base 1:0.4.0
fp_img_get_height@Base 1:0.4.0
fp_img_get_minutiae@Base 1:0.4.0
fp_img_get_width@Base 1:0.4.0
fp_img_save_to_file@Base 1:0.4.0
fp_img_standardize@Base 1:0.4.0
fp_init@Base 1:0.4.0
fp_minutia_get_coords@Base 1:0.8.2-3~
fp_print_data_delete@Base 1:0.4.0
fp_print_data_free@Base 1:0.4.0
fp_print_data_from_data@Base 1:0.4.0
fp_print_data_from_dscv_print@Base 1:0.4.0
fp_print_data_get_data@Base 1:0.4.0
fp_print_data_get_devtype@Base 1:0.4.0
fp_print_data_get_driver_id@Base 1:0.4.0
fp_print_data_load@Base 1:0.4.0
fp_print_data_save@Base 1:0.4.0
fp_set_debug@Base 1:0.4.0
fp_set_pollfd_notifiers@Base 1:0.4.0
fp_verify_finger@Base 1:0.8.1
fp_verify_finger_img@Base 1:0.4.0
fprint_get_drivers@Base 1:0.4.0

View File

@ -0,0 +1,60 @@
Description: Add missing ETIME definition for kFreeBSD flavours.
Author: Steven Chamberlain <steven@pyro.eu.org>
Bug-Debian: http://bugs.debian.org/673704
Forwarded: not-yet
Reviewed-by: Didier Raboud <odyx@debian.org>
Last-Update: 2013-03-03
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/libfprint/drivers/uru4000.c
+++ b/libfprint/drivers/uru4000.c
@@ -25,6 +25,10 @@
#include "drivers_api.h"
+#ifndef ETIME
+#define ETIME ETIMEDOUT /* For kFreeBSD */
+#endif
+
#define EP_INTR (1 | LIBUSB_ENDPOINT_IN)
#define EP_DATA (2 | LIBUSB_ENDPOINT_IN)
#define USB_RQ 0x04
--- a/libfprint/drivers/vfs101.c
+++ b/libfprint/drivers/vfs101.c
@@ -21,6 +21,10 @@
#include "drivers_api.h"
+#ifndef ETIME
+#define ETIME ETIMEDOUT /* For kFreeBSD */
+#endif
+
/* Input-Output usb endpoint */
#define EP_IN(n) (n | LIBUSB_ENDPOINT_IN)
#define EP_OUT(n) (n | LIBUSB_ENDPOINT_OUT)
--- a/libfprint/drivers/vfs301.c
+++ b/libfprint/drivers/vfs301.c
@@ -24,6 +24,10 @@
#include "drivers_api.h"
#include "vfs301_proto.h"
+#ifndef ETIME
+#define ETIME ETIMEDOUT /* For kFreeBSD */
+#endif
+
/************************** GENERIC STUFF *************************************/
/* Submit asynchronous sleep */
--- a/libfprint/drivers/elan.c
+++ b/libfprint/drivers/elan.c
@@ -49,6 +49,10 @@
else if (len > 2) \
fp_dbg("%04x... (%d bytes)", buf[0] << 8 | buf[1], len)
+#ifndef ETIME
+#define ETIME ETIMEDOUT /* For kFreeBSD */
+#endif
+
unsigned char elan_get_pixel(struct fpi_frame_asmbl_ctx *ctx,
struct fpi_frame *frame, unsigned int x,
unsigned int y)

6
debian/patches/series vendored Normal file
View File

@ -0,0 +1,6 @@
# Upstream backports
# Debian specifics
kFreeBSD_FTBFS_add_ETIME_definition.patch
udev-rules-creation-add-Debian-specifics.patch
use-non-versionned-libusbh-path.patch

View File

@ -0,0 +1,31 @@
Description: Tweak the udev rules creator for Debian usage
List all devices; automatic power/control only for the non-blacklisted
ones; mode and group to all.
Author: Didier Raboud <odyx@debian.org>
Origin: vendor
Last-Update: 2015-03-03
--- a/libfprint/fprint-list-udev-rules.c
+++ b/libfprint/fprint-list-udev-rules.c
@@ -63,9 +63,6 @@ static void print_driver (struct fp_driv
break;
}
}
- if (blacklist)
- continue;
-
key = g_strdup_printf ("%04x:%04x", driver->id_table[i].vendor, driver->id_table[i].product);
if (g_hash_table_lookup (printed, key) != NULL) {
@@ -78,7 +75,10 @@ static void print_driver (struct fp_driv
if (num_printed == 0)
printf ("# %s\n", driver->full_name);
- printf ("SUBSYSTEM==\"usb\", ATTRS{idVendor}==\"%04x\", ATTRS{idProduct}==\"%04x\", ATTRS{dev}==\"*\", TEST==\"power/control\", ATTR{power/control}=\"auto\"\n", driver->id_table[i].vendor, driver->id_table[i].product);
+ printf ("SUBSYSTEM==\"usb\", ATTRS{idVendor}==\"%04x\", ATTRS{idProduct}==\"%04x\", ATTRS{dev}==\"*\", ", driver->id_table[i].vendor, driver->id_table[i].product);
+ if (!blacklist)
+ printf ("TEST==\"power/control\", ATTR{power/control}=\"auto\", ");
+ printf ("MODE=\"0664\", GROUP=\"plugdev\"\n");
printf ("SUBSYSTEM==\"usb\", ATTRS{idVendor}==\"%04x\", ATTRS{idProduct}==\"%04x\", ENV{LIBFPRINT_DRIVER}=\"%s\"\n", driver->id_table[i].vendor, driver->id_table[i].product, driver->full_name);
num_printed++;
}

View File

@ -0,0 +1,17 @@
Description: Use non-versionned libusb.h path
Reference: http://thread.gmane.org/gmane.comp.lib.libusb.devel.general/11611
.
Hopefully fixes the kFreeBSD FTBFS.
Author: Didier Raboud <odyx@debian.org>
Last-Update: 2013-03-03
--- a/libfprint/drivers/vfs301_proto.h
+++ b/libfprint/drivers/vfs301_proto.h
@@ -18,7 +18,7 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <libusb-1.0/libusb.h>
+#include <libusb.h>
enum {
VFS301_DEFAULT_WAIT_TIMEOUT = 300,

17
debian/rules vendored Executable file
View File

@ -0,0 +1,17 @@
#!/usr/bin/make -f
# Configuration arguments
CONFIG_ARGS = -Dudev_rules_dir=/lib/udev/rules.d -Dgtk-examples=false
%:
dh $@
override_dh_auto_configure:
dh_auto_configure -- $(CONFIG_ARGS)
override_dh_install:
mv debian/tmp/lib/udev/rules.d/60-fprint-autosuspend.rules \
debian/tmp/lib/udev/rules.d/60-libfprint0.rules
sed -i '/^Requires.private\|^Libs.private/ d' \
debian/tmp/usr/lib/*/pkgconfig/libfprint.pc
dh_install

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
3.0 (quilt)

4
debian/watch vendored Normal file
View File

@ -0,0 +1,4 @@
version=4
https://gitlab.freedesktop.org/libfprint/libfprint/tags?sort=updated_desc \
/libfprint/libfprint/uploads/(?:[^/]*)/libfprint-(.*).tar.xz