blob: b9e790b019c6ae8b3c844480cdfa7e5d8c7993d5 (
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
48
49
50
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-auth/pam_pkcs11/pam_pkcs11-0.5.3-r2.ebuild,v 1.3 2006/10/01 15:24:06 gmsoft Exp $
inherit eutils
DESCRIPTION="PKCS11 Pam library"
HOMEPAGE="http://www.opensc-project.org/pam_pkcs11"
SRC_URI="http://www.opensc-project.org/files/pam_pkcs11/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE="curl ldap pcsc-lite"
DEPEND="
sys-libs/pam
curl? ( net-misc/curl )
ldap? ( net-nds/openldap )
pcsc-lite? ( sys-apps/pcsc-lite )
dev-libs/openssl"
src_unpack() {
unpack ${A}
# Simple setup tool, from Red Hat
# Needed for app-admin/authconfig
epatch "${FILESDIR}"/${P}-setup-tool.patch
epatch "${FILESDIR}"/${P}-daemon-init.patch
}
src_compile() {
econf \
$(use_with curl) \
$(use_with pcsc-lite pcsclite) \
$(use_with ldap) \
|| die "econf failed"
emake || die "emake failed"
}
src_install() {
make DESTDIR="${D}" install || die "install failed"
dodir /lib/security
dosym ../../usr/lib/security/pam_pkcs11.so /lib/security/
dodoc NEWS README
dohtml docs/*.{html,css}
}
|