blob: 968f2250ff74be36f7043b95e37f66a180f6f4c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-auth/fingerprint-gui/fingerprint-gui-1.04.ebuild,v 1.1 2012/05/21 01:56:30 xmw Exp $
EAPI=4
inherit multilib versionator qt4-r2
DESCRIPTION="Use Fingerprint Devices with Linux"
HOMEPAGE="http://www.n-view.net/Appliance/fingerprint/"
SRC_URI="http://www.n-view.net/Appliance/fingerprint/download/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+upekbsapi"
RDEPEND="app-crypt/qca
app-crypt/qca-ossl
sys-auth/libfprint
sys-auth/polkit-qt
x11-libs/libfakekey
x11-libs/qt-core:4
!sys-auth/thinkfinger"
DEPEND="${RDEPEND}"
QA_SONAME="/usr/lib/libbsapi.so /usr/lib64/libbsapi.so"
QA_PRESTRIPPED="/usr/lib/libbsapi.so /usr/lib64/libbsapi.so"
QA_FLAGS_IGNORED="/usr/lib/libbsapi.so /usr/lib64/libbsapi.so"
src_configure() {
eqmake4 \
PREFIX="${EROOT}"usr \
LIB="$(get_libdir)" \
LIBEXEC=libexec \
LIBPOLKIT_QT=LIBPOLKIT_QT_1_1
}
src_install() {
emake INSTALL_ROOT="${D}" install
rm -r "${ED}"/usr/share/doc/${PN} || die
if use upekbsapi ; then
use amd64 && dolib.so upek/lib64/libbsapi.so
use x86 && dolib.so upek/lib/libbsapi.so
insinto /$(get_libdir)/udev/rules.d
doins upek/91-fingerprint-gui-upek.rules
insinto /etc
doins upek/upek.cfg
#dodir /var/upek_data
#fowners root:plugdev /var/upek_data
#fperms 0775 /var/upek_data
fi
dodoc CHANGELOG README
dohtml doc/*
}
pkg_postinst() {
elog "Please take a thorough look a the Install-step-by-step.html"
elog "in /usr/share/doc/${PF} for integration with pam/polkit/..."
elog "Hint: You may want"
elog " auth sufficient pam_fingerprint-gui.so"
elog "in /etc/pam.d/system-auth"
einfo
elog "There are udev rules to enforce group plugdev on the reader device"
elog "Please put yourself in that group and re-trigger the udev rules."
}
|