]> git.pld-linux.org Git - packages/courier-imap.git/blobdiff - courier-imap.spec
- release: 2
[packages/courier-imap.git] / courier-imap.spec
index 21678ee25ae14387195acbe9248b156502168c37..29eae2549349220f2b7535728e7b84834f223fc1 100644 (file)
@@ -5,8 +5,8 @@
 Summary:       Courier-IMAP server
 Summary(pl):   Serwer Courier-IMAP
 Name:          courier-imap
-Version:       1.3.9
-Release:       1
+Version:       1.3.12
+Release:       2
 License:       GPL
 Group:         Networking/Daemons
 Group(de):     Netzwerkwesen/Server
@@ -25,9 +25,8 @@ URL:          http://www.inter7.com/courierimap/
 %{!?_without_ldap:BuildRequires:       openldap-devel}
 BuildRequires: gdbm-devel
 BuildRequires: libstdc++-devel
-Prereq:                rc-scripts
 Provides:      imapdaemon
-Requires:      %{name}-common = %{version}
+Prereq:                %{name}-common = %{version}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 Obsoletes:     imapdaemon
 
@@ -47,37 +46,99 @@ Group:              Networking/Daemons
 Group(de):     Netzwerkwesen/Server
 Group(pl):     Sieciowe/Serwery
 Prereq:                rc-scripts
+Prereq:                /sbin/chkconfig
+Requires:      %{name}-maildirmake
+Requires:      %{name}-deliverquota
+Requires:      %{name}-userdb
 
 %description common
 Common files for imap and pop daemons.
 
-%description -l pl common
+%description common -l pl
 Pliki wspólne dla serwerów imap i pop.
 
+%package userdb
+Summary:       Commands used to create the /etc/userdb.dat
+Group:         Networking/Daemons
+Group(de):     Netzwerkwesen/Server
+Group(pl):     Sieciowe/Serwery
+
+%description userdb
+Commands used to create the /etc/userdb.dat
+
+%package deliverquota
+Summary:       Deliver to a maildir with a quota
+Group:         Networking/Daemons
+Group(de):     Netzwerkwesen/Server
+Group(pl):     Sieciowe/Serwery
+
+%description deliverquota
+deliverquota is a temporary hack to implement E-mail delivery to a
+maildir with a software-imposed quota.
+
+%package maildirmake
+Summary:       Tool for making mail folders in Maildir format.
+Group:         Networking/Daemons
+Group(de):     Netzwerkwesen/Server
+Group(pl):     Sieciowe/Serwery
+Conflicts:     qmail-maildirmake
+
+%description maildirmake
+Maildirmake is a tool for making mail folders in Maildir format.
+
 %package pop3
 Summary:       Courier-IMAP POP3 Server
 Summary(pl):   Serwer Courier-IMAP POP3
 Group:         Networking/Daemons
 Group(de):     Netzwerkwesen/Server
 Group(pl):     Sieciowe/Serwery
-Requires:      %{name}-common = %{version}
-Prereq:                rc-scripts
+Prereq:                %{name}-common = %{version}
 Provides:      pop3daemon
 Obsoletes:     pop3daemon
 
 %description pop3
 Courier-IMAP POP3 is an POP3 server for Maildir mailboxes.
 
-%description -l pl pop3
+%description pop3 -l pl
 Courier-IMAP POP3 jest serwerem POP3 dla skrzynek pocztowych Maildir.
 
+%package authldap
+Summary:       LDAP authentication daemon for Courier IMAP
+Summary(pl):   Demon autentykacji LDAP do Courier IMAP
+Group:         Networking/Daemons
+Group(de):     Netzwerkwesen/Server
+Group(pl):     Sieciowe/Serwery
+Prereq:                %{name}-common = %{version}
+
+%description authldap
+This package provides LDAP authentication for Courier IMAP.
+
+%description authldap -l pl
+Ten pakiet pozwala na korzystanie z autentykacji LDAP w Courier IMAP.
+
+%package authmysql
+Summary:       MySQL authentication daemon for Courier IMAP
+Summary(pl):   Demon autentykacji MySQL do Courier IMAP
+Group:         Networking/Daemons
+Group(de):     Netzwerkwesen/Server
+Group(pl):     Sieciowe/Serwery
+Prereq:                %{name}-common = %{version}
+
+%description authmysql
+This package provides MySQL authentication for Courier IMAP.
+
+%description authmysql -l pl
+Ten pakiet pozwala na korzystanie z autentykacji MySQL w Courier IMAP.
+
 %prep
 %setup -q
 
 %build
 %configure2_13 \
+       --enable-unicode \
+       --with-authchangepwdir=/var/tmp \
        --with-authdaemonvar=/var/lib/authdaemon \
-       %{!?_without_mysql:--with-mysql-libs=/usr/lib --with-mysql-includes=/usr/include/mysql} \
+       %{!?_without_mysql:--with-mysql-libs=%{_libdir} --with-mysql-includes=%{_includedir}/mysql} \
        %{?_without_ldap:--without-authldap}
 
 %{__make}
@@ -115,6 +176,8 @@ mv -f $RPM_BUILD_ROOT%{_datadir}/*db \
 mv -f $RPM_BUILD_ROOT%{_datadir}/mk*cert \
        $RPM_BUILD_ROOT%{_sbindir}
 
+imap/html2man.pl tcpd/couriertls.html > $RPM_BUILD_ROOT%{_mandir}/man8/couriertls.8
+
 echo ".so authlib.8"   >$RPM_BUILD_ROOT%{_mandir}/man8/authcram.8
 echo ".so authlib.8"   >$RPM_BUILD_ROOT%{_mandir}/man8/authpam.8
 echo ".so authlib.8"   >$RPM_BUILD_ROOT%{_mandir}/man8/authpwd.8
@@ -132,6 +195,9 @@ gzip -9nf README* imap/BUGS AUTHORS COPYING
 
 touch $RPM_BUILD_ROOT/etc/security/blacklist.{pop3,imap}
 
+%clean
+rm -rf $RPM_BUILD_ROOT
+
 %post
 /sbin/chkconfig --add courier-imap
 
@@ -181,11 +247,48 @@ if [ "$1" = "0" ]; then
        if [ -f /var/lock/subsys/courier-imap-pop3 ]; then
                /etc/rc.d/init.d/courier-imap-pop3 stop >&2
        fi
-       /sbin/chkconfig --del courier-imap
+       /sbin/chkconfig --del courier-imap-pop3
 fi
 
-%clean
-rm -rf $RPM_BUILD_ROOT
+%post authldap
+METHOD=plain
+. /etc/sysconfig/authdaemon
+if [ "$METHOD" = "ldap" ]; then
+       if [ -f /var/lock/subsys/authdaemon ]; then
+               /etc/rc.d/init.d/authdaemon stop >&2
+       else
+               echo "Run \"/etc/rc.d/init.d/authdaemon start\" to start courier-imap authdaemon."
+       fi
+fi
+
+%preun authldap
+METHOD=plain
+. /etc/sysconfig/authdaemon
+if [ "$1" = "$0" -a "$METHOD" = "ldap" ]; then
+       if [ -f /var/lock/subsys/authdaemon ]; then
+               /etc/rc.d/init.d/authdaemon stop >&2
+       fi
+fi
+
+%post authmysql
+METHOD=plain
+. /etc/sysconfig/authdaemon
+if [ "$METHOD" = "mysql" ]; then
+       if [ -f /var/lock/subsys/authdaemon ]; then
+               /etc/rc.d/init.d/authdaemon stop >&2
+       else
+               echo "Run \"/etc/rc.d/init.d/authdaemon start\" to start courier-imap authdaemon."
+       fi
+fi
+
+%preun authmysql
+METHOD=plain
+. /etc/sysconfig/authdaemon
+if [ "$1" = "$0" -a "$METHOD" = "mysql" ]; then
+       if [ -f /var/lock/subsys/authdaemon ]; then
+               /etc/rc.d/init.d/authdaemon stop >&2
+       fi
+fi
 
 %files
 %defattr(644,root,root,755)
@@ -197,6 +300,7 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/imapd
 %attr(755,root,root) %{_sbindir}/imaplogin
 %attr(755,root,root) %{_sbindir}/mkimapdcert
+%{_mandir}/man8/imapd*
 
 %files common
 %defattr(644,root,root,755)
@@ -207,24 +311,39 @@ rm -rf $RPM_BUILD_ROOT
 %attr(750,root,root) %dir %{_sysconfdir}
 %dir %{_libexecdir}
 %dir %{_libexecdir}/authlib
-%{_sysconfdir}/authdaemonrc
-%{!?_without_ldap:%{_sysconfdir}/authldaprc}
-%{!?_without_mysql:%{_sysconfdir}/authmysqlrc}
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/authdaemonrc
 %{_sysconfdir}/quotawarnmsg.example
 %attr(755,root,root) %{_bindir}/couriertls
-%attr(755,root,root) %{_bindir}/maildirmake
+%attr(755,root,root) %{_libexecdir}/authlib/authdaemon
+%attr(755,root,root) %{_libexecdir}/authlib/authdaemond.plain
+%attr(755,root,root) %{_libexecdir}/couriertcpd
+%attr(755,root,root) %{_libexecdir}/logger
+%attr(755,root,root) %{_libexecdir}/makedatprog
+%{_mandir}/man8/auth[cdpsuv]*
+%{_mandir}/man8/authlib*
+%{_mandir}/man8/couriert*
+%{_mandir}/man8/mk*
+
+%files userdb
+%defattr(644,root,root,755)
 %attr(755,root,root) %{_sbindir}/makeuserdb
 %attr(755,root,root) %{_sbindir}/pw2userdb
 %attr(755,root,root) %{_sbindir}/userdb
 %attr(755,root,root) %{_sbindir}/userdbpw
 %attr(755,root,root) %{_sbindir}/vchkpw2userdb
-%attr(755,root,root) %{_libexecdir}/authlib/authdaemon
-%attr(755,root,root) %{_libexecdir}/authlib/authdaemond.*
-%attr(755,root,root) %{_libexecdir}/couriertcpd
+%{_mandir}/man8/makeuserdb*
+%{_mandir}/man8/userdb*
+%{_mandir}/man8/*pw2userdb*
+
+%files deliverquota
+%defattr(644,root,root,755)
 %attr(755,root,root) %{_libexecdir}/deliverquota
-%attr(755,root,root) %{_libexecdir}/logger
-%attr(755,root,root) %{_libexecdir}/makedatprog
-%{_mandir}/man*/*
+%{_mandir}/man8/deliverquota*
+
+%files maildirmake
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/maildirmake
+%{_mandir}/man1/maildirmake*
 
 %files pop3
 %defattr(644,root,root,755)
@@ -236,3 +355,19 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_sbindir}/mkpop3dcert
 %attr(755,root,root) %{_sbindir}/pop3login
 %{_sysconfdir}/pop3d.cnf
+
+%if %{?_without_ldap:0}%{!?_without_ldap:1}
+%files authldap
+%defattr(644,root,root,755)
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/authldaprc
+%attr(755,root,root) %{_libexecdir}/authlib/authdaemond.ldap
+%{_mandir}/man8/authldap*
+%endif
+
+%if %{?_without_mysql:0}%{!?_without_mysql:1}
+%files authmysql
+%defattr(644,root,root,755)
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/authmysqlrc
+%attr(755,root,root) %{_libexecdir}/authlib/authdaemond.mysql
+%{_mandir}/man8/authmysql*
+%endif
This page took 0.052408 seconds and 4 git commands to generate.