summaryrefslogtreecommitdiff
blob: 6a97971f481d9c97ec13968bedee67f8db8ef33a (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-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

WANT_AUTOCONF="latest"
inherit eutils pam autotools

DESCRIPTION="pam interface to existing S/Key library/interface"
HOMEPAGE="http://freshmeat.net/projects/pam_skey/"
SRC_URI="http://kreator.esa.fer.hr/projects/tarballs/${P}.tar.gz
	http://gentooexperimental.org/~genstef/dist/${P}-gentoo.patch.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

DEPEND=">=sys-libs/pam-0.78-r3
	>=app-admin/skey-1.1.5-r4"
RDEPEND="${DEPEND}"

S="${WORKDIR}/${PN}"

src_unpack() {
	unpack ${A}
	cd "${S}"
	epatch "${WORKDIR}/${P}-gentoo.patch"
}

src_compile() {
	econf --libdir="/$(get_libdir)" || die "econf failed"
	emake || die "emake failed"
}

src_install() {
	emake DESTDIR="${D}" install || die "install failed"
	dodoc README INSTALL
	newpamd "${FILESDIR}/pam_skey-system-auth.pam.d" system-auth
}