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

  ViewVC Help
Powered by ViewVC 1.1.30