From 51bf1ae795e8cdc32b4631d428d497efe1776474 Mon Sep 17 00:00:00 2001 From: Rickard Nilsson Date: Mon, 22 Apr 2013 16:04:41 +0200 Subject: [PATCH] munge 0.5.10: New package, a credentials handler for clusters --- pkgs/tools/security/munge/default.nix | 30 +++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/tools/security/munge/default.nix diff --git a/pkgs/tools/security/munge/default.nix b/pkgs/tools/security/munge/default.nix new file mode 100644 index 000000000000..2b6cd2243711 --- /dev/null +++ b/pkgs/tools/security/munge/default.nix @@ -0,0 +1,30 @@ +{ stdenv, fetchurl, gnused, perl, libgcrypt, zlib, bzip2 }: + +stdenv.mkDerivation rec { + name = "munge-0.5.10"; + + src = fetchurl { + url = "http://munge.googlecode.com/files/${name}.tar.bz2"; + sha256 = "1imbmpd70vkcpca8d9yd9ajkhf6ik057nr3jb1app1wm51f15q00"; + }; + + buildInputs = [ gnused perl libgcrypt zlib bzip2 ]; + + preConfigure = '' + # Remove the install-data stuff, since it tries to write to /var + sed -i '434,465d' src/etc/Makefile.in + ''; + + 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8e0e375f1dac..d34bb6da7e24 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1213,6 +1213,8 @@ let mtutils = callPackage ../tools/text/multitran/mtutils { }; }); + munge = callPackage ../tools/security/munge { }; + muscleframework = callPackage ../tools/security/muscleframework { }; muscletool = callPackage ../tools/security/muscletool { };