Author: aredridel Date: Mon Jan 19 02:56:47 2009 GMT Module: SPECS Tag: HEAD ---- Log message: - C:nss_ldap - doesn't R:openldap-nss-config
---- Files affected: SPECS: nss_ldapd.spec (1.1 -> 1.2) ---- Diffs: ================================================================ Index: SPECS/nss_ldapd.spec diff -u SPECS/nss_ldapd.spec:1.1 SPECS/nss_ldapd.spec:1.2 --- SPECS/nss_ldapd.spec:1.1 Mon Jan 19 01:48:13 2009 +++ SPECS/nss_ldapd.spec Mon Jan 19 03:56:41 2009 @@ -10,12 +10,15 @@ Group: Base Source0: http://ch.tudelft.nl/~arthur/nss-ldapd/nss-ldapd-%{version}.tar.gz # Source0-md5: 109257c0257b3119fa9a6a0fc1737f08 +Source1: nslcd.init URL: http://ch.tudelft.nl/~arthur/nss-ldapd/ BuildRequires: autoconf BuildRequires: automake BuildRequires: cyrus-sasl-devel BuildRequires: openldap-devel >= 2.4.6 -Requires: openldap-nss-config +Requires(post,preun): /sbin/chkconfig +Requires: rc-scripts >= 0.2.0 +Conflicts: nss_ldap BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _libdir /%{_lib} @@ -41,25 +44,37 @@ %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_libdir}} +install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_libdir},/etc/rc.d/init.d,/var/run/nslcd} %{__make} install \ DESTDIR=$RPM_BUILD_ROOT +install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/nslcd + %clean rm -rf $RPM_BUILD_ROOT -%post -p /sbin/ldconfig -%postun -p /sbin/ldconfig +%post +/sbin/ldconfig +/sbin/chkconfig --add nslcd +%service nslcd restart "NSS LDAP Cache Daemon" + +%postun +if [ "$1" = "0" ]; then + %service nslcd stop + /sbin/chkconfig --del nslcd +fi %files %defattr(644,root,root,755) %doc AUTHORS ChangeLog NEWS README +%attr(754,root,root) /etc/rc.d/init.d/nslcd +%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nss-ldapd.conf %attr(755,root,root) %{_libdir}/*.so* -%{_sysconfdir}/nss-ldapd.conf %attr(755,root,root) %{_sbindir}/nslcd %{_mandir}/man5/* %{_mandir}/man8/* +%dir /var/run/nslcd %define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) %changelog @@ -67,6 +82,10 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.2 2009/01/19 02:56:41 aredridel +- C:nss_ldap +- doesn't R:openldap-nss-config + Revision 1.1 2009/01/19 00:48:13 aredridel - added - NFY: needs init script and spec cleanups ================================================================ ---- CVS-web: http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/nss_ldapd.spec?r1=1.1&r2=1.2&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
