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;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "libcap-${version}";
|
||||
version = "2.19";
|
||||
version = "2.22";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://kernel/linux/libs/security/linux-privs/kernel-2.6/${name}.tar.gz";
|
||||
sha256 = "0fdsz9j741npvh222f8p1y6l516z9liibiwdpdr3a4zg53m0pw45";
|
||||
url = "mirror://gentoo/distfiles/${name}.tar.bz2";
|
||||
sha256 = "03q50j6bg65cc501q87qh328ncav1i8qw2bjig99vxmmfx4bvsvk";
|
||||
};
|
||||
|
||||
buildNativeInputs = [perl];
|
||||
propagatedBuildInputs = [attr];
|
||||
buildNativeInputs = [ perl ];
|
||||
propagatedBuildInputs = [ attr ];
|
||||
|
||||
preConfigure = "cd libcap";
|
||||
|
||||
|
@ -26,4 +26,9 @@ stdenv.mkDerivation rec {
|
|||
};
|
||||
|
||||
postInstall = passthru.postinst name;
|
||||
|
||||
meta = {
|
||||
description = "Library for working with POSIX capabilities";
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
assert stdenv.isLinux;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "cap_pam.so-${libcap.version}";
|
||||
name = "libcap-pam-${libcap.version}";
|
||||
|
||||
inherit (libcap) src;
|
||||
|
||||
|
|
|
@ -11,5 +11,7 @@ stdenv.mkDerivation rec {
|
|||
|
||||
preConfigure = "cd progs";
|
||||
|
||||
installFlags = "RAISE_SETFCAP=no";
|
||||
|
||||
postInstall = libcap.postinst name;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue