summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Gianelloni <wolf31o2@gentoo.org>2006-10-05 13:39:50 +0000
committerChris Gianelloni <wolf31o2@gentoo.org>2006-10-05 13:39:50 +0000
commitf1292872108820ace47a142cdf74434bd3579089 (patch)
treed17f0da9830f7917bd4d9e347d2d2273321ca853 /sys-auth
parentStable on sparc wrt #150110 (diff)
downloadgentoo-2-f1292872108820ace47a142cdf74434bd3579089.tar.gz
gentoo-2-f1292872108820ace47a142cdf74434bd3579089.tar.bz2
gentoo-2-f1292872108820ace47a142cdf74434bd3579089.zip
Initial import. Ebuild by Jochen Maes <jochen.maes@sejo.be> who will be maintaining this package. I will be his proxy maintainer.
(Portage version: 2.1.2_pre1-r4)
Diffstat (limited to 'sys-auth')
-rw-r--r--sys-auth/bioapi/ChangeLog12
-rw-r--r--sys-auth/bioapi/Manifest24
-rw-r--r--sys-auth/bioapi/bioapi-1.2.2.ebuild97
-rw-r--r--sys-auth/bioapi/files/51-bioapi.rules2
-rw-r--r--sys-auth/bioapi/files/bioapi-1.2.2_patch58
-rw-r--r--sys-auth/bioapi/files/digest-bioapi-1.2.23
-rw-r--r--sys-auth/bioapi/metadata.xml13
7 files changed, 209 insertions, 0 deletions
diff --git a/sys-auth/bioapi/ChangeLog b/sys-auth/bioapi/ChangeLog
new file mode 100644
index 000000000000..9fb730afa636
--- /dev/null
+++ b/sys-auth/bioapi/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for sys-auth/bioapi
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-auth/bioapi/ChangeLog,v 1.1 2006/10/05 13:39:49 wolf31o2 Exp $
+
+*bioapi-1.2.2 (05 Oct 2006)
+
+ 05 Oct 2006; Chris Gianelloni <wolf31o2@gentoo.org>
+ +files/51-bioapi.rules, +files/bioapi-1.2.2_patch, +metadata.xml,
+ +bioapi-1.2.2.ebuild:
+ Initial import. Ebuild by Jochen Maes <jochen.maes@sejo.be> who will be
+ maintaining this package. I will be his proxy maintainer.
+
diff --git a/sys-auth/bioapi/Manifest b/sys-auth/bioapi/Manifest
new file mode 100644
index 000000000000..519b3bef9f73
--- /dev/null
+++ b/sys-auth/bioapi/Manifest
@@ -0,0 +1,24 @@
+AUX 51-bioapi.rules 83 RMD160 08b67ae225eb9090a77b73dc49fb485e3b56e67f SHA1 e63106d32ecf065c445c4efad1d7726421eb1916 SHA256 9dca7e01b1206bc126da352ea535f061d9680d3a53e586e46f24b93d0323c1c0
+MD5 7b6e9601f94a99404d910d676d6b809d files/51-bioapi.rules 83
+RMD160 08b67ae225eb9090a77b73dc49fb485e3b56e67f files/51-bioapi.rules 83
+SHA256 9dca7e01b1206bc126da352ea535f061d9680d3a53e586e46f24b93d0323c1c0 files/51-bioapi.rules 83
+AUX bioapi-1.2.2_patch 2524 RMD160 cf51e1d53848665c60118abf45f8055f5034d9f1 SHA1 c4f7c6dedf373641939fa7a98b690dc4b69fb85d SHA256 fd86461eadc64ba5b9f4be75c96161c3876dd7a27f44b11a9ffdf5c5082a357a
+MD5 92ee04643b04a700a2fead4b7be6d337 files/bioapi-1.2.2_patch 2524
+RMD160 cf51e1d53848665c60118abf45f8055f5034d9f1 files/bioapi-1.2.2_patch 2524
+SHA256 fd86461eadc64ba5b9f4be75c96161c3876dd7a27f44b11a9ffdf5c5082a357a files/bioapi-1.2.2_patch 2524
+DIST bioapi-1.2.2.tar.bz2 572282 RMD160 2785ca6c8b384cf6fc8013bfc67f033840150e5c SHA1 932425e847449e9612c6894dcbaf44630aecfc13 SHA256 17c3482c2518c5e5e686e6650c22625324cd5279dbe8b8a2297da575095ee224
+EBUILD bioapi-1.2.2.ebuild 2508 RMD160 0cbe7ac4cb753d69fe3b74b884fd0f2a134775eb SHA1 80e18407be518ec18fb6077cc112b0a4d1b4ddcb SHA256 0780ae327900259e9580f1e4b773945a82072a51f3c7d1672a65f6e4231cf269
+MD5 cbeea1749d5b71e90750a51766de8438 bioapi-1.2.2.ebuild 2508
+RMD160 0cbe7ac4cb753d69fe3b74b884fd0f2a134775eb bioapi-1.2.2.ebuild 2508
+SHA256 0780ae327900259e9580f1e4b773945a82072a51f3c7d1672a65f6e4231cf269 bioapi-1.2.2.ebuild 2508
+MISC ChangeLog 426 RMD160 96c471d672e046406141007482b33b01b4be91ee SHA1 ab2dfa429a3f2d0d0d580b74724703c434971604 SHA256 08b094257765597746b3dfc1fa60c440be39b09a83eea3f678ef9d911fb88827
+MD5 90c8ef7e6afb13a84fddcf769ae88e94 ChangeLog 426
+RMD160 96c471d672e046406141007482b33b01b4be91ee ChangeLog 426
+SHA256 08b094257765597746b3dfc1fa60c440be39b09a83eea3f678ef9d911fb88827 ChangeLog 426
+MISC metadata.xml 347 RMD160 b671d869bb51c14c7b956b5731d8e00707c32bef SHA1 d858172cc1c00fd6b7511996c506dbe4562a0468 SHA256 6af5ab66ade55cf27df9db296a1373b014a206158678cf79bc0aacbe80342913
+MD5 e514427ef36697fe1949b5ef910d6a01 metadata.xml 347
+RMD160 b671d869bb51c14c7b956b5731d8e00707c32bef metadata.xml 347
+SHA256 6af5ab66ade55cf27df9db296a1373b014a206158678cf79bc0aacbe80342913 metadata.xml 347
+MD5 5f8730d5f97828ad3aaa31925167e89c files/digest-bioapi-1.2.2 241
+RMD160 0677293ab1252277e8094b48c6e7c647cadf2c5f files/digest-bioapi-1.2.2 241
+SHA256 a790209e19714ae67347601c5c6e6fdb2ecffb67461f3f092d949340408f887b files/digest-bioapi-1.2.2 241
diff --git a/sys-auth/bioapi/bioapi-1.2.2.ebuild b/sys-auth/bioapi/bioapi-1.2.2.ebuild
new file mode 100644
index 000000000000..2144f26ce62b
--- /dev/null
+++ b/sys-auth/bioapi/bioapi-1.2.2.ebuild
@@ -0,0 +1,97 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-auth/bioapi/bioapi-1.2.2.ebuild,v 1.1 2006/10/05 13:39:49 wolf31o2 Exp $
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Framework for biometric-based authentication"
+HOMEPAGE="http://www.bioapi.org"
+SRC_URI="http://www.qrivy.net/~michael/blua/${PN}/${P}.tar.bz2"
+LICENSE="bioapi"
+
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="qt"
+
+#DEPEND=""
+RDEPEND="${DEPEND}
+ qt? ( >=x11-libs/qt-3 )"
+
+src_compile() {
+ VERGCC=$(gcc-version)
+ if [ ${VERGCC} == 4.1 ]; then
+ epatch ${FILESDIR}/bioapi-1.2.2_patch
+ fi
+ myconf="
+ --host=${CHOST}\
+ --prefix=/opt/bioapi \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --libdir=/usr/$(get_libdir) \
+ --infodir=/usr/share/info \
+ --mandir=/usr/share/man"
+
+ if use qt; then
+ myconf="${myconf} --with-Qt-dir=/usr/qt/3"
+ else
+ myconf="${myconf} --without-Qt-dir"
+ fi
+
+ econf $myconf || die "./configure failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR=${D} install || die "install failed"
+ #and now we have to handle the docs
+ dodoc README\
+ 00_License.htm \
+ 01_Readme.htm \
+ 09_Manifest.htm \
+ 10_Build.htm \
+ 11_Install.htm \
+ 12_Use.htm \
+ 20_Todo.htm \
+ 30_History.htm \
+ 31_Contributors.htm \
+ 32_Contacts.htm \
+ Disclaimer
+ insinto /opt/bioapi/include
+ doins include/bioapi_util.h include/installdefs.h \
+ imports/cdsa/v2_0/inc/cssmtype.h
+ insinto /etc/env.d
+ doins ${FILESDIR}/20bioapi
+ insinto /etc/udev/rules.d
+ doins ${FILESDIR}/51-bioapi.rules
+}
+
+pkg_postinst() {
+ einfo "Running Module Directory Services (MDS) ..."
+ /opt/bioapi/bin/mds_install -s /usr/lib || die " MDS failure"
+ /opt/bioapi/bin/mod_install -fi /usr/lib/libbioapi100.so || die " mds bioapi100 failed"
+ /opt/bioapi/bin/mod_install -fi /usr/lib/libbioapi_dummy100.so || die " mds bioapi_dummy100 failed"
+ /opt/bioapi/bin/mod_install -fi /usr/lib/libpwbsp.so || die " mds pwbsp failed"
+
+ if use qt; then
+ /opt/bioapi/bin/mod_install -fi /usr/lib/libqtpwbsp.so || die " mds qtpwbsp failed"
+ fi
+
+ enewgroup bioapi
+ chgrp bioapi /var/bioapi -R
+ chmod g+w,o= /var/bioapi -R
+ einfo "Note: users using bioapi must be in group bioapi."
+}
+
+pkg_prerm() {
+ einfo "Running Module Directory Services (MDS) ..."
+ /opt/bioapi/bin/mod_install -fu libbioapi100.so
+ /opt/bioapi/bin/mod_install -fu libbioapi_dummy100.so
+ /opt/bioapi/bin/mod_install -fu libpwbsp.so
+
+ if use qt; then
+ /opt/bioapi/bin/mod_install -fu libqtpwbsp.so
+ fi
+
+ einfo "You might want to remove the group bioapi."
+ einfo "You might want to remove /var/bioapi."
+}
diff --git a/sys-auth/bioapi/files/51-bioapi.rules b/sys-auth/bioapi/files/51-bioapi.rules
new file mode 100644
index 000000000000..81319516ba7f
--- /dev/null
+++ b/sys-auth/bioapi/files/51-bioapi.rules
@@ -0,0 +1,2 @@
+#Permissions for the Biometrics
+SUBSYSTEM=="usb_device", MODE="0660", GROUP="usb"
diff --git a/sys-auth/bioapi/files/bioapi-1.2.2_patch b/sys-auth/bioapi/files/bioapi-1.2.2_patch
new file mode 100644
index 000000000000..ee5202f4a138
--- /dev/null
+++ b/sys-auth/bioapi/files/bioapi-1.2.2_patch
@@ -0,0 +1,58 @@
+diff -Nur bioapi-1.2.2-orig/addins/dl/mds/dal_classes.h bioapi-1.2.2/addins/dl/mds/dal_classes.h
+--- bioapi-1.2.2-orig/addins/dl/mds/dal_classes.h 2005-06-10 02:35:44.000000000 +0200
++++ bioapi-1.2.2/addins/dl/mds/dal_classes.h 2006-06-29 18:15:29.669647000 +0200
+@@ -455,9 +455,9 @@
+ DAL_DATABASE_INFO_REF_PTR &prefDatabase,
+ PORT_MUTEX_HANDLE &Mutex);
+
+- CSSM_RETURN DAL_DATABASE_INFO_LIST::GetDBNamesAndParameters(
+- CSSM_DL_DB_HANDLE DLDBHandle,
+- DAL_DB_OPEN_PARAM_PTR pParam);
++ CSSM_RETURN GetDBNamesAndParameters(
++ CSSM_DL_DB_HANDLE DLDBHandle,
++ DAL_DB_OPEN_PARAM_PTR pParam);
+ };
+
+ #endif
+diff -Nur bioapi-1.2.2-orig/apps/Cmds/CdsaRec.cpp bioapi-1.2.2/apps/Cmds/CdsaRec.cpp
+--- bioapi-1.2.2-orig/apps/Cmds/CdsaRec.cpp 2005-06-08 02:51:04.000000000 +0200
++++ bioapi-1.2.2/apps/Cmds/CdsaRec.cpp 2006-06-29 18:14:14.889647000 +0200
+@@ -10,7 +10,7 @@
+ #endif
+ //////////////////////////////////////////////////////////////////////
+
+-void QCdsaRecType< CCssmRecInfoType >::SpecifyAttributes()
++template <> void QCdsaRecType< CCssmRecInfoType >::SpecifyAttributes()
+ {
+ m_outputAttributeData[CCssmRecInfoType::IDX_MODULEID].Info = s_BioApiAttrInfo_ModuleId;
+ m_outputAttributeData[CCssmRecInfoType::IDX_MODULENAME].Info = s_BioApiAttrInfo_ModuleName;
+@@ -20,7 +20,7 @@
+ m_outputAttributeData[CCssmRecInfoType::IDX_DESC].Info = s_BioApiAttrInfo_Description;
+ }
+
+-void QCdsaRecType< CEmmRecInfoType >::SpecifyAttributes()
++template <> void QCdsaRecType< CEmmRecInfoType >::SpecifyAttributes()
+ {
+ m_outputAttributeData[CEmmRecInfoType::IDX_MODULEID].Info = s_BioApiAttrInfo_ModuleId;
+ m_outputAttributeData[CEmmRecInfoType::IDX_DEVICEID].Info = s_BioApiAttrInfo_DeviceId;
+@@ -47,7 +47,7 @@
+
+
+
+-void QCdsaRecType< CBioAPI_DeviceInfoType >::SpecifyAttributes()
++template <> void QCdsaRecType< CBioAPI_DeviceInfoType >::SpecifyAttributes()
+ {
+ m_outputAttributeData[CBioAPI_DeviceInfoType::IDX_MODULE_ID].Info = s_BioApiAttrInfo_ModuleId;
+ m_outputAttributeData[CBioAPI_DeviceInfoType::IDX_DEVICE_ID].Info = s_BioApiAttrInfo_DeviceId;
+diff -Nur bioapi-1.2.2-orig/apps/Cmds/QDirectory.h bioapi-1.2.2/apps/Cmds/QDirectory.h
+--- bioapi-1.2.2-orig/apps/Cmds/QDirectory.h 2005-06-13 08:22:00.000000000 +0200
++++ bioapi-1.2.2/apps/Cmds/QDirectory.h 2006-06-29 18:14:14.889647000 +0200
+@@ -16,7 +16,7 @@
+ public:
+
+ QString m_strDirName;
+- QMDS *m_pMds;
++ class QMDS *m_pMds;
+ MDS_DB_HANDLE m_hDb;
+
+ CSSM_RETURN Open( QMDS *pMds, const char *szDirName );
diff --git a/sys-auth/bioapi/files/digest-bioapi-1.2.2 b/sys-auth/bioapi/files/digest-bioapi-1.2.2
new file mode 100644
index 000000000000..8ffd62394ab2
--- /dev/null
+++ b/sys-auth/bioapi/files/digest-bioapi-1.2.2
@@ -0,0 +1,3 @@
+MD5 924f723895c339552e501999945b7920 bioapi-1.2.2.tar.bz2 572282
+RMD160 2785ca6c8b384cf6fc8013bfc67f033840150e5c bioapi-1.2.2.tar.bz2 572282
+SHA256 17c3482c2518c5e5e686e6650c22625324cd5279dbe8b8a2297da575095ee224 bioapi-1.2.2.tar.bz2 572282
diff --git a/sys-auth/bioapi/metadata.xml b/sys-auth/bioapi/metadata.xml
new file mode 100644
index 000000000000..87871acf04f2
--- /dev/null
+++ b/sys-auth/bioapi/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>wolf31o2@gentoo.org</email>
+ <name>Chris Gianelloni</name>
+</maintainer>
+<maintainer>
+ <email>jochen.maes@sejo.be</email>
+ <name>Jochen Maes</name>
+</maintainer>
+</pkgmetadata>