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