1 |
# Copyright 1999-2009 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/media-sound/audio-entropyd/audio-entropyd-1.0.5.ebuild,v 1.6 2009/11/12 09:54:20 angelos Exp $ |
4 |
|
5 |
inherit eutils toolchain-funcs |
6 |
|
7 |
DESCRIPTION="Audio-entropyd generates entropy-data for the /dev/random device." |
8 |
HOMEPAGE="http://www.vanheusden.com/aed/" |
9 |
SRC_URI="http://www.vanheusden.com/aed/${P}.tgz" |
10 |
|
11 |
LICENSE="GPL-2" |
12 |
SLOT="0" |
13 |
KEYWORDS="amd64 ppc ~sparc x86" |
14 |
IUSE="selinux" |
15 |
|
16 |
RDEPEND="selinux? ( sec-policy/selinux-audio-entropyd )" |
17 |
|
18 |
src_unpack() { |
19 |
unpack ${A} |
20 |
cd "${S}" |
21 |
|
22 |
epatch "${FILESDIR}/${P}-uclibc.patch" \ |
23 |
"${FILESDIR}/${P}-ldflags.patch" |
24 |
sed -i -e "s:^OPT_FLAGS=.*:OPT_FLAGS=${CFLAGS}:" Makefile |
25 |
} |
26 |
|
27 |
src_compile() { |
28 |
emake CC="$(tc-getCC)" || die "emake failed" |
29 |
} |
30 |
|
31 |
src_install() { |
32 |
dosbin audio-entropyd || die "dosbin failed" |
33 |
dodoc README README.2 TODO |
34 |
newinitd "${FILESDIR}/${PN}.init-1" ${PN} |
35 |
newconfd "${FILESDIR}/${PN}.conf-1" ${PN} |
36 |
} |