blob: 4858a2c5daa02e26a672c3855e8dd891fc4df632 (
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
|
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EGIT_REPO_URI="https://github.com/mgorny/google-authenticator-libpam-hardened.git"
inherit autotools git-r3
DESCRIPTION="PAM Module for two step verification via mobile platform"
HOMEPAGE="https://github.com/mgorny/google-authenticator-libpam-hardened"
LICENSE="Apache-2.0"
SLOT="0"
IUSE="+qrcode"
DEPEND="sys-auth/oath-toolkit:=
sys-libs/pam
qrcode? ( media-gfx/qrencode:= )"
RDEPEND="${DEPEND}
!sys-auth/google-authenticator"
src_prepare() {
default
eautoreconf
}
src_configure() {
local myconf=(
# TODO: use getpam_mod_dir after fixing build system
--libdir="/$(get_libdir)"
$(use_enable qrcode qrencode)
)
econf "${myconf[@]}"
}
src_install() {
default
find "${D}" -name '*.la' -delete || die
}
|