- fix #182240 by looking in lib64 for libs first and then lib

- fix comment #1 in #182240 by copying over the example config files to
    documentation directory
This commit is contained in:
prockai 2006-03-01 14:44:47 +00:00
parent d978fe7b80
commit 93182d14ab
2 changed files with 64 additions and 10 deletions

View File

@ -0,0 +1,44 @@
--- dovecot-1.0.beta2/configure.in.lib64 2006-03-01 15:21:21.000000000 +0100
+++ dovecot-1.0.beta2/configure.in 2006-03-01 15:23:13.000000000 +0100
@@ -1354,11 +1354,11 @@
PGSQL_INCLUDE=$i/$j
fi
done
- for j in lib lib/pgsql lib/postgres lib/postgresql ""; do
+ for lib in lib64 lib; do for j in $lib $lib/pgsql $lib/postgres $lib/postgresql ""; do
if test -f "$i/$j/libpq.so" || test -f "$i/$j/libpq.a"; then
PGSQL_LIBDIR=$i/$j
fi
- done
+ done; done
done
old_LIBS=$LIBS
@@ -1397,11 +1397,11 @@
MYSQL_INCLUDE=$i/$j
fi
done
- for j in lib lib/mysql ""; do
+ for lib in lib64 lib; do for j in $lib $lib/mysql ""; do
if test -f "$i/$j/libmysqlclient.so" || test -f "$i/$j/libmysqlclient.a"; then
MYSQL_LIBDIR=$i/$j
fi
- done
+ done; done
done
old_LIBS=$LIBS
@@ -1465,11 +1465,11 @@
MYSQL_INCLUDE=$i/$j
fi
done
- for j in lib lib/sqlite3 ""; do
+ for lib in lib64 lib; do for j in $lib $lib/sqlite3 ""; do
if test -f "$i/$j/libsqlite3.so" || test -f "$i/$j/libsqlite3.a"; then
MYSQL_LIBDIR=$i/$j
fi
- done
+ done; done
done
old_LIBS=$LIBS

View File

@ -1,7 +1,7 @@
Summary: Dovecot Secure imap server Summary: Dovecot Secure imap server
Name: dovecot Name: dovecot
Version: 1.0 Version: 1.0
Release: 0.beta2.4.1 Release: 0.beta2.5
License: LGPL License: LGPL
Group: System Environment/Daemons Group: System Environment/Daemons
@ -21,6 +21,7 @@ Patch100: dovecot-1.0.beta2-default-settings.patch
Patch101: dovecot-1.0.beta2-pam-tty.patch Patch101: dovecot-1.0.beta2-pam-tty.patch
Patch102: dovecot-1.0.beta2-pam-setcred.patch Patch102: dovecot-1.0.beta2-pam-setcred.patch
Patch103: dovecot-1.0.beta2-mkcert-permissions.patch Patch103: dovecot-1.0.beta2-mkcert-permissions.patch
Patch104: dovecot-1.0.beta2-lib64.patch
# XXX this patch needs review and forward porting # XXX this patch needs review and forward porting
#Patch105: dovecot-auth-log.patch #Patch105: dovecot-auth-log.patch
@ -65,6 +66,7 @@ in either of maildir or mbox formats.
%patch101 -p2 -b .pam-tty %patch101 -p2 -b .pam-tty
%patch102 -p2 -b .pam-setcred %patch102 -p2 -b .pam-setcred
%patch103 -p1 -b .mkcert-permissions %patch103 -p1 -b .mkcert-permissions
%patch104 -p1 -b .lib64
#%patch105 -p1 -b .auth-log #%patch105 -p1 -b .auth-log
%build %build
@ -73,18 +75,18 @@ aclocal
automake -a automake -a
autoconf autoconf
%configure \ %configure \
INSTALL_DATA="install -c -p -m644" \ INSTALL_DATA="install -c -p -m644" \
--with-doc \ --with-doc \
%if %{build_postgres} %if %{build_postgres}
--with-pgsql \ --with-pgsql \
%endif %endif
%if %{build_mysql} %if %{build_mysql}
--with-mysql \ --with-mysql \
%endif %endif
--with-ssl=openssl \ --with-ssl=openssl \
--with-ssldir=%{ssldir} \ --with-ssldir=%{ssldir} \
--with-ldap \ --with-ldap \
--with-notify=inotify --with-notify=inotify
make make
@ -109,7 +111,7 @@ chmod 600 $RPM_BUILD_ROOT/%{ssldir}/private/dovecot.pem
mkdir -p $RPM_BUILD_ROOT/var/run/dovecot/login mkdir -p $RPM_BUILD_ROOT/var/run/dovecot/login
chmod 755 $RPM_BUILD_ROOT/var/run/dovecot chmod 755 $RPM_BUILD_ROOT/var/run/dovecot
chmod 700 $RPM_BUILD_ROOT/var/run/dovecot/login chmod 700 $RPM_BUILD_ROOT/var/run/dovecot/login
# Install dovecot.conf and dovecot-openssl.cnf # Install dovecot.conf and dovecot-openssl.cnf
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/pki/dovecot/ mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/pki/dovecot/
install -p -m644 $RPM_BUILD_DIR/dovecot-%{upstream}/dovecot-example.conf $RPM_BUILD_ROOT/%{_sysconfdir}/dovecot.conf install -p -m644 $RPM_BUILD_DIR/dovecot-%{upstream}/dovecot-example.conf $RPM_BUILD_ROOT/%{_sysconfdir}/dovecot.conf
@ -121,6 +123,9 @@ install -p -m644 $RPM_SOURCE_DIR/dovecot-REDHAT-FAQ.txt $RPM_BUILD_ROOT%{docdir}
mkdir -p $RPM_BUILD_ROOT%{docdir}/examples/ mkdir -p $RPM_BUILD_ROOT%{docdir}/examples/
install -p -m755 $RPM_BUILD_DIR/dovecot-%{upstream}/doc/mkcert.sh $RPM_BUILD_ROOT%{docdir}/examples/mkcert.sh install -p -m755 $RPM_BUILD_DIR/dovecot-%{upstream}/doc/mkcert.sh $RPM_BUILD_ROOT%{docdir}/examples/mkcert.sh
for f in `cd $RPM_BUILD_DIR/dovecot-%{upstream}/doc; echo *.conf`; do
install -p -m644 $RPM_BUILD_DIR/dovecot-%{upstream}/doc/$f $RPM_BUILD_ROOT%{docdir}/examples/$f;
done
install -p -m755 -d $RPM_BUILD_ROOT%{docdir}/UW-to-Dovecot-Migration install -p -m755 -d $RPM_BUILD_ROOT%{docdir}/UW-to-Dovecot-Migration
for f in maildir-migration.txt migrate-folders migrate-users perfect_maildir.pl for f in maildir-migration.txt migrate-folders migrate-users perfect_maildir.pl
@ -203,6 +208,11 @@ rm -rf $RPM_BUILD_ROOT
%changelog %changelog
* Mon Feb 27 2006 Petr Rockai <prockai@redhat.com> - 1.0-0.beta2.5
- fix #182240 by looking in lib64 for libs first and then lib
- fix comment #1 in #182240 by copying over the example config files
to documentation directory
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.0-0.beta2.4.1 * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.0-0.beta2.4.1
- bump again for double-long bug on ppc(64) - bump again for double-long bug on ppc(64)