sys-process/lsof: add 4.99.7

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2026-07-18 06:08:08 +01:00
parent 4878f9df5d
commit e34c27b0a9
2 changed files with 60 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST lsof-4.99.6.tar.gz 1145434 BLAKE2B 42fbf8ed7dfed8c8570cf830ce8778d9cbbecbd3c0f33800dd7ebfc36e07c7f86075b97bc25c33b70d73b6dde248969bcd7814a792d54cff77f10124f00afd35 SHA512 025317f98b585f266e8cbd02cf7e17dcbd5c630bf927fd710e1700f393464eeebd54de8277955ad6e2d849ebc67ebd7e0ed9bbbc53d4b3754e13cecb29a1f28e
DIST lsof-4.99.7.tar.gz 1155622 BLAKE2B 3c0ba62b2b668f9e6e796024d7bf6ae1b16d861760c61dde4e487e8aa7748a5d475d5d91cfb216da2742fd68a631cee3a4c59cd80c59be6195b7d8cf9d5aca22 SHA512 1a305e2d80a590fcb02ebd4a2008c263980879bfd4f9118af4da148d45766950b2bb1503cb78a0027ac63ef4f534abd8fc1bd5d367f9f13ee64694a9c08015fa

View File

@@ -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
}