SELinux fixes and updates to 2012-09-24

This commit is contained in:
Vladimír Čunát
2013-02-24 13:25:53 +01:00
parent f6b28fad73
commit de70e3739d
10 changed files with 144 additions and 38 deletions
@@ -1,25 +1,39 @@
{ stdenv, fetchurl, libsepol, libselinux }:
{ stdenv, fetchurl, intltool, pcre, libcap_ng, libcgroup
, libsepol, libselinux, libsemanage
, python, sepolgen }:
stdenv.mkDerivation rec {
name = "policycoreutils-${version}";
version = "2.0.85";
version = "2.1.13";
inherit (libsepol) se_release se_url;
src = fetchurl {
url = http://userspace.selinuxproject.org/releases/20101221/devel/policycoreutils-2.0.85.tar.gz;
sha256 = "01q5ifacg24k9jdz85j9m17ps2l1p7abvh8pzy6qz55y68rycifb";
url = "${se_url}/${se_release}/policycoreutils-${version}.tar.gz";
sha256 = "1145nbpwndmhma08vvj1j75bjd8xhjal0vjpazlrw78iyc30y11l";
};
buildInputs = [ libsepol libselinux ];
patchPhase = ''
substituteInPlace po/Makefile --replace /usr/bin/install install
'';
NIX_LDFLAGS = "-lsepol";
buildInputs = [ intltool pcre libcap_ng libcgroup
libsepol libselinux libsemanage
python sepolgen # ToDo? these are optional
];
makeFlags = "LOCALEDIR=$(out)/share/locale";
preBuild = ''
mkdir -p "$out/lib" && cp -s "${libsepol}/lib/libsepol.a" "$out/lib"
'';
NIX_CFLAGS_COMPILE = "-fstack-protector-all";
NIX_LDFLAGS = "-lsepol -lpcre";
makeFlags = "PREFIX=$(out) DESTDIR=$(out) LOCALEDIR=$(out)/share/locale";
meta = with stdenv.lib; {
homepage = http://userspace.selinuxproject.org/;
description = "SELinux policy core utilities";
license = licenses.gpl2;
maintainers = [ maintainers.phreedom ];
platforms = platforms.linux;
inherit (libsepol.meta) homepage platforms maintainers;
};
}
}