commit: df317cda2e580cafb8b1667644186b3a22ea305b
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 15 09:04:48 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Jul 15 09:04:48 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df317cda
sys-process/lsof: add 4.99.5
Signed-off-by: Sam James <sam <AT> gentoo.org>
sys-process/lsof/Manifest | 1 +
sys-process/lsof/lsof-4.99.5.ebuild | 52 +++++++++++++++++++++++++++++++++++++
2 files changed, 53 insertions(+)
diff --git a/sys-process/lsof/Manifest b/sys-process/lsof/Manifest
index 973b95494f9b..4ccfac2d3da9 100644
--- a/sys-process/lsof/Manifest
+++ b/sys-process/lsof/Manifest
@@ -1 +1,2 @@
DIST lsof-4.99.4.tar.gz 1128285 BLAKE2B
aa8e062f782f3e94688e725f963cc4a907abd49e1b78813ea3639afc284efb0946efd7f14f918f8792e253fb7bfceb6c3d258b84660d2af015a218d7cba16eb7
SHA512
5b04e2d8f26e6f76bcdb3e1282fbe71bb1b9379c76ffd88b05731920d5175595b0d4dbfd41a7ace1bfb4d21fcc7ebc641372af76c24ccb01bc3f5d7149ea4fa3
+DIST lsof-4.99.5.tar.gz 1139280 BLAKE2B
2f11990956b64b5777721f669b231e8f2a520f4535cd3d6023a3d8563c65c83598a4b52c887a2c1c742d12b2f92f724a33873bf460a5fb52255d1622436b1d44
SHA512
1584804fd98f6d416dd1b334832a306abb8e557185523ba255032c3e33fdc472ce4912c50ef70a0ed5e33194ebc4d4853ed7a9baa40c327223614de209c60f13
diff --git a/sys-process/lsof/lsof-4.99.5.ebuild
b/sys-process/lsof/lsof-4.99.5.ebuild
new file mode 100644
index 000000000000..bcbab0287816
--- /dev/null
+++ b/sys-process/lsof/lsof-4.99.5.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+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_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
+}