2013-11-28 09:01:12 +01:00
|
|
|
{ stdenv, fetchurl, gnumake, file }:
|
2010-01-25 11:34:47 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-05-10 07:33:24 +02:00
|
|
|
name = "keyutils-1.5.9";
|
2014-06-19 06:19:00 +02:00
|
|
|
|
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";
|
2014-05-10 07:33:24 +02:00
|
|
|
sha256 = "1bl3w03ygxhc0hz69klfdlwqn33jvzxl1zfl2jmnb2v85iawb8jd";
|
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 = ''
|
2014-05-10 07:33:24 +02:00
|
|
|
sed -i -e "s, /usr/bin/make, ${gnumake}/bin/make," \
|
|
|
|
-e "s, /usr, ," \
|
|
|
|
-e "s,\$(LNS) \$(LIBDIR)/\$(SONAME),\$(LNS) \$(SONAME)," \
|
2010-01-25 11:34:47 +01:00
|
|
|
Makefile
|
|
|
|
'';
|
2014-05-10 07:33:24 +02:00
|
|
|
|
|
|
|
installPhase = "make install DESTDIR=$out";
|
2014-06-19 06:19:00 +02:00
|
|
|
|
2014-05-10 07:33:24 +02:00
|
|
|
meta = with stdenv.lib; {
|
2010-01-25 11:34:47 +01:00
|
|
|
homepage = http://people.redhat.com/dhowells/keyutils/;
|
|
|
|
description = "Tools used to control the Linux kernel key management system";
|
2014-05-10 07:33:24 +02:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
2010-01-25 11:34:47 +01:00
|
|
|
};
|
|
|
|
}
|