diff --git a/security/libfprint/Makefile b/security/libfprint/Makefile new file mode 100644 index 00000000000..60a0ef0eec5 --- /dev/null +++ b/security/libfprint/Makefile @@ -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 + +# 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 diff --git a/security/libfprint/distinfo b/security/libfprint/distinfo new file mode 100644 index 00000000000..fa108a5b1f3 --- /dev/null +++ b/security/libfprint/distinfo @@ -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 diff --git a/security/libfprint/patches/patch-configure b/security/libfprint/patches/patch-configure new file mode 100644 index 00000000000..3b06a1b03a3 --- /dev/null +++ b/security/libfprint/patches/patch-configure @@ -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 . +-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 . +-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" diff --git a/security/libfprint/patches/patch-libfprint_Makefile_in b/security/libfprint/patches/patch-libfprint_Makefile_in new file mode 100644 index 00000000000..96284fb18e0 --- /dev/null +++ b/security/libfprint/patches/patch-libfprint_Makefile_in @@ -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 = \ diff --git a/security/libfprint/patches/patch-libfprint_fp_internal_h b/security/libfprint/patches/patch-libfprint_fp_internal_h new file mode 100644 index 00000000000..e08ec29dfe9 --- /dev/null +++ b/security/libfprint/patches/patch-libfprint_fp_internal_h @@ -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; diff --git a/security/libfprint/pkg/DESCR b/security/libfprint/pkg/DESCR new file mode 100644 index 00000000000..6e525672e5f --- /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/PFRAG.shared b/security/libfprint/pkg/PFRAG.shared new file mode 100644 index 00000000000..59075050e4e --- /dev/null +++ b/security/libfprint/pkg/PFRAG.shared @@ -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} diff --git a/security/libfprint/pkg/PLIST b/security/libfprint/pkg/PLIST new file mode 100644 index 00000000000..851cb077617 --- /dev/null +++ b/security/libfprint/pkg/PLIST @@ -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