Accepting request 1058264 from server:mail
OBS-URL: https://build.opensuse.org/request/show/1058264 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/courier-imap?expand=0&rev=68
This commit is contained in:
commit
563ee36978
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 12 17:42:55 UTC 2023 - Stefan Schubert <schubi@suse.com>
|
||||||
|
|
||||||
|
- Migration of PAM settings to /usr/lib/pam.d.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Dec 18 09:30:09 UTC 2022 - Arjen de Korte <suse+build@de-korte.org>
|
Sun Dec 18 09:30:09 UTC 2022 - Arjen de Korte <suse+build@de-korte.org>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package courier-imap
|
# spec file for package courier-imap
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 SUSE LLC
|
# Copyright (c) 2023 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -50,6 +50,7 @@ BuildRequires: gcc-c++
|
|||||||
BuildRequires: gdbm-devel
|
BuildRequires: gdbm-devel
|
||||||
BuildRequires: libstdc++-devel
|
BuildRequires: libstdc++-devel
|
||||||
BuildRequires: ncurses-devel
|
BuildRequires: ncurses-devel
|
||||||
|
BuildRequires: pam-devel
|
||||||
BuildRequires: pcre2-devel
|
BuildRequires: pcre2-devel
|
||||||
BuildRequires: procps
|
BuildRequires: procps
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
@ -129,8 +130,14 @@ mv %{buildroot}%{_bindir}/{couriertls,imapd,pop3d} %{buildroot}%{_sbindir}/
|
|||||||
# Rename imapd.8 to courier-imapd.8
|
# Rename imapd.8 to courier-imapd.8
|
||||||
mv %{buildroot}%{_mandir}/man8/imapd.8 %{buildroot}%{_mandir}/man8/%{name}d.8
|
mv %{buildroot}%{_mandir}/man8/imapd.8 %{buildroot}%{_mandir}/man8/%{name}d.8
|
||||||
# Install PAM config files
|
# Install PAM config files
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
|
mkdir -p %{buildroot}%{_pam_vendordir}
|
||||||
|
install -D -m 644 %{S:2} %{buildroot}%{_pam_vendordir}/pop3
|
||||||
|
install -D -m 644 %{S:3} %{buildroot}%{_pam_vendordir}/imap
|
||||||
|
%else
|
||||||
install -D -m 644 %{S:2} %{buildroot}%{_sysconfdir}/pam.d/pop3
|
install -D -m 644 %{S:2} %{buildroot}%{_sysconfdir}/pam.d/pop3
|
||||||
install -D -m 644 %{S:3} %{buildroot}%{_sysconfdir}/pam.d/imap
|
install -D -m 644 %{S:3} %{buildroot}%{_sysconfdir}/pam.d/imap
|
||||||
|
%endif
|
||||||
# Install init scripts
|
# Install init scripts
|
||||||
for i in imap imap-ssl imap-gencert pop pop-ssl pop-gencert; do
|
for i in imap imap-ssl imap-gencert pop pop-ssl pop-gencert; do
|
||||||
ln -s -f service %{buildroot}%{_sbindir}/rccourier-$i
|
ln -s -f service %{buildroot}%{_sbindir}/rccourier-$i
|
||||||
@ -163,6 +170,12 @@ make check
|
|||||||
%pre
|
%pre
|
||||||
%service_add_pre courier-imap-gencert.service courier-imap-ssl.service courier-imap.service
|
%service_add_pre courier-imap-gencert.service courier-imap-ssl.service courier-imap.service
|
||||||
%service_add_pre courier-pop-gencert.service courier-pop-ssl.service courier-pop.service
|
%service_add_pre courier-pop-gencert.service courier-pop-ssl.service courier-pop.service
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
|
# Prepare for migration to /usr/lib; save any old .rpmsave
|
||||||
|
for i in pam.d/pop3 pam.d/imap ; do
|
||||||
|
test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave %{_sysconfdir}/${i}.rpmsave.old ||:
|
||||||
|
done
|
||||||
|
%endif
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%service_del_preun courier-imap-gencert.service courier-imap-ssl.service courier-imap.service
|
%service_del_preun courier-imap-gencert.service courier-imap-ssl.service courier-imap.service
|
||||||
@ -177,14 +190,27 @@ make check
|
|||||||
%service_del_postun courier-imap-gencert.service courier-imap-ssl.service courier-imap.service
|
%service_del_postun courier-imap-gencert.service courier-imap-ssl.service courier-imap.service
|
||||||
%service_del_postun courier-pop-gencert.service courier-pop-ssl.service courier-pop.service
|
%service_del_postun courier-pop-gencert.service courier-pop-ssl.service courier-pop.service
|
||||||
|
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
|
%posttrans
|
||||||
|
# Migration to /usr/lib, restore just created .rpmsave
|
||||||
|
for i in pam.d/pop3 pam.d/imap ; do
|
||||||
|
test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave %{_sysconfdir}/${i} ||:
|
||||||
|
done
|
||||||
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,755)
|
%defattr(-,root,root,755)
|
||||||
%license COPYING*
|
%license COPYING*
|
||||||
%doc AUTHORS README
|
%doc AUTHORS README
|
||||||
%doc libs/imap/ChangeLog libs/imap/BUGS libs/imap/README.proxy
|
%doc libs/imap/ChangeLog libs/imap/BUGS libs/imap/README.proxy
|
||||||
%doc libs/maildir/README.sharedfolders libs/maildir/README.maildirquota
|
%doc libs/maildir/README.sharedfolders libs/maildir/README.maildirquota
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
|
%{_pam_vendordir}/imap
|
||||||
|
%{_pam_vendordir}/pop3
|
||||||
|
%else
|
||||||
%config %attr(644,root,root) %{_sysconfdir}/pam.d/imap
|
%config %attr(644,root,root) %{_sysconfdir}/pam.d/imap
|
||||||
%config %attr(644,root,root) %{_sysconfdir}/pam.d/pop3
|
%config %attr(644,root,root) %{_sysconfdir}/pam.d/pop3
|
||||||
|
%endif
|
||||||
%dir %{_sysconfdir}/courier
|
%dir %{_sysconfdir}/courier
|
||||||
%dir %{_sysconfdir}/courier/imapaccess
|
%dir %{_sysconfdir}/courier/imapaccess
|
||||||
%dir %{_sysconfdir}/courier/shared
|
%dir %{_sysconfdir}/courier/shared
|
||||||
|
Loading…
Reference in New Issue
Block a user