]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blobdiff - nss_ldap/nss_ldap.nm
groff: Update to version 1.22.3
[people/ms/ipfire-3.x.git] / nss_ldap / nss_ldap.nm
index fa87ed0e114e6e20e25c67a3ee007145550bc9fe..f574f46e66f975cc33362086cbf9ed37693375a5 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = nss_ldap
 version    = 265
-release    = 3
+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 \
@@ -47,7 +47,6 @@ build
 
        configure_options += \
                --sysconfdir=/etc \
-               --libdir=/%{lib} \
                --with-ldap-lib=openldap \
                --enable-rfc2307bis \
                --with-ldap-conf-file=/etc/nss_ldap.conf \
@@ -75,10 +74,10 @@ build
                # Remove awkward directory
                rm -rvf %{BUILDROOT}/usr/usr
 
-               mv -v %{BUILDROOT}/%{lib}/* %{BUILDROOT}%{libdir}
-               rm -rvf %{BUILDROOT}/%{lib}
-               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
 
@@ -91,7 +90,12 @@ end
 packages
        package %{name}
                requires
-                       /%{lib}/security/pam_ldap.so
+                       %{libdir}/security/pam_ldap.so
+               end
+
+               configfiles
+                       %{sysconfdir}/nss_ldap.conf
+                       %{sysconfdir}/nss_ldap.secret
                end
        end