]> git.pld-linux.org Git - packages/nss_ldapd.git/blame - nss_ldapd.spec
- up to 0.8.10
[packages/nss_ldapd.git] / nss_ldapd.spec
CommitLineData
374f9857 1# TODO:
2facad36 2# - consider name change
374f9857 3#
3faf2f22 4Summary: LDAP Name Service Switch Module
5Summary(es.UTF-8): Biblioteca NSS para LDAP
6Summary(pl.UTF-8): Moduł NSS LDAP
7Summary(pt_BR.UTF-8): Biblioteca NSS para LDAP
8Name: nss_ldapd
77c7d561 9Version: 0.8.10
5e229d05 10Release: 1
3faf2f22 11License: LGPL
12Group: Base
b722e0b5 13Source0: http://arthurdejong.org/nss-pam-ldapd/nss-pam-ldapd-%{version}.tar.gz
77c7d561 14# Source0-md5: 8f76fefe50888bee09f7732102376342
ae3dfad9 15Source1: nslcd.init
2b107270 16Source2: %{name}.tmpfiles
2facad36 17Patch0: %{name}-no-root.patch
b722e0b5 18URL: http://arthurdejong.org/nss-pam-ldapd/
3faf2f22 19BuildRequires: autoconf
20BuildRequires: automake
21BuildRequires: cyrus-sasl-devel
2facad36 22BuildRequires: heimdal-devel
865918ba 23BuildRequires: openldap-devel >= 2.3.0
ed912038 24BuildRequires: pam-devel
ae3dfad9 25Requires(post,preun): /sbin/chkconfig
422ad854 26Requires: nslcd
ae3dfad9 27Requires: rc-scripts >= 0.2.0
28Conflicts: nss_ldap
3faf2f22 29BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
f3f19244
JR
31%define _libdir /%{_lib}
32
3faf2f22 33%description
34nss_ldapd is a C library extension (NSS module) and daemon which
35allows X.500 and LDAP directory servers to be used as a primary source
36of aliases, ethers, groups, hosts, networks, protocols, users, RPCs,
37services and shadow passwords (instead of or in addition to using flat
38files or NIS).
39
74d4b984 40%description -l pl.UTF-8
41Moduł serwisu nazw oraz osobny demon. Ten pakiet pozwala na
42korzystanie z serwerów X.500 i LDAP jako źródła aliasów, grup, hostów,
43sieci, protokołów, użytkowników, RPC, usług i haseł (zamiast lub
44oprócz zwykłych plików lub NIS).
45
46nss_ldapd jest forkiem projektu nss_ldap. Celem projektu jest
47naprawienie pewnych problemów z nss_ldap poprzez wydzielenie kodu LDAP
48do osobnego demona.
49
422ad854
JR
50%package nslcd
51Summary: NSS LDAPD name service daemon
52Summary(pl.UTF-8): Demon serwisu nazw NSS LDAPD
53Group: Base
54Provides: nslcd
55
56%description nslcd
57NSS LDAPD name service daemon.
58
59%description nslcd -l pl.UTF-8
60Demon serwisu nazw NSS LDAPD.
61
9616b853
JR
62%package pam
63Summary: NSS LDAPD Pluggable Authentication Module
64Summary(pl.UTF-8): Moduł PAM do uwierzytelniania z użyciem NSS LDAPD
65Group: Base
422ad854 66Requires: nslcd
9616b853
JR
67Conflicts: pam-pam_ldap
68
69%description pam
70This is pam_ldap, a pluggable authentication module that can be used
ed912038 71with linux-PAM. This module supports authentication, account
72management, password management and session management.
9616b853
JR
73
74%description pam -l pl.UTF-8
75To jest pam_ldap, wymienny moduł uwierzytelniania, który może być
76użyty z linux-PAM. Moduł ten wspiera autentykację, obsługę kont,
77zmianę haseł i obsługę sesji.
78
3faf2f22 79%prep
2facad36
JR
80%setup -q -n nss-pam-ldapd-%{version}
81%patch0 -p1
3faf2f22 82
83%build
3faf2f22 84%configure \
b889ffbb 85 --with-pam-seclib-dir=/%{_lib}/security \
3faf2f22 86 --with-ldap-lib=openldap
2facad36 87
3faf2f22 88%{__make}
89
90%install
91rm -rf $RPM_BUILD_ROOT
2b107270
JR
92install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/rc.d/init.d,/var/run/nslcd} \
93 $RPM_BUILD_ROOT/usr/lib/tmpfiles.d
3faf2f22 94
95%{__make} install \
96 DESTDIR=$RPM_BUILD_ROOT
97
ae3dfad9 98install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/nslcd
2b107270 99install %{SOURCE2} $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/%{name}.conf
ae3dfad9 100
3faf2f22 101%clean
102rm -rf $RPM_BUILD_ROOT
103
422ad854
JR
104%post -p /sbin/ldconfig
105%postun -p /sbin/ldconfig
106
107%pre nslcd
2facad36
JR
108%useradd -u 21 -d /usr/share/empty -s /bin/false -c "NSS LDAP Cache Daemon User" -g nobody nslcd
109
422ad854 110%post nslcd
ae3dfad9 111/sbin/chkconfig --add nslcd
112%service nslcd restart "NSS LDAP Cache Daemon"
113
422ad854 114%preun nslcd
ae3dfad9 115if [ "$1" = "0" ]; then
116 %service nslcd stop
117 /sbin/chkconfig --del nslcd
118fi
3faf2f22 119
422ad854 120%postun nslcd
2facad36
JR
121if [ "$1" = "0" ]; then
122 %userremove nslcd
123fi
124
422ad854 125%triggerpostun nslcd -- nss_ldapd < 0.7.0
2facad36
JR
126if [ -e %{_sysconfdir}/nss-ldapd.conf.rpmsave ]; then
127 mv -f %{_sysconfdir}/nslcd.conf{,rpmnew}
128 mv -f %{_sysconfdir}/nss-ldapd.conf.rpmsave %{_sysconfdir}/nslcd.conf
129fi
130
3faf2f22 131%files
132%defattr(644,root,root,755)
133%doc AUTHORS ChangeLog NEWS README
422ad854
JR
134%attr(755,root,root) %{_libdir}/*.so*
135
136%files nslcd
ed912038 137%defattr(644,root,root,755)
ae3dfad9 138%attr(754,root,root) /etc/rc.d/init.d/nslcd
2facad36 139%attr(640,nslcd,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nslcd.conf
3faf2f22 140%attr(755,root,root) %{_sbindir}/nslcd
422ad854
JR
141%{_mandir}/man5/nslcd.conf.5*
142%{_mandir}/man8/nslcd.8*
ae3dfad9 143%dir /var/run/nslcd
2b107270 144/usr/lib/tmpfiles.d/%{name}.conf
9616b853
JR
145
146%files pam
147%defattr(644,root,root,755)
148%attr(755,root,root) /%{_lib}/security/pam_ldap.so
422ad854 149%{_mandir}/man8/pam_ldap.8*
This page took 0.083332 seconds and 4 git commands to generate.