diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2013-02-24 13:25:53 +0100 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2013-02-24 13:25:53 +0100 |
commit | de70e3739d2e69806ddfd47efa8b21aa1864b15e (patch) | |
tree | a36cce23a53c3a9fd9b7b4e2331572ecbfb2b76c /pkgs/os-specific/linux/policycoreutils | |
parent | f6b28fad730253d58a89776862cc12a000afbd20 (diff) | |
download | nixpkgs-de70e3739d2e69806ddfd47efa8b21aa1864b15e.tar nixpkgs-de70e3739d2e69806ddfd47efa8b21aa1864b15e.tar.gz nixpkgs-de70e3739d2e69806ddfd47efa8b21aa1864b15e.tar.bz2 nixpkgs-de70e3739d2e69806ddfd47efa8b21aa1864b15e.tar.lz nixpkgs-de70e3739d2e69806ddfd47efa8b21aa1864b15e.tar.xz nixpkgs-de70e3739d2e69806ddfd47efa8b21aa1864b15e.tar.zst nixpkgs-de70e3739d2e69806ddfd47efa8b21aa1864b15e.zip |
SELinux fixes and updates to 2012-09-24
Diffstat (limited to 'pkgs/os-specific/linux/policycoreutils')
-rw-r--r-- | pkgs/os-specific/linux/policycoreutils/default.nix | 36 |
1 files changed, 25 insertions, 11 deletions
diff --git a/pkgs/os-specific/linux/policycoreutils/default.nix b/pkgs/os-specific/linux/policycoreutils/default.nix index b75405b4272..e49525a42bf 100644 --- a/pkgs/os-specific/linux/policycoreutils/default.nix +++ b/pkgs/os-specific/linux/policycoreutils/default.nix @@ -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; }; -} \ No newline at end of file +} + |