summaryrefslogtreecommitdiff
blob: 2b024bbbb788f827bfe3cc3f30364d07dd737d85 (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-auth/pam_bioapi/pam_bioapi-0.2.1-r1.ebuild,v 1.1 2007/02/26 04:17:17 vapier Exp $

inherit eutils

DESCRIPTION="PAM interface for biometric auth"
HOMEPAGE="http://www.qrivy.net/~michael/blua/"
SRC_URI="http://www.qrivy.net/~michael/blua/pam_bioapi/${P}.tar.bz2
	http://upir.cz/linux/patches/${P}-alter-environ.patch"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

DEPEND="sys-auth/bioapi
	sys-libs/pam
	sys-auth/tfm-fingerprint"

src_unpack() {
	unpack ${P}.tar.bz2
	cd "${S}"
	epatch "${FILESDIR}"/pam_bioapi.c-${PV}.patch
	epatch "${DISTDIR}"/${P}-alter-environ.patch
}

src_compile() {
	export CPPFLAGS="${CPPFLAGS} -I/opt/bioapi/include"
	econf --prefix=/ || die "econf failed"
	emake || die "emake failed"
}

src_install() {
	emake install DESTDIR="${D}" || die "einstall failed"
	find "${D}" -name '*.la' -print0 | xargs -0 rm
	dodir /usr
	mv "${D}"/bin "${D}"/usr/bin || die
}