summaryrefslogtreecommitdiff
path: root/sys-auth/poldi/poldi-9999.ebuild
blob: 62c44d331fa3279154d49d2f3510f672b3cf0615 (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-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit pam eutils git-r3 autotools

DESCRIPTION="Poldi is a PAM module implementing authentication via OpenPGP smartcards."
HOMEPAGE="http://www.gnupg.org/"
EGIT_REPO_URI="https://github.com/gpg/poldi.git"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
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 )

PATCHES=( "${FILESDIR}/poldi-9999_fix_maintainer_mode.diff" )

src_configure() {
	local myeconfargs=(
		--with-pam-module-directory=/lib64/security
		)
	autotools-utils_src_configure
}

src_install() {
	default
	insinto /etc/poldi
	doins "${FILESDIR}"/poldi.conf.example
}