/[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 233822 - (show annotations) (download)
Sat Apr 28 02:21:52 2012 UTC (11 years, 11 months ago) by tmb
File size: 1630 byte(s)
Require rpm-helper >= 0.24.8-1 for systemd support
1 Name: nss-pam-ldapd
2 Version: 0.8.6
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 Source2: nslcd.init
10 Source3: nslcd.service
11 Source4: nslcd.tmpfiles
12 Requires(post): rpm-helper >= 0.24.8-1
13 Requires(preun): rpm-helper >= 0.24.8-1
14 BuildRequires: openldap-devel
15 BuildRequires: krb5-devel
16 BuildRequires: pam-devel
17
18 %description
19 The nss-ldapd daemon, nslcd, uses a directory server to look up name
20 service information (users, groups, etc.) on behalf of a lightweight
21 nsswitch module.
22
23 %prep
24 %setup -q
25
26 %build
27 %configure2_5x --libdir=/%{_lib} --with-pam-seclib-dir=/%{_lib}/security
28 %make
29
30 %install
31 rm -rf %{buildroot}
32 %makeinstall_std
33
34 install -D -m 755 %{SOURCE2} %{buildroot}%{_initrddir}/nslcd
35 install -D -m 644 %{SOURCE3} %{buildroot}%{_unitdir}/nslcd.service
36 install -D -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/tmpfiles.d/nslcd.conf
37
38 cat >> %{buildroot}%{_sysconfdir}/nss-ldapd.conf << EOF
39 uid nslcd
40 gid ldap
41 EOF
42
43 install -d -m 755 %{buildroot}%{_localstatedir}/run/nslcd
44
45 %pre
46 %_pre_useradd nslcd / /bin/false
47
48 %post
49 %_post_service nslcd
50
51 %preun
52 %_preun_service nslcd
53
54 %files
55 %doc AUTHORS ChangeLog COPYING HACKING NEWS README TODO
56 %{_sbindir}/*
57 /%{_lib}/*.so.*
58 /%{_lib}/security/*.so
59 %{_mandir}/*/*
60 %config(noreplace) %{_sysconfdir}/nss-ldapd.conf
61 %config(noreplace) %{_sysconfdir}/nslcd.conf
62 %config(noreplace) %{_sysconfdir}/tmpfiles.d/nslcd.conf
63 %{_initrddir}/nslcd
64 %{_unitdir}/nslcd.service
65 %attr(-,nslcd,root) %{_localstatedir}/run/nslcd

  ViewVC Help
Powered by ViewVC 1.1.30