2010-09-27 13:49:13 +00:00
|
|
|
{stdenv, fetchurl, attr, perl}:
|
2006-12-22 19:22:57 +00:00
|
|
|
|
2007-05-16 14:54:28 +00:00
|
|
|
assert stdenv.isLinux;
|
|
|
|
|
2010-09-27 13:49:13 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libcap-${version}";
|
|
|
|
version = "2.19";
|
2008-02-29 09:42:12 +00:00
|
|
|
|
2006-12-22 19:22:57 +00:00
|
|
|
src = fetchurl {
|
2010-09-27 13:49:13 +00:00
|
|
|
url = "mirror://kernel/linux/libs/security/linux-privs/kernel-2.6/${name}.tar.gz";
|
2010-09-03 12:11:33 +00:00
|
|
|
sha256 = "0fdsz9j741npvh222f8p1y6l516z9liibiwdpdr3a4zg53m0pw45";
|
2006-12-22 19:22:57 +00:00
|
|
|
};
|
|
|
|
|
2010-09-03 12:11:33 +00:00
|
|
|
buildNativeInputs = [perl];
|
2010-09-27 13:49:13 +00:00
|
|
|
propagatedBuildInputs = [attr];
|
2006-12-22 19:22:57 +00:00
|
|
|
|
2010-09-27 13:49:13 +00:00
|
|
|
preConfigure = "cd libcap";
|
|
|
|
|
|
|
|
makeFlags = "lib=lib prefix=$(out)";
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
postinst = n : ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/share/doc/${n}
|
2010-09-27 13:49:13 +00:00
|
|
|
cp ../License $out/share/doc/${n}/License
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
postInstall = passthru.postinst name;
|
2006-12-22 19:22:57 +00:00
|
|
|
}
|