Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package dovecot for openSUSE:Factory checked 
in at 2025-12-23 13:44:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/dovecot (Old)
 and      /work/SRC/openSUSE:Factory/.dovecot.new.1928 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "dovecot"

Tue Dec 23 13:44:52 2025 rev:13 rq:1324259 version:2.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/dovecot/dovecot.changes  2025-05-08 
18:25:55.026824197 +0200
+++ /work/SRC/openSUSE:Factory/.dovecot.new.1928/dovecot.changes        
2025-12-23 13:45:32.240482922 +0100
@@ -1,0 +2,6 @@
+Tue Dec 23 10:28:14 UTC 2025 - Peter Varkoly <[email protected]>
+
+- Use sysuser-tools
+- (jsc#PED-14857) Fix packages for Immutable Mode - dovecot 
+
+-------------------------------------------------------------------

New:
----
  dovecot-user.conf

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ dovecot.spec ++++++
--- /var/tmp/diff_new_pack.hb4DHN/_old  2025-12-23 13:45:33.136520115 +0100
+++ /var/tmp/diff_new_pack.hb4DHN/_new  2025-12-23 13:45:33.140520281 +0100
@@ -25,6 +25,7 @@
 URL:            http://www.dovecot.org/
 PreReq:         dovecot-implementation
 PreReq:         shadow
+%sysusers_requires
 Recommends:     %{name}24
 #!BuildIgnore: dovecot-implementation
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
@@ -42,6 +43,10 @@
 Source12:       %{name}-2.3.configfiles
 Source13:       %{name}-2.3-pigeonhole.configfiles
 Source14:       %{name}-2.4.configfiles
+Source15:       %{name}-user.conf
+BuildRequires:  pam-devel
+BuildRequires:  sysuser-tools
+
 
 %description
 Dovecot is an IMAP and POP3 server for Linux and UNIX-like systems,
@@ -58,6 +63,7 @@
 %prep
 
 %build
+%sysusers_generate_pre %{S:15} %{name}-user
 
 %install
 for i in $RPM_SOURCE_DIR/*.configfiles ; do
@@ -67,24 +73,15 @@
   done
 done
 
-install -D -p -m 0644 %{S:5} 
%{buildroot}%{_datadir}/doc/packages/%{name}/README.SUSE
-install -d %{buildroot}%{_sbindir}
+%{__install} -D -p -m 0644 %{S:4} %{buildroot}/%{_pam_vendordir}/%{name}
+%{__install} -D -p -m 0644 %{S:5} 
%{buildroot}%{_datadir}/doc/packages/%{name}/README.SUSE
+%{__install} -d %{buildroot}%{_sbindir}
 %{__install} -D -m 644 %{S:7} %{buildroot}%{_tmpfilesdir}/%{name}.conf
-%{__ln_s} -f %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
-install -D -p -m 0644 %{S:8} %{buildroot}%{_unitdir}/%{name}.service
-install -D -p -m 0644 %{S:9} %{buildroot}%{_unitdir}/%{name}.socket
-
-# install pam config
-%{__install} -D -p -m 0644 %{S:4} %{buildroot}%{_sysconfdir}/pam.d/%{name}
-# create /var directories
-%{__install} -p -m 0755 -Dd \
-  %{buildroot}%{_var}/run/%{name}/login/ \
-  %{buildroot}%{_var}/lib/%{name}/
-
-%pre
-getent group %{name} > /dev/null || /usr/sbin/groupadd -r %{name} >/dev/null 
2>&1 || :
-getent passwd %{name} > /dev/null || /usr/sbin/useradd -g %{name} -s 
/bin/false -r -c "User for Dovecot imapd" -d %{_var}/run/%{name} %{name}
-getent passwd dovenull > /dev/null || /usr/sbin/useradd -g %{name} -s 
/bin/false -r -c "User for Dovecot login" -d %{_var}/run/%{name} dovenull
+%{__install} -D -p -m 0644 %{S:8} %{buildroot}%{_unitdir}/%{name}.service
+%{__install} -D -p -m 0644 %{S:9} %{buildroot}%{_unitdir}/%{name}.socket
+%{__install} -D -m 0644 %{S:15} %{buildroot}%{_sysusersdir}/dovecot.conf
+
+%pre -f %{name}-user.pre
 # try to copy the default configuration.
 #
 # we fail silently if the dovecot-implementation package is not
@@ -95,7 +92,6 @@
   echo "Did not find a /etc/dovecot/dovecot.conf. copying default 
configuration"
   cp -na %{_datadir}/%{name}/example-config/* %{_sysconfdir}/%{name}/
   # the chmod breaks the lda. lets use the more open permissions
-  #chmod -Rv o= %{_sysconfdir}/%{name}/
 fi
 %service_add_pre %{name}.service %{name}.socket
 
@@ -107,7 +103,7 @@
 %service_add_post %{name}.service %{name}.socket
 
 %postun
-%service_del_postun %{name}.service
+%service_del_postun %{name}.service %{name}.socket
 
 %files
 %defattr(-,root,root)
@@ -115,12 +111,12 @@
 # conf
 %dir /etc/%{name}/
 %ghost %config(noreplace) /etc/%{name}/*
-%config(noreplace) %{_sysconfdir}/pam.d/%{name}
-%{_sbindir}/rc%{name}
+%ghost %dir %attr(0755,root,root) /run/dovecot/
+%ghost %dir %attr(0755,root,dovecot) /run/dovecot/login/
+%ghost %dir %attr(0750,root,root) %{_localstatedir}/lib/%{name}
+%config(noreplace) /%{_pam_vendordir}/%{name}
+%{_sysusersdir}/%{name}.conf
 %{_tmpfilesdir}/%{name}.conf
 %{_unitdir}/%{name}.service
 %{_unitdir}/%{name}.socket
-%dir %attr(0750,root,root) %{_localstatedir}/lib/%{name}
-%ghost %dir /run/%{name}
-%ghost %dir /run/%{name}/login
 

++++++ dovecot-user.conf ++++++
g dovecot - -
u dovecot - "User for Dovecot imapd" /run/dovecot
u dovenull - "User for Dovecot login" /run/dovecot
m dovecot dovecot
m dovenull dovecot

Reply via email to