Re: git: a95989d60524 - main - Restore three ports removed too early and assume their maintainership.

From: Rene Ladan <rene_at_freebsd.org>
Date: Sat, 31 Dec 2022 11:36:25 UTC
On Sat, Dec 31, 2022 at 02:52:19AM +0000, Alexey Dokuchaev wrote:
> The branch main has been updated by danfe:
> 
> URL: https://cgit.FreeBSD.org/ports/commit/?id=a95989d60524592010f8ee3cfbd45fa926b5e8f2
> 
> commit a95989d60524592010f8ee3cfbd45fa926b5e8f2
> Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
> AuthorDate: 2022-12-31 02:50:02 +0000
> Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
> CommitDate: 2022-12-31 02:50:02 +0000
> 
>     Restore three ports removed too early and assume their maintainership.

The fprint ports were not removed too early, it was already 2022-12-31 in UTC.
You picked them up too late.
 
These versions are long unsupported upstream, how are you going to deal with
the non-optional systemd support for new versions?

René
> ---
>  MOVED                                              |  3 -
>  security/Makefile                                  |  3 +
>  security/fprint_demo/Makefile                      | 25 +++++++
>  security/fprint_demo/distinfo                      |  3 +
>  security/fprint_demo/pkg-descr                     |  3 +
>  security/fprint_demo/pkg-message                   | 24 ++++++
>  security/fprint_demo/pkg-plist                     |  7 ++
>  security/fprintd/Makefile                          | 43 +++++++++++
>  security/fprintd/distinfo                          |  3 +
>  security/fprintd/files/patch-git_06bab8            | 46 ++++++++++++
>  security/fprintd/pkg-descr                         | 11 +++
>  security/fprintd/pkg-plist                         | 85 ++++++++++++++++++++++
>  security/libfprint/Makefile                        | 27 +++++++
>  security/libfprint/distinfo                        |  3 +
>  security/libfprint/files/patch-config.h.in         | 11 +++
>  .../files/patch-libfprint-drivers-vfs301.c         | 11 +++
>  .../files/patch-libfprint-drivers-vfs301_proto.c   | 11 +++
>  .../files/patch-libfprint-drivers-vfs301_proto.h   | 11 +++
>  .../libfprint/files/patch-libfprint_Makefile.in    | 11 +++
>  security/libfprint/pkg-descr                       |  3 +
>  security/libfprint/pkg-plist                       |  6 ++
>  21 files changed, 347 insertions(+), 3 deletions(-)
> 
> diff --git a/MOVED b/MOVED
> index 685fee23995a..d297b8d9bf32 100644
> --- a/MOVED
> +++ b/MOVED
> @@ -17721,9 +17721,6 @@ lang/ponyc||2022-12-31|Has expired: Very outdated and unsupported upstream, depe
>  www/varnish4|www/varnish6|2022-12-31|Has expired: End of life upstream, users are recommended to upgrade to 6.x or higher
>  devel/unittest-cpp||2022-12-31|Has expired: Upstream have declared hiatus status since 2+ years back. Please consider using devel/googletest instead
>  math/libpgmath||2022-12-31|Has expired: Depends on end of life devel/llvm70
> -security/libfprint||2022-12-31|Has expired: Very outdated, unsupported upstream which now have systemd as a non optional requirement
> -security/fprint_demo||2022-12-31|Has expired: Depends on deprecated library libfprint
> -security/fprintd||2022-12-31|Has expired: Very outdated, unsupported upstream which now have systemd as a non optional requirement
>  cad/linux-eagle5||2022-12-31|Has expired: Deprecated upstream, superseded by Autodesk EAGLE 9
>  net-p2p/amule-devel|net-p2p/amule|2022-12-31|Has expired: Superseded by non development port
>  graphics/comical||2022-12-31|Has expired: Abandoned project and use deprecated wxgtk28
> diff --git a/security/Makefile b/security/Makefile
> index d603fa9efa3d..ce4f11333893 100644
> --- a/security/Makefile
> +++ b/security/Makefile
> @@ -152,6 +152,8 @@
>      SUBDIR += flawfinder
>      SUBDIR += fpc-gnutls
>      SUBDIR += fpc-openssl
> +    SUBDIR += fprint_demo
> +    SUBDIR += fprintd
>      SUBDIR += fragroute
>      SUBDIR += fragrouter
>      SUBDIR += fswatch
> @@ -273,6 +275,7 @@
>      SUBDIR += libdecaf
>      SUBDIR += libecc
>      SUBDIR += libfido2
> +    SUBDIR += libfprint
>      SUBDIR += libgcrypt
>      SUBDIR += libgnome-keyring
>      SUBDIR += libgpg-error
> diff --git a/security/fprint_demo/Makefile b/security/fprint_demo/Makefile
> new file mode 100644
> index 000000000000..83887631445d
> --- /dev/null
> +++ b/security/fprint_demo/Makefile
> @@ -0,0 +1,25 @@
> +PORTNAME=	fprint_demo
> +PORTVERSION=	20080303
> +PORTREVISION=	2
> +CATEGORIES=	security
> +MASTER_SITES=	DEBIAN/pool/main/f/${PORTNAME:C/_/-/}
> +DISTNAME=	${PORTNAME:C/_/-/}_${PORTVERSION}git.orig
> +
> +MAINTAINER=	danfe@FreeBSD.org
> +COMMENT=	Demo and test application for libfprint
> +WWW=		http://www.reactivated.net/fprint/wiki/Fprint_demo
> +
> +LIB_DEPENDS=	libfprint.so:security/libfprint
> +
> +USES=		autoreconf desktop-file-utils gnome pkgconfig
> +USE_GNOME=	atk glib20 gtk20 pango
> +
> +NO_WRKSUBDIR=	yes
> +
> +GNU_CONFIGURE=	yes
> +CONFIGURE_ENV=	CRYPTO_CFLAGS=-I${OPENSSLINC} \
> +		CRYPTO_LIBS=-lcrypto
> +
> +CFLAGS+=	-DHAVE_MEMMEM
> +
> +.include <bsd.port.mk>
> diff --git a/security/fprint_demo/distinfo b/security/fprint_demo/distinfo
> new file mode 100644
> index 000000000000..291c5f7c2350
> --- /dev/null
> +++ b/security/fprint_demo/distinfo
> @@ -0,0 +1,3 @@
> +TIMESTAMP = 1275601092
> +SHA256 (fprint-demo_20080303git.orig.tar.gz) = fcff7f6e8d61b253b88dd87ecf5cdb5418ecf11178ce7cb6ae0e350485045232
> +SIZE (fprint-demo_20080303git.orig.tar.gz) = 77714
> diff --git a/security/fprint_demo/pkg-descr b/security/fprint_demo/pkg-descr
> new file mode 100644
> index 000000000000..c49158c55fbe
> --- /dev/null
> +++ b/security/fprint_demo/pkg-descr
> @@ -0,0 +1,3 @@
> +fprint_demo is a simple GTK+ application to demonstrate and
> +test libfprint's capabilities. It can be used to enroll new finger prints
> +as well as verify and delete existing data sets.
> diff --git a/security/fprint_demo/pkg-message b/security/fprint_demo/pkg-message
> new file mode 100644
> index 000000000000..53f3a53d3935
> --- /dev/null
> +++ b/security/fprint_demo/pkg-message
> @@ -0,0 +1,24 @@
> +[
> +{ type: install
> +  message: <<EOM
> +In order to enroll new finger prints, you must have r/w access to the
> +usb device node(s) of your finger print reader (i.e., /dev/{ugen, usb}*).
> +
> +It is recommended to use devfs.rules(5) and a dedicated group to manage
> +access to your finger print reader.
> +
> +You can use `usbconfig' to see if your sensor is accessible.
> +
> +Example configuration:
> +- /etc/rc.conf:
> +devfs_system_ruleset="localrules"
> +
> +- /etc/devfs.rules:
> +[localrules=10]
> +add path 'usb' mode 0770 group operator
> +add path 'usb/*' mode 0660 group operator
> +
> +# /etc/rc.d/devfs restart
> +EOM
> +}
> +]
> diff --git a/security/fprint_demo/pkg-plist b/security/fprint_demo/pkg-plist
> new file mode 100644
> index 000000000000..5f1b67f2cda2
> --- /dev/null
> +++ b/security/fprint_demo/pkg-plist
> @@ -0,0 +1,7 @@
> +bin/fprint_demo
> +share/applications/fprint_demo.desktop
> +share/icons/hicolor/128x128/apps/fprint_demo.png
> +share/icons/hicolor/16x16/apps/fprint_demo.png
> +share/icons/hicolor/22x22/apps/fprint_demo.png
> +share/icons/hicolor/48x48/apps/fprint_demo.png
> +share/icons/hicolor/scalable/apps/fprint_demo.svg
> diff --git a/security/fprintd/Makefile b/security/fprintd/Makefile
> new file mode 100644
> index 000000000000..79798877ec4f
> --- /dev/null
> +++ b/security/fprintd/Makefile
> @@ -0,0 +1,43 @@
> +PORTNAME=	fprintd
> +DISTVERSIONPREFIX=	V_
> +DISTVERSION=	0_8_1
> +CATEGORIES=	security
> +
> +MAINTAINER=	danfe@FreeBSD.org
> +COMMENT=	Daemon that provides fingerprint scanning functionality over D-Bus
> +WWW=		https://www.freedesktop.org/wiki/Software/fprint/fprintd/
> +
> +LICENSE=	GPLv2
> +LICENSE_FILE=	${WRKSRC}/COPYING
> +
> +LIB_DEPENDS=	libfprint.so:security/libfprint \
> +		libdbus-1.so:devel/dbus \
> +		libdbus-glib-1.so:devel/dbus-glib \
> +		libpolkit-gobject-1.so:sysutils/polkit
> +
> +USES=		autoreconf:build gettext gmake gnome libtool pkgconfig
> +USE_GNOME=	intltool glib20
> +
> +USE_GITHUB=	yes
> +GH_ACCOUNT=	freedesktop
> +GH_PROJECT=	libfprint-${PORTNAME}
> +
> +GNU_CONFIGURE=	yes
> +INSTALL_TARGET=	install-strip
> +MAKE_ARGS=	sysconfdir="${ETCDIR}/"
> +
> +OPTIONS_DEFINE=	NLS PAM
> +OPTIONS_SUB=	yes
> +
> +NLS_CONFIGURE_ENABLE=	nls
> +PAM_CONFIGURE_ENABLE=	pam
> +
> +# Remove doc build ;  Doesn't install with/without
> +# Also less deps needed
> +pre-configure:
> +	${REINPLACE_CMD} -e '/pushd/d ; /docize/d ; /popd/d' ${WRKSRC}/autogen.sh
> +	${REINPLACE_CMD} -e '73,81d' ${WRKSRC}/doc/Makefile.am
> +	${REINPLACE_CMD} -e '/DOC_CHECK/d' ${WRKSRC}/configure.ac
> +	(cd ${WRKSRC} && ${SETENV} NOCONFIGURE=1 ${SH} autogen.sh)
> +
> +.include <bsd.port.mk>
> diff --git a/security/fprintd/distinfo b/security/fprintd/distinfo
> new file mode 100644
> index 000000000000..253ff54631a1
> --- /dev/null
> +++ b/security/fprintd/distinfo
> @@ -0,0 +1,3 @@
> +TIMESTAMP = 1549285491
> +SHA256 (freedesktop-libfprint-fprintd-V_0_8_1_GH0.tar.gz) = 7370e500ad9228194c575f915e215668d5d42958decc0485024f8dbfd646d21a
> +SIZE (freedesktop-libfprint-fprintd-V_0_8_1_GH0.tar.gz) = 92276
> diff --git a/security/fprintd/files/patch-git_06bab8 b/security/fprintd/files/patch-git_06bab8
> new file mode 100644
> index 000000000000..963cb988a2a6
> --- /dev/null
> +++ b/security/fprintd/files/patch-git_06bab8
> @@ -0,0 +1,46 @@
> +Obtained from:
> +	https://gitlab.freedesktop.org/libfprint/fprintd/-/commit/0c6bab8640b3586ac8e1b8c35d87aa49b79719d0.patch
> +
> +From 0c6bab8640b3586ac8e1b8c35d87aa49b79719d0 Mon Sep 17 00:00:00 2001
> +From: Bastien Nocera <hadess@hadess.net>
> +Date: Thu, 23 Jan 2020 17:37:33 +0100
> +Subject: [PATCH] main: Fix redeclaration linking error
> +
> +Fix linking error as the "store" global variable gets redeclared in
> +each C file that includes the header. Move the actual declaration to
> +main.c.
> +
> +Fixes:
> + /usr/bin/ld: ./.libs/libfprintd.a(device.o):/builds/libfprint/fprintd/src/storage.h:51: multiple definition of `store'; main.o:/builds/libfprint/fprintd/src/storage.h:51: first defined here
> +---
> + src/main.c    | 2 ++
> + src/storage.h | 2 +-
> + 2 files changed, 3 insertions(+), 1 deletion(-)
> +
> +diff --git a/src/main.c b/src/main.c
> +index 8f7e19c..ce1a47d 100644
> +--- src/main.c
> ++++ src/main.c
> +@@ -33,6 +33,8 @@
> + #include "storage.h"
> + #include "file_storage.h"
> + 
> ++fp_storage store;
> ++
> + extern DBusGConnection *fprintd_dbus_conn;
> + static gboolean no_timeout = FALSE;
> + static gboolean g_fatal_warnings = FALSE;
> +diff --git a/src/storage.h b/src/storage.h
> +index d908c59..28ed2b6 100644
> +--- src/storage.h
> ++++ src/storage.h
> +@@ -46,4 +46,4 @@ struct storage {
> + typedef struct storage fp_storage;
> + 
> + /* The currently setup store */
> +-fp_storage store;
> ++extern fp_storage store;
> +-- 
> +GitLab
> +
> +
> diff --git a/security/fprintd/pkg-descr b/security/fprintd/pkg-descr
> new file mode 100644
> index 000000000000..5458cf5a6b77
> --- /dev/null
> +++ b/security/fprintd/pkg-descr
> @@ -0,0 +1,11 @@
> +Fprintd is a D-Bus daemon that offers libfprint functionality over
> +the D-Bus interprocess communication bus. By adding this daemon
> +layer above libfprint, we solve various problems related to multiple
> +applications simultaneously competing for fingerprint readers.
> +
> +While it is not very nice to think of a daemon being necessary in
> +this scenario, fprintd will be launched by D-Bus through the
> +activation mechanism. This means it is launched only when needed,
> +and additionally it will shut itself down after a period of inactivity.
> +
> +(Text copied from link below.)
> diff --git a/security/fprintd/pkg-plist b/security/fprintd/pkg-plist
> new file mode 100644
> index 000000000000..4e3a01d8bd40
> --- /dev/null
> +++ b/security/fprintd/pkg-plist
> @@ -0,0 +1,85 @@
> +bin/fprintd-delete
> +bin/fprintd-enroll
> +bin/fprintd-list
> +bin/fprintd-verify
> +%%ETCDIR%%/dbus-1/system.d/net.reactivated.Fprint.conf
> +%%ETCDIR%%/fprintd.conf
> +%%PAM%%lib/security/pam_fprintd.a
> +%%PAM%%lib/security/pam_fprintd.so
> +libexec/fprintd
> +share/dbus-1/interfaces/net.reactivated.Fprint.Device.xml
> +share/dbus-1/interfaces/net.reactivated.Fprint.Manager.xml
> +share/dbus-1/system-services/net.reactivated.Fprint.service
> +%%NLS%%share/locale/ar/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/as/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/ast/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/az/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/be/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/bg/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/bn_IN/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/ca/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/ca@valencia/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/cs/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/cy/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/da/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/de/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/el/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/en_GB/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/eo/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/es/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/et/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/eu/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/fa/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/fi/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/fo/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/fr/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/fur/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/ga/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/gl/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/gu/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/he/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/hi/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/hr/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/hu/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/ia/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/id/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/it/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/ja/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/ka/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/kk/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/kn/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/ko/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/lt/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/lv/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/ml/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/mr/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/ms/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/nb/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/nl/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/nn/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/oc/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/or/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/pa/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/pl/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/pt/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/pt_BR/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/ro/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/ru/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/sk/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/sl/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/sq/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/sr/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/sr@latin/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/sv/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/ta/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/te/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/th/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/tr/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/uk/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/vi/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/wa/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/zh_CN/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/zh_HK/LC_MESSAGES/fprintd.mo
> +%%NLS%%share/locale/zh_TW/LC_MESSAGES/fprintd.mo
> +man/man1/fprintd.1.gz
> +share/polkit-1/actions/net.reactivated.fprint.device.policy
> diff --git a/security/libfprint/Makefile b/security/libfprint/Makefile
> new file mode 100644
> index 000000000000..7a800db07c41
> --- /dev/null
> +++ b/security/libfprint/Makefile
> @@ -0,0 +1,27 @@
> +PORTNAME=	libfprint
> +PORTVERSION=	0.7.0
> +PORTREVISION=	1
> +CATEGORIES=	security
> +MASTER_SITES=	https://people.freedesktop.org/~anarsoul/
> +
> +MAINTAINER=	danfe@FreeBSD.org
> +COMMENT=	Library for fingerprint reader devices
> +WWW=		http://www.reactivated.net/fprint/wiki/Libfprint
> +
> +LICENSE=	LGPL21
> +LICENSE_FILE=	${WRKSRC}/COPYING
> +
> +LIB_DEPENDS=	libnss3.so:security/nss \
> +		libnspr4.so:devel/nspr
> +
> +GNU_CONFIGURE=	yes
> +USES=		gnome libtool magick:6 pathfix pkgconfig tar:xz xorg
> +USE_LDCONFIG=	yes
> +USE_GNOME=	glib20
> +USE_XORG=	pixman
> +INSTALL_TARGET=	install-strip
> +
> +CPPFLAGS+=	-DHAVE_MEMMEM
> +MAKE_JOBS_UNSAFE=yes
> +
> +.include <bsd.port.mk>
> diff --git a/security/libfprint/distinfo b/security/libfprint/distinfo
> new file mode 100644
> index 000000000000..666ea86bdf21
> --- /dev/null
> +++ b/security/libfprint/distinfo
> @@ -0,0 +1,3 @@
> +TIMESTAMP = 1532525845
> +SHA256 (libfprint-0.7.0.tar.xz) = 863eee8cf4cbc56776cf08e5b98e30e130f3394b6db95bf8e01addb6bf08f1f3
> +SIZE (libfprint-0.7.0.tar.xz) = 550484
> diff --git a/security/libfprint/files/patch-config.h.in b/security/libfprint/files/patch-config.h.in
> new file mode 100644
> index 000000000000..814e89ce9eb1
> --- /dev/null
> +++ b/security/libfprint/files/patch-config.h.in
> @@ -0,0 +1,11 @@
> +--- config.h.in.orig	2017-05-14 16:27:23 UTC
> ++++ config.h.in
> +@@ -140,3 +140,8 @@
> + #ifndef __cplusplus
> + #undef inline
> + #endif
> ++
> ++/* FreeBSD >=8 */
> ++#ifndef ETIME
> ++#define ETIME ETIMEDOUT
> ++#endif
> diff --git a/security/libfprint/files/patch-libfprint-drivers-vfs301.c b/security/libfprint/files/patch-libfprint-drivers-vfs301.c
> new file mode 100644
> index 000000000000..05f356f43001
> --- /dev/null
> +++ b/security/libfprint/files/patch-libfprint-drivers-vfs301.c
> @@ -0,0 +1,11 @@
> +--- libfprint/drivers/vfs301.c.orig	2017-01-05 17:18:55 UTC
> ++++ libfprint/drivers/vfs301.c
> +@@ -27,7 +27,7 @@
> + #include <stdio.h>
> + #include <assert.h>
> + #include <stdlib.h>
> +-#include <libusb-1.0/libusb.h>
> ++#include <libusb.h>
> + 
> + #include "vfs301_proto.h"
> + #include <unistd.h>
> diff --git a/security/libfprint/files/patch-libfprint-drivers-vfs301_proto.c b/security/libfprint/files/patch-libfprint-drivers-vfs301_proto.c
> new file mode 100644
> index 000000000000..0191a418eda7
> --- /dev/null
> +++ b/security/libfprint/files/patch-libfprint-drivers-vfs301_proto.c
> @@ -0,0 +1,11 @@
> +--- libfprint/drivers/vfs301_proto.c.orig	2013-01-12 13:18:37 UTC
> ++++ libfprint/drivers/vfs301_proto.c
> +@@ -33,7 +33,7 @@
> + #include <stdio.h>
> + #include <assert.h>
> + #include <stdlib.h>
> +-#include <libusb-1.0/libusb.h>
> ++#include <libusb.h>
> + 
> + #include "vfs301_proto.h"
> + #include "vfs301_proto_fragments.h"
> diff --git a/security/libfprint/files/patch-libfprint-drivers-vfs301_proto.h b/security/libfprint/files/patch-libfprint-drivers-vfs301_proto.h
> new file mode 100644
> index 000000000000..af027d5be8bb
> --- /dev/null
> +++ b/security/libfprint/files/patch-libfprint-drivers-vfs301_proto.h
> @@ -0,0 +1,11 @@
> +--- libfprint/drivers/vfs301_proto.h.orig	2013-01-12 13:18:37 UTC
> ++++ 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,
> diff --git a/security/libfprint/files/patch-libfprint_Makefile.in b/security/libfprint/files/patch-libfprint_Makefile.in
> new file mode 100644
> index 000000000000..1421223d5249
> --- /dev/null
> +++ b/security/libfprint/files/patch-libfprint_Makefile.in
> @@ -0,0 +1,11 @@
> +--- libfprint/Makefile.in.orig	2017-05-14 16:27:17 UTC
> ++++ libfprint/Makefile.in
> +@@ -1578,7 +1578,7 @@ info: info-am
> + 
> + info-am:
> + 
> +-install-data-am: install-pkgincludeHEADERS install-udev_rulesDATA
> ++install-data-am: install-pkgincludeHEADERS
> + 
> + install-dvi: install-dvi-am
> + 
> diff --git a/security/libfprint/pkg-descr b/security/libfprint/pkg-descr
> new file mode 100644
> index 000000000000..6e525672e5f5
> --- /dev/null
> +++ b/security/libfprint/pkg-descr
> @@ -0,0 +1,3 @@
> +libfprint is an open source software library designed to make it easy for
> +application developers to add support for consumer fingerprint readers to
> +their software.
> diff --git a/security/libfprint/pkg-plist b/security/libfprint/pkg-plist
> new file mode 100644
> index 000000000000..80f34b387247
> --- /dev/null
> +++ b/security/libfprint/pkg-plist
> @@ -0,0 +1,6 @@
> +include/libfprint/fprint.h
> +lib/libfprint.a
> +lib/libfprint.so
> +lib/libfprint.so.0
> +lib/libfprint.so.0.0.0
> +libdata/pkgconfig/libfprint.pc