Gentoo Archives: gentoo-commits

From: Maxim Koltsov <maksbotan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-auth/fingerprint-gui/
Date: Mon, 26 Mar 2018 21:20:37
Message-Id: 1522099223.929b5678dcf404a2fb3bf175ee69c4b1222098db.maksbotan@gentoo
1 commit: 929b5678dcf404a2fb3bf175ee69c4b1222098db
2 Author: Maxim Koltsov <maksbotan <AT> gentoo <DOT> org>
3 AuthorDate: Mon Mar 26 21:20:02 2018 +0000
4 Commit: Maxim Koltsov <maksbotan <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 26 21:20:23 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=929b5678
7
8 sys-auth/fingerprint-gui: bump to 1.09 with Qt5
9
10 This is forked release sanctioned by upstream.
11
12 Bug: https://bugs.gentoo.org/638826
13 Package-Manager: Portage-2.3.24, Repoman-2.3.6
14
15 sys-auth/fingerprint-gui/Manifest | 1 +
16 .../fingerprint-gui/fingerprint-gui-1.09.ebuild | 114 +++++++++++++++++++++
17 2 files changed, 115 insertions(+)
18
19 diff --git a/sys-auth/fingerprint-gui/Manifest b/sys-auth/fingerprint-gui/Manifest
20 index c0379a9e586..263764a7c3b 100644
21 --- a/sys-auth/fingerprint-gui/Manifest
22 +++ b/sys-auth/fingerprint-gui/Manifest
23 @@ -1 +1,2 @@
24 DIST fingerprint-gui-1.07.tar.gz 7042051 BLAKE2B c9b371e6344fd2a838a4c99a2962362a8aece8c3bce995926ff935453cf2d0d6b6b5f189e359638eb717bdba167b67d4ac336d7035646c7e68b62d5140e15c1d SHA512 b63bc86cbff29587a7fe164dd9344178006079f2520265ecd3d96e57bf584694246e17db780051dcacfe39dc6bd4da437b16e33d2f7cb6b474ae61dfbced6a3b
25 +DIST fingerprint-gui-1.09.tar.gz 7037943 BLAKE2B b35b8a1c5f53752709da44903961527c01db20773298e4636d8c316946cd7d23022c9407081c55ba5f6ec55d9ed53b7f8ef858c44a623873834fa1cbd6aa941f SHA512 c4fb22368d82d72586f80009b5adb9db0a8e8777c3d1c1f23cf58a21f718a3e3d05bbc90fff295be969cf7f744f037fb886e975e626cf6d599f8f6b5f8323724
26
27 diff --git a/sys-auth/fingerprint-gui/fingerprint-gui-1.09.ebuild b/sys-auth/fingerprint-gui/fingerprint-gui-1.09.ebuild
28 new file mode 100644
29 index 00000000000..2d7b9377d7c
30 --- /dev/null
31 +++ b/sys-auth/fingerprint-gui/fingerprint-gui-1.09.ebuild
32 @@ -0,0 +1,114 @@
33 +# Copyright 1999-2018 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +
38 +inherit qmake-utils readme.gentoo-r1 udev user gnome2-utils
39 +
40 +DESCRIPTION="Use Fingerprint Devices with Linux"
41 +HOMEPAGE="http://www.ullrich-online.cc/fingerprint/ https://github.com/maksbotan/fingerprint-gui"
42 +SRC_URI="https://github.com/maksbotan/fingerprint-gui/archive/v${PV}-qt5.tar.gz -> ${P}.tar.gz"
43 +
44 +LICENSE="GPL-3"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~x86"
47 +IUSE="+upekbsapi"
48 +
49 +DEPEND="
50 + app-crypt/qca[qt5(+)]
51 + dev-qt/qtcore:5
52 + dev-qt/qtwidgets:5
53 + dev-qt/qtxml:5
54 + dev-qt/qtx11extras:5
55 + sys-auth/libfprint
56 + sys-auth/polkit-qt[qt5(+)]
57 + sys-libs/pam
58 + x11-libs/libX11
59 + x11-proto/xproto
60 + x11-libs/libfakekey
61 + dev-libs/libusb
62 + !sys-auth/thinkfinger
63 +"
64 +RDEPEND="${DEPEND}"
65 +
66 +QA_SONAME="/usr/lib/libbsapi.so.* /usr/lib64/libbsapi.so.*"
67 +QA_PRESTRIPPED="/usr/lib/libbsapi.so.* /usr/lib64/libbsapi.so.*"
68 +QA_FLAGS_IGNORED="/usr/lib/libbsapi.so.* /usr/lib64/libbsapi.so.*"
69 +
70 +S="${WORKDIR}/${P}-qt5"
71 +
72 +HTML_DOCS=( doc/Hacking.html doc/Step-by-step-manual.html )
73 +
74 +src_prepare() {
75 + eapply_user
76 +
77 + sed -e '/Icon=/s:=.*:=Fingerprint:' \
78 + -i bin/${PN}/${PN}.desktop || die
79 + sed -e "s:/etc/udev/rules.d:\"$(get_udevdir)\"/rules.d:g" \
80 + -i bin/${PN%-gui}-helper/${PN%-gui}-helper.pro || die
81 + sed -e 's:GROUP="plugdev":GROUP="fingerprint":' \
82 + -i bin/fingerprint-helper/92-fingerprint-gui-uinput.rules \
83 + -i upek/91-fingerprint-gui-upek.rules || die
84 + sed -e '/DOCDIR\s\+=/s:'${PN}':'${PF}/html':' \
85 + -i bin/fingerprint-gui/fingerprint-gui.pro || die
86 + sed -e '/#define DOCDIR/s:'${PN}':'${PF}/html':' \
87 + -i include/Globals.h || die
88 +}
89 +
90 +src_configure() {
91 + eqmake5 \
92 + PREFIX="${EROOT}"usr \
93 + LIB="$(get_libdir)" \
94 + LIBEXEC=libexec \
95 + LIBPOLKIT_QT=LIBPOLKIT_QT_1_1
96 +}
97 +
98 +src_install() {
99 + export INSTALL_ROOT="${D}" #submakes need it as well, re-install fails otherwise.
100 + emake -j1 install
101 + if use upekbsapi ; then
102 + use amd64 && dolib.so upek/lib64/libbsapi.so*
103 + use x86 && dolib.so upek/lib/libbsapi.so*
104 + udev_dorules upek/91-fingerprint-gui-upek.rules
105 + insinto /etc
106 + doins upek/upek.cfg
107 + #dodir /var/upek_data
108 + #fowners root:plugdev /var/upek_data
109 + #fperms 0775 /var/upek_data
110 + fi
111 + doicon src/res/Fingerprint.png
112 +
113 + einstalldocs
114 +
115 + keepdir /var/lib/fingerprint-gui
116 +
117 + readme.gentoo_create_doc
118 +}
119 +
120 +pkg_preinst() {
121 + enewgroup fingerprint
122 +
123 + gnome2_icon_cache_update
124 +}
125 +
126 +pkg_postinst() {
127 + einfo "Fixing permisisons of fingerprints..."
128 + find "${EROOT}"/var/lib/fingerprint-gui -exec chown root:root {} + || die "chown root:root failed"
129 + find "${EROOR}"/var/lib/fingerprint-gui -type d -exec chmod 755 {} + || die "chmod 755 failed"
130 + find "${EROOT}"/var/lib/fingerprint-gui -type f -exec chmod 600 {} + || die "chmod 600 failed"
131 +
132 + readme.gentoo_print_elog
133 +
134 + gnome2_icon_cache_update
135 +}
136 +
137 +FORCE_PRINT_ELOG=1
138 +DISABLE_AUTOFORMATTING=1
139 +DOC_CONTENTS="Please take a thorough look a the Step-by-step-manual.html
140 +in /usr/share/doc/${PF}/html for integration with pam/polkit/...
141 +Hint: You may want
142 + auth sufficient pam_fingerprint-gui.so
143 +in /etc/pam.d/system-auth
144 +
145 +There are udev rules to enforce group fingerprint on the reader device
146 +Please put yourself in that group and re-trigger the udev rules."