summaryrefslogtreecommitdiff
blob: 48c32d5dd319849a249f8aaa8c7cc190a024452b (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-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

inherit pam toolchain-funcs flag-o-matic

DESCRIPTION="Terminal locking program with few additional features"
HOMEPAGE="http://unbeatenpath.net/software/away/"
SRC_URI="http://unbeatenpath.net/software/away/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc ppc64 sparc x86"
IUSE=""

RDEPEND=">=sys-libs/pam-0.75"
DEPEND="${RDEPEND}"

src_unpack() {
	unpack ${A}

	sed -i -e '/-o \$(BINARY)/d' \
		-e 's:LIBS:LDLIBS:' \
		"${S}"/Makefile || die "Makefile fix failed"
}
src_compile() {
	append-flags -pthread

	emake CFLAGS="${CFLAGS}" CC="$(tc-getCC)" || die
}

src_install() {
	dobin away || die "dobin failed"

	pamd_mimic_system away auth

	doman doc/*
	dodoc BUGS AUTHORS NEWS README TODO data/awayrc || die "dodoc failed"
}