2022-09-30 02:57:53 +03:00
|
|
|
{ lib, stdenv, fetchurl, gettext, libsepol, libselinux, libsemanage, libxcrypt }:
|
2011-03-27 08:46:19 +04:00
|
|
|
|
2015-08-01 03:00:57 +03:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 15:41:18 +03:00
|
|
|
pname = "policycoreutils";
|
2024-02-29 03:34:56 +03:00
|
|
|
version = "3.6";
|
2021-11-12 12:20:45 +03:00
|
|
|
inherit (libsepol) se_url;
|
2011-03-27 08:46:19 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-11-12 12:20:45 +03:00
|
|
|
url = "${se_url}/${version}/policycoreutils-${version}.tar.gz";
|
2024-02-29 03:34:56 +03:00
|
|
|
hash = "sha256-p2rEMepAo1qDFkzpAHkJwcbBL9EFZif2IhROSnBcCiw=";
|
2011-03-27 08:46:19 +04:00
|
|
|
};
|
|
|
|
|
2015-08-01 03:00:57 +03:00
|
|
|
postPatch = ''
|
|
|
|
# Fix install references
|
2018-03-14 22:06:58 +03:00
|
|
|
substituteInPlace po/Makefile \
|
|
|
|
--replace /usr/bin/install install --replace /usr/share /share
|
|
|
|
substituteInPlace newrole/Makefile --replace /usr/share /share
|
2013-02-24 16:25:53 +04:00
|
|
|
'';
|
2011-03-27 08:46:19 +04:00
|
|
|
|
2018-03-14 22:06:58 +03:00
|
|
|
nativeBuildInputs = [ gettext ];
|
2022-09-30 02:57:53 +03:00
|
|
|
buildInputs = [ libsepol libselinux libsemanage libxcrypt ];
|
2011-03-28 11:38:16 +04:00
|
|
|
|
2019-08-17 20:09:12 +03:00
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=$(out)"
|
2021-11-12 12:20:45 +03:00
|
|
|
"SBINDIR=$(out)/bin"
|
2019-08-17 20:09:12 +03:00
|
|
|
"ETCDIR=$(out)/etc"
|
|
|
|
"BASHCOMPLETIONDIR=$out/share/bash-completion/completions"
|
|
|
|
"LOCALEDIR=$(out)/share/locale"
|
|
|
|
"MAN5DIR=$(out)/share/man/man5"
|
|
|
|
];
|
2013-02-24 16:25:53 +04:00
|
|
|
|
2021-01-11 10:54:33 +03:00
|
|
|
meta = with lib; {
|
2011-03-27 08:46:19 +04:00
|
|
|
description = "SELinux policy core utilities";
|
|
|
|
license = licenses.gpl2;
|
2013-02-24 16:25:53 +04:00
|
|
|
inherit (libsepol.meta) homepage platforms maintainers;
|
2011-03-27 08:46:19 +04:00
|
|
|
};
|
2013-02-24 16:25:53 +04:00
|
|
|
}
|