extrace-0.9.ebuild 731 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Copyright 2021-2023 Gentoo Authors
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=8
  4. inherit fcaps linux-info
  5. DESCRIPTION="trace exec() calls system-wide"
  6. HOMEPAGE="https://github.com/leahneukirchen/extrace"
  7. SRC_URI="${HOMEPAGE}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
  8. LICENSE="GPL-2 MIT"
  9. SLOT="0"
  10. KEYWORDS="amd64 ~x86"
  11. IUSE="pwait"
  12. DEPEND="pwait? ( !sys-process/procps )"
  13. RDEPEND="${DEPEND}"
  14. CONFIG_CHECK="~CONNECTOR ~PROC_EVENTS"
  15. get_all() {
  16. echo "${PN}" $(usev pwait)
  17. }
  18. src_compile() {
  19. emake ALL="$(get_all)"
  20. }
  21. src_install() {
  22. local ALL=( $(get_all) )
  23. dobin "${ALL[@]}"
  24. doman "${ALL[@]/%/.1}"
  25. }
  26. pkg_postinst() {
  27. local ALL=( $(get_all) )
  28. fcaps cap_net_admin+ep "${ALL[@]/#/usr/bin/}"
  29. }