Hi.

Attached is a fix for openldap-2.0.27, currently the wrong syntax is added to 
the syslog config file, the fields has to separated with <tab> and not with 
<space>.

(optionally rebuild it against db4 ;))

Chears.
-- 
Regards // Oden Eriksson, Deserve-IT.com
--- openldap.spec	2002-11-04 19:43:00.000000000 +0100
+++ openldap.spec.oden	2003-01-14 12:37:34.000000000 +0100
@@ -1,6 +1,6 @@
 %define name	openldap
 %define version	2.0.27
-%define release	1mdk
+%define release	2mdk
 
 %define major 		2
 %define migtools_ver 	40
@@ -85,7 +85,7 @@
 %endif
 BuildRequires:	openssl-devel, perl, autoconf
 #BuildRequires: libgdbm1-devel
-BuildRequires: 	db3-devel, libunixODBC2-devel, libltdl-devel, unixODBC-devel
+BuildRequires: 	libdb4.0-devel libunixODBC2-devel libltdl-devel unixODBC-devel
 BuildRequires:  ncurses-devel >= 5.0, tcp_wrappers-devel
 BuildRoot: 	%{_tmppath}/%{name}-%{version}-root
 Requires: 	libldap%{major}, shadow-utils, setup >= 2.2.0-6mdk
@@ -442,7 +442,7 @@
 
 	if [ ${cntlog} -le 9 ];then
 		echo "# added by %{name}-%{version} r""pm $(date)" >> %{_sysconfdir}/syslog.conf
-		echo "local${cntlog}.*       /var/log/ldap/ldap.log" >> %{_sysconfdir}/syslog.conf
+		echo -e "local${cntlog}.*\t\t\t\t\t\t\t-/var/log/ldap/ldap.log" >> %{_sysconfdir}/syslog.conf
 
 		# reset syslog daemon
 		if [ -f /var/lock/subsys/syslog ]; then
@@ -482,7 +482,7 @@
 # talk about gdbm to ldif conversion here instead of the initscript
 if ls /var/lib/ldap/*.gdbm > /dev/null 2>&1 || :  ; then
   echo "To convert a gdbm DB to a ldif file, you can use the utility"
-  echo "%{_sbindir}/slapcat-gdbm (actually openldap uses Berkeley DB 3.x)..."
+  echo "%{_sbindir}/slapcat-gdbm (actually openldap uses Berkeley DB 4.x)..."
 fi
 
 pushd %{_sysconfdir}/openldap/ > /dev/null
@@ -630,8 +630,11 @@
 %{_libdir}/openldap/back_passwd*.so.*
 %{_libdir}/openldap/back_passwd*.so
 
-
 %changelog
+* Tue Jan 14 2003 Oden Eriksson <[EMAIL PROTECTED]> 2.0.27-2mdk
+- fix added syslog entry
+- built against db4
+
 * Mon Nov  4 2002 Vincent Danen <[EMAIL PROTECTED]> 2.0.27-1mdk
 - 2.0.27
 - start slurpd as user ldap, not root (re: bgmilne)

Reply via email to