aboutsummaryrefslogtreecommitdiff
path: root/security/libfprint
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2011-10-02 18:41:21 +0000
committerPawel Pekala <pawel@FreeBSD.org>2011-10-02 18:41:21 +0000
commit98d2a6cfde059915408b37b65b535611a6d8bf5c (patch)
tree3265f76e0fccc4e6dcffe51429ebe61312db2cb8 /security/libfprint
parenta188b16f807a2f4ab25a6b60fede4174afdcc93d (diff)
downloadports-98d2a6cfde059915408b37b65b535611a6d8bf5c.tar.gz
ports-98d2a6cfde059915408b37b65b535611a6d8bf5c.zip
- Update to version 0.4.0
- Mark MAKE_JOBS_UNSAFE - Mark IGNORE on FreeBSD < 8, needs libusb>=1.0 - Pass maintainership to submitter PR: ports/161224 Submitted by: Zhihao Yuan <lichray@gmail.com> Approved by: miwi, wen (mentors implicit)
Notes
Notes: svn path=/head/; revision=282817
Diffstat (limited to 'security/libfprint')
-rw-r--r--security/libfprint/Makefile19
-rw-r--r--security/libfprint/distinfo4
-rw-r--r--security/libfprint/files/extra-patch-usb118
-rw-r--r--security/libfprint/files/patch-Makefile.in11
-rw-r--r--security/libfprint/files/patch-config.h.in11
-rw-r--r--security/libfprint/files/patch-configure11
-rw-r--r--security/libfprint/files/patch-libfprint_Makefile.in22
-rw-r--r--security/libfprint/files/patch-libfprint_data.c10
-rw-r--r--security/libfprint/files/patch-libfprint_imgdev.c11
9 files changed, 33 insertions, 184 deletions
diff --git a/security/libfprint/Makefile b/security/libfprint/Makefile
index f446efb1a056..15a06c4983dd 100644
--- a/security/libfprint/Makefile
+++ b/security/libfprint/Makefile
@@ -6,32 +6,31 @@
#
PORTNAME= libfprint
-PORTVERSION= 0.0.6
-PORTREVISION= 4
+PORTVERSION= 0.4.0
CATEGORIES= security
-MASTER_SITES= SF/fprint/${PORTNAME}/v${PORTVERSION}
+MASTER_SITES= http://people.freedesktop.org/~hadess/
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= lichray@gmail.com
COMMENT= Library for fingerprint reader devices
-LIB_DEPENDS+= Magick:${PORTSDIR}/graphics/ImageMagick
+LIB_DEPENDS+= Magick:${PORTSDIR}/graphics/ImageMagick \
+ nss3:${PORTSDIR}/security/nss
GNU_CONFIGURE= yes
USE_BZIP2= yes
USE_LDCONFIG= yes
USE_OPENSSL= yes
-USE_GNOME= glib20 pkgconfig
+USE_GNOME= gnomehack glib20 pkgconfig
-CONFIGURE_ENV+= CRYPTO_CFLAGS=-I${OPENSSLINC} \
- CRYPTO_LIBS=-lcrypto
CFLAGS+= -DHAVE_MEMMEM
+MAKE_JOBS_UNSAFE=yes
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 800069
-LIB_DEPENDS+= usb:${PORTSDIR}/devel/libusb
+IGNORE= libusb-1.0 is not avaible on FreeBSD < 8
.else
-EXTRA_PATCHES= ${FILESDIR}/extra-patch-usb
+CONFIGURE_ENV+= LIBUSB_CFLAGS=" " LIBUSB_LIBS="-lusb"
.endif
.include <bsd.port.post.mk>
diff --git a/security/libfprint/distinfo b/security/libfprint/distinfo
index 85cd2c5c6f08..504d13a438d3 100644
--- a/security/libfprint/distinfo
+++ b/security/libfprint/distinfo
@@ -1,2 +1,2 @@
-SHA256 (libfprint-0.0.6.tar.bz2) = 5d16fadaecb432ab52ca97a59301dc8ca83cac75f3b57145266b562a1ebcc5dd
-SIZE (libfprint-0.0.6.tar.bz2) = 431957
+SHA256 (libfprint-0.4.0.tar.bz2) = 318d5c3910e37a71a1b2b27fe676726ec14cafafe2f86ecbe3b1412cbe2a2132
+SIZE (libfprint-0.4.0.tar.bz2) = 476262
diff --git a/security/libfprint/files/extra-patch-usb b/security/libfprint/files/extra-patch-usb
deleted file mode 100644
index dc14e7864090..000000000000
--- a/security/libfprint/files/extra-patch-usb
+++ /dev/null
@@ -1,118 +0,0 @@
---- configure.orig 2008-03-20 16:57:56.000000000 +0300
-+++ configure 2009-03-07 23:40:53.000000000 +0300
-@@ -20182,113 +20182,10 @@
- { echo "$as_me:$LINENO: checking for LIBUSB" >&5
- echo $ECHO_N "checking for LIBUSB... $ECHO_C" >&6; }
-
--if test -n "$PKG_CONFIG"; then
-- if test -n "$LIBUSB_CFLAGS"; then
-- pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
-- else
-- if test -n "$PKG_CONFIG" && \
-- { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"libusb\"\"") >&5
-- ($PKG_CONFIG --exists --print-errors ""libusb"") 2>&5
-- ac_status=$?
-- echo "$as_me:$LINENO: \$? = $ac_status" >&5
-- (exit $ac_status); }; then
-- pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags ""libusb"" 2>/dev/null`
--else
-- pkg_failed=yes
--fi
-- fi
--else
-- pkg_failed=untried
--fi
--if test -n "$PKG_CONFIG"; then
-- if test -n "$LIBUSB_LIBS"; then
-- pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
-- else
-- if test -n "$PKG_CONFIG" && \
-- { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"libusb\"\"") >&5
-- ($PKG_CONFIG --exists --print-errors ""libusb"") 2>&5
-- ac_status=$?
-- echo "$as_me:$LINENO: \$? = $ac_status" >&5
-- (exit $ac_status); }; then
-- pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs ""libusb"" 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
-- LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors ""libusb""`
-- else
-- LIBUSB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""libusb""`
-- fi
-- # Put the nasty error message in config.log where it belongs
-- echo "$LIBUSB_PKG_ERRORS" >&5
--
-- { { echo "$as_me:$LINENO: error: Package requirements (\"libusb\") were not met:
--
--$LIBUSB_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 LIBUSB_CFLAGS
--and LIBUSB_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 (\"libusb\") were not met:
--
--$LIBUSB_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 LIBUSB_CFLAGS
--and LIBUSB_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 LIBUSB_CFLAGS
--and LIBUSB_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 LIBUSB_CFLAGS
--and LIBUSB_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
-- LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
-- LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
-+ LIBUSB_CFLAGS=""
-+ LIBUSB_LIBS="-lusb"
- { echo "$as_me:$LINENO: result: yes" >&5
- echo "${ECHO_T}yes" >&6; }
-- :
--fi
--
-
-
- # check for OpenSSL's libcrypto
diff --git a/security/libfprint/files/patch-Makefile.in b/security/libfprint/files/patch-Makefile.in
deleted file mode 100644
index d7f2e5abbda2..000000000000
--- a/security/libfprint/files/patch-Makefile.in
+++ /dev/null
@@ -1,11 +0,0 @@
---- Makefile.in.orig 2008-04-12 20:04:30.000000000 +0200
-+++ Makefile.in 2008-04-12 20:04:59.000000000 +0200
-@@ -209,7 +209,7 @@
- EXTRA_DIST = THANKS TODO HACKING libfprint.pc.in
- DISTCLEANFILES = ChangeLog libfprint.pc
- SUBDIRS = libfprint doc $(am__append_1)
--pkgconfigdir = $(libdir)/pkgconfig
-+pkgconfigdir = ${PREFIX}/libdata/pkgconfig
- pkgconfig_DATA = libfprint.pc
- all: config.h
- $(MAKE) $(AM_MAKEFLAGS) all-recursive
diff --git a/security/libfprint/files/patch-config.h.in b/security/libfprint/files/patch-config.h.in
new file mode 100644
index 000000000000..6102d68d1743
--- /dev/null
+++ b/security/libfprint/files/patch-config.h.in
@@ -0,0 +1,11 @@
+--- config.h.in~ 2011-04-18 12:02:59.000000000 -0500
++++ config.h.in 2011-10-01 23:12:01.979122045 -0500
+@@ -117,3 +117,8 @@
+ #ifndef __cplusplus
+ #undef inline
+ #endif
++
++/* FreeBSD >=8 */
++#ifndef ETIME
++#define ETIME ETIMEDOUT
++#endif
diff --git a/security/libfprint/files/patch-configure b/security/libfprint/files/patch-configure
deleted file mode 100644
index 84b879adf26e..000000000000
--- a/security/libfprint/files/patch-configure
+++ /dev/null
@@ -1,11 +0,0 @@
---- configure.orig 2008-04-19 12:47:31.000000000 +0200
-+++ configure 2008-04-19 12:49:22.000000000 +0200
-@@ -20778,7 +20778,7 @@
- #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/files/patch-libfprint_Makefile.in b/security/libfprint/files/patch-libfprint_Makefile.in
index 527a3d8e74db..9cda11bfc6b2 100644
--- a/security/libfprint/files/patch-libfprint_Makefile.in
+++ b/security/libfprint/files/patch-libfprint_Makefile.in
@@ -1,11 +1,11 @@
---- libfprint/Makefile.in.orig 2008-04-19 12:50:56.000000000 +0200
-+++ libfprint/Makefile.in 2008-04-19 12:51:11.000000000 +0200
-@@ -275,7 +275,7 @@
- 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 = \
+--- libfprint/Makefile.in~ 2011-10-01 23:20:55.218924048 -0500
++++ libfprint/Makefile.in 2011-10-01 23:23:50.108796610 -0500
+@@ -1195,7 +1195,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/files/patch-libfprint_data.c b/security/libfprint/files/patch-libfprint_data.c
deleted file mode 100644
index 9fe490c7426d..000000000000
--- a/security/libfprint/files/patch-libfprint_data.c
+++ /dev/null
@@ -1,10 +0,0 @@
---- libfprint/data.c.orig 2009-03-07 23:42:59.000000000 +0300
-+++ libfprint/data.c 2009-03-07 23:43:09.000000000 +0300
-@@ -19,6 +19,7 @@
-
- #include <config.h>
- #include <errno.h>
-+#include <stdlib.h>
- #include <string.h>
- #include <sys/types.h>
- #include <sys/stat.h>
diff --git a/security/libfprint/files/patch-libfprint_imgdev.c b/security/libfprint/files/patch-libfprint_imgdev.c
deleted file mode 100644
index eade6e1c4ccc..000000000000
--- a/security/libfprint/files/patch-libfprint_imgdev.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- libfprint/imgdev.c.orig 2008-04-12 14:37:10.000000000 +0200
-+++ libfprint/imgdev.c 2008-04-12 14:40:17.000000000 +0200
-@@ -175,7 +175,7 @@
-
- if (img == NULL) {
- fp_err("capture succeeded but no image returned?");
-- return -ENODATA;
-+ return -ENOMSG;
- }
-
- if (!unconditional && imgdrv->await_finger_off) {