blob: 16a5741b650cedef6c44c3f2f5ae66a1521f74bd (
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
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
inherit autotools flag-o-matic pam
DESCRIPTION="Library for authenticating against PAM with a Yubikey"
HOMEPAGE="https://github.com/Yubico/pam-u2f"
SRC_URI="https://developers.yubico.com/${PN/_/-}/Releases/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="debug"
RDEPEND="
app-crypt/libu2f-host
app-crypt/libu2f-server
virtual/pam"
DEPEND="${RDEPEND}
virtual/pkgconfig"
PATCHES=( "${FILESDIR}/${PN}-1.0.2-fix-Makefile.patch" )
src_prepare() {
default
use debug || append-cppflags -UDEBUG_PAM -UPAM_DEBUG
eautoreconf
}
src_configure() {
econf --with-pam-dir=$(getpam_mod_dir)
}
|