mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-04 19:56:32 +02:00
sys-process/lsof: Sync with Gentoo
It's from Gentoo commit 9eb9ba73db8edda578c34956fd9c264849929b09. Signed-off-by: Flatcar Buildbot <buildbot@flatcar-linux.org>
This commit is contained in:
parent
09d8a9cc4b
commit
4088824954
@ -1 +1,2 @@
|
||||
DIST lsof-4.99.5.tar.gz 1139280 BLAKE2B 2f11990956b64b5777721f669b231e8f2a520f4535cd3d6023a3d8563c65c83598a4b52c887a2c1c742d12b2f92f724a33873bf460a5fb52255d1622436b1d44 SHA512 1584804fd98f6d416dd1b334832a306abb8e557185523ba255032c3e33fdc472ce4912c50ef70a0ed5e33194ebc4d4853ed7a9baa40c327223614de209c60f13
|
||||
DIST lsof-4.99.6.tar.gz 1145434 BLAKE2B 42fbf8ed7dfed8c8570cf830ce8778d9cbbecbd3c0f33800dd7ebfc36e07c7f86075b97bc25c33b70d73b6dde248969bcd7814a792d54cff77f10124f00afd35 SHA512 025317f98b585f266e8cbd02cf7e17dcbd5c630bf927fd710e1700f393464eeebd54de8277955ad6e2d849ebc67ebd7e0ed9bbbc53d4b3754e13cecb29a1f28e
|
||||
|
||||
59
sdk_container/src/third_party/portage-stable/sys-process/lsof/lsof-4.99.6.ebuild
vendored
Normal file
59
sdk_container/src/third_party/portage-stable/sys-process/lsof/lsof-4.99.6.ebuild
vendored
Normal file
@ -0,0 +1,59 @@
|
||||
# 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
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user