SPECS: openldap.spec - added overlay-pcache package - adapterized
zbyniu
zbyniu at pld-linux.org
Sun Jun 19 02:41:15 CEST 2005
Author: zbyniu Date: Sun Jun 19 00:41:15 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- added overlay-pcache package
- adapterized
---- Files affected:
SPECS:
openldap.spec (1.198 -> 1.199)
---- Diffs:
================================================================
Index: SPECS/openldap.spec
diff -u SPECS/openldap.spec:1.198 SPECS/openldap.spec:1.199
--- SPECS/openldap.spec:1.198 Sat Jun 18 23:59:22 2005
+++ SPECS/openldap.spec Sun Jun 19 02:41:10 2005
@@ -309,6 +309,16 @@
%description backend-sql -l pl
Backend SQL do slapd - serwera OpenLDAP.
+%package overlay-pcache
+Summary: Proxy cache overlay for OpenLDAP server
+Group: Networking/Daemons
+Requires(post,pre): /bin/ed
+Requires: %{name}-servers = %{version}-%{release}
+
+%description overlay-pcache
+The proxy cache overlay allows caching of LDAP search requests
+(queries) in a local database.
+
%package libs
Summary: LDAP shared libraries
Summary(pl): Biblioteki współdzielone LDAP
@@ -407,7 +417,7 @@
%{__libtoolize}
%{__aclocal}
%{__autoconf}
-CPPFLAGS="-I/usr/include/ncurses"
+CPPFLAGS="-I%{_includedir}/ncurses"
%configure \
--enable-syslog \
--enable-referrals \
@@ -440,6 +450,7 @@
--enable-dnssrv=mod \
--enable-hdb=mod \
--enable-ldap=mod \
+ --enable-proxycache=mod \
--enable-ldbm=mod \
--with-ldbm-api=berkeley \
--with-ldbm-type=%{?ldbm_type:%{ldbm_type}}%{!?ldbm_type:btree} \
@@ -733,13 +744,31 @@
fi
%endif
+%post overlay-pcache
+ed -s %{_sysconfdir}/openldap/slapd.conf << EOF || :
+,s/^#[[:blank:]]*moduleload[[:blank:]]\\+pcache.la[[:blank:]]*$/moduleload pcache.la/
+wq
+EOF
+if [ -f /var/lock/subsys/ldap ]; then
+ /etc/rc.d/init.d/ldap restart >&2
+fi
+
+%preun overlay-pcache
+ed -s %{_sysconfdir}/openldap/slapd.conf << EOF || :
+,s/^# moduleload pcache.la[[:blank:]]*$/# moduleload pcache.la/
+wq
+EOF
+if [ -f /var/lock/subsys/ldap ]; then
+ /etc/rc.d/init.d/ldap restart >&2 || :
+fi
+
%files
%defattr(644,root,root,755)
%doc ANNOUNCEMENT CHANGES COPYRIGHT README LICENSE
%doc doc/{drafts,rfc}
%dir %{_sysconfdir}/openldap
-%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/openldap/ldapserver
-%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/ldap.conf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/openldap/ldapserver
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ldap.conf
%attr(755,root,root) %{_bindir}/*
%dir %{_datadir}/openldap
%{_datadir}/openldap/ucdata
@@ -832,6 +861,11 @@
%{_mandir}/man5/slapd-sql.5*
%endif
+%files overlay-pcache
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/openldap/pcache*.so*
+%{_libdir}/openldap/pcache.la
+
%files libs
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/lib*.so.*.*.*
@@ -839,10 +873,10 @@
%files servers
%defattr(644,root,root,755)
%dir %{_sysconfdir}/openldap/schema
-%attr(640,root,slapd) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/openldap/slapd.conf
-%attr(640,root,slapd) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/openldap/slapd.access.conf
-%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/openldap/schema/*.schema
-%config(noreplace) %verify(not size mtime md5) /etc/sysconfig/ldap
+%attr(640,root,slapd) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/openldap/slapd.conf
+%attr(640,root,slapd) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/openldap/slapd.access.conf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/openldap/schema/*.schema
+%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ldap
%attr(754,root,root) /etc/rc.d/init.d/ldap
%attr(770,root,slapd) %{_var}/run/slapd
%attr(770,root,slapd) %{_localstatedir}/openldap-data
@@ -861,6 +895,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.199 2005/06/19 00:41:10 zbyniu
+- added overlay-pcache package
+- adapterized
+
Revision 1.198 2005/06/18 21:59:22 areq
- fix without-cyrus-sasl
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/openldap.spec?r1=1.198&r2=1.199&f=u
More information about the pld-cvs-commit
mailing list