2022-08-14 11:37:16 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchurl
|
2022-08-18 05:30:45 +00:00
|
|
|
, buildPackages
|
2022-08-14 11:37:16 +00:00
|
|
|
, docbook_xml_dtd_44
|
|
|
|
, docbook_xsl
|
|
|
|
, libcap
|
|
|
|
, pkg-config
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, xmlto
|
2022-08-23 17:28:40 +00:00
|
|
|
, python3
|
2022-08-14 11:37:16 +00:00
|
|
|
|
|
|
|
, gitUpdater
|
|
|
|
}:
|
2014-02-17 14:24:43 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-07-09 13:17:19 +00:00
|
|
|
pname = "pax-utils";
|
2023-01-29 18:39:25 +00:00
|
|
|
version = "1.3.7";
|
2014-02-17 14:24:43 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-11-06 01:56:39 +00:00
|
|
|
url = "mirror://gentoo/distfiles/${pname}-${version}.tar.xz";
|
2023-01-29 18:39:25 +00:00
|
|
|
sha256 = "sha256-EINi0pZo0lz3sMrcY7FaTBz8DbxxrcFRszxf597Ok5o=";
|
2014-02-17 14:24:43 +00:00
|
|
|
};
|
|
|
|
|
2021-10-30 10:31:23 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2022-08-18 05:30:45 +00:00
|
|
|
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
2022-08-14 11:37:16 +00:00
|
|
|
nativeBuildInputs = [ docbook_xml_dtd_44 docbook_xsl meson ninja pkg-config xmlto ];
|
|
|
|
buildInputs = [ libcap ];
|
2022-08-23 17:28:40 +00:00
|
|
|
# Needed for lddtree
|
|
|
|
propagatedBuildInputs = [ (python3.withPackages (p: with p; [ pyelftools ])) ];
|
2014-02-17 14:24:43 +00:00
|
|
|
|
2022-04-29 07:02:24 +00:00
|
|
|
passthru.updateScript = gitUpdater {
|
|
|
|
url = "https://anongit.gentoo.org/git/proj/pax-utils.git";
|
|
|
|
rev-prefix = "v";
|
|
|
|
};
|
|
|
|
|
2019-07-09 13:17:19 +00:00
|
|
|
meta = with lib; {
|
2017-03-22 01:13:39 +00:00
|
|
|
description = "ELF utils that can check files for security relevant properties";
|
|
|
|
longDescription = ''
|
|
|
|
A suite of ELF tools to aid auditing systems. Contains
|
|
|
|
various ELF related utils for ELF32, ELF64 binaries useful
|
|
|
|
for displaying PaX and security info on a large groups of
|
|
|
|
binary files.
|
|
|
|
'';
|
2019-07-09 13:17:19 +00:00
|
|
|
homepage = "https://wiki.gentoo.org/wiki/Hardened/PaX_Utilities";
|
2021-09-05 09:13:58 +00:00
|
|
|
license = licenses.gpl2Only;
|
2017-03-22 01:13:39 +00:00
|
|
|
platforms = platforms.unix;
|
2016-11-20 21:28:46 +00:00
|
|
|
maintainers = with maintainers; [ thoughtpolice joachifm ];
|
2014-02-17 14:24:43 +00:00
|
|
|
};
|
|
|
|
}
|