2013-05-17 09:19:02 +01:00
|
|
|
{stdenv, fetchurl, openldap, perl}:
|
2007-01-15 16:42:04 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2013-05-17 09:19:02 +01:00
|
|
|
name = "nss_ldap-265";
|
2007-01-15 16:42:04 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-05-17 09:19:02 +01:00
|
|
|
url = http://www.padl.com/download/nss_ldap-265.tar.gz;
|
|
|
|
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*
|
|
|
|
'';
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
meta = {
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
2007-01-15 16:42:04 +00:00
|
|
|
}
|