]> git.pld-linux.org Git - packages/courier.git/blobdiff - courier.spec
- add autogerating certs
[packages/courier.git] / courier.spec
index aa152398e8b69305a2efd8889fb3e0dff64d21d7..d8277039fce676665c3124976ba86a0d7cbfbd7b 100644 (file)
@@ -5,12 +5,12 @@
 Summary:       Courier mail server
 Summary(pl):   Serwer poczty Courier
 Name:          courier
-Version:       0.45.4
-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: ab2a668fe590f42c40649b62af704995
+# Source0-md5: 59f69d851740a11a0172eb803f9ab12f
 Patch0:        %{name}-openssl-path.patch
 Patch1:                %{name}-withoutfam.patch
 Patch2:                %{name}-maildir.patch
@@ -350,9 +350,10 @@ cd ..
 %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 \
@@ -470,6 +471,9 @@ 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
@@ -608,6 +612,12 @@ echo
 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
@@ -816,6 +826,8 @@ fi
 %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
@@ -894,7 +906,7 @@ fi
 %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
 
@@ -966,7 +978,7 @@ fi
 
 %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
@@ -989,6 +1001,11 @@ fi
 %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)
@@ -1012,8 +1029,6 @@ fi
 %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)
This page took 0.111952 seconds and 4 git commands to generate.