]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blobdiff - nss_ldap/nss_ldap.nm
gobject-introspection: Update to 1.39.3.
[people/ms/ipfire-3.x.git] / nss_ldap / nss_ldap.nm
index b5293ab93a35679ac1ff5208a282de375633eb63..f574f46e66f975cc33362086cbf9ed37693375a5 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = nss_ldap
 version    = 265
-release    = 2
+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,24 +74,32 @@ build
                # Remove awkward directory
                rm -rvf %{BUILDROOT}/usr/usr
 
-               mv -v %{BUILDROOT}/lib/* %{BUILDROOT}/usr/lib
-               rm -rvf %{BUILDROOT}/lib
-               ln -svf libnss_ldap-%{version}.so %{BUILDROOT}/usr/lib/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
 
                cd %{DIR_APP} && sed 's|dc=padl|dc=example|g' ldap.conf > \
                        %{BUILDROOT}/etc/nss_ldap.conf
                touch %{BUILDROOT}/etc/nss_ldap.secret
-
-               ln -svf libnss_ldap.so.2 %{BUILDROOT}/usr/lib/libnss_ldap.so
        end
 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
+
+       package %{name}-debuginfo
+               template DEBUGINFO
+       end
 end