1 |
# Copyright 1999-2008 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.1.ebuild,v 1.5 2008/01/26 18:18:43 dertobi123 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 |
sed -i -e "s:^OPT_FLAGS=.*:OPT_FLAGS=${CFLAGS}:" Makefile |
24 |
} |
25 |
|
26 |
src_compile() { |
27 |
emake CC=$(tc-getCC) || die "emake failed" |
28 |
} |
29 |
|
30 |
src_install() { |
31 |
dosbin audio-entropyd |
32 |
|
33 |
dodoc README README.2 TODO |
34 |
|
35 |
newinitd "${FILESDIR}/${PN}.init" ${PN} |
36 |
newconfd "${FILESDIR}/${PN}.conf" ${PN} |
37 |
} |