Skip to content

Commit 8738069

Browse files
Flatcar Buildbotkrnowak
authored andcommitted
sys-process/lsof: Sync with Gentoo
It's from Gentoo commit 78143eec123c0601b77631d989eba1ff030322fc.
1 parent f5e24f4 commit 8738069

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
DIST lsof-4.98.0.tar.gz 734232 BLAKE2B 2f4ba4d179e8061e5bcff7dda4a0981616530bd5577fc73904e2699e6e982efee9e4270d3f2d3c68751d73cb98bfed0fd49d4c6bd967d15b4e06dcb72494d024 SHA512 6fde12497ce9cbba698be624b45e8392d551626c3e46b50ec23e661b322438ef7162dbac0d06829d56f074c7d934fa1ca98aa50ee1487125c93bebfe8eb2a2e8
22
DIST lsof-4.99.0.tar.gz 1127302 BLAKE2B 257f84e01b9530ab3a6c637c13c8e84c2562fa3ecd9048f93e2816bbed36ffd529311bc1424a41cde72383642decbd6f44e680bfdd2594bbae5908b07c466165 SHA512 6fe3039f1167fb3023a7f358dda2b4ea6eace1e50a97d0168af494217581eef73cc1742f544d2fb9f85ded8370c86e63d48104da899396de7b3007997a201825
33
DIST lsof-4.99.3.tar.gz 1131470 BLAKE2B f2f298d8fe3f03b192984a31bd6b368e08c3ae5b8776625df413b94a0db59258e8aadb8ab4b94b9a3a54803fab463c1b920b524ee0ff512c8cda4b88e89b4c50 SHA512 83f62f62fa273becfdded4e553d398bafebf0186c7f8ac86a800dabf63ef0614c3c546b6dcd6d13f30c97ab33088a82e1e6b66cc8ed61f700c54487cab19d009
4+
DIST lsof-4.99.4.tar.gz 1128285 BLAKE2B aa8e062f782f3e94688e725f963cc4a907abd49e1b78813ea3639afc284efb0946efd7f14f918f8792e253fb7bfceb6c3d258b84660d2af015a218d7cba16eb7 SHA512 5b04e2d8f26e6f76bcdb3e1282fbe71bb1b9379c76ffd88b05731920d5175595b0d4dbfd41a7ace1bfb4d21fcc7ebc641372af76c24ccb01bc3f5d7149ea4fa3
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Copyright 1999-2024 Gentoo Authors
2+
# Distributed under the terms of the GNU General Public License v2
3+
4+
EAPI=8
5+
6+
MY_P="${P/-/_}"
7+
DESCRIPTION="Lists open files for running Unix processes"
8+
HOMEPAGE="https://github.com/lsof-org/lsof"
9+
SRC_URI="https://github.com/lsof-org/lsof/releases/download/${PV}/${P}.tar.gz"
10+
11+
LICENSE="lsof"
12+
SLOT="0"
13+
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
14+
IUSE="rpc selinux"
15+
16+
RDEPEND="
17+
rpc? ( net-libs/libtirpc )
18+
selinux? ( sys-libs/libselinux )
19+
"
20+
DEPEND="${RDEPEND}"
21+
BDEPEND="
22+
sys-apps/groff
23+
rpc? ( virtual/pkgconfig )
24+
"
25+
26+
# Needs fixing first for sandbox
27+
RESTRICT="test"
28+
29+
src_configure() {
30+
local myeconfargs=(
31+
$(use_with rpc libtirpc)
32+
$(use_with selinux)
33+
)
34+
35+
econf "${myeconfargs[@]}"
36+
}
37+
38+
src_compile() {
39+
emake DEBUG="" all
40+
}
41+
42+
src_install() {
43+
default
44+
find "${ED}" -name '*.la' -delete || die
45+
}
46+
47+
pkg_postinst() {
48+
if [[ ${CHOST} == *-solaris* ]] ; then
49+
einfo "Note: to use lsof on Solaris you need read permissions on"
50+
einfo "/dev/kmem, i.e. you need to be root, or to be in the group sys"
51+
fi
52+
}

0 commit comments

Comments
 (0)