summaryrefslogtreecommitdiff
path: root/security/libfprint
diff options
context:
space:
mode:
Diffstat (limited to 'security/libfprint')
-rw-r--r--security/libfprint/Makefile27
-rw-r--r--security/libfprint/distinfo3
-rw-r--r--security/libfprint/files/patch-config.h.in11
-rw-r--r--security/libfprint/files/patch-libfprint-drivers-vfs301.c11
-rw-r--r--security/libfprint/files/patch-libfprint-drivers-vfs301_proto.c11
-rw-r--r--security/libfprint/files/patch-libfprint-drivers-vfs301_proto.h11
-rw-r--r--security/libfprint/files/patch-libfprint_Makefile.in11
-rw-r--r--security/libfprint/pkg-descr3
-rw-r--r--security/libfprint/pkg-plist6
9 files changed, 94 insertions, 0 deletions
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