summaryrefslogtreecommitdiff
blob: 86c05789200955b7f6761825344ce43677356974 (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
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=0

inherit eutils pam

DESCRIPTION="Allows you to require a special group or user to access a service"
HOMEPAGE="http://www.splitbrain.org/projects/pam_require"
SRC_URI="http://www.splitbrain.org/_media/projects/pamrequire/${P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ia64 ~ppc ~x86"
IUSE=""

DEPEND="virtual/pam"

S=${WORKDIR}/${P/_/-}

src_compile() {
	./configure --prefix=/ || die "econf failed"
	emake || die "emake failed"
}

src_install() {
	dopammod "${S}/pam_require.so"

	dodoc AUTHORS ChangeLog NEWS README
}