2024-01-05 21:31:33 +01:00
|
|
|
Name: courier-imap
|
2024-01-05 21:31:36 +01:00
|
|
|
Version: 5.2.4
|
2024-01-05 21:31:33 +01:00
|
|
|
Release: 1mamba
|
2024-01-05 21:31:33 +01:00
|
|
|
Summary: An IMAP server that handles QMail's Mailbox dirs
|
|
|
|
Group: System/Servers
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-05 21:31:33 +01:00
|
|
|
URL: https://www.courier-mta.org/
|
2024-01-05 21:31:33 +01:00
|
|
|
Source: http://downloads.sourceforge.net/sourceforge/courier/courier-imap-%{version}.tar.bz2
|
2024-01-05 21:31:33 +01:00
|
|
|
#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
|
2024-01-05 21:31:33 +01:00
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
2024-01-05 21:31:34 +01:00
|
|
|
BuildRequires: libcourier-authlib-devel
|
2024-01-05 21:31:33 +01:00
|
|
|
BuildRequires: libcourier-unicode-devel
|
2024-01-05 21:31:34 +01:00
|
|
|
BuildRequires: libgcc
|
2024-01-05 21:31:33 +01:00
|
|
|
BuildRequires: libgdbm-devel
|
2024-01-05 21:31:34 +01:00
|
|
|
BuildRequires: libidn2-devel
|
2024-01-05 21:31:33 +01:00
|
|
|
BuildRequires: libopenssl-devel
|
2024-01-05 21:31:33 +01:00
|
|
|
BuildRequires: libpcre2-devel
|
2024-01-05 21:31:33 +01:00
|
|
|
BuildRequires: libstdc++6-devel
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: pam-devel >= 0.77
|
|
|
|
BuildRequires: libopenssl-devel >= 0.9.7b
|
2024-01-05 21:31:33 +01:00
|
|
|
BuildRequires: libopenldap-devel >= 2.1.22
|
2024-01-05 21:31:33 +01:00
|
|
|
BuildRequires: courier-authlib >= 0.71
|
|
|
|
Requires: courier-authlib >= 0.71
|
2024-01-05 21:31:33 +01:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2024-01-05 21:31:33 +01:00
|
|
|
%debug_package
|
|
|
|
|
2024-01-05 21:31:33 +01:00
|
|
|
%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 \
|
2024-01-05 21:31:33 +01:00
|
|
|
--localstatedir=/run \
|
2024-01-05 21:31:33 +01:00
|
|
|
--without-authdaemon \
|
2024-01-05 21:31:33 +01:00
|
|
|
--with-redhat \
|
|
|
|
--with-notice=unicode
|
2024-01-05 21:31:33 +01:00
|
|
|
|
|
|
|
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
|
2024-01-05 21:31:36 +01:00
|
|
|
* Mon May 01 2023 Automatic Build System <autodist@mambasoft.it> 5.2.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:31:35 +01:00
|
|
|
* Thu Apr 06 2023 Automatic Build System <autodist@mambasoft.it> 5.2.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:31:34 +01:00
|
|
|
* Sun Feb 19 2023 Automatic Build System <autodist@mambasoft.it> 5.2.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:31:34 +01:00
|
|
|
* Sun Dec 18 2022 Automatic Build System <autodist@mambasoft.it> 5.2.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:31:34 +01:00
|
|
|
* Wed Dec 07 2022 Automatic Build System <autodist@mambasoft.it> 5.2.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:31:34 +01:00
|
|
|
* Thu Nov 17 2022 Automatic Build System <autodist@mambasoft.it> 5.1.9-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:31:34 +01:00
|
|
|
* Thu Jun 02 2022 Automatic Build System <autodist@mambasoft.it> 5.1.8-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:31:34 +01:00
|
|
|
* Tue Jan 18 2022 Automatic Build System <autodist@mambasoft.it> 5.1.7-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:31:33 +01:00
|
|
|
* Mon Jan 17 2022 Automatic Build System <autodist@mambasoft.it> 5.1.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:31:33 +01:00
|
|
|
* Wed Aug 04 2021 Automatic Build System <autodist@mambasoft.it> 5.1.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:31:33 +01:00
|
|
|
* Sun May 02 2021 Automatic Build System <autodist@mambasoft.it> 5.1.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:31:33 +01:00
|
|
|
* Wed Jan 21 2015 Automatic Build System <autodist@mambasoft.it> 4.7.0-2mamba
|
|
|
|
- automatic rebuild by autodist
|
|
|
|
|
2024-01-05 21:31:33 +01:00
|
|
|
* Tue Apr 13 2010 Automatic Build System <autodist@mambasoft.it> 4.7.0-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Tue Jul 07 2009 Automatic Build System <autodist@mambasoft.it> 4.5.1-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Thu May 28 2009 Automatic Build System <autodist@mambasoft.it> 4.5.0-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Wed Feb 25 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.1-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Fri Oct 24 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.0-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Sat Aug 25 2007 Tiziana Ferro <tiziana.ferro@email.it> 4.1.3-1mamba
|
|
|
|
- update to 4.1.3
|
|
|
|
|
|
|
|
* Mon Oct 11 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.2.20040207-4qilnx
|
|
|
|
- rebuilt to remove a dependency on libmisc
|
|
|
|
|
|
|
|
* Mon Oct 11 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.2.20040207-3qilnx
|
|
|
|
- added LDAP configuration on install
|
|
|
|
|
|
|
|
* Wed Feb 18 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.2.20040207-2qilnx
|
|
|
|
- fixed initscripts due to courierlogger directory change
|
|
|
|
|
|
|
|
* Mon Feb 16 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.2.20040207-1qilnx
|
|
|
|
- new version build
|
|
|
|
- fixed manual packaging problems
|
|
|
|
|
|
|
|
* Mon Sep 29 2003 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.1.20030902-2qilnx
|
|
|
|
- added chkconfig support to initscript
|
|
|
|
|
2024-01-05 21:31:33 +01:00
|
|
|
* Thu Sep 11 2003 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.1.20030902-1qilnx
|
2024-01-05 21:31:33 +01:00
|
|
|
- first build
|