2011-12-27 21:35:50 +00:00
|
|
|
{stdenv, fetchurl, perl, NetLDAP, makeWrapper, CryptSmbHash, DigestSHA1}:
|
|
|
|
|
|
|
|
let
|
2013-12-12 22:08:33 +00:00
|
|
|
version = "0.9.10";
|
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";
|
2013-12-12 22:08:33 +00:00
|
|
|
sha256 = "19hsvslfs61pk9nhyqdkd68gc95z26kpkmsj10b8zvzlhqmwdvy4";
|
2011-12-27 21:35:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ perl NetLDAP makeWrapper CryptSmbHash DigestSHA1 ];
|
|
|
|
|
|
|
|
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;
|
2015-10-12 12:11:12 +01:00
|
|
|
# pod2man: unable to format smbldap-config.cmd
|
|
|
|
broken = true;
|
2011-12-27 21:35:50 +00:00
|
|
|
};
|
|
|
|
}
|