Merge master into staging-next
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
diff -Naur a/dialects/darwin/libproc/dfile.c b/dialects/darwin/libproc/dfile.c
|
||||
--- a/dialects/darwin/libproc/dfile.c 2018-02-14 09:28:06.000000000 -0500
|
||||
+++ b/dialects/darwin/libproc/dfile.c 2018-04-16 18:52:40.828715293 -0400
|
||||
@@ -43,7 +43,7 @@
|
||||
#include "lsof.h"
|
||||
|
||||
#if defined(PROC_FP_GUARDED)
|
||||
-#extern struct pff_tab Pgf_tab[];
|
||||
+extern struct pff_tab Pgf_tab[];
|
||||
#endif /* defined(PROC_FP_GUARDED) */
|
||||
|
||||
|
||||
@@ -1,34 +1,22 @@
|
||||
{ stdenv, fetchurl, buildPackages, ncurses }:
|
||||
{ stdenv, fetchFromGitHub, buildPackages, ncurses }:
|
||||
|
||||
let dialect = with stdenv.lib; last (splitString "-" stdenv.hostPlatform.system); in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "lsof";
|
||||
version = "4.91";
|
||||
version = "4.93.2";
|
||||
|
||||
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||
buildInputs = [ ncurses ];
|
||||
|
||||
src = fetchurl {
|
||||
urls = ["https://fossies.org/linux/misc/lsof_${version}.tar.bz2"] ++ # Mirrors seem to be down...
|
||||
["ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_${version}.tar.bz2"]
|
||||
++ map (
|
||||
# the tarball is moved after new version is released
|
||||
isOld: "ftp://sunsite.ualberta.ca/pub/Mirror/lsof/"
|
||||
+ "${stdenv.lib.optionalString isOld "OLD/"}lsof_${version}.tar.bz2"
|
||||
) [ false true ]
|
||||
++ map (
|
||||
# the tarball is moved after new version is released
|
||||
isOld: "http://www.mirrorservice.org/sites/lsof.itap.purdue.edu/pub/tools/unix/lsof/"
|
||||
+ "${stdenv.lib.optionalString isOld "OLD/"}lsof_${version}.tar.bz2"
|
||||
) [ false true ]
|
||||
;
|
||||
sha256 = "18sh4hbl9jw2szkf0gvgan8g13f3g4c6s2q9h3zq5gsza9m99nn9";
|
||||
src = fetchFromGitHub {
|
||||
owner = "lsof-org";
|
||||
repo = "lsof";
|
||||
rev = "${version}";
|
||||
sha256 = "1gd6r0nv8xz76pmvk52dgmfl0xjvkxl0s51b4jk4a0lphw3393yv";
|
||||
};
|
||||
|
||||
unpackPhase = "tar xvjf $src; cd lsof_*; tar xvf lsof_*.tar; sourceRoot=$( echo lsof_*/); ";
|
||||
|
||||
patches = [ ./no-build-info.patch ] ++ stdenv.lib.optional stdenv.isDarwin ./darwin-dfile.patch;
|
||||
patches = [ ./no-build-info.patch ];
|
||||
|
||||
postPatch = stdenv.lib.optionalString stdenv.hostPlatform.isMusl ''
|
||||
substituteInPlace dialects/linux/dlsof.h --replace "defined(__UCLIBC__)" 1
|
||||
@@ -47,12 +35,12 @@ stdenv.mkDerivation rec {
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin $out/man/man8
|
||||
cp lsof.8 $out/man/man8/
|
||||
cp Lsof.8 $out/man/man8/lsof.8
|
||||
cp lsof $out/bin
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://people.freebsd.org/~abe/;
|
||||
homepage = "https://github.com/lsof-org/lsof";
|
||||
description = "A tool to list open files";
|
||||
longDescription = ''
|
||||
List open files. Can show what process has opened some file,
|
||||
|
||||
@@ -2,10 +2,10 @@ GEM
|
||||
remote: https://rubygems.org/
|
||||
specs:
|
||||
bindata (2.4.4)
|
||||
elftools (1.0.2)
|
||||
elftools (1.1.0)
|
||||
bindata (~> 2)
|
||||
one_gadget (1.6.2)
|
||||
elftools (~> 1.0.2)
|
||||
one_gadget (1.7.2)
|
||||
elftools (>= 1.0.2, < 1.2.0)
|
||||
|
||||
PLATFORMS
|
||||
ruby
|
||||
|
||||
@@ -15,10 +15,10 @@
|
||||
platforms = [];
|
||||
source = {
|
||||
remotes = ["https://rubygems.org"];
|
||||
sha256 = "1ajymn59fr9117dkwf5xl8vmr737h6xmrcf1033zjlj2l5qkxn4a";
|
||||
sha256 = "0kdf0ck4rzxpd006y09rfwppdrqb3sxww4gzfpv2053yq4mkimbn";
|
||||
type = "gem";
|
||||
};
|
||||
version = "1.0.2";
|
||||
version = "1.1.0";
|
||||
};
|
||||
one_gadget = {
|
||||
dependencies = ["elftools"];
|
||||
@@ -26,9 +26,9 @@
|
||||
platforms = [];
|
||||
source = {
|
||||
remotes = ["https://rubygems.org"];
|
||||
sha256 = "0wacvysd7ddnbx2jl1vhzbkb28y974riyns7bpx889518zaa09z0";
|
||||
sha256 = "07s2nigjw1yik895gliz3a7ps0m9j5nccq82zwdd30sv740jmf5b";
|
||||
type = "gem";
|
||||
};
|
||||
version = "1.6.2";
|
||||
version = "1.7.2";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user