1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
11 url = http://www.padl.com/
13 summary = NSS library and PAM module for LDAP.
16 This package includes two LDAP access clients: nss_ldap and
17 pam_ldap. Nss_ldap is a set of C library extensions that allow
18 X.500 and LDAP directory servers to be used as a primary source
19 of aliases, ethers, groups, hosts, networks, protocol, users,
20 RPCs, services, and shadow passwords.
26 nss_ldap-265-depth.patch \
27 nss_ldap-254-soname.patch \
28 nss_ldap-257-mozldap.patch \
29 nss_ldap-259-res_init.patch \
30 nss_ldap-264-checkcase.patch \
31 nss_ldap-265-ent_internal.patch \
32 nss_ldap-264-cloexec.patch \
33 nss_ldap-265-local_users.patch \
34 nss_ldap-265-erange.patch \
35 nss_ldap-265-initgroups-minimum_uid.patch \
36 nss_ldap-265-fix-uninit.patch \
37 nss_ldap-265-padl-bug-418.patch \
38 nss_ldap-265-setnetgrent.patch
48 configure_options += \
51 --with-ldap-lib=openldap \
53 --with-ldap-conf-file=/etc/nss_ldap.conf \
54 --with-ldap-secret-file=/etc/nss_ldap.secret
57 sed -i -e 's,^ldap.conf$$,nss_ldap.conf,g' *.5
58 sed -i -e 's,^/etc/ldap\.,/etc/nss_ldap.,g' *.5
59 sed -i -e 's,ldap.secret,nss_ldap.secret,g' *.5
60 sed -i -e 's,(ldap.conf),(nss_ldap.conf),g' *.5
62 # Fix call for vers_string.
63 sed -e "s/vers_string/.\/&/g" -i Makefile*
68 make_build_targets += \
69 LDFLAGS="-Wl,-z,nodelete"
71 make_install_targets += \
75 # Remove awkward directory
76 rm -rvf %{BUILDROOT}/usr/usr
78 mv -v %{BUILDROOT}/%{lib}/* %{BUILDROOT}%{libdir}
79 rm -rvf %{BUILDROOT}/%{lib}
80 ln -svf libnss_ldap-%{version}.so %{BUILDROOT}%{libdir}/libnss_ldap.so
81 ln -svf libnss_ldap.so.2 %{BUILDROOT}%{libdir}/libnss_ldap.so
83 rm -vf %{BUILDROOT}/etc/nsswitch.ldap
85 cd %{DIR_APP} && sed 's|dc=padl|dc=example|g' ldap.conf > \
86 %{BUILDROOT}/etc/nss_ldap.conf
87 touch %{BUILDROOT}/etc/nss_ldap.secret
94 /%{lib}/security/pam_ldap.so
98 package %{name}-debuginfo