1 |
Name: nss-pam-ldapd |
2 |
Version: 0.8.12 |
3 |
Release: %mkrel 3 |
4 |
Summary: An nsswitch module which uses directory servers |
5 |
Group: System/Libraries |
6 |
License: LGPLv2+ |
7 |
URL: http://arthurdejong.org/nss-ldapd/ |
8 |
Source0: http://arthurdejong.org/nss-ldapd/%{name}-%{version}.tar.gz |
9 |
Source3: nslcd.service |
10 |
Source4: nslcd.tmpfiles |
11 |
Requires(post): rpm-helper >= 0.24.8-1 |
12 |
Requires(preun): rpm-helper >= 0.24.8-1 |
13 |
BuildRequires: openldap-devel |
14 |
BuildRequires: krb5-devel |
15 |
BuildRequires: pam-devel |
16 |
|
17 |
%description |
18 |
The nss-ldapd daemon, nslcd, uses a directory server to look up name |
19 |
service information (users, groups, etc.) on behalf of a lightweight |
20 |
nsswitch module. |
21 |
|
22 |
%prep |
23 |
%setup -q |
24 |
|
25 |
%build |
26 |
%configure2_5x \ |
27 |
--libdir=/%{_lib} \ |
28 |
--with-pam-seclib-dir=/%{_lib}/security \ |
29 |
--with-nslcd-pidfile=/run/nslcd/nslcd.pid |
30 |
%make |
31 |
|
32 |
%install |
33 |
rm -rf %{buildroot} |
34 |
%makeinstall_std |
35 |
|
36 |
install -D -m 644 %{SOURCE3} %{buildroot}%{_unitdir}/nslcd.service |
37 |
install -D -m 644 %{SOURCE4} %{buildroot}%{_prefix}/lib/tmpfiles.d/nslcd.conf |
38 |
|
39 |
%pre |
40 |
%_pre_useradd nslcd / /bin/false |
41 |
|
42 |
%post |
43 |
%_post_service nslcd |
44 |
|
45 |
%preun |
46 |
%_preun_service nslcd |
47 |
|
48 |
%files |
49 |
%doc AUTHORS ChangeLog COPYING HACKING NEWS README TODO |
50 |
%{_sbindir}/* |
51 |
/%{_lib}/*.so.* |
52 |
/%{_lib}/security/*.so |
53 |
%{_mandir}/*/* |
54 |
%config(noreplace) %{_sysconfdir}/nslcd.conf |
55 |
%{_prefix}/lib/tmpfiles.d/nslcd.conf |
56 |
%{_unitdir}/nslcd.service |