audio-entropyd-2.0.3-r1.ebuild 934 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Copyright 1999-2014 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=4
  4. inherit eutils systemd toolchain-funcs
  5. DESCRIPTION="Audio-entropyd generates entropy-data for the /dev/random device"
  6. HOMEPAGE="http://www.vanheusden.com/aed/"
  7. SRC_URI="http://www.vanheusden.com/aed/${P}.tgz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="amd64 ppc ~sparc x86"
  11. IUSE="selinux"
  12. RDEPEND="selinux? ( sec-policy/selinux-entropyd )
  13. media-sound/alsa-utils
  14. media-libs/alsa-lib"
  15. src_prepare() {
  16. epatch "${FILESDIR}/${PN}-2.0.1-uclibc.patch" \
  17. "${FILESDIR}/${PN}-2.0.1-ldflags.patch"
  18. sed -i -e "s:^OPT_FLAGS=.*:OPT_FLAGS=${CFLAGS}:" \
  19. -e "/^WARNFLAGS/s: -g::" Makefile || die
  20. }
  21. src_compile() {
  22. emake CC="$(tc-getCC)"
  23. }
  24. src_install() {
  25. dosbin audio-entropyd
  26. dodoc README TODO
  27. systemd_dounit "${FILESDIR}/${PN}.service"
  28. newinitd "${FILESDIR}/${PN}.init-2" ${PN}
  29. newconfd "${FILESDIR}/${PN}.conf-2" ${PN}
  30. }