2013-05-17 10:19:02 +02:00
|
|
|
{stdenv, fetchurl, openldap, perl}:
|
2007-01-15 17:42:04 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2013-05-17 10:19:02 +02:00
|
|
|
name = "nss_ldap-265";
|
2007-01-15 17:42:04 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-05-17 10:19:02 +02:00
|
|
|
url = http://www.padl.com/download/nss_ldap-265.tar.gz;
|
|
|
|
sha256 = "1a16q9p97d2blrj0h6vl1xr7dg7i4s8x8namipr79mshby84vdbp";
|
2007-01-15 17:42:04 +01:00
|
|
|
};
|
|
|
|
|
2013-05-17 10:19:02 +02:00
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs ./vers_string
|
|
|
|
sed -i s,vers_string,./vers_string, Makefile*
|
|
|
|
'';
|
|
|
|
|
|
|
|
patches = [ ./crashes.patch ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patch -p0 < ${./nss_ldap-265-glibc-2.16.patch}
|
|
|
|
'';
|
|
|
|
|
2008-05-20 11:19:17 +02:00
|
|
|
preInstall = ''
|
2008-03-24 17:00:22 +01: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 11:19:17 +02:00
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace '/usr$(libdir)' $TMPDIR \
|
|
|
|
--replace 'install-data-local:' 'install-data-local-disabled:'
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/etc
|
2008-05-20 11:19:17 +02:00
|
|
|
'';
|
2007-01-15 17:42:04 +01:00
|
|
|
|
2013-05-17 10:19:02 +02:00
|
|
|
buildInputs = [ openldap perl ];
|
2016-08-02 18:06:29 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
2007-01-15 17:42:04 +01:00
|
|
|
}
|