Accepting request 856542 from home:gladiac:mailman3
- Added mailman-notify.service and mailman-notify.timer - Added rcmailman* service symlinks - Added missing logrotate requirement OBS-URL: https://build.opensuse.org/request/show/856542 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:mailman/python-mailman?expand=0&rev=36
This commit is contained in:
parent
ad7d6e9570
commit
aa07b309bf
8
mailman-notify.service
Normal file
8
mailman-notify.service
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Notify list owners/moderators of pending requests.
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=/usr/bin/mailman notify
|
||||||
|
User=mailman
|
||||||
|
Group=mailman
|
10
mailman-notify.timer
Normal file
10
mailman-notify.timer
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Run mailman-notify.service every day
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnCalendar=*-*-* 08:00:00
|
||||||
|
RandomizedDelaySec=15m
|
||||||
|
Persistent=true
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=basic.target
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Dec 15 19:28:48 UTC 2020 - Andreas Schneider <asn@cryptomilk.org>
|
||||||
|
|
||||||
|
- Added mailman-notify.service and mailman-notify.timer
|
||||||
|
- Added rcmailman* service symlinks
|
||||||
|
- Added missing logrotate requirement
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Dec 15 09:19:44 UTC 2020 - Andreas Schneider <asn@cryptomilk.org>
|
Tue Dec 15 09:19:44 UTC 2020 - Andreas Schneider <asn@cryptomilk.org>
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
%define mailman_rundir %{_rundir}/%{mailman_name}
|
%define mailman_rundir %{_rundir}/%{mailman_name}
|
||||||
%define mailman_lockdir %{_rundir}/lock/%{mailman_name}
|
%define mailman_lockdir %{_rundir}/lock/%{mailman_name}
|
||||||
|
|
||||||
%global mailman_services %{mailman_name}.service %{mailman_name}-digest.service %{mailman_name}-digest.timer
|
%global mailman_services %{mailman_name}.service %{mailman_name}-digests.service %{mailman_name}-digests.timer %{mailman_name}-notify.service %{mailman_name}-notify.timer
|
||||||
|
|
||||||
%global flavor @BUILD_FLAVOR@%{nil}
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
%if "%{flavor}" == "test"
|
%if "%{flavor}" == "test"
|
||||||
@ -53,6 +53,8 @@ Source13: mailman.logrotate
|
|||||||
#
|
#
|
||||||
Source20: mailman-digests.service
|
Source20: mailman-digests.service
|
||||||
Source21: mailman-digests.timer
|
Source21: mailman-digests.timer
|
||||||
|
Source22: mailman-notify.service
|
||||||
|
Source23: mailman-notify.timer
|
||||||
#
|
#
|
||||||
Source30: README.SUSE.md
|
Source30: README.SUSE.md
|
||||||
#
|
#
|
||||||
@ -63,6 +65,7 @@ Patch0: python-mailman-test_interact_default_banner.patch
|
|||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires: logrotate
|
||||||
Requires: python-SQLAlchemy >= 1.2.3
|
Requires: python-SQLAlchemy >= 1.2.3
|
||||||
Requires: python-aiosmtpd >= 1.1
|
Requires: python-aiosmtpd >= 1.1
|
||||||
Requires: python-alembic
|
Requires: python-alembic
|
||||||
@ -160,6 +163,7 @@ install -d -m 0755 \
|
|||||||
%{buildroot}%{_sysconfdir}/logrotate.d \
|
%{buildroot}%{_sysconfdir}/logrotate.d \
|
||||||
%{buildroot}%{_sysconfdir}/%{mailman_name}.d \
|
%{buildroot}%{_sysconfdir}/%{mailman_name}.d \
|
||||||
%{buildroot}%{_tmpfilesdir} \
|
%{buildroot}%{_tmpfilesdir} \
|
||||||
|
%{buildroot}%{_sbindir} \
|
||||||
%{buildroot}%{_unitdir} \
|
%{buildroot}%{_unitdir} \
|
||||||
%{buildroot}%{mailman_homedir} \
|
%{buildroot}%{mailman_homedir} \
|
||||||
%{buildroot}%{mailman_homedir}/data \
|
%{buildroot}%{mailman_homedir}/data \
|
||||||
@ -177,6 +181,12 @@ sed -i 's,@LOGDIR@,%{mailman_logdir},g;s,@BINDIR@,%{_bindir},g' \
|
|||||||
|
|
||||||
install -m 0644 %{SOURCE20} %{buildroot}%{_unitdir}/%{mailman_name}-digests.service
|
install -m 0644 %{SOURCE20} %{buildroot}%{_unitdir}/%{mailman_name}-digests.service
|
||||||
install -m 0644 %{SOURCE21} %{buildroot}%{_unitdir}/%{mailman_name}-digests.timer
|
install -m 0644 %{SOURCE21} %{buildroot}%{_unitdir}/%{mailman_name}-digests.timer
|
||||||
|
install -m 0644 %{SOURCE22} %{buildroot}%{_unitdir}/%{mailman_name}-notify.service
|
||||||
|
install -m 0644 %{SOURCE23} %{buildroot}%{_unitdir}/%{mailman_name}-notify.timer
|
||||||
|
|
||||||
|
ln -s /sbin/service %{buildroot}%{_sbindir}/rc%{mailman_name}
|
||||||
|
ln -s /sbin/service %{buildroot}%{_sbindir}/rc%{mailman_name}-digests
|
||||||
|
ln -s /sbin/service %{buildroot}%{_sbindir}/rc%{mailman_name}-notify
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -232,6 +242,8 @@ getent passwd %{mailman_user} >/dev/null || \
|
|||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst README.SUSE.md
|
%doc README.rst README.SUSE.md
|
||||||
%license COPYING
|
%license COPYING
|
||||||
|
%{_sbindir}/rc%{mailman_name}*
|
||||||
|
|
||||||
%python_alternative %{_bindir}/runner
|
%python_alternative %{_bindir}/runner
|
||||||
%python_alternative %{_bindir}/mailman
|
%python_alternative %{_bindir}/mailman
|
||||||
%python_alternative %{_bindir}/master
|
%python_alternative %{_bindir}/master
|
||||||
@ -240,6 +252,8 @@ getent passwd %{mailman_user} >/dev/null || \
|
|||||||
%{_unitdir}/%{mailman_name}.service
|
%{_unitdir}/%{mailman_name}.service
|
||||||
%{_unitdir}/%{mailman_name}-digests.service
|
%{_unitdir}/%{mailman_name}-digests.service
|
||||||
%{_unitdir}/%{mailman_name}-digests.timer
|
%{_unitdir}/%{mailman_name}-digests.timer
|
||||||
|
%{_unitdir}/%{mailman_name}-notify.service
|
||||||
|
%{_unitdir}/%{mailman_name}-notify.timer
|
||||||
%{_tmpfilesdir}/%{mailman_name}.conf
|
%{_tmpfilesdir}/%{mailman_name}.conf
|
||||||
|
|
||||||
%config(noreplace) %attr(640,root,mailman) %{_sysconfdir}/mailman.cfg
|
%config(noreplace) %attr(640,root,mailman) %{_sysconfdir}/mailman.cfg
|
||||||
|
Loading…
x
Reference in New Issue
Block a user