]> git.pld-linux.org Git - packages/courier-imap.git/blobdiff - courier-imap.spec
- added conditional(mysql) BuildRequires: zlib-devel
[packages/courier-imap.git] / courier-imap.spec
index 9ddbe3b6ac55eda164885f4d05e042c12c6fcd1b..86eceae2eb5574985b2af63f7df66a42ca1dc28f 100644 (file)
@@ -2,11 +2,12 @@
 # Conditional build:   
 # _without_ldap - without LDAP support
 # _without_mysql - without MySQL support
+# _without_postgresql - without PostgreSQL support
 Summary:       Courier-IMAP server
 Summary(pl):   Serwer Courier-IMAP
 Name:          courier-imap
-Version:       1.3.12
-Release:       3
+Version:       1.4.1
+Release:       2
 License:       GPL
 Group:         Networking/Daemons
 Group(de):     Netzwerkwesen/Server
@@ -20,12 +21,16 @@ Source5:    %{name}-pop3.pamd
 Source6:       %{name}.sysconfig
 Source7:       %{name}-pop3.sysconfig
 Source8:       %{name}-authdaemon.sysconfig
+Patch0:                ftp://ftp.pld.org.pl/people/siefca/patches/courier/%{name}-myownquery.patch
 URL:           http://www.inter7.com/courierimap/
+%{!?_without_postgresql:BuildRequires: postgresql-devel}
 %{!?_without_mysql:BuildRequires:      mysql-devel}
+%{!?_without_mysql:BuildRequires:      zlib-devel}
 %{!?_without_ldap:BuildRequires:       openldap-devel}
 BuildRequires: gdbm-devel
 BuildRequires: libstdc++-devel
 BuildRequires: openssl-devel
+BuildRequires:  kernel-headers
 Provides:      imapdaemon
 Prereq:                %{name}-common = %{version}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -124,6 +129,7 @@ Group:              Networking/Daemons
 Group(de):     Netzwerkwesen/Server
 Group(pl):     Sieciowe/Serwery
 Prereq:                %{name}-common = %{version}
+Requires:      zlib
 
 %description authmysql
 This package provides MySQL authentication for Courier IMAP.
@@ -131,8 +137,23 @@ This package provides MySQL authentication for Courier IMAP.
 %description authmysql -l pl
 Ten pakiet pozwala na korzystanie z autentykacji MySQL w Courier IMAP.
 
+%package authpgsql
+Summary:       PostgreSQL authentication daemon for Courier IMAP
+Summary(pl):   Demon autentykacji PostgreSQL do Courier IMAP
+Group:         Networking/Daemons
+Group(de):     Netzwerkwesen/Server
+Group(pl):     Sieciowe/Serwery
+Prereq:                %{name}-common = %{version}
+
+%description authpgsql
+This package provides PostgreSQL authentication for Courier IMAP.
+
+%description authpgsql -l pl
+Ten pakiet pozwala na korzystanie z autentykacji PostgreSQL w Courier IMAP.
+
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %configure2_13 \
@@ -140,6 +161,9 @@ Ten pakiet pozwala na korzystanie z autentykacji MySQL w Courier IMAP.
        --with-authchangepwdir=/var/tmp \
        --with-authdaemonvar=/var/lib/authdaemon \
        %{!?_without_mysql:--with-mysql-libs=%{_libdir} --with-mysql-includes=%{_includedir}/mysql} \
+       %{?_without_mysql:--without-authmysql} \
+       %{!?_without_postgresql:--with-pgsql-libs=%{_libdir} --with-pgsql-includes=%{_includedir}/postgresql} \
+       %{?_without_postgresql:--without-authpgsql} \
        %{?_without_ldap:--without-authldap}
 
 %{__make}
@@ -165,19 +189,24 @@ install %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/authdaemon
 rm -rf  $RPM_BUILD_ROOT%{_mandir}/man8/{authcram,authpam,authpwd,authshadow,authuserdb,authvchkpw,pw2userdb,vchkpw2userdb,authdaemon,authdaemond,authldap,authmysql}.8 \
        $RPM_BUILD_ROOT%{_sbindir}/{*db,mk*cert}
 
+mv -f authlib/README.authmysql.html README.authmysql.html
+mv -f authlib/README.ldap README.ldap
+mv -f authlib/README.myownquery README.myownquery
 mv -f imap/README README.imap
 mv -f maildir/README.maildirquota.txt README.maildirquota
 
 install authlib/authdaemonrc           $RPM_BUILD_ROOT%{_sysconfdir}
 install authlib/authldaprc             $RPM_BUILD_ROOT%{_sysconfdir}
 install authlib/authmysqlrc            $RPM_BUILD_ROOT%{_sysconfdir}
+install authlib/authpgsqlrc            $RPM_BUILD_ROOT%{_sysconfdir}
 
 mv -f $RPM_BUILD_ROOT%{_datadir}/*db \
        $RPM_BUILD_ROOT%{_sbindir}
 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
+mv -f tcpd/couriertls.1 $RPM_BUILD_ROOT%{_mandir}/man8/couriertls.1
+mv -f imap/courierpop3d.8 $RPM_BUILD_ROOT%{_mandir}/man8/courierpop3d.8
 
 echo ".so authlib.8"   >$RPM_BUILD_ROOT%{_mandir}/man8/authcram.8
 echo ".so authlib.8"   >$RPM_BUILD_ROOT%{_mandir}/man8/authpam.8
@@ -187,6 +216,7 @@ echo ".so authlib.8"        >$RPM_BUILD_ROOT%{_mandir}/man8/authuserdb.8
 echo ".so authlib.8"   >$RPM_BUILD_ROOT%{_mandir}/man8/authvchkpw.8
 echo ".so authlib.8"   >$RPM_BUILD_ROOT%{_mandir}/man8/authdaemon.8
 echo ".so authlib.8"   >$RPM_BUILD_ROOT%{_mandir}/man8/authdaemond.8
+%{!?_without_pgsql:echo ".so authlib.8"        >$RPM_BUILD_ROOT%{_mandir}/man8/authpgsql.8}
 %{!?_without_mysql:echo ".so authlib.8"        >$RPM_BUILD_ROOT%{_mandir}/man8/authmysql.8}
 %{!?_without_ldap:echo ".so authlib.8" >$RPM_BUILD_ROOT%{_mandir}/man8/authldap.8}
 echo ".so makeuserdb.8"        >$RPM_BUILD_ROOT%{_mandir}/man8/pw2userdb.8
@@ -256,7 +286,7 @@ METHOD=plain
 . /etc/sysconfig/authdaemon
 if [ "$METHOD" = "ldap" ]; then
        if [ -f /var/lock/subsys/authdaemon ]; then
-               /etc/rc.d/init.d/authdaemon stop >&2
+               /etc/rc.d/init.d/authdaemon restart >&2
        else
                echo "Run \"/etc/rc.d/init.d/authdaemon start\" to start courier-imap authdaemon."
        fi
@@ -276,7 +306,7 @@ METHOD=plain
 . /etc/sysconfig/authdaemon
 if [ "$METHOD" = "mysql" ]; then
        if [ -f /var/lock/subsys/authdaemon ]; then
-               /etc/rc.d/init.d/authdaemon stop >&2
+               /etc/rc.d/init.d/authdaemon restart >&2
        else
                echo "Run \"/etc/rc.d/init.d/authdaemon start\" to start courier-imap authdaemon."
        fi
@@ -293,7 +323,7 @@ fi
 
 %files
 %defattr(644,root,root,755)
-%attr(640,root,root) %config %verify(not size mtime md5) /etc/pam.d/imap
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/pam.d/imap
 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/security/blacklist.imap
 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/courier-imap
 %attr(754,root,root) /etc/rc.d/init.d/courier-imap
@@ -321,8 +351,8 @@ fi
 %attr(755,root,root) %{_libexecdir}/logger
 %attr(755,root,root) %{_libexecdir}/makedatprog
 %{_mandir}/man8/auth[cdpsuv]*
-%{_mandir}/man8/authlib*
-%{_mandir}/man8/couriert*
+%{_mandir}/man7/authlib*
+%{_mandir}/man1/couriert*
 %{_mandir}/man8/mk*
 
 %files userdb
@@ -348,7 +378,7 @@ fi
 
 %files pop3
 %defattr(644,root,root,755)
-%attr(640,root,root) %config %verify(not size mtime md5) /etc/pam.d/pop3
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/pam.d/pop3
 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/security/blacklist.pop3
 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/courier-imap-pop3
 %attr(754,root,root) /etc/rc.d/init.d/courier-imap-pop3
@@ -356,6 +386,7 @@ fi
 %attr(755,root,root) %{_sbindir}/mkpop3dcert
 %attr(755,root,root) %{_sbindir}/pop3login
 %{_sysconfdir}/pop3d.cnf
+%{_mandir}/man8/courierpop*
 
 %if %{?_without_ldap:0}%{!?_without_ldap:1}
 %files authldap
@@ -372,3 +403,11 @@ fi
 %attr(755,root,root) %{_libexecdir}/authlib/authdaemond.mysql
 %{_mandir}/man8/authmysql*
 %endif
+
+%if %{?_without_pgsql:0}%{!?_without_pgsql:1}
+%files authpgsql
+%defattr(644,root,root,755)
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/authpgsqlrc
+%attr(755,root,root) %{_libexecdir}/authlib/authdaemond.pgsql
+%{_mandir}/man8/authpgsql*
+%endif
This page took 0.069681 seconds and 4 git commands to generate.