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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 256000 - (hide annotations) (download)
Tue Jun 5 21:34:57 2012 UTC (11 years, 10 months ago) by guillomovitch
File size: 1589 byte(s)
- new version
- drop sysinit support
- use /run instead of /var/run for pid files

1 guillomovitch 203254 Name: nss-pam-ldapd
2 guillomovitch 256000 Version: 0.8.9
3     Release: %mkrel 1
4 guillomovitch 203254 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 guillomovitch 231350 Source3: nslcd.service
10     Source4: nslcd.tmpfiles
11 tmb 233822 Requires(post): rpm-helper >= 0.24.8-1
12     Requires(preun): rpm-helper >= 0.24.8-1
13 guillomovitch 203254 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 guillomovitch 256000 %configure2_5x \
27     --libdir=/%{_lib} \
28     --with-pam-seclib-dir=/%{_lib}/security \
29     --with-nslcd-pidfile=/run/nslcd/nslcd.pid
30 guillomovitch 203254 %make
31    
32     %install
33     rm -rf %{buildroot}
34     %makeinstall_std
35    
36 guillomovitch 231350 install -D -m 644 %{SOURCE3} %{buildroot}%{_unitdir}/nslcd.service
37     install -D -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/tmpfiles.d/nslcd.conf
38 guillomovitch 203254
39     cat >> %{buildroot}%{_sysconfdir}/nss-ldapd.conf << EOF
40     uid nslcd
41     gid ldap
42     EOF
43    
44     install -d -m 755 %{buildroot}%{_localstatedir}/run/nslcd
45    
46     %pre
47     %_pre_useradd nslcd / /bin/false
48    
49     %post
50     %_post_service nslcd
51    
52     %preun
53     %_preun_service nslcd
54    
55     %files
56     %doc AUTHORS ChangeLog COPYING HACKING NEWS README TODO
57     %{_sbindir}/*
58     /%{_lib}/*.so.*
59     /%{_lib}/security/*.so
60     %{_mandir}/*/*
61     %config(noreplace) %{_sysconfdir}/nss-ldapd.conf
62     %config(noreplace) %{_sysconfdir}/nslcd.conf
63 guillomovitch 231350 %config(noreplace) %{_sysconfdir}/tmpfiles.d/nslcd.conf
64     %{_unitdir}/nslcd.service
65 guillomovitch 203254 %attr(-,nslcd,root) %{_localstatedir}/run/nslcd

  ViewVC Help
Powered by ViewVC 1.1.30