Name: nss-pam-ldapd Version: 0.8.9 Release: %mkrel 1 Summary: An nsswitch module which uses directory servers Group: System/Libraries License: LGPLv2+ URL: http://arthurdejong.org/nss-ldapd/ Source0: http://arthurdejong.org/nss-ldapd/%{name}-%{version}.tar.gz Source3: nslcd.service Source4: nslcd.tmpfiles Requires(post): rpm-helper >= 0.24.8-1 Requires(preun): rpm-helper >= 0.24.8-1 BuildRequires: openldap-devel BuildRequires: krb5-devel BuildRequires: pam-devel %description The nss-ldapd daemon, nslcd, uses a directory server to look up name service information (users, groups, etc.) on behalf of a lightweight nsswitch module. %prep %setup -q %build %configure2_5x \ --libdir=/%{_lib} \ --with-pam-seclib-dir=/%{_lib}/security \ --with-nslcd-pidfile=/run/nslcd/nslcd.pid %make %install rm -rf %{buildroot} %makeinstall_std install -D -m 644 %{SOURCE3} %{buildroot}%{_unitdir}/nslcd.service install -D -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/tmpfiles.d/nslcd.conf cat >> %{buildroot}%{_sysconfdir}/nss-ldapd.conf << EOF uid nslcd gid ldap EOF install -d -m 755 %{buildroot}%{_localstatedir}/run/nslcd %pre %_pre_useradd nslcd / /bin/false %post %_post_service nslcd %preun %_preun_service nslcd %files %doc AUTHORS ChangeLog COPYING HACKING NEWS README TODO %{_sbindir}/* /%{_lib}/*.so.* /%{_lib}/security/*.so %{_mandir}/*/* %config(noreplace) %{_sysconfdir}/nss-ldapd.conf %config(noreplace) %{_sysconfdir}/nslcd.conf %config(noreplace) %{_sysconfdir}/tmpfiles.d/nslcd.conf %{_unitdir}/nslcd.service %attr(-,nslcd,root) %{_localstatedir}/run/nslcd