forked from mirrors/nixpkgs
libcap: Update to 2.22
Systemd requires the recent CAP_SYSLOG capability.
This commit is contained in:
parent
b5ff5d0371
commit
28a76a96be
|
@ -1,18 +1,18 @@
|
||||||
{stdenv, fetchurl, attr, perl}:
|
{ stdenv, fetchurl, attr, perl }:
|
||||||
|
|
||||||
assert stdenv.isLinux;
|
assert stdenv.isLinux;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "libcap-${version}";
|
name = "libcap-${version}";
|
||||||
version = "2.19";
|
version = "2.22";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://kernel/linux/libs/security/linux-privs/kernel-2.6/${name}.tar.gz";
|
url = "mirror://gentoo/distfiles/${name}.tar.bz2";
|
||||||
sha256 = "0fdsz9j741npvh222f8p1y6l516z9liibiwdpdr3a4zg53m0pw45";
|
sha256 = "03q50j6bg65cc501q87qh328ncav1i8qw2bjig99vxmmfx4bvsvk";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildNativeInputs = [perl];
|
buildNativeInputs = [ perl ];
|
||||||
propagatedBuildInputs = [attr];
|
propagatedBuildInputs = [ attr ];
|
||||||
|
|
||||||
preConfigure = "cd libcap";
|
preConfigure = "cd libcap";
|
||||||
|
|
||||||
|
@ -26,4 +26,9 @@ stdenv.mkDerivation rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
postInstall = passthru.postinst name;
|
postInstall = passthru.postinst name;
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Library for working with POSIX capabilities";
|
||||||
|
platforms = stdenv.lib.platforms.linux;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
assert stdenv.isLinux;
|
assert stdenv.isLinux;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "cap_pam.so-${libcap.version}";
|
name = "libcap-pam-${libcap.version}";
|
||||||
|
|
||||||
inherit (libcap) src;
|
inherit (libcap) src;
|
||||||
|
|
||||||
|
|
|
@ -11,5 +11,7 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
preConfigure = "cd progs";
|
preConfigure = "cd progs";
|
||||||
|
|
||||||
|
installFlags = "RAISE_SETFCAP=no";
|
||||||
|
|
||||||
postInstall = libcap.postinst name;
|
postInstall = libcap.postinst name;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue