2013-11-28 09:01:12 +01:00
|
|
|
{ stdenv, fetchurl, gnumake, file }:
|
2010-01-25 11:34:47 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-11-28 09:01:12 +01:00
|
|
|
name = "keyutils-1.5.8";
|
2010-01-25 11:34:47 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-11-28 09:01:12 +01:00
|
|
|
url = "http://people.redhat.com/dhowells/keyutils/${name}.tar.bz2";
|
|
|
|
sha256 = "17419fr7mph8wlhxpqb1bdrghz0db15bmjdgxg1anfgbf9ra6zbc";
|
2010-01-25 11:34:47 +01:00
|
|
|
};
|
|
|
|
|
2013-11-28 09:01:12 +01:00
|
|
|
buildInputs = [ file ];
|
|
|
|
|
2010-01-25 11:34:47 +01:00
|
|
|
patchPhase = ''
|
2013-11-28 09:01:12 +01:00
|
|
|
sed -i -e "s,/usr/bin/make,${gnumake}/bin/make," \
|
|
|
|
-e "s, /etc, $out/etc," \
|
2010-01-25 11:34:47 +01:00
|
|
|
-e "s, /bin, $out/bin," \
|
|
|
|
-e "s, /sbin, $out/sbin," \
|
|
|
|
-e "s, /lib, $out/lib," \
|
2013-11-28 09:01:12 +01:00
|
|
|
-e "s, /lib64, $out/lib64," \
|
2010-01-25 11:34:47 +01:00
|
|
|
-e "s,/usr,$out," \
|
|
|
|
Makefile
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://people.redhat.com/dhowells/keyutils/;
|
|
|
|
description = "Tools used to control the Linux kernel key management system";
|
|
|
|
license = "GPLv2+";
|
|
|
|
};
|
|
|
|
}
|