2018-07-22 03:03:24 +01:00
|
|
|
{stdenv, fetchurl, perl, perlldap, makeWrapper, CryptSmbHash, DigestSHA1}:
|
2011-12-27 21:35:50 +00:00
|
|
|
|
|
|
|
let
|
2016-07-13 01:38:44 +01:00
|
|
|
version = "0.9.11";
|
2011-12-27 21:35:50 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "smbldap-tools-${version}";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.gna.org/smbldap-tools/sources/${version}/smbldap-tools-${version}.tar.gz";
|
2016-07-13 01:38:44 +01:00
|
|
|
sha256 = "1xcxmpz74r82vjp731axyac3cyksfiarz9jk5g5m2bzfdixkq9mz";
|
2011-12-27 21:35:50 +00:00
|
|
|
};
|
|
|
|
|
2018-07-22 03:03:24 +01:00
|
|
|
buildInputs = [ perl perlldap makeWrapper CryptSmbHash DigestSHA1 ];
|
2011-12-27 21:35:50 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export configureFlags="$configureFlags --with-perl-libdir=$out/lib/perl5/site_perl"
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
for i in $out/sbin/*; do
|
|
|
|
wrapProgram $i \
|
|
|
|
--prefix PERL5LIB : $PERL5LIB:$out/lib/perl5/site_perl
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://gna.org/projects/smbldap-tools/;
|
|
|
|
description = "SAMBA LDAP tools";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2011-12-27 21:35:50 +00:00
|
|
|
};
|
|
|
|
}
|