import of libfprint:
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.
This commit is contained in:
parent
42fe8821c2
commit
de74b1cc46
28
security/libfprint/Makefile
Normal file
28
security/libfprint/Makefile
Normal file
@ -0,0 +1,28 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2009/03/24 19:01:04 robert Exp $
|
||||
|
||||
COMMENT= library for fingerprint reader devices
|
||||
|
||||
DISTNAME= libfprint-0.0.6
|
||||
CATEGORIES= security
|
||||
|
||||
SHARED_LIBS= fprint 0.0
|
||||
|
||||
HOMEPAGE= http://reactivated.net/fprint/
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=fprint/}
|
||||
EXTRACT_SUFX= .tar.bz2
|
||||
|
||||
MAINTAINER= Robert Nagy <robert@openbsd.org>
|
||||
|
||||
# LGPL
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
WANTLIB= c
|
||||
LIB_DEPENDS= MagickCore.>=1,MagickWand.>=1::graphics/ImageMagick \
|
||||
usb::devel/libusb
|
||||
|
||||
CONFIGURE_STYLE= gnu
|
||||
|
||||
.include <bsd.port.mk>
|
5
security/libfprint/distinfo
Normal file
5
security/libfprint/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (libfprint-0.0.6.tar.bz2) = T0e0YCGxhkiLYKqpf5D+Qw==
|
||||
RMD160 (libfprint-0.0.6.tar.bz2) = NnegmX2mQbo+hYYiLKiGQOH2Nz8=
|
||||
SHA1 (libfprint-0.0.6.tar.bz2) = Qwr5Hvvv6yuY/jAhX7MwUeT478U=
|
||||
SHA256 (libfprint-0.0.6.tar.bz2) = XRb62uy0MqtSypelkwHcjKg8rHXztXFFJmtWKh68xd0=
|
||||
SIZE (libfprint-0.0.6.tar.bz2) = 431957
|
138
security/libfprint/patches/patch-configure
Normal file
138
security/libfprint/patches/patch-configure
Normal file
@ -0,0 +1,138 @@
|
||||
$OpenBSD: patch-configure,v 1.1.1.1 2009/03/24 19:01:04 robert Exp $
|
||||
--- configure.orig Thu Mar 20 14:57:56 2008
|
||||
+++ configure Tue Mar 24 17:21:32 2009
|
||||
@@ -20289,125 +20289,7 @@ echo "${ECHO_T}yes" >&6; }
|
||||
:
|
||||
fi
|
||||
|
||||
-
|
||||
-
|
||||
-# check for OpenSSL's libcrypto
|
||||
-
|
||||
pkg_failed=no
|
||||
-{ echo "$as_me:$LINENO: checking for CRYPTO" >&5
|
||||
-echo $ECHO_N "checking for CRYPTO... $ECHO_C" >&6; }
|
||||
-
|
||||
-if test -n "$PKG_CONFIG"; then
|
||||
- if test -n "$CRYPTO_CFLAGS"; then
|
||||
- pkg_cv_CRYPTO_CFLAGS="$CRYPTO_CFLAGS"
|
||||
- else
|
||||
- if test -n "$PKG_CONFIG" && \
|
||||
- { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"libcrypto\"\"") >&5
|
||||
- ($PKG_CONFIG --exists --print-errors ""libcrypto"") 2>&5
|
||||
- ac_status=$?
|
||||
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
- (exit $ac_status); }; then
|
||||
- pkg_cv_CRYPTO_CFLAGS=`$PKG_CONFIG --cflags ""libcrypto"" 2>/dev/null`
|
||||
-else
|
||||
- pkg_failed=yes
|
||||
-fi
|
||||
- fi
|
||||
-else
|
||||
- pkg_failed=untried
|
||||
-fi
|
||||
-if test -n "$PKG_CONFIG"; then
|
||||
- if test -n "$CRYPTO_LIBS"; then
|
||||
- pkg_cv_CRYPTO_LIBS="$CRYPTO_LIBS"
|
||||
- else
|
||||
- if test -n "$PKG_CONFIG" && \
|
||||
- { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"libcrypto\"\"") >&5
|
||||
- ($PKG_CONFIG --exists --print-errors ""libcrypto"") 2>&5
|
||||
- ac_status=$?
|
||||
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
- (exit $ac_status); }; then
|
||||
- pkg_cv_CRYPTO_LIBS=`$PKG_CONFIG --libs ""libcrypto"" 2>/dev/null`
|
||||
-else
|
||||
- pkg_failed=yes
|
||||
-fi
|
||||
- fi
|
||||
-else
|
||||
- pkg_failed=untried
|
||||
-fi
|
||||
-
|
||||
-
|
||||
-
|
||||
-if test $pkg_failed = yes; then
|
||||
-
|
||||
-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
||||
- _pkg_short_errors_supported=yes
|
||||
-else
|
||||
- _pkg_short_errors_supported=no
|
||||
-fi
|
||||
- if test $_pkg_short_errors_supported = yes; then
|
||||
- CRYPTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors ""libcrypto""`
|
||||
- else
|
||||
- CRYPTO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""libcrypto""`
|
||||
- fi
|
||||
- # Put the nasty error message in config.log where it belongs
|
||||
- echo "$CRYPTO_PKG_ERRORS" >&5
|
||||
-
|
||||
- { { echo "$as_me:$LINENO: error: Package requirements (\"libcrypto\") were not met:
|
||||
-
|
||||
-$CRYPTO_PKG_ERRORS
|
||||
-
|
||||
-Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
||||
-installed software in a non-standard prefix.
|
||||
-
|
||||
-Alternatively, you may set the environment variables CRYPTO_CFLAGS
|
||||
-and CRYPTO_LIBS to avoid the need to call pkg-config.
|
||||
-See the pkg-config man page for more details.
|
||||
-" >&5
|
||||
-echo "$as_me: error: Package requirements (\"libcrypto\") were not met:
|
||||
-
|
||||
-$CRYPTO_PKG_ERRORS
|
||||
-
|
||||
-Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
||||
-installed software in a non-standard prefix.
|
||||
-
|
||||
-Alternatively, you may set the environment variables CRYPTO_CFLAGS
|
||||
-and CRYPTO_LIBS to avoid the need to call pkg-config.
|
||||
-See the pkg-config man page for more details.
|
||||
-" >&2;}
|
||||
- { (exit 1); exit 1; }; }
|
||||
-elif test $pkg_failed = untried; then
|
||||
- { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
|
||||
-is in your PATH or set the PKG_CONFIG environment variable to the full
|
||||
-path to pkg-config.
|
||||
-
|
||||
-Alternatively, you may set the environment variables CRYPTO_CFLAGS
|
||||
-and CRYPTO_LIBS to avoid the need to call pkg-config.
|
||||
-See the pkg-config man page for more details.
|
||||
-
|
||||
-To get pkg-config, see <http://pkg-config.freedesktop.org/>.
|
||||
-See \`config.log' for more details." >&5
|
||||
-echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
|
||||
-is in your PATH or set the PKG_CONFIG environment variable to the full
|
||||
-path to pkg-config.
|
||||
-
|
||||
-Alternatively, you may set the environment variables CRYPTO_CFLAGS
|
||||
-and CRYPTO_LIBS to avoid the need to call pkg-config.
|
||||
-See the pkg-config man page for more details.
|
||||
-
|
||||
-To get pkg-config, see <http://pkg-config.freedesktop.org/>.
|
||||
-See \`config.log' for more details." >&2;}
|
||||
- { (exit 1); exit 1; }; }
|
||||
-else
|
||||
- CRYPTO_CFLAGS=$pkg_cv_CRYPTO_CFLAGS
|
||||
- CRYPTO_LIBS=$pkg_cv_CRYPTO_LIBS
|
||||
- { echo "$as_me:$LINENO: result: yes" >&5
|
||||
-echo "${ECHO_T}yes" >&6; }
|
||||
- :
|
||||
-fi
|
||||
-
|
||||
-
|
||||
-
|
||||
-
|
||||
-pkg_failed=no
|
||||
{ echo "$as_me:$LINENO: checking for GLIB" >&5
|
||||
echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; }
|
||||
|
||||
@@ -20778,7 +20660,7 @@ cat >>confdefs.h <<\_ACEOF
|
||||
#define API_EXPORTED __attribute__((visibility("default")))
|
||||
_ACEOF
|
||||
|
||||
-AM_CFLAGS="-std=gnu99 -fgnu89-inline -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration -Wno-pointer-sign -Wshadow"
|
||||
+AM_CFLAGS="-std=gnu99 -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration -Wshadow"
|
||||
|
||||
|
||||
ac_config_files="$ac_config_files libfprint.pc Makefile libfprint/Makefile examples/Makefile doc/Makefile"
|
12
security/libfprint/patches/patch-libfprint_Makefile_in
Normal file
12
security/libfprint/patches/patch-libfprint_Makefile_in
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-libfprint_Makefile_in,v 1.1.1.1 2009/03/24 19:01:04 robert Exp $
|
||||
--- libfprint/Makefile.in.orig Tue Mar 24 17:20:41 2009
|
||||
+++ libfprint/Makefile.in Tue Mar 24 17:20:58 2009
|
||||
@@ -275,7 +275,7 @@ NBIS_SRC = \
|
||||
nbis/mindtct/sort.c \
|
||||
nbis/mindtct/util.c
|
||||
|
||||
-libfprint_la_CFLAGS = -fvisibility=hidden -I$(srcdir)/nbis/include $(LIBUSB_CFLAGS) $(GLIB_CFLAGS) $(IMAGEMAGICK_CFLAGS) $(CRYPTO_CFLAGS) $(AM_CFLAGS)
|
||||
+libfprint_la_CFLAGS = -I$(srcdir)/nbis/include $(LIBUSB_CFLAGS) $(GLIB_CFLAGS) $(IMAGEMAGICK_CFLAGS) $(CRYPTO_CFLAGS) $(AM_CFLAGS)
|
||||
libfprint_la_LDFLAGS = -version-info @lt_major@:@lt_revision@:@lt_age@
|
||||
libfprint_la_LIBADD = -lm $(LIBUSB_LIBS) $(GLIB_LIBS) $(IMAGEMAGICK_LIBS) $(CRYPTO_LIBS)
|
||||
libfprint_la_SOURCES = \
|
22
security/libfprint/patches/patch-libfprint_fp_internal_h
Normal file
22
security/libfprint/patches/patch-libfprint_fp_internal_h
Normal file
@ -0,0 +1,22 @@
|
||||
$OpenBSD: patch-libfprint_fp_internal_h,v 1.1.1.1 2009/03/24 19:01:04 robert Exp $
|
||||
--- libfprint/fp_internal.h.orig Tue Mar 24 17:28:48 2009
|
||||
+++ libfprint/fp_internal.h Tue Mar 24 17:28:34 2009
|
||||
@@ -62,6 +62,18 @@ void fpi_log(enum fpi_log_level, const char *component
|
||||
#define fp_warn(fmt...) _fpi_log(LOG_LEVEL_WARNING, fmt)
|
||||
#define fp_err(fmt...) _fpi_log(LOG_LEVEL_ERROR, fmt)
|
||||
|
||||
+#if !defined(ENOTSUP) && defined(EOPNOTSUPP)
|
||||
+#define ENOTSUP EOPNOTSUPP
|
||||
+#endif
|
||||
+
|
||||
+#if !defined(ENODATA) && defined(ENOENT)
|
||||
+#define ENODATA ENOENT
|
||||
+#endif
|
||||
+
|
||||
+#if !defined(EPROTO) && defined(ENOPROTOOPT)
|
||||
+#define EPROTO ENOPROTOOPT
|
||||
+#endif
|
||||
+
|
||||
struct fp_dev {
|
||||
struct fp_driver *drv;
|
||||
usb_dev_handle *udev;
|
3
security/libfprint/pkg/DESCR
Normal file
3
security/libfprint/pkg/DESCR
Normal file
@ -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.
|
2
security/libfprint/pkg/PFRAG.shared
Normal file
2
security/libfprint/pkg/PFRAG.shared
Normal file
@ -0,0 +1,2 @@
|
||||
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2009/03/24 19:01:04 robert Exp $
|
||||
@lib lib/libfprint.so.${LIBfprint_VERSION}
|
8
security/libfprint/pkg/PLIST
Normal file
8
security/libfprint/pkg/PLIST
Normal file
@ -0,0 +1,8 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2009/03/24 19:01:04 robert Exp $
|
||||
%%SHARED%%
|
||||
include/libfprint/
|
||||
include/libfprint/fprint.h
|
||||
lib/libfprint.a
|
||||
lib/libfprint.la
|
||||
lib/pkgconfig/
|
||||
lib/pkgconfig/libfprint.pc
|
Loading…
Reference in New Issue
Block a user