1 |
Name: nss-pam-ldapd |
Name: nss-pam-ldapd |
2 |
Version: 0.8.6 |
Version: 0.8.6 |
3 |
Release: %mkrel 1 |
Release: %mkrel 2 |
4 |
Summary: An nsswitch module which uses directory servers |
Summary: An nsswitch module which uses directory servers |
5 |
Group: System/Libraries |
Group: System/Libraries |
6 |
License: LGPLv2+ |
License: LGPLv2+ |
7 |
URL: http://arthurdejong.org/nss-ldapd/ |
URL: http://arthurdejong.org/nss-ldapd/ |
8 |
Source0: http://arthurdejong.org/nss-ldapd/%{name}-%{version}.tar.gz |
Source0: http://arthurdejong.org/nss-ldapd/%{name}-%{version}.tar.gz |
9 |
Source2: nslcd.init |
Source2: nslcd.init |
10 |
|
Source3: nslcd.service |
11 |
|
Source4: nslcd.tmpfiles |
12 |
BuildRequires: openldap-devel |
BuildRequires: openldap-devel |
13 |
BuildRequires: krb5-devel |
BuildRequires: krb5-devel |
14 |
BuildRequires: pam-devel |
BuildRequires: pam-devel |
29 |
rm -rf %{buildroot} |
rm -rf %{buildroot} |
30 |
%makeinstall_std |
%makeinstall_std |
31 |
|
|
32 |
install -d -m 755 %{buildroot}%{_initrddir} |
install -D -m 755 %{SOURCE2} %{buildroot}%{_initrddir}/nslcd |
33 |
install -m 755 %{SOURCE2} %{buildroot}%{_initrddir}/nslcd |
install -D -m 644 %{SOURCE3} %{buildroot}%{_unitdir}/nslcd.service |
34 |
|
install -D -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/tmpfiles.d/nslcd.conf |
35 |
|
|
36 |
cat >> %{buildroot}%{_sysconfdir}/nss-ldapd.conf << EOF |
cat >> %{buildroot}%{_sysconfdir}/nss-ldapd.conf << EOF |
37 |
uid nslcd |
uid nslcd |
57 |
%{_mandir}/*/* |
%{_mandir}/*/* |
58 |
%config(noreplace) %{_sysconfdir}/nss-ldapd.conf |
%config(noreplace) %{_sysconfdir}/nss-ldapd.conf |
59 |
%config(noreplace) %{_sysconfdir}/nslcd.conf |
%config(noreplace) %{_sysconfdir}/nslcd.conf |
60 |
|
%config(noreplace) %{_sysconfdir}/tmpfiles.d/nslcd.conf |
61 |
%{_initrddir}/nslcd |
%{_initrddir}/nslcd |
62 |
|
%{_unitdir}/nslcd.service |
63 |
%attr(-,nslcd,root) %{_localstatedir}/run/nslcd |
%attr(-,nslcd,root) %{_localstatedir}/run/nslcd |
64 |
|
|