blob: 45273250a96673d6e61682c353d76bfff3485ad4 (
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
51
52
53
54
55
56
57
58
59
60
61
62
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-auth/pam_krb5/pam_krb5-20030601-r1.ebuild,v 1.3 2005/09/03 23:31:58 flameeyes Exp $
inherit eutils
MY_PN="${PN}_snap"
MY_PV="${PV:0:4}.${PV:4:2}.${PV:6:2}"
DESCRIPTION="Pam module for MIT Kerberos V and Heimdal"
SRC_URI_BASE="mirror://sourceforge/pam-krb5"
RESTRICT="nomirror"
SRC_URI="${SRC_URI_BASE}/${MY_PN}-${MY_PV}.tar.gz"
HOMEPAGE="http://pam-krb5.sourceforge.net/"
SLOT="0"
LICENSE="LGPL-2"
KEYWORDS="~x86 ~ppc ~amd64"
IUSE="afs"
DEPEND="virtual/krb5
sys-libs/pam
afs? ( net-fs/openafs )"
S="${WORKDIR}/${MY_PN}-${MY_PV}"
src_unpack() {
unpack ${A}
# bug #66919
epatch ${FILESDIR}/${P}-defaultrealm.patch
}
src_compile() {
local myconf
use afs && myconf="${myconf} --with-krbafs=/usr"
CFLAGS="${CFLAGS}" CXXFLAGS="{$CXXFLAGS}" \
econf \
--localstatedir=/var \
--with-pamdir=/lib/security \
--with-krb5=/usr \
${myconf} || die "./configure failed."
emake CFLAGS="${CFLAGS}" || die
}
src_install() {
make DESTDIR=${D} install || die
if use afs ; then
if [ -f .libs/pam_krb5afs.so ]; then
doexe .libs/pam_krb5afs.so
doman pam_krb5afs.5 pam_krb5afs.8
fi
fi
doman pam_krb5.5 pam_krb5.8
dodoc AUTHORS ChangeLog NEWS README README.heimdal TODO
docinto pam.d
dodoc pam.d/*
}
|