| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 |
|
| 23 | (define-module (gnu packages lsof)
|
| 24 | #:use-module ((guix licenses) #:prefix license:)
|
| 25 | #:use-module (guix packages)
|
| 26 | #:use-module (guix git-download)
|
| 27 | #:use-module (guix build-system gnu)
|
| 28 | #:use-module (guix gexp)
|
| 29 | #:use-module (guix utils)
|
| 30 | #:use-module (gnu packages)
|
| 31 | #:use-module (gnu packages autotools)
|
| 32 | #:use-module (gnu packages groff)
|
| 33 | #:use-module (gnu packages perl)
|
| 34 | #:use-module (gnu packages pkg-config)
|
| 35 | #:use-module (gnu packages linux))
|
| 36 |
|
| 37 | (define-public lsof
|
| 38 | (package
|
| 39 | (name "lsof")
|
| 40 | (version "4.99.3")
|
| 41 | (source (origin
|
| 42 | (method git-fetch)
|
| 43 | (uri (git-reference
|
| 44 | (url "https://github.com/lsof-org/lsof")
|
| 45 | (commit version)))
|
| 46 | (file-name (git-file-name name version))
|
| 47 | (sha256
|
| 48 | (base32
|
| 49 | "1v32407al4j0hhcph95lv4xvr9h012lii29iyq41iwj39zwfavax"))
|
| 50 | (patches (search-patches "lsof-compat-linux-6.9.patch"))))
|
| 51 | (build-system gnu-build-system)
|
| 52 | (native-inputs (list automake
|
| 53 | autoconf
|
| 54 | groff |
| 55 | libtool
|
| 56 | perl
|
| 57 | pkg-config
|
| 58 | procps |
| 59 | util-linux)) |
| 60 | (arguments
|
| 61 | (list #:phases
|
| 62 | #~(modify-phases %standard-phases
|
| 63 | (add-after 'unpack 'fix-configure-ac-version
|
| 64 | |
| 65 | |
| 66 | (lambda _
|
| 67 | (substitute* "configure.ac"
|
| 68 | (("4\\.99\\.0")
|
| 69 | "4.99.3"))))
|
| 70 | (add-before 'bootstrap 'disable-failing-tests
|
| 71 | (lambda _
|
| 72 | (substitute* "Makefile.am"
|
| 73 | |
| 74 | (("(TESTS \\+=.*) tests/LTsock" _ prefix)
|
| 75 | prefix)
|
| 76 | |
| 77 | (("tests/LTlock") "")
|
| 78 | |
| 79 | (("\tdialects/linux/tests/case-20-epoll.bash \\\\")
|
| 80 | "\\")))))))
|
| 81 | (synopsis "Display information about open files")
|
| 82 | (description
|
| 83 | "Lsof stands for LiSt Open Files, and it does just that.
|
| 84 | It lists information about files that are open by the processes running
|
| 85 | on the system.")
|
| 86 | (license (license:fsf-free
|
| 87 | "file://00FAQ"
|
| 88 | "License inspired by zlib, see point 1.9 of 00FAQ in the distribution."))
|
| 89 | (home-page "https://people.freebsd.org/~abe/")))
|