Accepting request 856057 from devel:languages:python:mailman
- Fix systemd services - Add missing services and timers to systemd OBS-URL: https://build.opensuse.org/request/show/856057 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mailman?expand=0&rev=8
This commit is contained in:
commit
fefaaac009
@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 15 09:19:44 UTC 2020 - Andreas Schneider <asn@cryptomilk.org>
|
||||
|
||||
- Fix systemd services
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 15 08:57:37 UTC 2020 - Andreas Schneider <asn@cryptomilk.org>
|
||||
|
||||
- Add missing services and timers to systemd
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Nov 28 17:49:08 UTC 2020 - Michael Ströder <michael@stroeder.com>
|
||||
|
||||
|
@ -26,6 +26,8 @@
|
||||
%define mailman_rundir %{_rundir}/%{mailman_name}
|
||||
%define mailman_lockdir %{_rundir}/lock/%{mailman_name}
|
||||
|
||||
%global mailman_services %{mailman_name}.service %{mailman_name}-digest.service %{mailman_name}-digest.timer
|
||||
|
||||
%global flavor @BUILD_FLAVOR@%{nil}
|
||||
%if "%{flavor}" == "test"
|
||||
%define psuffix -test
|
||||
@ -209,20 +211,20 @@ getent passwd %{mailman_user} >/dev/null || \
|
||||
%{_sbindir}/useradd -r -g %{mailman_group} -s /sbin/nologin \
|
||||
-c "mailman daemon user" -d %{mailman_homedir} %{mailman_user}
|
||||
%{_sbindir}/usermod -g %{mailman_group} %{mailman_user} >/dev/null
|
||||
%service_add_pre %{mailman_name}.service
|
||||
%service_add_pre %{mailman_services}
|
||||
|
||||
%post
|
||||
%python_install_alternative master
|
||||
%python_install_alternative mailman
|
||||
%python_install_alternative runner
|
||||
%tmpfiles_create %{_tmpfilesdir}/%{mailman_name}.conf
|
||||
%service_add_post %{mailman_name}.service
|
||||
%service_add_post %{mailman_services}
|
||||
|
||||
%preun
|
||||
%service_del_preun %{mailman_name}.service
|
||||
%service_del_preun %{mailman_services}
|
||||
|
||||
%postun
|
||||
%service_del_postun %{mailman_name}.service
|
||||
%service_del_postun %{mailman_services}
|
||||
%python_uninstall_alternative master
|
||||
%python_uninstall_alternative mailman
|
||||
%python_uninstall_alternative runner
|
||||
|
Loading…
Reference in New Issue
Block a user