Hi.

The attached patches enables db4 for php-ldap ;-)

Chears.
-- 
Regards // Oden Eriksson, Deserve-IT.com
--- cyrus-sasl.spec	2002-10-11 07:49:31.000000000 +0200
+++ cyrus-sasl.spec.oden	2002-12-31 02:47:22.000000000 +0100
@@ -3,7 +3,7 @@
 Summary: SASL is the Simple Authentication and Security Layer.
 Name: cyrus-sasl
 Version: 1.5.27
-Release: 6mdk
+Release: 7mdk
 Source0: %{name}-%{version}.tar.bz2
 Source1:        saslauthd.init
 Source2:        saslauthd.sysconfig
@@ -24,8 +24,7 @@
 Requires: libsasl%{major}
 BuildRequires:  autoconf
 BuildRequires:  automake
-#BuildRequires:  db3-devel >= 3.1.17-8
-BuildRequires:  libdb3.3-devel
+BuildRequires:  libdb4.0-devel
 BuildRequires:  pam-devel
 BuildRequires:  openssl-devel >= 0.9.6a
 BuildRequires:  libtool >= 1.4
@@ -154,11 +153,13 @@
 #%patch6 -p0 -b .mdk
 %patch7 -p1
 
-#rm -f config/missing
-#libtoolize --force 
-#aclocal -I cmulocal
-#autoheader
-#automake -a
+#export WANT_AUTOCONF_2_5=1
+
+rm -f config/missing
+libtoolize --force
+aclocal -I cmulocal
+autoheader
+automake -a
 autoconf
 
 %build
@@ -298,6 +299,9 @@
 %{_mandir}/man3/*
  
 %changelog
+* Tue Dec 31 2002 Oden Eriksson <[EMAIL PROTECTED]> 1.5.27-7mdk
+- built against db4
+
 * Fri Oct 11 2002 Laurent MONTEL <[EMAIL PROTECTED]> 1.5.27-6mdk
 - Fix libsasl.la
 
--- openldap.spec	2002-11-04 19:43:54.000000000 +0100
+++ openldap.spec.oden	2002-12-31 02:55:12.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
@@ -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,10 @@
 %{_libdir}/openldap/back_passwd*.so.*
 %{_libdir}/openldap/back_passwd*.so
 
-
 %changelog
+* Tue Dec 31 2002 Oden Eriksson <[EMAIL PROTECTED]> 2.0.27-2mdk
+- 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)
--- php-ldap.spec	2003-01-08 03:22:15.000000000 +0100
+++ php-ldap.spec.oden	2003-01-09 19:09:43.000000000 +0100
@@ -2,7 +2,7 @@
 %define _docdir %{_datadir}/doc/%{name}-%{version}
 %{expand:%(cat /usr/src/php-devel/PHP_BUILD||(echo -e "error: failed build dependencies:\n        php-devel >= 430 (4.3.0) is needed by this package." >/dev/stderr;kill -2 $PPID))}
 
-%define release 1mdk
+%define release 2mdk
 
 %define realname LDAP
 %define modname ldap
@@ -12,8 +12,9 @@
 %define mod_src ldap.c
 %define mod_lib "-lldap -llber"
 %define mod_def "-DCOMPILE_DL_LDAP"
-%define rlibs libldap2 pam libsasl7 libopenssl0 libdb3.3
-%define blibs libldap2-devel pam-devel libsasl7-devel libopenssl0-devel libdb3.3-devel
+%define rlibs libldap2 pam libsasl7 libopenssl0 libdb4.0
+%define blibs libldap2-devel pam-devel libsasl7-devel openssl-devel db4-devel
+
 #########################################################
 ## Nothing to be changed after this, except changelog! ##
 #########################################################
@@ -77,6 +78,9 @@
 %config(noreplace) %{_sysconfdir}/php/%{inifile}
 
 %changelog
+* Thu Jan 09 2003 Oden Eriksson <[EMAIL PROTECTED]> 4.3.0-2mdk
+- added db4 support
+
 * Sun Jan  5 2003 Jean-Michel Dault <[EMAIL PROTECTED]> 4.3.0-1mdk
 - New 4.3.0 release
 - Totally macroize based on suggestions from Alexander Skwar

Reply via email to