]> git.pld-linux.org Git - SPECS.git/blob - monit-rc-apache1.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / monit-rc-apache1.spec
1 Summary:        monitrc file for monitoring Apache 1.x web server
2 Summary(pl.UTF-8):      Plik monitrc do monitorowania serwera WWW Apache 1.x
3 Name:           monit-rc-apache1
4 Version:        1.2
5 Release:        2
6 License:        GPL
7 Group:          Applications/System
8 Source0:        apache1.monitrc
9 Source1:        apache1.cron
10 BuildRequires:  rpmbuild(macros) >= 1.268
11 Requires(post,postun):  monit
12 Requires:       apache1-base >= 1.3.39-2
13 Requires:       monit
14 Suggests:       crondaemon
15 BuildArch:      noarch
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 monitrc file for monitoring Apache 1.x web server.
20
21 %description -l pl.UTF-8
22 Plik monitrc do monitorowania serwera WWW Apache 1.x.
23
24 %prep
25
26 %install
27 rm -rf $RPM_BUILD_ROOT
28 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/monit,/etc/cron.d}
29
30 cp -p %{SOURCE0} $RPM_BUILD_ROOT%{_sysconfdir}/monit/apache.monitrc
31 cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.d/%{name}
32
33 %clean
34 rm -rf $RPM_BUILD_ROOT
35
36 %post
37 %service -q monit restart
38
39 %postun
40 %service -q monit restart
41
42 %triggerpostun -- apache1 < 1.3.34-5.9
43 # rename monitrc to be service name like other files
44 if [ -f /etc/monit/apache1.monitrc.rpmsave ]; then
45         mv -f /etc/monit/apache.monitrc{,.rpmnew}
46         mv -f /etc/monit/{apache1.monitrc.rpmsave,apache.monitrc}
47 fi
48
49 %files
50 %defattr(644,root,root,755)
51 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/monit/*.monitrc
52 %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}
This page took 0.083251 seconds and 3 git commands to generate.