Summary: Courier mail server
Summary(pl): Serwer poczty Courier
Name: courier
-Version: 0.45.3
-Release: 1
+Version: 0.45.5
+Release: 0.1
License: GPL
Group: Networking/Daemons
Source0: http://dl.sourceforge.net/courier/%{name}-%{version}.tar.bz2
-# Source0-md5: c1f657b5b0fd8d41d2eb2372fdfe1b41
+# Source0-md5: 59f69d851740a11a0172eb803f9ab12f
Patch0: %{name}-openssl-path.patch
Patch1: %{name}-withoutfam.patch
Patch2: %{name}-maildir.patch
Patch3: %{name}-sendmail_dir.patch
Patch4: %{name}-start_scripts.patch
+Patch5: %{name}-fix_build.patch
URL: http://www.courier-mta.org/
BuildRequires: autoconf
BuildRequires: automake
%patch2 -p1
%patch3 -p1
%patch4 -p1
+%patch5 -p1
%build
# we don't want fax module
%install
rm -rf $RPM_BUILD_ROOT
umask 022
-install -d -p $RPM_BUILD_ROOT{%{_prefix}/lib,/etc/{cron.hourly,pam.d},%{initdir}} \
- $RPM_BUILD_ROOT{%{_cgibindir},%{_documentrootdir}} \
- $RPM_BUILD_ROOT{%{_sysconfdir}/{userdb,hosteddomains},%{_localstatedir}{/calendar,/tmp/broken}} \
+install -d -p $RPM_BUILD_ROOT{/etc/{cron.hourly,pam.d},%{initdir}} \
+ $RPM_BUILD_ROOT{%{_cgibindir},%{_documentrootdir},%{_prefix}/lib} \
+ $RPM_BUILD_ROOT%{_sysconfdir}/{userdb,hosteddomains,shared} \
+ $RPM_BUILD_ROOT%{_localstatedir}{/calendar/{private,public},/tmp/broken} \
$RPM_BUILD_ROOT/etc/cron.hourly
%{__make} install \
done
# make locals, esmtpacceptmailfor.dir/default
-for X in locals esmtpacceptmailfor.dir/default
-do
-echo localhost >$RPM_BUILD_ROOT%{_sysconfdir}/$X
-done
-
-install courier.sysvinit $RPM_BUILD_ROOT%{initdir}/courier
+touch $RPM_BUILD_ROOT%{_sysconfdir}/esmtpacceptmailfor.dir/default
+touch $RPM_BUILD_ROOT%{_sysconfdir}/locals
# Make password and unsecureok (files for webadmin)
touch $RPM_BUILD_ROOT%{_sysconfdir}/webadmin/password
touch $RPM_BUILD_ROOT%{_sysconfdir}/webadmin/unsecureok
+# create file me to put localdomain
+touch $RPM_BUILD_ROOT%{_sysconfdir}/me
+
+# create calendarmode
+touch $RPM_BUILD_ROOT%{_sysconfdir}/calendarmode
+
+install courier.sysvinit $RPM_BUILD_ROOT%{initdir}/courier
#
# Red Hat /etc/profile.d scripts
#
# This link by default is missing
ln -sf %{_datadir}/esmtpd-ssl $RPM_BUILD_ROOT%{_sbindir}/esmtpd-ssl
-# create file me to put localdomain
-touch $RPM_BUILD_ROOT%{_sysconfdir}/me
-
# remove unpackaged files
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/*.dist
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/rfcerr*.txt
fi
%post webmail
+if [ "$1" = "1" ]; then
+echo
+echo If you want to have calendar starting by default then
+echo put word net to %{_sysconfdir}/calendarmode
+echo
+fi
if ps -A |grep -q sqwebmaild; then
%{_libdir}/courier/sqwebmaild stop
%{_libdir}/courier/sqwebmaild start
%attr(755,root,root) %{_datadir}/mkesmtpdcert
%attr(755,root,root) %{_sbindir}/esmtpd-msa
%attr(755,root,root) %{_sbindir}/makesmtpaccess-msa
+%attr(755,root,root) %{_sbindir}/sharedindexinstall
+%attr(755,root,root) %{_sbindir}/sharedindexsplit
%attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/esmtpd
%attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/esmtpd-msa
%attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/esmtpd-ssl
%attr(755,root,root) /etc/profile.d/courier.csh
%attr(754,root,root) /etc/rc.d/init.d/courier
%attr(700,daemon,daemon) %dir %{_sysconfdir}/userdb
-%attr(755,daemon,daemon) %dir %{_localstatedir}/calendar
+%attr(750,daemon,daemon) %dir %{_sysconfdir}/shared
%attr(755,daemon,daemon) %dir %{_localstatedir}/tmp/broken
%attr(755,root,root) /usr/lib/sendmail
%files webmail
%defattr(644,root,root,755)
-%doc htmldoc/pcp*
+%doc htmldoc/pcp* gpglib/README.html
%attr(4755,root,root) %{_cgibindir}/webmail
%attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/pam.d/webmail
%attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/pam.d/calendar
%attr(755,root,root) %{_libdir}/courier/sqwebmaild
%attr(700, bin, bin) %dir %{_localstatedir}/webmail-logincache
%attr(755,root,root) /etc/cron.hourly/courier-webmail-cleancache
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/calendarmode
+%attr(751,bin,bin) %dir %{_localstatedir}/calendar
+%attr(700,bin,bin) %dir %{_localstatedir}/calendar/localcache
+%attr(750,bin,bin) %dir %{_localstatedir}/calendar/private
+%attr(755,bin,bin) %dir %{_localstatedir}/calendar/public
%files maildrop
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/maildirmake
%attr(755,root,root) %{_bindir}/maildirkw
%attr(755,root,root) %{_bindir}/maildiracl
-%attr(755,root,root) %{_sbindir}/sharedindexinstall
-%attr(755,root,root) %{_sbindir}/sharedindexsplit
%files mlm
%defattr(644,root,root,755)