/[packages]/cauldron/nss-pam-ldapd/current/SPECS/nss-pam-ldapd.spec
ViewVC logotype

Contents of /cauldron/nss-pam-ldapd/current/SPECS/nss-pam-ldapd.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 307125 - (show annotations) (download)
Tue Oct 16 11:18:12 2012 UTC (11 years, 6 months ago) by guillomovitch
File size: 1465 byte(s)
SILENT: force commit
1 Name: nss-pam-ldapd
2 Version: 0.8.11
3 Release: %mkrel 1
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 cat >> %{buildroot}%{_sysconfdir}/nss-ldapd.conf << EOF
40 uid nslcd
41 gid ldap
42 EOF
43
44 %pre
45 %_pre_useradd nslcd / /bin/false
46
47 %post
48 %_post_service nslcd
49
50 %preun
51 %_preun_service nslcd
52
53 %files
54 %doc AUTHORS ChangeLog COPYING HACKING NEWS README TODO
55 %{_sbindir}/*
56 /%{_lib}/*.so.*
57 /%{_lib}/security/*.so
58 %{_mandir}/*/*
59 %config(noreplace) %{_sysconfdir}/nss-ldapd.conf
60 %config(noreplace) %{_sysconfdir}/nslcd.conf
61 %{_prefix}/lib/tmpfiles.d/nslcd.conf
62 %{_unitdir}/nslcd.service
63

  ViewVC Help
Powered by ViewVC 1.1.30