]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
nss_ldap: Fix build on ARM.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 6 May 2012 23:13:54 +0000 (01:13 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 6 May 2012 23:13:54 +0000 (01:13 +0200)
The shared object links were not created in the right way
on ARM machines.

nss_ldap/nss_ldap.nm

index 0c7669b1d6d1e312703b0945f0ffd2333607d102..f574f46e66f975cc33362086cbf9ed37693375a5 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = nss_ldap
 version    = 265
-release    = 4
+release    = 5
 
 groups     = System/Base
 url        = http://www.padl.com/
@@ -20,7 +20,7 @@ description
        RPCs, services, and shadow passwords.
 end
 
-source_dl  =
+source_dl  = http://www.padl.com/download/
 
 patches = \
        nss_ldap-265-depth.patch \
@@ -74,8 +74,10 @@ build
                # Remove awkward directory
                rm -rvf %{BUILDROOT}/usr/usr
 
-               ln -svf libnss_ldap-%{version}.so %{BUILDROOT}%{libdir}/libnss_ldap.so
-               ln -svf libnss_ldap.so.2 %{BUILDROOT}%{libdir}/libnss_ldap.so
+               if [ -e "%{BUILDROOT}%{libdir}/libnss_ldap-%{version}.so" ]; then
+                       ln -svf libnss_ldap-%{version}.so %{BUILDROOT}%{libdir}/libnss_ldap.so.2
+                       ln -svf libnss_ldap.so.2 %{BUILDROOT}%{libdir}/libnss_ldap.so
+               fi
 
                rm -vf %{BUILDROOT}/etc/nsswitch.ldap