sys-process/lsof - 4.99.6 (gentoo)

Search

Install

Install this version:

emerge -a =sys-process/lsof-4.99.6

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =sys-process/lsof-4.99.6

Or alternatively:

emerge --autounmask-write -a =sys-process/lsof-4.99.6

Package Information

Description:
Lists open files for running Unix processes
Homepage:
https://github.com/lsof-org/lsof
License:
lsof

Ebuild Details

Version EAPI Keywords Slot
4.99.6 8 ~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 0
View Raw Ebuild
# 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
}

USE Flags

Manage flags for this package: euse -i <flag> -p sys-process/lsof | euse -E <flag> -p sys-process/lsof | euse -D <flag> -p sys-process/lsof

Global/Standard Flags

rpc

Inherited Eclasses

Dependencies

DEPEND

	rpc? ( net-libs/libtirpc )
	selinux? ( sys-libs/libselinux )

RDEPEND

	rpc? ( net-libs/libtirpc )
	selinux? ( sys-libs/libselinux )

BDEPEND

	sys-apps/groff
	rpc? ( virtual/pkgconfig )

Manifest for 4.99.6

Type File Size Source URLs
DIST lsof-4.99.6.tar.gz 1145434 bytes https://github.com/lsof-org/lsof/releases/download/4.99.6/lsof-4.99.6.tar.gz