2010-04-24 23:02:42 +02:00
|
|
|
{ stdenv, fetchurl, pam, gnutls, libnscd }:
|
2010-04-24 23:02:37 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "pwdutils-3.2.6";
|
|
|
|
|
2006-12-09 00:53:07 +01:00
|
|
|
src = fetchurl {
|
2010-04-24 23:02:37 +02:00
|
|
|
url = "mirror://kernel/linux/utils/net/NIS/${name}.tar.bz2";
|
|
|
|
sha256 = "1pyawvv9x0hiachn1mb257s6hm92dh1ykczgp7ik8z6jl020z3n7";
|
2006-12-09 00:53:07 +01:00
|
|
|
};
|
|
|
|
|
2010-04-24 23:02:42 +02:00
|
|
|
buildInputs = [ pam gnutls libnscd ];
|
2006-12-09 00:53:07 +01:00
|
|
|
|
2010-04-26 11:30:53 +02:00
|
|
|
patches = [ ./sys-stat-h.patch ];
|
|
|
|
|
|
|
|
postPatch =
|
2010-04-24 23:02:37 +02:00
|
|
|
'' for i in src/tst-*
|
|
|
|
do
|
|
|
|
sed -i "$i" -e's|/bin/bash|/bin/sh|g'
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2010-04-27 12:46:41 +02:00
|
|
|
configureFlags = "--disable-ldap --enable-gnutls --exec-prefix=$(out)";
|
2010-04-24 23:02:37 +02:00
|
|
|
|
|
|
|
# FIXME: The test suite seems to make assumptions that don't hold in Nix
|
|
|
|
# chroots.
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Linux pwdutils, utilities to manage passwd information";
|
|
|
|
|
|
|
|
longDescription =
|
|
|
|
'' Pwdutils is a collection of utilities to manage the passwd
|
|
|
|
information stored in local files, NIS, NIS+ or LDAP and can replace
|
|
|
|
the shadow suite complete.
|
|
|
|
'';
|
|
|
|
|
|
|
|
license = "GPLv2";
|
|
|
|
|
2010-04-26 11:30:53 +02:00
|
|
|
maintainers = [ stdenv.lib.maintainers.ludo ];
|
2010-04-24 23:02:37 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
2006-12-09 00:53:07 +01:00
|
|
|
}
|