From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- sys-auth/bioapi/Manifest | 12 ++++ sys-auth/bioapi/bioapi-1.2.3-r2.ebuild | 78 ++++++++++++++++++++++ sys-auth/bioapi/bioapi-1.2.4.ebuild | 76 +++++++++++++++++++++ sys-auth/bioapi/files/bioapi-1.2.3-build.patch | 42 ++++++++++++ .../bioapi/files/bioapi-1.2.3-enroll-ret.patch | 16 +++++ sys-auth/bioapi/files/bioapi-1.2.3-gcc44.patch | 12 ++++ sys-auth/bioapi/files/bioapi-1.2.3-no-delete.patch | 15 +++++ sys-auth/bioapi/files/bioapi-1.2.4-build.patch | 42 ++++++++++++ sys-auth/bioapi/metadata.xml | 12 ++++ 9 files changed, 305 insertions(+) create mode 100644 sys-auth/bioapi/Manifest create mode 100644 sys-auth/bioapi/bioapi-1.2.3-r2.ebuild create mode 100644 sys-auth/bioapi/bioapi-1.2.4.ebuild create mode 100644 sys-auth/bioapi/files/bioapi-1.2.3-build.patch create mode 100644 sys-auth/bioapi/files/bioapi-1.2.3-enroll-ret.patch create mode 100644 sys-auth/bioapi/files/bioapi-1.2.3-gcc44.patch create mode 100644 sys-auth/bioapi/files/bioapi-1.2.3-no-delete.patch create mode 100644 sys-auth/bioapi/files/bioapi-1.2.4-build.patch create mode 100644 sys-auth/bioapi/metadata.xml (limited to 'sys-auth/bioapi') diff --git a/sys-auth/bioapi/Manifest b/sys-auth/bioapi/Manifest new file mode 100644 index 000000000000..4874b2eff9e9 --- /dev/null +++ b/sys-auth/bioapi/Manifest @@ -0,0 +1,12 @@ +AUX bioapi-1.2.3-build.patch 1310 SHA256 e1718e55a99ee8ba27b8807ead8ffe5cf7ddda9766a62f83542bf7f9f8b43509 SHA512 5cb3b656ff472ff648473dc04e89a7df0ac034642653d87e416f631260a4afbb8888b0de5b9c25cc1b0e4807e194ef462ba8ecb5ea1b5b3f9a4505a3778ab6d4 WHIRLPOOL 0bcc6f9209c8f316ebc2ab2b4ef8cdb5047e0097f40d511b680d713281e7e34b2a730cdfd72b4dc3651a836a396be998ca0e7c0bd5d53347411512189346574a +AUX bioapi-1.2.3-enroll-ret.patch 278 SHA256 b98227cef30d4573728985758b9cd548b5fb1ac66cdb07b5c415ec7aadee7460 SHA512 adb60b540800d750ddfbee7932dd8ca5646b37853e692ed851abd010bf0c195b4cbf07e7c710073c30fc7a581c9f733914cd633d1628d8c7ddccdaeec6065710 WHIRLPOOL 643a6f8bb096902f6d0ca739ab44992cfc03983e03fd15ef7af5b86611b002a89fc4f4d3fcf01eaeccb4d0476894b31437f4ac0468b2fbe81f35d38466f90d71 +AUX bioapi-1.2.3-gcc44.patch 545 SHA256 b5bb84aa1c4e62df9a81a044fa12841941ae7a7697f38e77cfa73be559db7814 SHA512 88a0b0849c5ec3d028eb96f23f64218b9b794edfc929e2e163fb675709e29f0a46e2fdfec9e4e97a83033422468ec27c1fd937a5d3d690e75dd2684eb2a35dff WHIRLPOOL 74778ecf27f6028539e19ce75e46a4c98f27005cb0c106c3d12e915540a0420facc940d418e7c57024b18c09c7d3c5c6b17aa141eb6a9c7a9551b5f849ace25e +AUX bioapi-1.2.3-no-delete.patch 504 SHA256 344304ebf2cd13e2cfff8d9ed526419e1adb6edb7da80007f9c05b5fea128a3d SHA512 790b9c674b3d42f4a03d3e0a4545932d29f45be29f1a66a83226639067a26efdce4b40279ee6178da850f01cf1747b89e37798bb45555e6644508bb0b86817d4 WHIRLPOOL d72f3be8e201cedf481f64486ad3ad4ad57b662861c49f69f41bfa27f0c3910ee0d82f67f7137929ce77807534f643107c9d3b8075c9c8868762d43c8d17b279 +AUX bioapi-1.2.4-build.patch 1258 SHA256 8b997c49188aed4640f768af07e2b68bfaa8985b09bfad602bca4b4d287aec0f SHA512 1211812ab6d78a863d9bb4497f29a83fbdb7bd74428c34a4499d0e453dbb3a27ff15f3e436b0dd4b12e0d39bfffbefd40e2a55d27c0123975f450c112a163043 WHIRLPOOL 404117787212c3d61e160463985dfffef6d532b3e3cb4180f8c0fcbea289bf391d4fbf7e4397071093b2dc0a1e4a1ee866b6440e0a9e1a50389a263a253bdc99 +DIST bioapi_1.2.3.tar.gz 1634237 SHA256 c780c0d2e0c676be50de8ff537653580dd5b27fe1478846d22a017e52c6b6c2e SHA512 683da884a5cf6d72b577f7c1f642930c152c43c7acad3c678a3571acf3f66e0a7e112fccde06d9a7535a186bcb56a96acfb5e1c405b1d931be9f252be1b01649 WHIRLPOOL 9162097a90ce089ab9864034dae434fc55c593c33f8d618c6f1e62f3202a7e3294680df992b684df507705c26e7fb897e85a95552c12fc545ab6ba06df445970 +DIST bioapi_1.2.4.tar.gz 953136 SHA256 ec39d82deaacdd3dea676bdfcce69d34cbb745580735b59b44c542a6de35008d SHA512 99c67fea34b73291dcaeb1590fac88b3196d3ca65f788b92d0afd6ba85036b2d85397e3faa66b872a68bffaeb7c2bf5c731306bf02a25a435ef06cea18da746f WHIRLPOOL 08526484cb6240f45e48ca894602c4706319d4ac7297592740836e48ff4794a2f12fee165eb358732b0d31d1619d7f3743aa55d32ba6d79b405a553e0992b517 +EBUILD bioapi-1.2.3-r2.ebuild 1893 SHA256 6cda3bc9b2eabaebd9a05fd5d9ed4bc73e0cb51a2c5763f2f48479cf26920341 SHA512 b5115f2b946535216c107348c66145b25c358df87630a9477c5a483cec1b783ee6617a6afdd1ddf9bba919a6aa88814324aa926b858a2535c096430ee85f5d04 WHIRLPOOL bb55e5c22f86fce8fbdcec3f394d73d1675dd4638124ea777f3ee2fe9a51afd83b6a00ab68bcb0f6b458573d2ffe31bb01fe19783fcdb605d805e7489b57cd53 +EBUILD bioapi-1.2.4.ebuild 1825 SHA256 8440121a3878c49499637bc2220cd4ee397df638e3c0006bf2599b3d1c893261 SHA512 20d305d39b54917187e35543915b55bb5105395c448e6f519197d2c51c8480ef5ac09bfbb897ba10acfbd7f28c343e49055c28a349a9465af089dd9a309e8585 WHIRLPOOL 5b799ff7e4e3b10338c14fa6ce541403af19d7d21222e608c7289c2653627b6665a1cfbd5433e3ba2c34745ac97f9b302853ef6ef00ebd3545b9717276a8ffd7 +MISC ChangeLog 3115 SHA256 0251e7742745878aeba3e18fa7918396aa7b10ff9b6cefa6cedabdbc4c3d31a3 SHA512 80eff68bb3780ed5edc733761cafb84d22f4e3735243268ee50732e87f7b83baf305011610fc7775e479f93beda7b4183dad3c845cbd8a2b2982717e1537c859 WHIRLPOOL 1b67cbbb088a8f5acdc3391e8f4779c650d9c107b72cd2ab44fba5ba269343d7531b728be275319713f9677ef30c921e0950b9d115b51700dbd3817e15fa5e34 +MISC ChangeLog-2015 2941 SHA256 a734eeed9ec7fa10a0de97563aa14686cb461fe7415402733067bb92192c4374 SHA512 a9d88b42c9d519d36b6538fa9e26b1cc626ef6a9c0ca209fd803bc52c74dd1eedecfbee5534f57e92a34b2c2b6a38947621ec988fa62aba42a6e193d8db288f1 WHIRLPOOL bcd4ab966fc8c24e3833159534ca2bb87354c653ac14382cb31392cfd2012cb57ad010d5f40a4b2f984a7364f027ccd39567c6b08196eeb593c5d068b8c33681 +MISC metadata.xml 386 SHA256 86b328cd91efa112eba505f3abfe063dfb0fcabe6d1d9d56e88087b206857323 SHA512 add6b6b7fb084bcb987cfc89332322878e631a411dd770b88bfc21f085e6ee85a25a1eecdc6203b904ba4834e9ca339d5bf53f567915b0cb1540189ff298993d WHIRLPOOL c9a22cd120c6e6da2f508e1ca4838534804b2e2371891db0e2bb071fcd96c623fda161a0e7f8f84a07059e70cfeaf504a6dac572336acb861f8ececa29aed999 diff --git a/sys-auth/bioapi/bioapi-1.2.3-r2.ebuild b/sys-auth/bioapi/bioapi-1.2.3-r2.ebuild new file mode 100644 index 000000000000..2d83ab6ad7c0 --- /dev/null +++ b/sys-auth/bioapi/bioapi-1.2.3-r2.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="2" + +inherit eutils multilib user + +DESCRIPTION="Framework for biometric-based authentication" +HOMEPAGE="https://github.com/mr-c/bioapi-linux" +SRC_URI="https://bioapi-linux.googlecode.com/files/${PN}_${PV}.tar.gz" + +LICENSE="bioapi" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +S=${WORKDIR}/bioapi-linux + +src_prepare() { + epatch "${FILESDIR}"/${P}-enroll-ret.patch #236654 + epatch "${FILESDIR}"/${P}-no-delete.patch + epatch "${FILESDIR}"/${P}-gcc44.patch + epatch "${FILESDIR}"/${P}-build.patch #336107 + rm -f config.{guess,sub} #337805 + touch config.{guess,sub} +} + +src_configure() { + econf --without-Qt-dir +} + +src_install() { + emake SKIPCONFIG=true DESTDIR="${D}" install || die + dodoc README + dohtml *.htm + + # rename generic binaries + mv "${D}"/usr/bin/{,BioAPI}Sample || die +} + +pkg_config() { + mds_install -s /usr/$(get_libdir) + mod_install -fi /usr/$(get_libdir)/libbioapi100.so + mod_install -fi /usr/$(get_libdir)/libbioapi_dummy100.so + mod_install -fi /usr/$(get_libdir)/libpwbsp.so +} + +pkg_preinst() { + if [[ -e ${ROOT}/var/bioapi ]] && [[ ! -e ${ROOT}/var/lib/bioapi ]] ; then + einfo "Moving /var/bioapi to /var/lib/bioapi" + dodir /var/lib + mv "${ROOT}"/var/bioapi "${ROOT}"/var/lib/bioapi + fi +} + +pkg_postinst() { + einfo "Some generic-named programs have been renamed:" + einfo " Sample -> BioAPISample" + + if [[ ${ROOT} == "/" ]] ; then + pkg_config + else + ewarn "You will need to run 'emerge --config bioapi' before" + ewarn " you can use bioapi properly." + fi + + # XXX: this can't be correct ... + enewgroup bioapi + chgrp bioapi "${ROOT}"/var/lib/bioapi -R + chmod g+w,o= "${ROOT}"/var/lib/bioapi -R + einfo "Note: users using bioapi must be in group bioapi." +} + +pkg_prerm() { + mod_install -fu libbioapi100.so + mod_install -fu libbioapi_dummy100.so + mod_install -fu libpwbsp.so +} diff --git a/sys-auth/bioapi/bioapi-1.2.4.ebuild b/sys-auth/bioapi/bioapi-1.2.4.ebuild new file mode 100644 index 000000000000..01ed2ada33d9 --- /dev/null +++ b/sys-auth/bioapi/bioapi-1.2.4.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="4" + +inherit eutils multilib user + +DESCRIPTION="Framework for biometric-based authentication" +HOMEPAGE="https://github.com/mr-c/bioapi-linux" +SRC_URI="https://bioapi-linux.googlecode.com/files/${PN}_${PV}.tar.gz" + +LICENSE="bioapi" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="static-libs" + +S=${WORKDIR}/bioapi-linux + +src_prepare() { + epatch "${FILESDIR}"/${PN}-1.2.3-no-delete.patch + epatch "${FILESDIR}"/${PN}-1.2.4-build.patch #336107 +} + +src_configure() { + econf \ + $(use_enable static-libs static) \ + --without-Qt-dir +} + +src_install() { + SKIPCONFIG=true default + use static-libs || find "${ED}" -name '*.la' -delete + dohtml *.htm + + # rename generic binaries + mv "${D}"/usr/bin/{,BioAPI}Sample || die +} + +pkg_config() { + mds_install -s /usr/$(get_libdir) + mod_install -fi /usr/$(get_libdir)/libbioapi100.so + mod_install -fi /usr/$(get_libdir)/libbioapi_dummy100.so + mod_install -fi /usr/$(get_libdir)/libpwbsp.so +} + +pkg_preinst() { + if [[ -e ${EROOT}/var/bioapi ]] && [[ ! -e ${EROOT}/var/lib/bioapi ]] ; then + einfo "Moving /var/bioapi to /var/lib/bioapi" + dodir /var/lib + mv "${ROOT}"/var/bioapi "${ROOT}"/var/lib/bioapi + fi +} + +pkg_postinst() { + einfo "Some generic-named programs have been renamed:" + einfo " Sample -> BioAPISample" + + if [[ ${EROOT} == "/" ]] ; then + pkg_config + else + ewarn "You will need to run 'emerge --config bioapi' before" + ewarn " you can use bioapi properly." + fi + + # XXX: this can't be correct ... + enewgroup bioapi + chgrp bioapi "${EROOT}"/var/lib/bioapi -R + chmod g+w,o= "${EROOT}"/var/lib/bioapi -R + einfo "Note: users using bioapi must be in group bioapi." +} + +pkg_prerm() { + mod_install -fu libbioapi100.so + mod_install -fu libbioapi_dummy100.so + mod_install -fu libpwbsp.so +} diff --git a/sys-auth/bioapi/files/bioapi-1.2.3-build.patch b/sys-auth/bioapi/files/bioapi-1.2.3-build.patch new file mode 100644 index 000000000000..9d679fe8c892 --- /dev/null +++ b/sys-auth/bioapi/files/bioapi-1.2.3-build.patch @@ -0,0 +1,42 @@ +http://code.google.com/p/bioapi-linux/issues/detail?id=4 + +--- a/addins/pwbsp/Makefile.in ++++ b/addins/pwbsp/Makefile.in +@@ -87,7 +87,7 @@ CC = @CC@ + CCDEPMODE = @CCDEPMODE@ + CFLAGS = @CFLAGS@ + CPP = @CPP@ +-CPPFLAGS = -I${top_srcdir}/include/ \ ++AM_CPPFLAGS = -I${top_srcdir}/include/ \ + -I${top_srcdir}/imports/cdsa/v2_0/inc/ + + CXX = @CXX@ +@@ -111,7 +111,7 @@ INSTALL_DATA = @INSTALL_DATA@ + INSTALL_PROGRAM = @INSTALL_PROGRAM@ + INSTALL_SCRIPT = @INSTALL_SCRIPT@ + INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +-LDFLAGS = -Wl,--version-script=${srcdir}/libpwbsp.ver ++AM_LDFLAGS = -Wl,--version-script=${srcdir}/libpwbsp.ver + LEX = @LEX@ + LEXLIB = @LEXLIB@ + LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ +--- a/addins/qtpwbsp/Makefile.in ++++ b/addins/qtpwbsp/Makefile.in +@@ -96,7 +96,7 @@ CC = @CC@ + CCDEPMODE = @CCDEPMODE@ + CFLAGS = @CFLAGS@ + CPP = @CPP@ +-CPPFLAGS = -I${top_srcdir}/include \ ++AM_CPPFLAGS = -I${top_srcdir}/include \ + -I${top_srcdir}/imports/cdsa/v2_0/inc \ + ${QT_CXXFLAGS} + +@@ -121,7 +121,7 @@ INSTALL_DATA = @INSTALL_DATA@ + INSTALL_PROGRAM = @INSTALL_PROGRAM@ + INSTALL_SCRIPT = @INSTALL_SCRIPT@ + INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +-LDFLAGS = -Wl,--version-script=${srcdir}/libqtpwbsp.ver \ ++AM_LDFLAGS = -Wl,--version-script=${srcdir}/libqtpwbsp.ver \ + ${QT_LIBS} + + LEX = @LEX@ diff --git a/sys-auth/bioapi/files/bioapi-1.2.3-enroll-ret.patch b/sys-auth/bioapi/files/bioapi-1.2.3-enroll-ret.patch new file mode 100644 index 000000000000..e077c135d63f --- /dev/null +++ b/sys-auth/bioapi/files/bioapi-1.2.3-enroll-ret.patch @@ -0,0 +1,16 @@ +http://bugs.gentoo.org/236654 + +make sure we return 0 when things work + +patch by kouyu + +--- bioapi-linux/apps/NonGUI_Sample/main.c ++++ bioapi-linux/apps/NonGUI_Sample/main.c +@@ -234,6 +234,7 @@ + } + + OutputToFile(userName, EnrolledTemplate); ++ return 0; + } + } + diff --git a/sys-auth/bioapi/files/bioapi-1.2.3-gcc44.patch b/sys-auth/bioapi/files/bioapi-1.2.3-gcc44.patch new file mode 100644 index 000000000000..1f81298066dc --- /dev/null +++ b/sys-auth/bioapi/files/bioapi-1.2.3-gcc44.patch @@ -0,0 +1,12 @@ +diff -ur bioapi-linux.orig/framework/mds_util_api/mds_app_util.c bioapi-linux/framework/mds_util_api/mds_app_util.c +--- bioapi-linux.orig/framework/mds_util_api/mds_app_util.c 2007-07-14 08:06:14.000000000 +0300 ++++ bioapi-linux/framework/mds_util_api/mds_app_util.c 2009-07-25 23:26:55.000000000 +0300 +@@ -28,7 +28,7 @@ + /* Linux-Port: added "const" keyword for Linux version */ + #if defined (UNIX) + const BioAPI_UUID MDSUTIL_Uuid = ref_h_layer_uuid_init; +-#elif ++#else + BioAPI_UUID MDSUTIL_Uuid = ref_h_layer_uuid_init; + #endif + diff --git a/sys-auth/bioapi/files/bioapi-1.2.3-no-delete.patch b/sys-auth/bioapi/files/bioapi-1.2.3-no-delete.patch new file mode 100644 index 000000000000..b5664d11ec3a --- /dev/null +++ b/sys-auth/bioapi/files/bioapi-1.2.3-no-delete.patch @@ -0,0 +1,15 @@ +do not delete the installed symlink -- let the package manager handle that + +--- bioapi-linux/apps/mod_install/install.c ++++ bioapi-linux/apps/mod_install/install.c +@@ -496,10 +496,6 @@ + } + else if ( Action == INSTALL_ACTION_UNINSTALL ) + { +-/* Linux-Port: Added the Linux branch */ +-#if defined (LINUX) || defined (SOLARIS) +- DeleteFile(szDstPath); +-#endif + printf( "Module uninstalled successfully.\n" ); + } + else if ( Action == INSTALL_ACTION_REFRESH ) diff --git a/sys-auth/bioapi/files/bioapi-1.2.4-build.patch b/sys-auth/bioapi/files/bioapi-1.2.4-build.patch new file mode 100644 index 000000000000..d7a70afd4d0d --- /dev/null +++ b/sys-auth/bioapi/files/bioapi-1.2.4-build.patch @@ -0,0 +1,42 @@ +http://code.google.com/p/bioapi-linux/issues/detail?id=4 + +--- a/addins/pwbsp/Makefile.in ++++ b/addins/pwbsp/Makefile.in +@@ -87,7 +87,7 @@ CC = @CC@ + CCDEPMODE = @CCDEPMODE@ + CFLAGS = @CFLAGS@ + CPP = @CPP@ +-CPPFLAGS = -I${top_srcdir}/include/ \ ++AM_CPPFLAGS = -I${top_srcdir}/include/ \ + -I${top_srcdir}/imports/cdsa/v2_0/inc/ + + CXX = @CXX@ +@@ -111,7 +111,7 @@ INSTALL_DATA = @INSTALL_DATA@ + INSTALL_SCRIPT = @INSTALL_SCRIPT@ + INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ + LD = @LD@ +-LDFLAGS = -Wl,--version-script=${srcdir}/libpwbsp.ver ++AM_LDFLAGS = -Wl,--version-script=${srcdir}/libpwbsp.ver + LEX = @LEX@ + LEXLIB = @LEXLIB@ + LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ +--- a/addins/qtpwbsp/Makefile.in ++++ b/addins/qtpwbsp/Makefile.in +@@ -96,7 +96,7 @@ CC = @CC@ + CCDEPMODE = @CCDEPMODE@ + CFLAGS = @CFLAGS@ + CPP = @CPP@ +-CPPFLAGS = -I${top_srcdir}/include \ ++AM_CPPFLAGS = -I${top_srcdir}/include \ + -I${top_srcdir}/imports/cdsa/v2_0/inc \ + ${QT_CXXFLAGS} + +@@ -121,7 +121,7 @@ INSTALL_DATA = @INSTALL_DATA@ + INSTALL_SCRIPT = @INSTALL_SCRIPT@ + INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ + LD = @LD@ +-LDFLAGS = -Wl,--version-script=${srcdir}/libqtpwbsp.ver \ ++AM_LDFLAGS = -Wl,--version-script=${srcdir}/libqtpwbsp.ver \ + ${QT_LIBS} + + LEX = @LEX@ diff --git a/sys-auth/bioapi/metadata.xml b/sys-auth/bioapi/metadata.xml new file mode 100644 index 000000000000..313b88162827 --- /dev/null +++ b/sys-auth/bioapi/metadata.xml @@ -0,0 +1,12 @@ + + + + + vapier@gentoo.org + Mike Frysinger + + + bioapi-linux + mr-c/bioapi-linux + + -- cgit v1.2.3