This commit is contained in:
2022-03-23 09:15:16 +01:00
parent 9c8e7db788
commit e82685fc21
10 changed files with 130 additions and 88 deletions

View File

@@ -1,5 +1,5 @@
Name: md-renewed
Version: 1.3.4
Version: 1.4.3
Release: 1%{?dist}
Summary: Restart service on Apache module mod_md certificate renewal
License: MIT
@@ -9,14 +9,18 @@ BuildArch: noarch
Source0: md-renewed
Source1: md-message
Source2: md-renewed.path
Source3: md-renewed.service
Source4: md-renewed.timer
Source5: md-renewed-install
Source6: md-renewed-install.path
Source6: md-renewed-install.timer
Source7: md-renewed-install.service
Source10: md-renewed-httpd.conf
Source11: md-renewed.conf
Source20: example.service
Source21: example.cert
Source22: example.sh
@@ -41,6 +45,7 @@ Restart service on Apache module mod_md certificate renewal
%{__install} -d -m 0755 %{buildroot}%{_unitdir}
%{__install} -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/
%{__install} -m 0644 %{SOURCE3} %{buildroot}%{_unitdir}/
%{__install} -m 0644 %{SOURCE4} %{buildroot}%{_unitdir}/
%{__install} -m 0644 %{SOURCE6} %{buildroot}%{_unitdir}/
%{__install} -m 0644 %{SOURCE7} %{buildroot}%{_unitdir}/
@@ -66,15 +71,18 @@ Restart service on Apache module mod_md certificate renewal
%post
%systemd_post md-renewed.path
%systemd_post md-renewed-install.path
%systemd_post md-renewed.timer
%systemd_post md-renewed-install.timer
%preun
%systemd_preun md-renewed.path
%systemd_preun md-renewed-install.path
%systemd_preun md-renewed.timer
%systemd_preun md-renewed-install.timer
%postun
%systemd_postun md-renewed.path
%systemd_postun md-renewed-install.path
%systemd_postun md-renewed.timer
%systemd_postun md-renewed-install.timer
%clean
%{__rm} -rf %{buildroot}
@@ -93,7 +101,8 @@ Restart service on Apache module mod_md certificate renewal
%{_unitdir}/md-renewed.service
%{_unitdir}/md-renewed-install.service
%{_unitdir}/md-renewed.path
%{_unitdir}/md-renewed-install.path
%{_unitdir}/md-renewed.timer
%{_unitdir}/md-renewed-install.timer
%dir %attr(-, root, apache) %{_sharedstatedir}/httpd/md-renewed/
%dir %attr(-, root, apache) %{_sharedstatedir}/httpd/md-renewed/errored