diff options
| author | root <root@alpha.trunkmasters.com> | 2026-07-18 03:04:45 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-07-18 03:04:45 -0500 |
| commit | 08bfa3f8ec685ab603d0c1995d79d00a1a0fbe1a (patch) | |
| tree | 1b4baa71dceb3809c3f4373acb9d1b4cc906dae2 /sys-process/lsof/lsof-4.99.7.ebuild | |
| parent | c15a01fb364f840a250479998f64702430097a88 (diff) | |
| download | baldeagleos-repo-08bfa3f8ec685ab603d0c1995d79d00a1a0fbe1a.tar.gz baldeagleos-repo-08bfa3f8ec685ab603d0c1995d79d00a1a0fbe1a.tar.xz baldeagleos-repo-08bfa3f8ec685ab603d0c1995d79d00a1a0fbe1a.zip | |
Adding metadata
Diffstat (limited to 'sys-process/lsof/lsof-4.99.7.ebuild')
| -rw-r--r-- | sys-process/lsof/lsof-4.99.7.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/sys-process/lsof/lsof-4.99.7.ebuild b/sys-process/lsof/lsof-4.99.7.ebuild new file mode 100644 index 000000000000..c850d19f81d1 --- /dev/null +++ b/sys-process/lsof/lsof-4.99.7.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit libtool + +MY_P="${P/-/_}" +DESCRIPTION="Lists open files for running Unix processes" +HOMEPAGE="https://github.com/lsof-org/lsof" +SRC_URI="https://github.com/lsof-org/lsof/releases/download/${PV}/${P}.tar.gz" + +LICENSE="lsof" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="rpc selinux" + +RDEPEND=" + rpc? ( net-libs/libtirpc ) + selinux? ( sys-libs/libselinux ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + sys-apps/groff + rpc? ( virtual/pkgconfig ) +" + +# Needs fixing first for sandbox +RESTRICT="test" + +src_prepare() { + default + elibtoolize +} + +src_configure() { + local myeconfargs=( + $(use_with rpc libtirpc) + $(use_with selinux) + ) + + econf "${myeconfargs[@]}" +} + +src_compile() { + emake DEBUG="" all +} + +src_install() { + default + find "${ED}" -name '*.la' -delete || die +} + +pkg_postinst() { + if [[ ${CHOST} == *-solaris* ]] ; then + einfo "Note: to use lsof on Solaris you need read permissions on" + einfo "/dev/kmem, i.e. you need to be root, or to be in the group sys" + fi +} |
