2013-04-22 15:04:41 +01:00
|
|
|
{ stdenv, fetchurl, gnused, perl, libgcrypt, zlib, bzip2 }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-08-20 16:06:34 +01:00
|
|
|
name = "munge-0.5.11";
|
2013-04-22 15:04:41 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://munge.googlecode.com/files/${name}.tar.bz2";
|
2014-08-20 16:06:34 +01:00
|
|
|
sha256 = "19aijdrjij2g0xpqgl198jh131j94p4gvam047gsdc0wz0a5c1wf";
|
2013-04-22 15:04:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ gnused perl libgcrypt zlib bzip2 ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
# Remove the install-data stuff, since it tries to write to /var
|
2014-08-20 16:06:34 +01:00
|
|
|
sed -i '505,511d' src/etc/Makefile.in
|
2013-04-22 15:04:41 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--localstatedir=/var"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://code.google.com/p/munge/;
|
|
|
|
description = ''
|
|
|
|
An authentication service for creating and validating credentials
|
|
|
|
'';
|
|
|
|
maintainers = [ stdenv.lib.maintainers.rickynils ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|