blob: 7594fe30d0796c55444a30b507946b0a2ab6c915 (
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
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
inherit pam eutils
DESCRIPTION="Poldi is a PAM module implementing authentication via OpenPGP smartcards."
HOMEPAGE="http://www.gnupg.org/"
SRC_URI="mirror://gnupg/alpha/${PN}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="usb"
DEPEND="dev-libs/libgcrypt:0
virtual/pam
>=dev-libs/libgpg-error-0.7
usb? ( virtual/libusb:0 )"
RDEPEND="${DEPEND}"
DOCS=( AUTHORS ChangeLog INSTALL NEWS README THANKS )
src_prepare() {
epatch "${FILESDIR}/01-debian-specific-0.4.1.diff"
epatch "${FILESDIR}/02-ldflags-0.4.1.diff"
epatch "${FILESDIR}/03-fix-auth-localdb.diff"
}
src_install() {
default
dopammod "${S}"/src/pam/pam_poldi.so
insinto /etc/poldi
doins "${FILESDIR}"/poldi.conf.example
}
|