blob: c4288c0d03cd584ef9a4ea9300939c200a8dc27a (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="3"
inherit eutils pam toolchain-funcs
DESCRIPTION="Mobile One Time Passwords"
HOMEPAGE="http://motp.sourceforge.net/"
SRC_URI="http://motp.sourceforge.net/${P}.tgz"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="sys-libs/pam"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${PN}"
src_prepare() {
epatch "${FILESDIR}/${P}-gentoo.patch"
}
src_compile() {
emake CC="$(tc-getCC)" || die
}
src_install() {
dopammod pam_mobile_otp.so || die
keepdir /var/cache/motp || die
fperms 0700 /var/cache/motp || die
dopamsecurity '' motp.conf || die
dodoc CHANGELOG README || die
dohtml MOTP.html || die
}
|