Initial commit
This commit is contained in:
81
md-renewed.spec
Normal file
81
md-renewed.spec
Normal file
@@ -0,0 +1,81 @@
|
||||
Name: md-renewed
|
||||
Version: 1.0.0
|
||||
Release: 1%{?dist}
|
||||
Summary: Restart service on Apache module mod_md certificate renewal
|
||||
License: MIT
|
||||
Group: System Environment/Base
|
||||
URL: http://netst.org/pub/fedora/st/
|
||||
BuildArch: noarch
|
||||
|
||||
Source0: md-renewed
|
||||
Source1: md-message
|
||||
Source2: md-renewed.path
|
||||
Source3: md-renewed.service
|
||||
Source4: md-renewed-tmpfiles.conf
|
||||
Source5: md-renewed.conf
|
||||
Source6: example.service
|
||||
Source7: example.cert
|
||||
Source8: example.sh
|
||||
|
||||
Requires: httpd
|
||||
%{?systemd_requires}
|
||||
BuildRequires: systemd-rpm-macros
|
||||
|
||||
%description
|
||||
Restart service on Apache module mod_md certificate renewal
|
||||
|
||||
%install
|
||||
%{__rm} -rf %{buildroot}
|
||||
|
||||
install -d -m 0755 %{buildroot}%{_libexecdir}/md-renewed
|
||||
install -m 0644 %{SOURCE0} %{buildroot}%{_libexecdir}/md-renewed/
|
||||
install -m 0644 %{SOURCE1} %{buildroot}%{_libexecdir}/md-renewed/
|
||||
|
||||
install -d -m 0755 %{buildroot}%{_unitdir}
|
||||
install -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/
|
||||
install -m 0644 %{SOURCE3} %{buildroot}%{_unitdir}/
|
||||
|
||||
install -d -m 0755 %{buildroot}%{_tmpfilesdir}
|
||||
install -m 0644 %{SOURCE4} %{buildroot}%{_tmpfilesdir}/md-renewed.conf
|
||||
|
||||
install -d -m 0755 %{buildroot}%{_sysconfdir}/httpd/conf.d
|
||||
install -m 0644 %{SOURCE5} %{buildroot}%{_sysconfdir}/httpd/conf.d/
|
||||
|
||||
|
||||
install -d -m 0755 %{buildroot}%{_sysconfdir}/md-renewed
|
||||
install -d -m 0755 %{buildroot}%{_sysconfdir}/md-renewed/example.com
|
||||
install -m 0644 %{SOURCE6} %{buildroot}%{_sysconfdir}/md-renewed/example.com/
|
||||
install -m 0644 %{SOURCE7} %{buildroot}%{_sysconfdir}/md-renewed/example.com/
|
||||
install -m 0755 %{SOURCE8} %{buildroot}%{_sysconfdir}/md-renewed/example.com/
|
||||
|
||||
%post
|
||||
%systemd_post md-renewed.service
|
||||
|
||||
%tmpfiles_create %{_tmpfilesdir}/md-renewed.conf
|
||||
|
||||
%preun
|
||||
%systemd_preun md-renewed.service
|
||||
|
||||
|
||||
%postun
|
||||
%systemd_postun md-renewed.service
|
||||
|
||||
%clean
|
||||
%{__rm} -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
|
||||
%dir %{_sysconfdir}/md-renewed
|
||||
%config %{_sysconfdir}/md-renewed/*
|
||||
%config %{_sysconfdir}/httpd/conf.d/md-renewed.conf
|
||||
|
||||
%{_libexecdir}/md-renewed/md-renewed
|
||||
%{_libexecdir}/md-renewed/md-message
|
||||
%{_unitdir}/md-renewed.service
|
||||
%{_unitdir}/md-renewed.path
|
||||
%{_tmpfilesdir}/md-renewed.conf
|
||||
|
||||
%changelog
|
||||
* Thu Nov 30 2021 Zoran Pericic <zpericic@netst.org> - 1.0.0-1
|
||||
Initial release
|
||||
Reference in New Issue
Block a user