diff options
author | 2023-12-24 02:19:08 +0000 | |
---|---|---|
committer | 2023-12-24 02:19:08 +0000 | |
commit | f3fa8f6206104d5bab643bc2016d6b06c1e4980b (patch) | |
tree | c8660756f7fc3473117febedb1bfa73a7c1e9256 /sys-process/lsof/lsof-4.99.3.ebuild | |
parent | sys-libs/libcap-ng: update LICENSE (diff) | |
download | gentoo-f3fa8f6206104d5bab643bc2016d6b06c1e4980b.tar.gz gentoo-f3fa8f6206104d5bab643bc2016d6b06c1e4980b.tar.bz2 gentoo-f3fa8f6206104d5bab643bc2016d6b06c1e4980b.zip |
sys-process/lsof: add 4.99.3
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-process/lsof/lsof-4.99.3.ebuild')
-rw-r--r-- | sys-process/lsof/lsof-4.99.3.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/sys-process/lsof/lsof-4.99.3.ebuild b/sys-process/lsof/lsof-4.99.3.ebuild new file mode 100644 index 000000000000..9965531bc30b --- /dev/null +++ b/sys-process/lsof/lsof-4.99.3.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2023 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 ~ia64 ~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 +} + +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 +} |