blob: a9bb1ecb39f386367ac930e08501cf573919ea80 (
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
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-auth/pam_usb/pam_usb-0.5.0.ebuild,v 1.4 2011/10/24 06:39:19 tetromino Exp $
EAPI=4
inherit eutils pam toolchain-funcs
DESCRIPTION="A pam module to provide authentication using USB device"
HOMEPAGE="http://pamusb.org/"
SRC_URI="mirror://sourceforge/pamusb/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
# FIXME: pmount: http://bugs.gentoo.org/show_bug.cgi?id=358935#c5
COMMON_DEPEND="dev-libs/libxml2
sys-apps/dbus
virtual/pam"
RDEPEND="${COMMON_DEPEND}
dev-python/celementtree
dev-python/dbus-python
dev-python/pygobject:2
sys-apps/pmount
sys-fs/udisks"
DEPEND="${COMMON_DEPEND}
dev-util/pkgconfig"
src_prepare() {
# FIXME: push upstream: http://bugs.gentoo.org/show_bug.cgi?id=358935#c6
epatch "${FILESDIR}"/${P}-openpam.patch
}
src_compile() {
emake CC="$(tc-getCC)"
}
src_install() {
emake \
DESTDIR="${D}" \
DOCS_DEST="${D}/usr/share/doc/${PF}" \
PAM_USB_DEST="${D}/$(getpam_mod_dir)" \
install
dodoc ChangeLog README.md
}
|