Name: courier-imap Version: 5.1.3 Release: 1mamba Summary: An IMAP server that handles QMail's Mailbox dirs Group: System/Servers Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://www.courier-mta.org/ Source: http://downloads.sourceforge.net/sourceforge/courier/courier-imap-%{version}.tar.bz2 #Source: http://www.courier-mta.org/beta/imap/courier-imap-%{version}.tar.bz2 Source1: imap-pam Source2: imapd-initscript Source3: imapd-ssl-initscript Source4: imap-generate-certificate.sh License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libcourier-authlib-devel BuildRequires: libcourier-unicode-devel BuildRequires: libgdbm-devel BuildRequires: libidn-devel BuildRequires: libopenssl-devel BuildRequires: libpcre-devel BuildRequires: libstdc++6-devel ## AUTOBUILDREQ-END BuildRequires: pam-devel >= 0.77 BuildRequires: libopenssl-devel >= 0.9.7b BuildRequires: libopenldap-devel >= 2.1.22 BuildRequires: courier-authlib >= 0.71 Requires: courier-authlib >= 0.71 %description The Courier mail transfer agent (MTA) is an integrated mail/groupware server based on open commodity protocols, such as ESMTP, IMAP, POP3, LDAP, SSL, and HTTP. Courier provides ESMTP, IMAP, POP3, webmail, and mailing list services within a single, consistent, framework. %debug_package %prep [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"/../perl-root [ "%{buildroot}" != "/" ] && rm -rf "%{buildroot}" %setup -q %build find . -name Makefile.in | xargs -n1 sed -i "s|DEFAULT_INCLUDES = |DEFAULT_INCLUDES = -I/usr/include/db4|" ./configure \ --prefix=%{_prefix} \ --sysconfdir=%{_sysconfdir}/imap \ --mandir=%{_mandir} \ --libexecdir=%{_libexecdir}/courier-imap \ --datadir=%{_datadir}/courier-imap \ --localstatedir=/run \ --without-authdaemon \ --with-redhat \ --with-notice=unicode find . -name Makefile | xargs -n1 sed -i "s|-ldb|-ldb-4|" make %{_smp_mflags} %install make install DESTDIR=%{buildroot} MANDIR=%{buildroot}%{_mandir} for f in `find %{buildroot}%{_mandir}/man/man7 -type l`; do rm $f done make install-configure DESTDIR=%{buildroot} rm %{buildroot}%{_sysconfdir}/imap/*.dist mkdir -p %{buildroot}%{_sysconfdir}/pam.d cp %{SOURCE1} %{buildroot}%{_sysconfdir}/pam.d/imap mkdir -p %{buildroot}%{_initrddir} cp %{SOURCE2} %{buildroot}%{_initrddir}/imapd cp %{SOURCE3} %{buildroot}%{_initrddir}/imapd-ssl cp %{SOURCE4} %{buildroot}%{_libexecdir}/courier-imap/ # avoid a conflict with QMail file mv %{buildroot}%{_mandir}/man1/maildirmake.1 %{buildroot}%{_mandir}/man1/maildirmake-imap.1 pushd %{buildroot} popd %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"/../perl-root [ "%{buildroot}" != "/" ] && rm -rf "%{buildroot}" %post # new install if [ $1 -eq 1 ]; then source %{_initrddir}/ldap-functions set_ldap_environment sed -i "s|dc=example,dc=com|$LDAPBASEDN|" %{_sysconfdir}/imap/authldaprc fi %files %defattr(-,root,root) %attr(0700,root,root) %dir %{_sysconfdir}/imap/ %config(noreplace) %{_sysconfdir}/imap/* %config(noreplace) %{_sysconfdir}/pam.d/imap %attr(0755,root,root) %{_initrddir}/imapd %attr(0755,root,root) %{_initrddir}/imapd-ssl %dir %{_libexecdir}/courier-imap %{_libexecdir}/courier-imap/* %{_bindir}/* %{_sbindir}/* %{_sbindir}/mkimapdcert %{_sbindir}/mkpop3dcert %dir %{_datadir}/courier-imap %{_datadir}/courier-imap/* %{_mandir}/man1/* %{_mandir}/man8/* %changelog * Sun May 02 2021 Automatic Build System 5.1.3-1mamba - automatic version update by autodist * Wed Jan 21 2015 Automatic Build System 4.7.0-2mamba - automatic rebuild by autodist * Tue Apr 13 2010 Automatic Build System 4.7.0-1mamba - automatic update by autodist * Tue Jul 07 2009 Automatic Build System 4.5.1-1mamba - automatic update by autodist * Thu May 28 2009 Automatic Build System 4.5.0-1mamba - automatic update by autodist * Wed Feb 25 2009 Silvan Calarco 4.4.1-1mamba - automatic update by autodist * Fri Oct 24 2008 Silvan Calarco 4.4.0-1mamba - automatic update by autodist * Sat Aug 25 2007 Tiziana Ferro 4.1.3-1mamba - update to 4.1.3 * Mon Oct 11 2004 Silvan Calarco 2.2.2.20040207-4qilnx - rebuilt to remove a dependency on libmisc * Mon Oct 11 2004 Silvan Calarco 2.2.2.20040207-3qilnx - added LDAP configuration on install * Wed Feb 18 2004 Silvan Calarco 2.2.2.20040207-2qilnx - fixed initscripts due to courierlogger directory change * Mon Feb 16 2004 Silvan Calarco 2.2.2.20040207-1qilnx - new version build - fixed manual packaging problems * Mon Sep 29 2003 Silvan Calarco 2.1.1.20030902-2qilnx - added chkconfig support to initscript * Thu Sep 11 2003 Silvan Calarco 2.1.1.20030902-1qilnx - first build