2018-07-06 07:51:24 +01:00
|
|
|
{ stdenv, fetchurl, openldap }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "adtool";
|
2018-07-06 07:51:24 +01:00
|
|
|
version = "1.3.3";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "https://gp2x.org/adtool/${pname}-${version}.tar.gz";
|
2018-07-06 07:51:24 +01:00
|
|
|
sha256 = "1awmpjamrwivi69i0j2fyrziy9s096ckviqd9c4llc3990mfsn4n";
|
|
|
|
};
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--sysconfdir=/etc"
|
|
|
|
];
|
|
|
|
|
|
|
|
installFlags = [
|
|
|
|
"sysconfdir=$(out)/etc"
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [ openldap ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/doc/adtool
|
|
|
|
mv $out/etc/* $out/share/doc/adtool
|
|
|
|
rmdir $out/etc
|
|
|
|
'';
|
|
|
|
|
|
|
|
# It requires an LDAP server for tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Active Directory administration utility for Unix";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://gp2x.org/adtool";
|
2018-07-06 07:51:24 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
};
|
|
|
|
}
|