aboutsummaryrefslogtreecommitdiff
path: root/security/bioapi
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2006-01-15 09:29:14 +0000
committerPav Lucistnik <pav@FreeBSD.org>2006-01-15 09:29:14 +0000
commit15284a2fe615370a28f5e98239607a12607ecabc (patch)
treef4e499f669628b86c0db113bb3ab92c1a4e3fcb3 /security/bioapi
parent853594a45b15f5eb55d6bb39a140fc978010dc03 (diff)
downloadports-15284a2fe615370a28f5e98239607a12607ecabc.tar.gz
ports-15284a2fe615370a28f5e98239607a12607ecabc.zip
Notes
Diffstat (limited to 'security/bioapi')
-rw-r--r--security/bioapi/Makefile29
-rw-r--r--security/bioapi/distinfo3
-rw-r--r--security/bioapi/files/patch-apps-NonGUI_Sample-Makefile.in68
-rw-r--r--security/bioapi/files/patch-apps-mod_install-install.c18
-rw-r--r--security/bioapi/files/patch-framework-bioapi_util-memfuncs.c11
-rw-r--r--security/bioapi/files/patch-framework-port-portmutx.c18
-rw-r--r--security/bioapi/files/patch-imports-cdsa-v2_0-inc-Makefile.in74
-rw-r--r--security/bioapi/files/patch-imports-cdsa-v2_0-inc-cssmtype.h11
-rw-r--r--security/bioapi/files/patch-imports-cdsa-v2_0-inc-port-cssmport.h174
-rw-r--r--security/bioapi/files/patch-include-Makefile.in21
-rw-r--r--security/bioapi/files/patch-include-bioapi_schema.h11
-rw-r--r--security/bioapi/files/patch-include-bioapi_type.h11
-rw-r--r--security/bioapi/pkg-descr7
-rw-r--r--security/bioapi/pkg-plist65
14 files changed, 521 insertions, 0 deletions
diff --git a/security/bioapi/Makefile b/security/bioapi/Makefile
new file mode 100644
index 000000000000..4deb32689df6
--- /dev/null
+++ b/security/bioapi/Makefile
@@ -0,0 +1,29 @@
+# Ports collection makefile for: bioapi
+# Date created: 10 January 2006
+# Whom: Fredrik Lindberg <fli@shapeshifter.se>
+#
+# $FreeBSD$
+#
+
+PORTNAME= bioapi
+PORTVERSION= 1.2.2
+CATEGORIES= security
+MASTER_SITES= http://www.qrivy.net/~michael/blua/bioapi/ \
+ http://shapeshifter.se/pub/bioapi/
+
+MAINTAINER= fli@shapeshifter.se
+COMMENT= BioAPI library implementation
+
+USE_BZIP2= yes
+USE_AUTOTOOLS= libtool:15
+CONFIGURE_ARGS= --localstatedir=/var/db/ --with-Qt-dir=no
+
+INSTALLS_SHLIB= yes
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 600000
+IGNORE= needs at least FreeBSD 6.0-RELEASE
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/security/bioapi/distinfo b/security/bioapi/distinfo
new file mode 100644
index 000000000000..70fbc57e6180
--- /dev/null
+++ b/security/bioapi/distinfo
@@ -0,0 +1,3 @@
+MD5 (bioapi-1.2.2.tar.bz2) = 924f723895c339552e501999945b7920
+SHA256 (bioapi-1.2.2.tar.bz2) = 17c3482c2518c5e5e686e6650c22625324cd5279dbe8b8a2297da575095ee224
+SIZE (bioapi-1.2.2.tar.bz2) = 572282
diff --git a/security/bioapi/files/patch-apps-NonGUI_Sample-Makefile.in b/security/bioapi/files/patch-apps-NonGUI_Sample-Makefile.in
new file mode 100644
index 000000000000..6a3e1c9db57f
--- /dev/null
+++ b/security/bioapi/files/patch-apps-NonGUI_Sample-Makefile.in
@@ -0,0 +1,68 @@
+--- apps/NonGUI_Sample/Makefile.in Mon Jun 20 06:18:01 2005
++++ apps/NonGUI_Sample/Makefile.in Thu Jan 12 13:25:47 2006
+@@ -14,7 +14,7 @@
+
+ @SET_MAKE@
+
+-SOURCES = $(Sample_SOURCES)
++SOURCES = $(bioapi_sample_SOURCES)
+
+ srcdir = @srcdir@
+ top_srcdir = @top_srcdir@
+@@ -38,7 +38,7 @@
+ POST_UNINSTALL = :
+ build_triplet = @build@
+ host_triplet = @host@
+-bin_PROGRAMS = Sample$(EXEEXT)
++bin_PROGRAMS = bioapi_sample$(EXEEXT)
+ subdir = apps/NonGUI_Sample
+ DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+@@ -51,9 +51,9 @@
+ am__installdirs = "$(DESTDIR)$(bindir)"
+ binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
+ PROGRAMS = $(bin_PROGRAMS)
+-am_Sample_OBJECTS = main.$(OBJEXT)
+-Sample_OBJECTS = $(am_Sample_OBJECTS)
+-Sample_DEPENDENCIES = ../../framework/h_layer/libbioapi100.la
++am_bioapi_sample_OBJECTS = main.$(OBJEXT)
++bioapi_sample_OBJECTS = $(am_bioapi_sample_OBJECTS)
++bioapi_sample_DEPENDENCIES = ../../framework/h_layer/libbioapi100.la
+ DEFAULT_INCLUDES = -I. -I$(srcdir)
+ depcomp = $(SHELL) $(top_srcdir)/depcomp
+ am__depfiles_maybe = depfiles
+@@ -65,8 +65,8 @@
+ CCLD = $(CC)
+ LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+ $(AM_LDFLAGS) $(LDFLAGS) -o $@
+-SOURCES = $(Sample_SOURCES)
+-DIST_SOURCES = $(Sample_SOURCES)
++SOURCES = $(bioapi_sample_SOURCES)
++DIST_SOURCES = $(bioapi_sample_SOURCES)
+ ETAGS = etags
+ CTAGS = ctags
+ DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+@@ -185,8 +185,8 @@
+ sharedstatedir = @sharedstatedir@
+ sysconfdir = @sysconfdir@
+ target_alias = @target_alias@
+-Sample_SOURCES = main.c
+-Sample_LDADD = ../../framework/h_layer/libbioapi100.la
++bioapi_sample_SOURCES = main.c
++bioapi_sample_LDADD = ../../framework/h_layer/libbioapi100.la
+ all: all-am
+
+ .SUFFIXES:
+@@ -248,9 +248,9 @@
+ echo " rm -f $$p $$f"; \
+ rm -f $$p $$f ; \
+ done
+-Sample$(EXEEXT): $(Sample_OBJECTS) $(Sample_DEPENDENCIES)
+- @rm -f Sample$(EXEEXT)
+- $(LINK) $(Sample_LDFLAGS) $(Sample_OBJECTS) $(Sample_LDADD) $(LIBS)
++bioapi_sample$(EXEEXT): $(bioapi_sample_OBJECTS) $(bioapi_sample_DEPENDENCIES)
++ @rm -f bioapi_sample$(EXEEXT)
++ $(LINK) $(bioapi_sample_LDFLAGS) $(bioapi_sample_OBJECTS) $(bioapi_sample_LDADD) $(LIBS)
+
+ mostlyclean-compile:
+ -rm -f *.$(OBJEXT)
diff --git a/security/bioapi/files/patch-apps-mod_install-install.c b/security/bioapi/files/patch-apps-mod_install-install.c
new file mode 100644
index 000000000000..9059b4851b8a
--- /dev/null
+++ b/security/bioapi/files/patch-apps-mod_install-install.c
@@ -0,0 +1,18 @@
+--- apps/mod_install/install.c Wed Jun 8 02:51:04 2005
++++ apps/mod_install/install.c Fri Nov 25 18:08:54 2005
+@@ -370,8 +370,13 @@
+ #if defined (LINUX) || defined (SOLARIS)
+ if ( ( Action == INSTALL_ACTION_INSTALL ) || ( Action == INSTALL_ACTION_REFRESH ) )
+ {
+- strcat(szSrcPath, ModuleName);
+- Src = szSrcPath;
++ if (strchr(ModuleName, '/') == NULL) {
++ strcat(szSrcPath, ModuleName);
++ Src = szSrcPath;
++ }
++ else {
++ Src = ModuleName;
++ }
+ }
+ if ( Action == INSTALL_ACTION_UNINSTALL )
+ {
diff --git a/security/bioapi/files/patch-framework-bioapi_util-memfuncs.c b/security/bioapi/files/patch-framework-bioapi_util-memfuncs.c
new file mode 100644
index 000000000000..a6da62180489
--- /dev/null
+++ b/security/bioapi/files/patch-framework-bioapi_util-memfuncs.c
@@ -0,0 +1,11 @@
+--- framework/bioapi_util/memfuncs.c Wed Jun 8 02:51:05 2005
++++ framework/bioapi_util/memfuncs.c Sat Nov 19 15:28:53 2005
+@@ -15,7 +15,7 @@
+
+ /* Linux-Port: added <malloc.h> include file */
+ #if defined (UNIX)
+-#include <malloc.h>
++#include <stdlib.h>
+ #endif
+
+ #ifdef _DEBUG
diff --git a/security/bioapi/files/patch-framework-port-portmutx.c b/security/bioapi/files/patch-framework-port-portmutx.c
new file mode 100644
index 000000000000..86cb1889bf8e
--- /dev/null
+++ b/security/bioapi/files/patch-framework-port-portmutx.c
@@ -0,0 +1,18 @@
+--- framework/port/portmutx.c Wed Jun 8 02:51:05 2005
++++ framework/port/portmutx.c Thu Jan 12 11:45:43 2006
+@@ -122,6 +122,7 @@
+ * WIN32 mutexes are recursive, so match that behavior.
+ */
+
++#if 0
+ if ((status = pthread_mutexattr_settype(&attr,
+ #if defined (LINUX)
+ PTHREAD_MUTEX_RECURSIVE_NP)))
+@@ -132,6 +133,7 @@
+ (void) pthread_mutexattr_destroy(&attr);
+ goto cleanup;
+ }
++#endif
+
+ if ((status = pthread_mutex_init(*mhandle, &attr)))
+ {
diff --git a/security/bioapi/files/patch-imports-cdsa-v2_0-inc-Makefile.in b/security/bioapi/files/patch-imports-cdsa-v2_0-inc-Makefile.in
new file mode 100644
index 000000000000..d413a8dfa09e
--- /dev/null
+++ b/security/bioapi/files/patch-imports-cdsa-v2_0-inc-Makefile.in
@@ -0,0 +1,74 @@
+--- ../bioapi-1.2.2.orig/imports/cdsa/v2_0/inc/Makefile.in Mon Jun 20 06:18:04 2005
++++ imports/cdsa/v2_0/inc/Makefile.in Fri Nov 25 17:27:53 2005
+@@ -37,7 +37,7 @@
+ build_triplet = @build@
+ host_triplet = @host@
+ subdir = imports/cdsa/v2_0/inc
+-DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \
++DIST_COMMON = $(noinst_HEADERS) $(include_HEADERS) $(srcdir)/Makefile.am \
+ $(srcdir)/Makefile.in
+ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+ am__aclocal_m4_deps = $(top_srcdir)/m4/bnv_have_qt.m4 \
+@@ -48,7 +48,8 @@
+ CONFIG_CLEAN_FILES =
+ SOURCES =
+ DIST_SOURCES =
+-HEADERS = $(noinst_HEADERS)
++includeHEADERS_INSTALL = $(INSTALL_HEADER)
++HEADERS = $(noinst_HEADERS) $(include_HEADERS)
+ ETAGS = etags
+ CTAGS = ctags
+ DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+@@ -165,9 +166,9 @@
+ sharedstatedir = @sharedstatedir@
+ sysconfdir = @sysconfdir@
+ target_alias = @target_alias@
++include_HEADERS = cssmtype.h
+ noinst_HEADERS = cssmerr.h \
+ cssmMemTrack.h \
+- cssmtype.h \
+ mds_schema.h \
+ trc_util.h \
+ intel/ff_passthrough.h \
+@@ -221,6 +222,23 @@
+ distclean-libtool:
+ -rm -f libtool
+ uninstall-info-am:
++install-includeHEADERS: $(include_HEADERS)
++ @$(NORMAL_INSTALL)
++ test -z "$(includedir)" || $(mkdir_p) "$(DESTDIR)$(includedir)"
++ @list='$(include_HEADERS)'; for p in $$list; do \
++ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
++ f=$(am__strip_dir) \
++ echo " $(includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(includedir)/$$f'"; \
++ $(includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(includedir)/$$f"; \
++ done
++
++uninstall-includeHEADERS:
++ @$(NORMAL_UNINSTALL)
++ @list='$(include_HEADERS)'; for p in $$list; do \
++ f=$(am__strip_dir) \
++ echo " rm -f '$(DESTDIR)$(includedir)/$$f'"; \
++ rm -f "$(DESTDIR)$(includedir)/$$f"; \
++ done
+
+ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+@@ -345,7 +363,7 @@
+
+ info-am:
+
+-install-data-am:
++install-data-am: install-includeHEADERS
+
+ install-exec-am:
+
+@@ -371,7 +389,7 @@
+
+ ps-am:
+
+-uninstall-am:
++uninstall-am: uninstall-includeHEADERS
+
+ .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
+ clean-libtool ctags distclean distclean-generic \
diff --git a/security/bioapi/files/patch-imports-cdsa-v2_0-inc-cssmtype.h b/security/bioapi/files/patch-imports-cdsa-v2_0-inc-cssmtype.h
new file mode 100644
index 000000000000..9aad1e94f402
--- /dev/null
+++ b/security/bioapi/files/patch-imports-cdsa-v2_0-inc-cssmtype.h
@@ -0,0 +1,11 @@
+--- imports/cdsa/v2_0/inc/cssmtype.h Wed Jun 8 02:51:05 2005
++++ imports/cdsa/v2_0/inc/cssmtype.h Fri Nov 25 18:21:25 2005
+@@ -19,7 +19,7 @@
+ #define CSSMAPI __stdcall
+ #define CSSM_FUNC __cdecl
+
+-#elif defined (UNIX)
++#elif defined (__unix__)
+
+ #define CSSMAPI
+ #define CALLBACK
diff --git a/security/bioapi/files/patch-imports-cdsa-v2_0-inc-port-cssmport.h b/security/bioapi/files/patch-imports-cdsa-v2_0-inc-port-cssmport.h
new file mode 100644
index 000000000000..3487ab004f2b
--- /dev/null
+++ b/security/bioapi/files/patch-imports-cdsa-v2_0-inc-port-cssmport.h
@@ -0,0 +1,174 @@
+--- imports/cdsa/v2_0/inc/port/cssmport.h Wed Jun 8 02:51:05 2005
++++ imports/cdsa/v2_0/inc/port/cssmport.h Fri Nov 25 15:34:49 2005
+@@ -17,9 +17,9 @@
+ #ifndef _CSSMPORT_H
+ #define _CSSMPORT_H
+
+-#if defined (POSIX)
++#if defined (__POSIX_VISIBLE)
+ #include <pthread.h> /* Must always be the first include */
+-#endif /* POSIX */
++#endif /* __POSIX_VISIBLE */
+
+ #if defined (WIN32)
+ #pragma warning (disable:4201 4514 4214 4115)
+@@ -27,7 +27,7 @@
+ #pragma warning (default:4201 4214 4115)
+ #endif /* WIN32 */
+
+-#if defined (UNIX)
++#if defined (__unix__)
+ /* For UNIX C library calls */
+ #if defined (LINUX) || defined (SOLARIS)
+ #include <link.h>
+@@ -37,7 +37,6 @@
+ #include <errno.h>
+ #include <stdlib.h>
+ #include <limits.h>
+-#include <malloc.h>
+ #include <dlfcn.h>
+ #include <ctype.h>
+ #include <fcntl.h>
+@@ -52,7 +51,7 @@
+ #include <sys/mman.h>
+ #include <sys/file.h>
+ #include <pwd.h>
+-#endif /* UNIX */
++#endif /* __unix__ */
+
+ #if defined (AIX)
+ #include <strings.h>
+@@ -64,7 +63,7 @@
+ #include <sys/stat.h>
+ #include "cssmtype.h"
+
+-#if defined(UNIX)
++#if defined(__unix__)
+
+ /* _MAX_PATH includes room for 0-terminator, PATH_MAX doesn't. */
+ #define _MAX_PATH (PATH_MAX + 1)
+@@ -81,12 +80,12 @@
+
+ typedef void * UNIX_HANDLE;
+
+-#endif /* UNIX */
++#endif /* __unix__ */
+
+ #if defined(WIN32)
+ #define CSSM_MAX_PATH _MAX_PATH + 1
+ #define CSSM_MAX_REG REGSTR_MAX_VALUE_LENGTH + 1
+-#elif defined (UNIX)
++#elif defined (__unix__)
+ #define CSSM_MAX_PATH (PATH_MAX + 1)
+ #define CSSM_MAX_REG 256
+ #else
+@@ -95,7 +94,7 @@
+ #endif /* WIN32 */
+
+
+-#if defined (POSIX)
++#if defined (__POSIX_VISIBLE)
+ #define CSSM_POLL_INT 20 /* polling interval in ms */
+ #endif
+
+@@ -115,12 +114,12 @@
+ #define __stdcall
+ #endif
+
+-#if defined (UNIX) || defined (AIX)
++#if defined (__unix__) || defined (AIX)
+ #define CDSA_SYSDIR "/var/cdsa"
+ #endif
+
+ /* Linux-Port: Default location of BioAPI db/registry files */
+-#if defined (UNIX)
++#if defined (__unix__)
+ #define BioAPI_SYSDIR MDS_PATH
+ #endif
+
+@@ -343,7 +342,7 @@
+
+ #if defined (WIN32)
+ typedef HANDLE PORT_MUTEX_HANDLE;
+-#elif defined (POSIX)
++#elif defined (__POSIX_VISIBLE)
+ typedef pthread_mutex_t* PORT_MUTEX_HANDLE;
+ #else
+ typedef void* PORT_MUTEX_HANDLE;
+@@ -377,11 +376,11 @@
+ */
+ #if defined(WIN32)
+ #define PORT_STATIC_MUTEX_INITIALIZER NULL
+-#elif defined(POSIX)
++#elif defined(__POSIX_VISIBLE)
+ #define PORT_STATIC_MUTEX_INITIALIZER PTHREAD_MUTEX_INITIALIZER
+ #endif
+
+-#if defined (UNIX)
++#if defined (__unix__)
+ #define GetCurrentDirectory(size, dir) \
+ (port_getcwd(dir, size) == CSSM_OK ? strlen(dir) : 0)
+ #define DeleteFile unlink
+@@ -437,7 +436,7 @@
+ sint32 buf_length);
+
+
+-#ifdef POSIX
++#ifdef __POSIX_VISIBLE
+ typedef pthread_t PORT_THREAD_HANDLE;
+ #elif defined ( WIN32 )
+ typedef HANDLE PORT_THREAD_HANDLE;
+@@ -464,7 +463,7 @@
+ /* Thread local storage management */
+ #if defined (WIN32)
+ typedef DWORD PORT_TLS_INDEX;
+-#elif defined (POSIX)
++#elif defined (__POSIX_VISIBLE)
+ typedef pthread_key_t PORT_TLS_INDEX;
+ #else
+ typedef uint32 PORT_TLS_INDEX;
+@@ -509,7 +508,7 @@
+
+ #if defined(WIN32)
+ typedef DWORD PORT_FLOCK_OFFSET;
+-#elif defined(UNIX)
++#elif defined(__unix__)
+ typedef off_t PORT_FLOCK_OFFSET;
+ #else
+ typedef uint32 PORT_FLOCK_OFFSET;
+@@ -549,7 +548,7 @@
+ #define CSSM_MAP_READWRITE FILE_MAP_ALL_ACCESS
+ #define CSSM_MAP_READ FILE_MAP_READ
+
+-#elif defined (UNIX)
++#elif defined (__unix__)
+
+ #include <fcntl.h>
+ #include <sys/mman.h>
+@@ -591,7 +590,7 @@
+
+
+ /* Misc. functions */
+-#if defined (UNIX)
++#if defined (__unix__)
+ #define _timezone timezone
+ #define itoa(value,string,radix) sprintf ((string),"%d",(value))
+ #define _itoa(value,string,radix) sprintf ((string),"%d",(value))
+@@ -609,7 +608,7 @@
+ port_getcwd(char *dir,
+ uint32 size);
+
+-#ifdef UNIX
++#ifdef __unix__
+ #include <stdarg.h>
+
+ void port_syslog(int Facility, int Priority, char* format, ...);
+@@ -719,7 +718,7 @@
+ #define DLL_STR "so"
+ #endif
+
+-#if defined (UNIX)
++#if defined (__unix__)
+ #define CSSM_CDSA_SYSLOG_IDENT "CDSA"
+
+ /* Priorities (ordered) */
diff --git a/security/bioapi/files/patch-include-Makefile.in b/security/bioapi/files/patch-include-Makefile.in
new file mode 100644
index 000000000000..9f3297d7899c
--- /dev/null
+++ b/security/bioapi/files/patch-include-Makefile.in
@@ -0,0 +1,21 @@
+--- include/Makefile.in Mon Jun 20 06:18:04 2005
++++ include/Makefile.in Fri Nov 25 16:46:06 2005
+@@ -179,15 +179,15 @@
+ bioapi_type.h \
+ bioapi_schema.h \
+ bioapi_typecast.h \
++ bioapi_util.h \
++ installdefs.h \
+ biospi.h \
+ bsp_schema.h \
+ bioapi_spi.h \
+ bioapi_uuid.h \
+ biospi_type.h
+
+-noinst_HEADERS = bioapi_util.h \
+- installdefs.h \
+- device_schema.h \
++noinst_HEADERS = device_schema.h \
+ mds.h \
+ port/bioapi_lock.h \
+ port/bioapi_port.h
diff --git a/security/bioapi/files/patch-include-bioapi_schema.h b/security/bioapi/files/patch-include-bioapi_schema.h
new file mode 100644
index 000000000000..5251bb7f4307
--- /dev/null
+++ b/security/bioapi/files/patch-include-bioapi_schema.h
@@ -0,0 +1,11 @@
+--- include/bioapi_schema.h Wed Jun 8 02:51:05 2005
++++ include/bioapi_schema.h Fri Nov 25 15:28:04 2005
+@@ -657,7 +657,7 @@
+ /* Linux-Port: _MAX_PATH not defined in this file but used in this file.
+ * It is defined in "port/bioapi_port.h";
+ */
+-#if defined (LINUX) || defined (UNIX) || defined (SOLARIS)
++#if defined (LINUX) || defined (__unix__) || defined (SOLARIS)
+ #include <limits.h>
+ #define _MAX_PATH (PATH_MAX + 1)
+ #define MAX_PATH _MAX_PATH
diff --git a/security/bioapi/files/patch-include-bioapi_type.h b/security/bioapi/files/patch-include-bioapi_type.h
new file mode 100644
index 000000000000..17c67eb87f21
--- /dev/null
+++ b/security/bioapi/files/patch-include-bioapi_type.h
@@ -0,0 +1,11 @@
+--- include/bioapi_type.h Wed Jun 8 02:51:05 2005
++++ include/bioapi_type.h Fri Nov 25 15:27:46 2005
+@@ -17,7 +17,7 @@
+
+ #define BioAPI __stdcall
+
+-#elif defined (UNIX)
++#elif defined (__unix__)
+
+ #define BioAPI
+ #define CALLBACK
diff --git a/security/bioapi/pkg-descr b/security/bioapi/pkg-descr
new file mode 100644
index 000000000000..96b60f1e75fb
--- /dev/null
+++ b/security/bioapi/pkg-descr
@@ -0,0 +1,7 @@
+BioAPI (Biometric Application Programming Interface) brings platform and device
+independence to application programmers and biometric service providers.
+
+This is an unofficiall branch of the official implementation from the BioAPI
+Consortium (http://www.bioapi.org).
+
+WWW: http://www.qrivy.net/~michael/blua/bioapi/
diff --git a/security/bioapi/pkg-plist b/security/bioapi/pkg-plist
new file mode 100644
index 000000000000..c0037f2c4877
--- /dev/null
+++ b/security/bioapi/pkg-plist
@@ -0,0 +1,65 @@
+bin/BioAPITest
+bin/bioapi_sample
+bin/mds_install
+bin/mod_install
+include/bioapi.h
+include/bioapi_api.h
+include/bioapi_err.h
+include/bioapi_schema.h
+include/bioapi_spi.h
+include/bioapi_type.h
+include/bioapi_typecast.h
+include/bioapi_uuid.h
+include/biospi.h
+include/biospi_type.h
+include/bioapi_util.h
+include/bsp_schema.h
+include/installdefs.h
+include/cssmtype.h
+lib/libbioapi100.a
+lib/libbioapi100.so
+lib/libbioapi100.so.0
+lib/libbioapi_dummy100.a
+lib/libbioapi_dummy100.so
+lib/libbioapi_dummy100.so.0
+lib/libbioapi_mds300.a
+lib/libbioapi_mds300.so
+lib/libbioapi_mds300.so.0
+lib/libmds_util.a
+lib/libmds_util.so
+lib/libmds_util.so.0
+lib/libpwbsp.a
+lib/libpwbsp.so
+lib/libpwbsp.so.0
+@cwd /
+var/db/bioapi/BioAPIFFDB/BioAPIMDSDirectory.80000000.data.ffdb
+var/db/bioapi/BioAPIFFDB/BioAPIMDSDirectory.80000000.freelist.ffdb
+var/db/bioapi/BioAPIFFDB/BioAPIMDSDirectory.80000000.index.ffdb
+var/db/bioapi/BioAPIFFDB/BioAPIMDSDirectory.80000001.data.ffdb
+var/db/bioapi/BioAPIFFDB/BioAPIMDSDirectory.80000001.freelist.ffdb
+var/db/bioapi/BioAPIFFDB/BioAPIMDSDirectory.80000001.index.ffdb
+var/db/bioapi/BioAPIFFDB/BioAPIMDSDirectory.80000002.data.ffdb
+var/db/bioapi/BioAPIFFDB/BioAPIMDSDirectory.80000002.freelist.ffdb
+var/db/bioapi/BioAPIFFDB/BioAPIMDSDirectory.80000002.index.ffdb
+var/db/bioapi/BioAPIFFDB/BioAPIMDSDirectory.schema.ffdb
+var/db/bioapi/registry/HKEY_LOCAL_MACHINE/Software/BioAPI/DL/{692bcef0-4540-11d3-a8f3-0090271d266f}/BioAPIMDSDirectory/AdditionalInformation
+var/db/bioapi/registry/HKEY_LOCAL_MACHINE/Software/BioAPI/MDS/BioAPIMDSDirectory/DBLocation
+var/db/bioapi/registry/HKEY_LOCAL_MACHINE/Software/BioAPI/MDS/BioAPIMDSDirectory/RecordIdentifiers
+var/db/bioapi/registry/HKEY_LOCAL_MACHINE/Software/BioAPI/MDS/MDSLocation
+var/db/bioapi/registry/HKEY_LOCAL_MACHINE/Software/BioAPI/MDS/VersionMajor
+var/db/bioapi/registry/HKEY_LOCAL_MACHINE/Software/BioAPI/MDS/VersionMinor
+@dirrm var/db/bioapi/registry/HKEY_LOCAL_MACHINE/Software/BioAPI/MDS/BioAPIMDSDirectory
+@dirrm var/db/bioapi/registry/HKEY_LOCAL_MACHINE/Software/BioAPI/MDS
+@dirrm var/db/bioapi/registry/HKEY_LOCAL_MACHINE/Software/BioAPI/DL/{692bcef0-4540-11d3-a8f3-0090271d266f}/BioAPIMDSDirectory
+@dirrm var/db/bioapi/registry/HKEY_LOCAL_MACHINE/Software/BioAPI/DL/{692bcef0-4540-11d3-a8f3-0090271d266f}
+@dirrm var/db/bioapi/registry/HKEY_LOCAL_MACHINE/Software/BioAPI/DL
+@dirrm var/db/bioapi/registry/HKEY_LOCAL_MACHINE/Software/BioAPI
+@dirrm var/db/bioapi/registry/HKEY_LOCAL_MACHINE/Software
+@dirrm var/db/bioapi/registry/HKEY_LOCAL_MACHINE
+@dirrm var/db/bioapi/registry
+@dirrm var/db/bioapi/BioAPIFFDB
+@dirrm var/db/bioapi
+@unexec echo
+@unexec echo Please remove whats left of the BioAPI registry database manually from
+@unexec echo /var/db/bioapi if you have no intentions of using this software again.
+@unexec echo