Author: qboosh                       Date: Fri Jul 22 06:41:11 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- separated backend-relay, fixed R(preun)

---- Files affected:
SPECS:
   openldap.spec (1.204 -> 1.205) 

---- Diffs:

================================================================
Index: SPECS/openldap.spec
diff -u SPECS/openldap.spec:1.204 SPECS/openldap.spec:1.205
--- SPECS/openldap.spec:1.204   Thu Jul 21 23:56:39 2005
+++ SPECS/openldap.spec Fri Jul 22 08:41:05 2005
@@ -2,7 +2,6 @@
 #
 # TODO:
 # - package contribs?
-# - separate relay backend?
 # - complete & validate descriptions
 # - preun/post for overlays
 #
@@ -184,7 +183,7 @@
 Summary:       BDB backend to OpenLDAP server
 Summary(pl):   Backend BDB do serwera OpenLDAP
 Group:         Networking/Daemons
-Requires(post,pre):    /bin/ed
+Requires(post,preun):  /bin/ed
 Requires:      %{name}-servers = %{version}-%{release}
 
 %description backend-bdb
@@ -197,7 +196,7 @@
 Summary:       DNS SRV backend to OpenLDAP server
 Summary(pl):   Backend DNS SRV do serwera OpenLDAP
 Group:         Networking/Daemons
-Requires(post,pre):    /bin/ed
+Requires(post,preun):  /bin/ed
 Requires:      %{name}-servers = %{version}-%{release}
 
 %description backend-dnssrv
@@ -210,7 +209,7 @@
 Summary:       HDB (Hierarchical DB) backend to OpenLDAP server
 Summary(pl):   Backend HDB (Hierarchical DB) do serwera OpenLDAP
 Group:         Networking/Daemons
-Requires(post,pre):    /bin/ed
+Requires(post,preun):  /bin/ed
 Requires:      %{name}-servers = %{version}-%{release}
 
 %description backend-hdb
@@ -223,7 +222,7 @@
 Summary:       LDAP backend to OpenLDAP server
 Summary(pl):   Backend LDAP do serwera OpenLDAP
 Group:         Networking/Daemons
-Requires(post,pre):    /bin/ed
+Requires(post,preun):  /bin/ed
 Requires:      %{name}-servers = %{version}-%{release}
 
 %description backend-ldap
@@ -236,7 +235,7 @@
 Summary:       LDBM backend to OpenLDAP server
 Summary(pl):   Backend LDBM do serwera OpenLDAP
 Group:         Networking/Daemons
-Requires(post,pre):    /bin/ed
+Requires(post,preun):  /bin/ed
 Requires:      %{name}-servers = %{version}-%{release}
 
 %description backend-ldbm
@@ -249,7 +248,7 @@
 Summary:       Meta backend to OpenLDAP server
 Summary(pl):   Backend Meta do serwera OpenLDAP
 Group:         Networking/Daemons
-Requires(post,pre):    /bin/ed
+Requires(post,preun):  /bin/ed
 Requires:      %{name}-servers = %{version}-%{release}
 
 %description backend-meta
@@ -262,7 +261,7 @@
 Summary:       Monitor backend to OpenLDAP server
 Summary(pl):   Backend Monitor do serwera OpenLDAP
 Group:         Networking/Daemons
-Requires(post,pre):    /bin/ed
+Requires(post,preun):  /bin/ed
 Requires:      %{name}-servers = %{version}-%{release}
 
 %description backend-monitor
@@ -275,7 +274,7 @@
 Summary:       /etc/passwd backend to OpenLDAP server
 Summary(pl):   Backend /etc/passwd do serwera OpenLDAP
 Group:         Networking/Daemons
-Requires(post,pre):    /bin/ed
+Requires(post,preun):  /bin/ed
 Requires:      %{name}-servers = %{version}-%{release}
 
 %description backend-passwd
@@ -288,7 +287,7 @@
 Summary:       Perl backend to OpenLDAP server
 Summary(pl):   Backend Perl do serwera OpenLDAP
 Group:         Networking/Daemons
-Requires(post,pre):    /bin/ed
+Requires(post,preun):  /bin/ed
 Requires:      %{name}-servers = %{version}-%{release}
 Requires:      perl(DynaLoader) = %(%{__perl} -MDynaLoader -e 'print 
DynaLoader->VERSION')
 
@@ -298,11 +297,31 @@
 %description backend-perl -l pl
 Backend Perl do slapd - serwera OpenLDAP.
 
+%package backend-relay
+Summary:       Relay backend to OpenLDAP server
+Summary(pl):   Backend przekazujący do serwera OpenLDAP
+Group:         Networking/Daemons
+Requires(post,preun):  /bin/ed
+Requires:      %{name}-overlay-rwm = %{version}-%{release}
+Requires:      %{name}-servers = %{version}-%{release}
+
+%description backend-relay
+The primary purpose of this slapd(8) backend is to map a naming
+context defined in a database running in the same slapd(8) instance
+into a virtual naming context, with attributeType and objectClass
+manipulation, if required. It requires the rwm overlay.
+
+%description backend-relay -l pl
+Głównym celem tego backendu slapd(8) jest odwzorowywanie kontekstów
+nazw zdefiniowanych w bazie danych działającej w tej samej instancji
+slapd(8) na konteksty nazw wirtualnych z modyfikowaniem attributeType
+i objectClass w razie potrzeby. Wymaga nakładki rwm.
+
 %package backend-shell
 Summary:       Shell backend to OpenLDAP server
 Summary(pl):   Backend Shell do serwera OpenLDAP
 Group:         Networking/Daemons
-Requires(post,pre):    /bin/ed
+Requires(post,preun):  /bin/ed
 Requires:      %{name}-servers = %{version}-%{release}
 
 %description backend-shell
@@ -315,7 +334,7 @@
 Summary:       SQL backend to OpenLDAP server
 Summary(pl):   Backend SQL do serwera OpenLDAP
 Group:         Networking/Daemons
-Requires(post,pre):    /bin/ed
+Requires(post,preun):  /bin/ed
 Requires:      %{name}-servers = %{version}-%{release}
 
 %description backend-sql
@@ -930,6 +949,24 @@
 fi
 %endif
 
+%post backend-relay
+ed -s %{_sysconfdir}/openldap/slapd.conf << EOF || :
+,s/^#[[:blank:]]*moduleload[[:blank:]]\\+back_relay.la[[:blank:]]*$/moduleload 
   back_relay.la/
+wq
+EOF
+if [ -f /var/lock/subsys/ldap ]; then
+       /etc/rc.d/init.d/ldap restart >&2
+fi
+
+%preun backend-relay
+ed -s %{_sysconfdir}/openldap/slapd.conf << EOF || :
+,s/^# moduleload    back_relay.la[[:blank:]]*$/# moduleload    back_relay.la/
+wq
+EOF
+if [ -f /var/lock/subsys/ldap ]; then
+       /etc/rc.d/init.d/ldap restart >&2 || :
+fi
+
 %post backend-shell
 ed -s %{_sysconfdir}/openldap/slapd.conf << EOF || :
 ,s/^#[[:blank:]]*moduleload[[:blank:]]\\+back_shell.la[[:blank:]]*$/moduleload 
   back_shell.la/
@@ -1072,6 +1109,12 @@
 %{_mandir}/man5/slapd-perl.5*
 %endif
 
+%files backend-relay
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/openldap/back_relay*.so*
+%{_libdir}/openldap/back_relay.la
+%{_mandir}/man5/slapd-relay.5*
+
 %files backend-shell
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/openldap/back_shell*.so*
@@ -1184,16 +1227,15 @@
 %{_mandir}/man5/slapd-null.5*
 %{_mandir}/man8/*
 
-%attr(755,root,root) %{_libdir}/openldap/back_relay*.so*
-%{_libdir}/openldap/back_relay.la
-%{_mandir}/man5/slapd-relay.5*
-
 %define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <[EMAIL PROTECTED]>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.205  2005/07/22 06:41:05  qboosh
+- separated backend-relay, fixed R(preun)
+
 Revision 1.204  2005/07/21 21:56:39  qboosh
 - some pl and cleanups
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/openldap.spec?r1=1.204&r2=1.205&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to