irqbalance-1.0.9-r1.ebuild 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. AUTOTOOLS_AUTORECONF=true
  5. inherit autotools-utils systemd linux-info
  6. DESCRIPTION="Distribute hardware interrupts across processors on a multiprocessor system"
  7. HOMEPAGE="https://github.com/Irqbalance/irqbalance"
  8. SRC_URI="https://github.com/Irqbalance/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
  9. LICENSE="GPL-2"
  10. SLOT="0"
  11. KEYWORDS="amd64 ppc x86"
  12. IUSE="caps +numa selinux"
  13. CDEPEND="dev-libs/glib:2
  14. caps? ( sys-libs/libcap-ng )
  15. numa? ( sys-process/numactl )
  16. "
  17. DEPEND="${CDEPEND}
  18. virtual/pkgconfig
  19. "
  20. RDEPEND="${CDEPEND}
  21. selinux? ( sec-policy/selinux-irqbalance )
  22. "
  23. pkg_setup() {
  24. CONFIG_CHECK="~PCI_MSI"
  25. linux-info_pkg_setup
  26. }
  27. src_configure() {
  28. local myeconfargs=(
  29. $(use_with caps libcap-ng)
  30. $(use_enable numa)
  31. )
  32. autotools-utils_src_configure
  33. }
  34. src_install() {
  35. autotools-utils_src_install
  36. newinitd "${FILESDIR}"/irqbalance.init.3 irqbalance
  37. newconfd "${FILESDIR}"/irqbalance.confd-1 irqbalance
  38. systemd_newunit "${FILESDIR}"/irqbalance.service.1 irqbalance.service
  39. }