2013-03-05 00:14:44 +01:00
|
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
|
|
|
|
|
;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
|
2017-04-29 23:23:54 +03:00
|
|
|
|
;;; Copyright © 2017 Efraim Flashner <efraim@flashner.co.il>
|
2020-11-23 03:47:51 +01:00
|
|
|
|
;;; Copyright © 2018, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
|
2019-11-30 14:29:42 +01:00
|
|
|
|
;;; Copyright © 2018, 2019 Ludovic Courtès <ludo@gnu.org>
|
2021-10-15 00:26:39 -04:00
|
|
|
|
;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
2013-03-05 00:14:44 +01:00
|
|
|
|
;;;
|
|
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
|
|
;;;
|
|
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
|
|
;;; your option) any later version.
|
|
|
|
|
|
;;;
|
|
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
|
|
;;;
|
|
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
|
|
|
(define-module (gnu packages lsof)
|
Use #:prefix instead of #:renamer with 'symbol-prefix-proc'.
* gnu/packages/abiword.scm, gnu/packages/admin.scm, gnu/packages/aidc.scm,
gnu/packages/backup.scm, gnu/packages/bittorrent.scm,
gnu/packages/boost.scm, gnu/packages/compression.scm,
gnu/packages/cryptsetup.scm, gnu/packages/curl.scm,
gnu/packages/cyrus-sasl.scm, gnu/packages/dc.scm, gnu/packages/emacs.scm,
gnu/packages/fonts.scm, gnu/packages/fontutils.scm, gnu/packages/geeqie.scm,
gnu/packages/ghostscript.scm, gnu/packages/gimp.scm,
gnu/packages/gkrellm.scm, gnu/packages/gl.scm, gnu/packages/glib.scm,
gnu/packages/gnome.scm, gnu/packages/gnunet.scm, gnu/packages/gnupg.scm,
gnu/packages/gnutls.scm, gnu/packages/gnuzilla.scm, gnu/packages/gsasl.scm,
gnu/packages/gtk.scm, gnu/packages/gv.scm, gnu/packages/image.scm,
gnu/packages/indent.scm, gnu/packages/inkscape.scm,
gnu/packages/lesstif.scm, gnu/packages/links.scm, gnu/packages/lisp.scm,
gnu/packages/lsh.scm, gnu/packages/lsof.scm, gnu/packages/maths.scm,
gnu/packages/mp3.scm, gnu/packages/openssl.scm, gnu/packages/ots.scm,
gnu/packages/pciutils.scm, gnu/packages/pcre.scm, gnu/packages/pdf.scm,
gnu/packages/pulseaudio.scm, gnu/packages/python.scm, gnu/packages/slim.scm,
gnu/packages/ssh.scm, gnu/packages/texlive.scm, gnu/packages/vim.scm,
gnu/packages/vpn.scm, gnu/packages/web.scm, gnu/packages/wv.scm,
gnu/packages/xiph.scm, gnu/packages/xml.scm, gnu/packages/xorg.scm,
gnu/packages/yasm.scm, gnu/packages/zip.scm,
guix/build/cmake-build-system.scm, guix/build/perl-build-system.scm,
guix/build/python-build-system.scm, guix/download.scm: Replaces uses of
#:renamer and 'symbol-prefix-proc' with #:prefix.
2014-09-23 16:44:22 -04:00
|
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
2013-03-05 00:14:44 +01:00
|
|
|
|
#:use-module (guix packages)
|
2020-11-23 03:47:51 +01:00
|
|
|
|
#:use-module (guix git-download)
|
2013-03-05 00:14:44 +01:00
|
|
|
|
#:use-module (guix build-system gnu)
|
2024-10-06 01:33:48 +08:00
|
|
|
|
#:use-module (guix gexp)
|
2020-11-23 05:09:53 +01:00
|
|
|
|
#:use-module (guix utils)
|
2020-11-23 05:06:08 +01:00
|
|
|
|
#:use-module (gnu packages)
|
2023-04-11 16:18:45 +08:00
|
|
|
|
#:use-module (gnu packages autotools)
|
2020-11-23 03:47:51 +01:00
|
|
|
|
#:use-module (gnu packages groff)
|
2023-04-11 16:18:45 +08:00
|
|
|
|
#:use-module (gnu packages perl)
|
|
|
|
|
|
#:use-module (gnu packages pkg-config)
|
|
|
|
|
|
#:use-module (gnu packages linux))
|
2013-03-05 00:14:44 +01:00
|
|
|
|
|
|
|
|
|
|
(define-public lsof
|
|
|
|
|
|
(package
|
2021-10-15 00:27:51 -04:00
|
|
|
|
(name "lsof")
|
2024-10-06 01:01:20 +08:00
|
|
|
|
(version "4.99.3")
|
2023-04-11 16:18:45 +08:00
|
|
|
|
(source (origin
|
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
|
(url "https://github.com/lsof-org/lsof")
|
|
|
|
|
|
(commit version)))
|
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
|
(sha256
|
|
|
|
|
|
(base32
|
2024-10-10 15:14:30 +02:00
|
|
|
|
"1v32407al4j0hhcph95lv4xvr9h012lii29iyq41iwj39zwfavax"))
|
|
|
|
|
|
(patches (search-patches "lsof-compat-linux-6.9.patch"))))
|
2021-10-15 00:27:51 -04:00
|
|
|
|
(build-system gnu-build-system)
|
2023-04-11 16:18:45 +08:00
|
|
|
|
(native-inputs (list automake
|
|
|
|
|
|
autoconf
|
|
|
|
|
|
groff ;for soelim
|
2024-10-06 01:01:20 +08:00
|
|
|
|
libtool
|
2023-04-11 16:18:45 +08:00
|
|
|
|
perl
|
|
|
|
|
|
pkg-config
|
|
|
|
|
|
procps ;for ps
|
|
|
|
|
|
util-linux)) ;for unshare
|
2021-10-15 00:27:51 -04:00
|
|
|
|
(arguments
|
2024-10-06 01:33:48 +08:00
|
|
|
|
(list #:phases
|
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
|
(add-after 'unpack 'fix-configure-ac-version
|
|
|
|
|
|
;; see https://github.com/lsof-org/lsof/commit/932a0b3b1992497e23fd9b8d31116b9ca9b0f98d
|
|
|
|
|
|
;; to fix tests/case-01-version.bash test fail.
|
|
|
|
|
|
(lambda _
|
|
|
|
|
|
(substitute* "configure.ac"
|
|
|
|
|
|
(("4\\.99\\.0")
|
|
|
|
|
|
"4.99.3"))))
|
|
|
|
|
|
(add-before 'bootstrap 'disable-failing-tests
|
|
|
|
|
|
(lambda _
|
|
|
|
|
|
(substitute* "Makefile.am"
|
|
|
|
|
|
;; Fails with ‘ERROR!!! client gethostbyaddr() failure’.
|
|
|
|
|
|
(("(TESTS \\+=.*) tests/LTsock" _ prefix)
|
|
|
|
|
|
prefix)
|
|
|
|
|
|
;; Fails because /proc not mounted in sandbox
|
|
|
|
|
|
(("\tdialects/linux/tests/case-20-epoll.bash \\\\")
|
|
|
|
|
|
"\\")))))))
|
2021-10-15 00:27:51 -04:00
|
|
|
|
(synopsis "Display information about open files")
|
|
|
|
|
|
(description
|
|
|
|
|
|
"Lsof stands for LiSt Open Files, and it does just that.
|
2013-03-05 00:14:44 +01:00
|
|
|
|
It lists information about files that are open by the processes running
|
|
|
|
|
|
on the system.")
|
2021-10-15 00:27:51 -04:00
|
|
|
|
(license (license:fsf-free
|
|
|
|
|
|
"file://00FAQ"
|
|
|
|
|
|
"License inspired by zlib, see point 1.9 of 00FAQ in the distribution."))
|
|
|
|
|
|
(home-page "https://people.freebsd.org/~abe/")))
|