blob: 2d8c12dea93f8b84b89b3c9fdc32f0de3a0972d6 (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="3"
FP_GUI=fingerprint-gui-1.00
MY_PN=${PN/bsapi-bin/}
DESCRIPTION="UPEK Biometric Services SDK for PC"
HOMEPAGE="http://www.upek.com/solutions/eikon/default.asp"
SRC_URI="http://www.n-view.net/Appliance/fingerprint/download/${FP_GUI}.tar.gz"
LICENSE="UPEK_EULA"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}"
S=${FP_GUI}/${MY_PN}
src_unpack() {
unpack ${FP_GUI}.tar.gz
}
src_install() {
cd "${S}"/
insinto /usr/include
doins include/bsapi.h
doins include/bserror.h
doins include/bstypes.h
if use x86; then
dolib lib/libbsapi.so
elif use amd64; then
dolib lib64/libbsapi.so
fi
insinto /etc/udev/rules.d
doins 91-fingerprint-gui-upek.rules
dodir /var/lib/${MY_PN}_data
fperms 777 /var/lib/${MY_PN}_data
echo "nvmprefix=\"/var/lib/${MY_PN}_data/.NVM\" dualswipe=0" > ${MY_PN}.cfg
insinto /etc
doins ${MY_PN}.cfg
}
|