2013-05-17 09:19:02 +01:00
|
|
|
{stdenv, fetchurl, openldap, perl}:
|
2018-08-17 22:58:56 +01:00
|
|
|
|
2007-01-15 16:42:04 +00:00
|
|
|
stdenv.mkDerivation {
|
2013-05-17 09:19:02 +01:00
|
|
|
name = "nss_ldap-265";
|
2018-08-17 22:58:56 +01:00
|
|
|
|
2007-01-15 16:42:04 +00:00
|
|
|
src = fetchurl {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "http://www.padl.com/download/nss_ldap-265.tar.gz";
|
2013-05-17 09:19:02 +01:00
|
|
|
sha256 = "1a16q9p97d2blrj0h6vl1xr7dg7i4s8x8namipr79mshby84vdbp";
|
2007-01-15 16:42:04 +00:00
|
|
|
};
|
|
|
|
|
2013-05-17 09:19:02 +01:00
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs ./vers_string
|
|
|
|
sed -i s,vers_string,./vers_string, Makefile*
|
2018-08-24 21:50:31 +01:00
|
|
|
substituteInPlace vers_string --replace "cvslib.pl" "./cvslib.pl"
|
2013-05-17 09:19:02 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
patches = [ ./crashes.patch ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patch -p0 < ${./nss_ldap-265-glibc-2.16.patch}
|
|
|
|
'';
|
|
|
|
|
2008-05-20 10:19:17 +01:00
|
|
|
preInstall = ''
|
2008-03-24 16:00:22 +00:00
|
|
|
installFlagsArray=(INST_UID=$(id -u) INST_GID=$(id -g) LIBC_VERS=2.5 NSS_VERS=2 NSS_LDAP_PATH_CONF=$out/etc/ldap.conf)
|
2008-05-20 10:19:17 +01:00
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace '/usr$(libdir)' $TMPDIR \
|
|
|
|
--replace 'install-data-local:' 'install-data-local-disabled:'
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/etc
|
2008-05-20 10:19:17 +01:00
|
|
|
'';
|
2007-01-15 16:42:04 +00:00
|
|
|
|
2013-05-17 09:19:02 +01:00
|
|
|
buildInputs = [ openldap perl ];
|
2016-08-02 17:06:29 +01:00
|
|
|
|
2018-08-17 22:58:56 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "LDAP module for the Solaris Nameservice Switch (NSS)";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
2016-08-02 17:06:29 +01:00
|
|
|
};
|
2007-01-15 16:42:04 +00:00
|
|
|
}
|