diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-07-20 01:06:10 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-07-20 01:06:10 +0100 |
commit | 6f97f3b697516aeae25033ec37234739fff23fbc (patch) | |
tree | 06e8fc580948f1ebb56af172dd293763a2d6e478 /sys-process/lsof/lsof-4.98.0-r1.ebuild | |
parent | 60cdf17f0a24ced43a795eb9e096087f59c9d571 (diff) |
gentoo auto-resync : 20:07:2023 - 01:06:10
Diffstat (limited to 'sys-process/lsof/lsof-4.98.0-r1.ebuild')
-rw-r--r-- | sys-process/lsof/lsof-4.98.0-r1.ebuild | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/sys-process/lsof/lsof-4.98.0-r1.ebuild b/sys-process/lsof/lsof-4.98.0-r1.ebuild new file mode 100644 index 000000000000..aef7b5fff4a8 --- /dev/null +++ b/sys-process/lsof/lsof-4.98.0-r1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic + +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" + +PATCHES=( + "${FILESDIR}"/${P}-fix-common-include-strftime.patch +) + +src_configure() { + # TODO: drop after 4.98.0: https://github.com/lsof-org/lsof/commit/4fbe0b78f63ce115f25cf7a49756745e3bf47fea + export ac_cv_header_selinux_selinux_h=$(usex selinux) + + # TODO: drop after 4.98.0: https://github.com/lsof-org/lsof/commit/22d9cedfca4672601f35f7683907373cd5124121 + [[ ${CHOST} == *-solaris2.11 ]] && append-cppflags -DHAS_PAD_MUTEX + + local myeconfargs=( + $(use_with rpc libtirpc) + ) + + 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 +} |