Date: Mon, 21 Apr 2014 15:31:47 GMT From: Martin Birgmeier <Martin.Birgmeier@aon.at> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/188854: Updated port security/libfprint, (incomplete) new port security/fprintd Message-ID: <201404211531.s3LFVlwU075419@cgiserv.freebsd.org> Resent-Message-ID: <201404211540.s3LFe1UT074511@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 188854 >Category: ports >Synopsis: Updated port security/libfprint, (incomplete) new port security/fprintd >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Mon Apr 21 15:40:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Martin Birgmeier >Release: 9.2 >Organization: MBi at home >Environment: FreeBSD hal.xyzzy 9.2-RELEASE-p3 FreeBSD 9.2-RELEASE-p3 #0 r263038M: Wed Mar 12 18:06:33 CET 2014 root@hal.xyzzy:/usr/obj/z/SRC/FreeBSD/releng/9.2/sys/XYZZY_SMP amd64 >Description: This bug report deals with fingerprint reading devices. The attached patch file updates security/libfprint from 0.4.0 to 0.5.1; this makes the fingerprint reader on a Thinkpad W520 work. In addition, it creates a new port security/fprintd; however, the latter is slightly incomplete because while enrollment and listing work, verification does not and fails with the following error: # fprintd-verify martin Using device /net/reactivated/Fprint/Device/0 Listing enrolled fingers: - #0: right-middle-finger - #1: right-index-finger VerifyStart failed: Connection was disconnected before a reply was received This seems to be some dbus interaction issue; maybe some kind soul can look into it and fix it. Also, I believe that the port probably needs a few more dependency specifications. Note: The updated libfprint itself works nicely; this can be tested using the port security/fprint_demo. >How-To-Repeat: Please apply the attached patch to the ports tree and install security/fprintd. Running fprintd-verify will give the error message shown above. >Fix: Patch attached with submission follows: diff -urN ports/security/fprintd/Makefile ports.NEW/security/fprintd/Makefile --- ports/security/fprintd/Makefile 1970-01-01 01:00:00.000000000 +0100 +++ ports.NEW/security/fprintd/Makefile 2014-04-21 17:23:59.000000000 +0200 @@ -0,0 +1,26 @@ +# $FreeBSD$ + +PORTNAME= fprintd +PORTVERSION= 0.5.1 +CATEGORIES= security +MASTER_SITES= http://people.freedesktop.org/~hadess/ + +MAINTAINER= ports@FreeBSD.org +COMMENT= Daemon that provides fingerprint scanning functionality over D-Bus + +LICENSE= GPLv2 + +LIB_DEPENDS= libfprint.so:${PORTSDIR}/security/libfprint + +GNU_CONFIGURE= yes +USE_XZ= yes +USES= gmake libtool +USE_GNOME= glib20 + +OPTIONS_DEFINE= NLS +OPTIONS_SUB= yes + +NLS_USES= gettext +NLS_CONFIGURE_ENABLE= nls + +.include <bsd.port.mk> diff -urN ports/security/fprintd/distinfo ports.NEW/security/fprintd/distinfo --- ports/security/fprintd/distinfo 1970-01-01 01:00:00.000000000 +0100 +++ ports.NEW/security/fprintd/distinfo 2014-04-21 17:11:31.000000000 +0200 @@ -0,0 +1,2 @@ +SHA256 (fprintd-0.5.1.tar.xz) = 9256970fe30cb0332c1932fc0dad3c8d83570eb8e153305e9430e3cd90806e58 +SIZE (fprintd-0.5.1.tar.xz) = 285336 diff -urN ports/security/fprintd/files/patch-pam-Makefile.in ports.NEW/security/fprintd/files/patch-pam-Makefile.in --- ports/security/fprintd/files/patch-pam-Makefile.in 1970-01-01 01:00:00.000000000 +0100 +++ ports.NEW/security/fprintd/files/patch-pam-Makefile.in 2014-04-21 17:11:31.000000000 +0200 @@ -0,0 +1,11 @@ +--- ./pam/Makefile.in.ORIG 2013-08-11 18:21:32.000000000 +0200 ++++ ./pam/Makefile.in 2014-04-21 15:40:09.000000000 +0200 +@@ -364,7 +364,7 @@ + top_builddir = @top_builddir@ + top_srcdir = @top_srcdir@ + @HAVE_PAM_TRUE@pammod_LTLIBRARIES = pam_fprintd.la +-@HAVE_PAM_TRUE@pammoddir = $(libdir)/security ++@HAVE_PAM_TRUE@pammoddir = $(libdir) + @HAVE_PAM_TRUE@pam_fprintd_la_SOURCES = pam_fprintd.c $(MARSHALFILES) + @HAVE_PAM_TRUE@pam_fprintd_la_CFLAGS = -fPIC $(WARN_CFLAGS) $(GLIB_CFLAGS) -DLOCALEDIR="\"$(localedir)\"" + @HAVE_PAM_TRUE@pam_fprintd_la_LDFLAGS = -avoid-version -module -Wl,-z,nodelete diff -urN ports/security/fprintd/files/patch-po-Makefile.in.in ports.NEW/security/fprintd/files/patch-po-Makefile.in.in --- ports/security/fprintd/files/patch-po-Makefile.in.in 1970-01-01 01:00:00.000000000 +0100 +++ ports.NEW/security/fprintd/files/patch-po-Makefile.in.in 2014-04-21 17:11:31.000000000 +0200 @@ -0,0 +1,11 @@ +--- ./po/Makefile.in.in.ORIG 2013-08-11 17:56:10.000000000 +0200 ++++ ./po/Makefile.in.in 2014-04-21 15:36:34.000000000 +0200 +@@ -34,7 +34,7 @@ + datarootdir = @datarootdir@ + libdir = @libdir@ + DATADIRNAME = @DATADIRNAME@ +-itlocaledir = $(prefix)/$(DATADIRNAME)/locale ++itlocaledir = @localedir@ + subdir = po + install_sh = @install_sh@ + # Automake >= 1.8 provides @mkdir_p@. diff -urN ports/security/fprintd/pkg-descr ports.NEW/security/fprintd/pkg-descr --- ports/security/fprintd/pkg-descr 1970-01-01 01:00:00.000000000 +0100 +++ ports.NEW/security/fprintd/pkg-descr 2014-04-21 17:24:06.000000000 +0200 @@ -0,0 +1,13 @@ +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 simulatenously 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.) + +WWW: http://www.freedesktop.org/wiki/Software/fprint/fprintd/ diff -urN ports/security/fprintd/pkg-plist ports.NEW/security/fprintd/pkg-plist --- ports/security/fprintd/pkg-plist 1970-01-01 01:00:00.000000000 +0100 +++ ports.NEW/security/fprintd/pkg-plist 2014-04-21 17:11:31.000000000 +0200 @@ -0,0 +1,158 @@ +bin/fprintd-delete +bin/fprintd-enroll +bin/fprintd-list +bin/fprintd-verify +etc/dbus-1/system.d/net.reactivated.Fprint.conf +etc/fprintd.conf +share/locale/ar/LC_MESSAGES/fprintd.mo +share/locale/bg_BG/LC_MESSAGES/fprintd.mo +share/locale/bn_IN/LC_MESSAGES/fprintd.mo +share/locale/ca/LC_MESSAGES/fprintd.mo +share/locale/ca@valencia/LC_MESSAGES/fprintd.mo +share/locale/cs/LC_MESSAGES/fprintd.mo +share/locale/de/LC_MESSAGES/fprintd.mo +share/locale/el/LC_MESSAGES/fprintd.mo +share/locale/en_GB/LC_MESSAGES/fprintd.mo +share/locale/eo/LC_MESSAGES/fprintd.mo +share/locale/es/LC_MESSAGES/fprintd.mo +share/locale/fa_IR/LC_MESSAGES/fprintd.mo +share/locale/fi/LC_MESSAGES/fprintd.mo +share/locale/fo/LC_MESSAGES/fprintd.mo +share/locale/fr/LC_MESSAGES/fprintd.mo +share/locale/ga/LC_MESSAGES/fprintd.mo +share/locale/gl/LC_MESSAGES/fprintd.mo +share/locale/he/LC_MESSAGES/fprintd.mo +share/locale/hi/LC_MESSAGES/fprintd.mo +share/locale/hr/LC_MESSAGES/fprintd.mo +share/locale/hu/LC_MESSAGES/fprintd.mo +share/locale/id/LC_MESSAGES/fprintd.mo +share/locale/it/LC_MESSAGES/fprintd.mo +share/locale/ja/LC_MESSAGES/fprintd.mo +share/locale/kk/LC_MESSAGES/fprintd.mo +share/locale/ko/LC_MESSAGES/fprintd.mo +share/locale/lt/LC_MESSAGES/fprintd.mo +share/locale/lv/LC_MESSAGES/fprintd.mo +share/locale/nl/LC_MESSAGES/fprintd.mo +share/locale/pa/LC_MESSAGES/fprintd.mo +share/locale/pl/LC_MESSAGES/fprintd.mo +share/locale/pt_BR/LC_MESSAGES/fprintd.mo +share/locale/ro/LC_MESSAGES/fprintd.mo +share/locale/ru/LC_MESSAGES/fprintd.mo +share/locale/sk/LC_MESSAGES/fprintd.mo +share/locale/sl/LC_MESSAGES/fprintd.mo +share/locale/sr/LC_MESSAGES/fprintd.mo +share/locale/sr@latin/LC_MESSAGES/fprintd.mo +share/locale/sv/LC_MESSAGES/fprintd.mo +share/locale/te/LC_MESSAGES/fprintd.mo +share/locale/tr/LC_MESSAGES/fprintd.mo +share/locale/uk/LC_MESSAGES/fprintd.mo +share/locale/wa/LC_MESSAGES/fprintd.mo +share/locale/zh_CN/LC_MESSAGES/fprintd.mo +share/locale/zh_TW/LC_MESSAGES/fprintd.mo +lib/pam_fprintd.a +lib/pam_fprintd.la +lib/pam_fprintd.so +libexec/fprintd +man/man1/fprintd.1.gz +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 +share/polkit-1/actions/net.reactivated.fprint.device.policy +@dirrmtry share/polkit-1/actions +@dirrmtry share/polkit-1 +@dirrmtry share/dbus-1/system-services +@dirrmtry share/dbus-1/interfaces +@dirrmtry share/dbus-1 +@dirrmtry share/locale/zh_TW/LC_MESSAGES +@dirrmtry share/locale/zh_TW +@dirrmtry share/locale/zh_CN/LC_MESSAGES +@dirrmtry share/locale/zh_CN +@dirrmtry share/locale/wa/LC_MESSAGES +@dirrmtry share/locale/wa +@dirrmtry share/locale/uk/LC_MESSAGES +@dirrmtry share/locale/uk +@dirrmtry share/locale/tr/LC_MESSAGES +@dirrmtry share/locale/tr +@dirrmtry share/locale/te/LC_MESSAGES +@dirrmtry share/locale/te +@dirrmtry share/locale/sv/LC_MESSAGES +@dirrmtry share/locale/sv +@dirrmtry share/locale/sr@latin/LC_MESSAGES +@dirrmtry share/locale/sr@latin +@dirrmtry share/locale/sr/LC_MESSAGES +@dirrmtry share/locale/sr +@dirrmtry share/locale/sl/LC_MESSAGES +@dirrmtry share/locale/sl +@dirrmtry share/locale/sk/LC_MESSAGES +@dirrmtry share/locale/sk +@dirrmtry share/locale/ru/LC_MESSAGES +@dirrmtry share/locale/ru +@dirrmtry share/locale/ro/LC_MESSAGES +@dirrmtry share/locale/ro +@dirrmtry share/locale/pt_BR/LC_MESSAGES +@dirrmtry share/locale/pt_BR +@dirrmtry share/locale/pl/LC_MESSAGES +@dirrmtry share/locale/pl +@dirrmtry share/locale/pa/LC_MESSAGES +@dirrmtry share/locale/pa +@dirrmtry share/locale/nl/LC_MESSAGES +@dirrmtry share/locale/nl +@dirrmtry share/locale/lv/LC_MESSAGES +@dirrmtry share/locale/lv +@dirrmtry share/locale/lt/LC_MESSAGES +@dirrmtry share/locale/lt +@dirrmtry share/locale/ko/LC_MESSAGES +@dirrmtry share/locale/ko +@dirrmtry share/locale/kk/LC_MESSAGES +@dirrmtry share/locale/kk +@dirrmtry share/locale/ja/LC_MESSAGES +@dirrmtry share/locale/ja +@dirrmtry share/locale/it/LC_MESSAGES +@dirrmtry share/locale/it +@dirrmtry share/locale/id/LC_MESSAGES +@dirrmtry share/locale/id +@dirrmtry share/locale/hu/LC_MESSAGES +@dirrmtry share/locale/hu +@dirrmtry share/locale/hr/LC_MESSAGES +@dirrmtry share/locale/hr +@dirrmtry share/locale/hi/LC_MESSAGES +@dirrmtry share/locale/hi +@dirrmtry share/locale/he/LC_MESSAGES +@dirrmtry share/locale/he +@dirrmtry share/locale/gl/LC_MESSAGES +@dirrmtry share/locale/gl +@dirrmtry share/locale/ga/LC_MESSAGES +@dirrmtry share/locale/ga +@dirrmtry share/locale/fr/LC_MESSAGES +@dirrmtry share/locale/fr +@dirrmtry share/locale/fo/LC_MESSAGES +@dirrmtry share/locale/fo +@dirrmtry share/locale/fi/LC_MESSAGES +@dirrmtry share/locale/fi +@dirrmtry share/locale/fa_IR/LC_MESSAGES +@dirrmtry share/locale/fa_IR +@dirrmtry share/locale/es/LC_MESSAGES +@dirrmtry share/locale/es +@dirrmtry share/locale/eo/LC_MESSAGES +@dirrmtry share/locale/eo +@dirrmtry share/locale/en_GB/LC_MESSAGES +@dirrmtry share/locale/en_GB +@dirrmtry share/locale/el/LC_MESSAGES +@dirrmtry share/locale/el +@dirrmtry share/locale/de/LC_MESSAGES +@dirrmtry share/locale/de +@dirrmtry share/locale/cs/LC_MESSAGES +@dirrmtry share/locale/cs +@dirrmtry share/locale/ca@valencia/LC_MESSAGES +@dirrmtry share/locale/ca@valencia +@dirrmtry share/locale/ca/LC_MESSAGES +@dirrmtry share/locale/ca +@dirrmtry share/locale/bn_IN/LC_MESSAGES +@dirrmtry share/locale/bn_IN +@dirrmtry share/locale/bg_BG/LC_MESSAGES +@dirrmtry share/locale/bg_BG +@dirrmtry share/locale/ar/LC_MESSAGES +@dirrmtry share/locale/ar +@dirrmtry share/locale +@dirrmtry etc/dbus-1/system.d +@dirrmtry etc/dbus-1 diff -urN ports/security/libfprint/Makefile ports.NEW/security/libfprint/Makefile --- ports/security/libfprint/Makefile 2014-04-21 17:10:54.000000000 +0200 +++ ports.NEW/security/libfprint/Makefile 2014-04-21 09:29:24.691550000 +0200 @@ -2,8 +2,7 @@ # $FreeBSD: head/security/libfprint/Makefile 341997 2014-01-31 14:56:46Z miwi $ PORTNAME= libfprint -PORTVERSION= 0.4.0 -PORTREVISION= 3 +PORTVERSION= 0.5.1 CATEGORIES= security MASTER_SITES= http://people.freedesktop.org/~hadess/ @@ -14,7 +13,7 @@ nss3:${PORTSDIR}/security/nss GNU_CONFIGURE= yes -USE_BZIP2= yes +USE_XZ= yes USE_LDCONFIG= yes USE_OPENSSL= yes USES= pathfix pkgconfig diff -urN ports/security/libfprint/distinfo ports.NEW/security/libfprint/distinfo --- ports/security/libfprint/distinfo 2014-04-21 17:10:54.000000000 +0200 +++ ports.NEW/security/libfprint/distinfo 2014-04-21 09:29:35.337583000 +0200 @@ -1,2 +1,2 @@ -SHA256 (libfprint-0.4.0.tar.bz2) = 318d5c3910e37a71a1b2b27fe676726ec14cafafe2f86ecbe3b1412cbe2a2132 -SIZE (libfprint-0.4.0.tar.bz2) = 476262 +SHA256 (libfprint-0.5.1.tar.xz) = 6d12563b91888b84b71eee6d2e113d8e9e9940c6a28a0915656b6f86b9568fb3 +SIZE (libfprint-0.5.1.tar.xz) = 494020 diff -urN ports/security/libfprint/files/patch-libfprint-drivers-vfs301.c ports.NEW/security/libfprint/files/patch-libfprint-drivers-vfs301.c --- ports/security/libfprint/files/patch-libfprint-drivers-vfs301.c 1970-01-01 01:00:00.000000000 +0100 +++ ports.NEW/security/libfprint/files/patch-libfprint-drivers-vfs301.c 2014-04-21 11:09:34.000000000 +0200 @@ -0,0 +1,11 @@ +--- ./libfprint/drivers/vfs301.c.ORIG 2013-06-26 14:13:00.000000000 +0200 ++++ ./libfprint/drivers/vfs301.c 2014-04-21 11:09:12.000000000 +0200 +@@ -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 -urN ports/security/libfprint/files/patch-libfprint-drivers-vfs301_proto.c ports.NEW/security/libfprint/files/patch-libfprint-drivers-vfs301_proto.c --- ports/security/libfprint/files/patch-libfprint-drivers-vfs301_proto.c 1970-01-01 01:00:00.000000000 +0100 +++ ports.NEW/security/libfprint/files/patch-libfprint-drivers-vfs301_proto.c 2014-04-21 11:09:44.000000000 +0200 @@ -0,0 +1,11 @@ +--- ./libfprint/drivers/vfs301_proto.c.ORIG 2013-06-26 14:13:00.000000000 +0200 ++++ ./libfprint/drivers/vfs301_proto.c 2014-04-21 11:09:19.000000000 +0200 +@@ -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 -urN ports/security/libfprint/files/patch-libfprint-drivers-vfs301_proto.h ports.NEW/security/libfprint/files/patch-libfprint-drivers-vfs301_proto.h --- ports/security/libfprint/files/patch-libfprint-drivers-vfs301_proto.h 1970-01-01 01:00:00.000000000 +0100 +++ ports.NEW/security/libfprint/files/patch-libfprint-drivers-vfs301_proto.h 2014-04-21 11:09:34.000000000 +0200 @@ -0,0 +1,11 @@ +--- ./libfprint/drivers/vfs301_proto.h.ORIG 2013-06-26 14:13:00.000000000 +0200 ++++ ./libfprint/drivers/vfs301_proto.h 2014-04-21 11:09:27.000000000 +0200 +@@ -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, >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404211531.s3LFVlwU075419>