# HG changeset patch # User Timo Sirainen # Date 1051986741 -10800 # Node ID c36d18766a3518b30efcd65ae2186ba56bd5718d # Parent 6b925a429544f80485f1079a921e100f841f9de6 0.99.9.1 released. Added redhat spec file. diff -r 6b925a429544 -r c36d18766a35 Makefile.am --- a/Makefile.am Sat May 03 21:19:49 2003 +0300 +++ b/Makefile.am Sat May 03 21:32:21 2003 +0300 @@ -5,5 +5,6 @@ EXTRA_DIST = \ config.rpath \ + dovecot.spec.in \ COPYING.LGPL \ $(conf_DATA) diff -r 6b925a429544 -r c36d18766a35 NEWS --- a/NEWS Sat May 03 21:19:49 2003 +0300 +++ b/NEWS Sat May 03 21:32:21 2003 +0300 @@ -1,3 +1,14 @@ +v0.99.9.1 2003-05-03 Timo Sirainen + + - Messages having lines longer than 8192 bytes caused problems. + - There was some problems when opening a mbox first time that had been + empty for a while. + - Didn't compile with OpenBSD. + - POP3 server crashed sometimes instead of printing error message. + - If cached IMAP envelope contained literals, SEARCHing in it wrote + errors to log file. For example if subject contained highascii, '"' + or '\' characters this happened. + v0.99.9 2003-04-28 Timo Sirainen * WARNING: mbox rewriting works now faster, but it's less likely to diff -r 6b925a429544 -r c36d18766a35 TODO --- a/TODO Sat May 03 21:19:49 2003 +0300 +++ b/TODO Sat May 03 21:32:21 2003 +0300 @@ -1,3 +1,9 @@ + - fix SSL for RedHat 9. Use pkg-config. + - PAM waits for two seconds on wrong passwords. dovecot-auth is completely + stuck at that time. maybe fork() new PAM checkers? + - mailbox_check_interval: we shouldn't send anything if write() returns + EAGAIN. not all clients are reading input all the time and there's no point + in sending updates when no-one is reading them. - mbox: we don't notice external flag changes if they don't change file size - Create new X-IMAPlog header which Dovecot uses internally to store changes. If change is in the log header, we don't have to reparse the diff -r 6b925a429544 -r c36d18766a35 configure.in --- a/configure.in Sat May 03 21:19:49 2003 +0300 +++ b/configure.in Sat May 03 21:32:21 2003 +0300 @@ -1,7 +1,6 @@ AC_INIT(src) -AM_CONFIG_HEADER(config.h) -AM_INIT_AUTOMAKE(dovecot, 0.99.9) +AM_INIT_AUTOMAKE(dovecot, 0.99.9.1) AM_MAINTAINER_MODE @@ -1004,6 +1003,7 @@ src/lib-storage/index/maildir/Makefile src/lib-storage/index/mbox/Makefile src/lib-storage/subscription-file/Makefile +src/lib-storage/oracle/Makefile src/lib-storage/register/Makefile src/auth/Makefile src/imap/Makefile @@ -1012,7 +1012,8 @@ src/master/Makefile src/pop3/Makefile src/pop3-login/Makefile -stamp.h) +stamp.h +dovecot.spec) dnl ** dnl ** register the storage classes diff -r 6b925a429544 -r c36d18766a35 dovecot.spec.in --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dovecot.spec.in Sat May 03 21:32:21 2003 +0300 @@ -0,0 +1,160 @@ +# DarContact: Timo Sirainen + +Summary: Dovecot secure IMAP server. +Name: dovecot +Version: @VERSION@ +Release: 0 +License: GPL +Group: System Environment/Daemons +URL: http://dovecot.procontrol.fi/ + +Packager: Dag Wieers +Vendor: Dag Apt Repository, http://dag.wieers.com/home-made/apt/ + +Source: http://dovecot.procontrol.fi/%{name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/root-%{name}-%{version} +Prefix: %{_prefix} + +Prereq: /usr/sbin/useradd, /usr/sbin/usermod +BuildRequires: openssl-devel %{!?rh62:, pam-devel} %{?rh62: pam} + +%description +Dovecot is an IMAP server for Linux/UNIX-like systems, written with +security primarily in mind. Although it's written with C, it uses +several coding techniques to avoid most of the common pitfalls. Next +release will also contain a small POP3 server. + +Dovecot can work with standard mbox and maildir formats and it's fully +compatible with UW-IMAP and Courier IMAP servers as well as mail +clients accessing the mailboxes directly. + +%prep +%setup + +%{__cat} <dovecot.sysv +#!/bin/bash +# +# Init file for Dovecot IMAP daemon +# +# chkconfig: - 54 46 +# description: Dovecot IMAP Daemon +# +# processname: dovecot +# config: %{_sysconfdir}/dovecot.conf +# pidfile: %{_localstatedir}/run/dovecot + +# source function library +. %{_initrddir}/functions + +[ -x %{_sbindir}/dovecot ] || exit 1 +[ -r %{_sysconfdir}/dovecot.conf ] || exit 1 + +RETVAL=0 +prog="dovecot" + +start() { + echo -n \$"Starting \$prog: " + daemon \$prog + RETVAL=\$? + echo + [ \$RETVAL -eq 0 ] && touch %{_localstatedir}/lock/subsys/\$prog + return \$RETVAL +} + +stop() { + echo -n \$"Shutting down \$prog: " + killproc \$prog + RETVAL=\$? + echo + [ \$RETVAL -eq 0 ] && rm -f %{_localstatedir}/lock/subsys/\$prog + return \$RETVAL +} + +restart(){ + stop + start +} + +case "\$1" in + start) + start + ;; + stop) + stop + ;; + restart|reload) + restart + ;; + condrestart) + [ -e %{_localstatedir}/lock/subsys/\$prog ] && restart + RETVAL=\$? + ;; + status) + status \$prog + RETVAL=\$? + ;; + *) + echo \$"Usage: \$0 {start|stop|restart|condrestart|status}" + RETVAL=1 +esac + +exit \$RETVAL +EOF + +%build +export CPPFLAGS="-I/usr/kerberos/include" +%configure \ + --with-ssl="openssl" \ + --with-ssldir="%{_sysconfdir}/ssl" +%{__make} %{?_smp_mflags} + +%install +%{__rm} -rf %{buildroot} +%makeinstall +%{__install} -d -m0755 %{buildroot}%{_initrddir} +%{__install} -m0755 dovecot.sysv %{buildroot}%{_initrddir}/dovecot +%{__mv} -f %{buildroot}%{_sysconfdir}/dovecot-example.conf %{buildroot}%{_sysconfdir}/dovecot.conf + +### Clean up buildroot +%{__rm} -rf %{buildroot}%{_datadir}/doc/dovecot/ + +%pre +/usr/sbin/useradd -M -s /sbin/nologin -r dovecot &>/dev/null || : +/usr/sbin/usermod -s /sbin/nologin dovecot &>/dev/null || : + +%post +/sbin/chkconfig --add dovecot + +%preun +if [ $1 -eq 0 ]; then + /sbin/service dovecot stop &>/dev/null || : + /sbin/chkconfig --del dovecot +fi + +%postun +/sbin/service dovecot condrestart &>/dev/null || : + +%clean +%{__rm} -rf %{buildroot} + +%files +%defattr(-, root, root, 0755) +%doc AUTHORS ChangeLog COPYING* NEWS README TODO +%doc doc/*.conf doc/*.sh doc/*.txt +%config %{_sysconfdir}/dovecot.conf +%config %{_initrddir}/dovecot +%{_sbindir}/* +%{_libexecdir}/dovecot/ + +%changelog +* Tue Apr 29 2003 Dag Wieers - 0.99.9-0 +- Updated to release 0.99.9. + +* Mon Apr 14 2003 Dag Wieers - 0.99.8.1-1 +- Improved dovecot.sysv script. + +* Thu Mar 13 2003 Dag Wieers - 0.99.8.1-0 +- Updated to release 0.99.8.1. + +* Fri Feb 28 2003 Dag Wieers - 0.99.8-0 +- Initial package. (using DAR)