powernowd-1.00-r3.ebuild 862 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils linux-info systemd toolchain-funcs
  5. DESCRIPTION="Daemon to control the speed and voltage of CPUs"
  6. HOMEPAGE="http://www.deater.net/john/powernowd.html https://github.com/clemej/powernowd"
  7. SRC_URI="http://www.deater.net/john/${P}.tar.gz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="amd64 ppc ppc64 x86"
  11. pkg_setup() {
  12. CONFIG_CHECK="~CPU_FREQ"
  13. WARNING_CPU_FREQ="Powernowd needs CPU_FREQ turned on!"
  14. linux-info_pkg_setup
  15. }
  16. src_prepare() {
  17. epatch "${FILESDIR}"/${P}-buf.patch
  18. rm -f Makefile
  19. tc-export CC
  20. }
  21. src_compile() {
  22. emake powernowd
  23. }
  24. src_install() {
  25. dosbin powernowd
  26. dodoc README
  27. newconfd "${FILESDIR}"/powernowd.confd powernowd
  28. newinitd "${FILESDIR}"/powernowd.initd powernowd
  29. systemd_dounit "${FILESDIR}"/${PN}.service
  30. }