2ad78a7
Name:           monit
eb83925
Version:        5.26.0
7f96b70
Release:        6%{?dist}
2ad78a7
Summary:        Manages and monitors processes, files, directories and devices
2ad78a7
ee970d4
License:        AGPLv3
39e7359
URL:            http://mmonit.com/monit/
39e7359
Source0:        http://mmonit.com/monit/dist/%{name}-%{version}.tar.gz
186d640
Source1:        monit.service
2ad78a7
2a232aa
BuildRequires: make
eb83925
BuildRequires: gcc
afb7303
BuildRequires: flex
afb7303
BuildRequires: openssl-devel
afb7303
BuildRequires: pam-devel
afb7303
BuildRequires: byacc
39e7359
BuildRequires: systemd
eb83925
BuildRequires: zlib-devel
2ad78a7
186d640
%{?systemd_requires}
186d640
BuildRequires: systemd
689e6d1
2ad78a7
%description
2ad78a7
monit is a utility for managing and monitoring, processes, files, directories
2ad78a7
and devices on a UNIX system. Monit conducts automatic maintenance and repair
2ad78a7
and can execute meaningful causal actions in error situations.
2ad78a7
86c9a57
2ad78a7
%prep
2ad78a7
%setup -q
2ad78a7
2ad78a7
%build
eb09827
%configure --disable-static
2ad78a7
make %{?_smp_mflags}
2ad78a7
2ad78a7
%install
2ad78a7
rm -rf $RPM_BUILD_ROOT
2ad78a7
make install DESTDIR=$RPM_BUILD_ROOT
2ad78a7
86c9a57
install -p -D -m0600 monitrc $RPM_BUILD_ROOT%{_sysconfdir}/monitrc
c95b957
install -p -D -m0755 monit $RPM_BUILD_ROOT%{_bindir}/monit
c95b957
86c9a57
# systemd service file
ee970d4
mkdir -p ${RPM_BUILD_ROOT}%{_unitdir}
186d640
install -m0644 %{SOURCE1} ${RPM_BUILD_ROOT}%{_unitdir}/monit.service
86c9a57
c95b957
# Let's include some good defaults
c95b957
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/monit.d
c95b957
86c9a57
%{__sed} -i 's/# set daemon  120.*/set daemon 60  # check services at 1-minute intervals/' \
86c9a57
    $RPM_BUILD_ROOT%{_sysconfdir}/monitrc
047c6e0
86c9a57
%{__sed} -i 's/#  include \/etc\/monit.d\/\*/include \/etc\/monit.d\/\*/' \
86c9a57
    $RPM_BUILD_ROOT%{_sysconfdir}/monitrc
2ad78a7
2ad78a7
%post
39e7359
%systemd_post monit.service
d0ee2c9
d0ee2c9
# Moving old style configuration file to upstream's default location
d0ee2c9
[ -f %{_sysconfdir}/monit.conf ] &&
d0ee2c9
    touch -r %{_sysconfdir}/monitrc %{_sysconfdir}/monit.conf &&
d0ee2c9
    mv -f %{_sysconfdir}/monit.conf %{_sysconfdir}/monitrc 2> /dev/null || :
2ad78a7
afb7303
%preun
39e7359
%systemd_preun monit.service
2ad78a7
afb7303
%postun
39e7359
%systemd_postun_with_restart monit.service
86c9a57
2ad78a7
%files
213aa15
%doc COPYING README
86c9a57
%config(noreplace) %{_sysconfdir}/monitrc
afb7303
%{_unitdir}/monit.service
c95b957
%{_sysconfdir}/monit.d/
2ad78a7
%{_bindir}/%{name}
c95b957
%{_mandir}/man1/monit.1*
2ad78a7
2ad78a7
%changelog
7f96b70
* Tue Sep 14 2021 Sahana Prasad <sahana@redhat.com> - 5.26.0-6
7f96b70
- Rebuilt with OpenSSL 3.0.0
7f96b70
4d0ac87
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.26.0-5
4d0ac87
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
4d0ac87
36bccf9
* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 5.26.0-4
36bccf9
- Rebuilt for updated systemd-rpm-macros
36bccf9
  See https://pagure.io/fesco/issue/2583.
36bccf9
0e1dd01
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.26.0-3
0e1dd01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
0e1dd01
4683b36
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.26.0-2
4683b36
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
4683b36
eb83925
* Tue Mar 3 2020 Stewart Adam <s.adam@diffingo.com> - 5.26.0-1
eb83925
- Update to 5.26.0
eb83925
85aa31d
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.25.1-8
85aa31d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
85aa31d
027a3b7
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.25.1-7
027a3b7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
027a3b7
b2572d9
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.25.1-6
b2572d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
b2572d9
0fff9bf
* Mon Jan 14 2019 Björn Esser <besser82@fedoraproject.org> - 5.25.1-5
0fff9bf
- Rebuilt for libcrypt.so.2 (#1666033)
0fff9bf
4168cc7
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.25.1-4
4168cc7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
4168cc7
d75a4a2
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.25.1-3
d75a4a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
d75a4a2
f7fca9d
* Sat Jan 20 2018 Björn Esser <besser82@fedoraproject.org> - 5.25.1-2
f7fca9d
- Rebuilt for switch to libxcrypt
f7fca9d
ff59bf8
* Tue Dec 26 2017 Stewart Adam <s.adam@diffingo.com> - 5.25.1-1
ff59bf8
- Update to new upstream release 5.25.1 (#1311640, #1390112)
ff59bf8
c92afdf
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.19.0-4
c92afdf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
c92afdf
d0574a8
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.19.0-3
d0574a8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
d0574a8
48f7e0e
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.19.0-2
48f7e0e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
48f7e0e
186d640
* Sat Oct 15 2016 Stewart Adam <s.adam@diffingo.com> - 5.19.0-1
186d640
- Update to upstream release 5.19.0, fixes #1325633
186d640
- Remove sysvinit conversion to systemd, fixes #1094916
186d640
- Remove logging to /var/log/monit.log in favor of logging to journald
186d640
26c01a9
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.14-2
26c01a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
26c01a9
213aa15
* Sat Sep 12 2015 Stewart Adam <s.adam@diffingo.com> - 5.14-1
213aa15
- Upgrading to new upstream release 5.14.0
213aa15
6ad50db
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.6-4
6ad50db
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
6ad50db
dacad8c
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.6-3
dacad8c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
dacad8c
cff3196
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.6-2
cff3196
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
cff3196
39e7359
* Wed Dec 04 2013 Maxim Burgerhout <maxim@wzzrd.com> - 5.6.0-1
39e7359
- Upgrading to new upstream release 5.6.0
39e7359
a0ce4db
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.1-6
a0ce4db
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
a0ce4db
61fca2b
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.1-5
61fca2b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
61fca2b
6ebee89
* Fri Jul 27 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.1-4
6ebee89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
6ebee89
b3923da
* Mon Jan 9 2012 Maxim Burgerhout <wzzrd@fedoraproject.org> - 5.3.1-3
b3923da
- Fix systemd unit file
b3923da
ecb2b2d
* Sun Jan 8 2012 Maxim Burgerhout <wzzrd@fedoraproject.org> - 5.3.1-2
ecb2b2d
- Rebuild for gcc 4.7
ecb2b2d
f72dc1e
* Sun Nov 13 2011 Maxim Burgerhout <wzzrd@fedoraproject.org> - 5.3.1-1
f72dc1e
- New upstream release 5.3.1
f72dc1e
- Added systemd unit file and dropped sysv init support
f72dc1e
- Dropped the patch that changed the default name of the configuration file
f72dc1e
- Dropped the patch that silenced daemon startup
86c9a57
a0abab9
* Wed Oct 26 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.2.5-2
a0abab9
- Rebuilt for glibc bug#747377
a0abab9
66911e0
* Sat May 07 2011 Maxim Burgerhout <wzzrd@fedoraproject.org> - 5.2.5-1
66911e0
- Sync to upstream bugfix release; most important new features:
66911e0
- Memory footprint decreased by 10%
66911e0
- Logfile default umask changed to 0640
66911e0
- New CLI command to test regexps for process names
66911e0
- And various bugfixes
66911e0
1c030be
* Thu Aug 05 2010 Maxim Burgerhout <wzzrd@fedoraproject.org> - 5.2.3-1
1c030be
- Update to new upstream version 5.2.3; new features in 5.2.3 include:
1c030be
- MySQL protocol now support version 5.5
1c030be
- Support for monitoring swap usage
1c030be
- Allow process monitoring based on output of ps and regexps
1c030be
- Various bugfixes
1c030be
451cf80
* Thu Aug 05 2010 Maxim Burgerhout <wzzrd@fedoraproject.org> - 5.1.1-2
451cf80
- Enabled PAM authentication (bz #621599)
451cf80
eb09827
* Mon Jul 05 2010 Maxim Burgerhout <wzzrd@fedoraproject.org> - 5.1.1-1
eb09827
- Version bump to 5.1.1 (needed new version of monit-no-startup-msg.patch)
eb09827
- Ghosted the logfile
eb09827
8603b81
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 5.0.3-2
8603b81
- rebuilt with new openssl
8603b81
f2559f8
* Fri Aug 14 2009 Stewart Adam <s.adam at diffingo.com> - 5.0.3-1
f2559f8
- Update to 5.0.3 (thanks to Lubomir Rintel of Good Data for the patch)
f2559f8
2dbef0a
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.10.1-11
2dbef0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2dbef0a
897149e
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.10.1-10
897149e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
897149e
e0218e9
* Sat Jan 17 2009 Tomas Mraz <tmraz@redhat.com> 4.10.1-9
e0218e9
- rebuild with new openssl
e0218e9
c95b957
* Mon Dec 22 2008 Stewart Adam <s.adam at diffingo.com> 4.10.1-8
c95b957
- Tweak configuration defaults: include /etc/monit.d/*, log to /var/log/monit
c95b957
  and set daemon time to 60s
c95b957
- Don't use $desc in initscript
c95b957
- Add patch to search for monit.conf by default (#475044)
c95b957
- Add patch to remove redundant startup message
c95b957
2be4000
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 4.10.1-7
2be4000
- Autorebuild for GCC 4.3
2be4000
262d8ec
* Wed Dec 05 2007 Release Engineering <rel-eng at fedoraproject dot org> - 4.10.1-6
262d8ec
 - Rebuild for deps
262d8ec
25e326f
* Wed Dec 5 2007 Stewart Adam <s.adam at diffingo.com> 4.10.1-5
25e326f
- Rebuild to fix broken deps on libssl.so.6 and libcrypto.so.6
25e326f
a34b437
* Sat Nov 24 2007 Stewart Adam <s.adam at diffingo.com> 4.10.1-4
a34b437
- Substitute RPM macros for their real values in monit.conf (#397671)
a34b437
2ad78a7
* Tue Nov 13 2007 Stewart Adam <s.adam at diffingo.com> 4.10.1-3
2ad78a7
- Bump
2ad78a7
- Fix changelog date for previous entry
2ad78a7
2ad78a7
* Mon Nov 12 2007 Stewart Adam <s.adam at diffingo.com> 4.10.1-2.1
2ad78a7
- Switch back to OpenSSL since NSS isn't working too well with Monit
2ad78a7
2ad78a7
* Wed Nov 7 2007 Stewart Adam <s.adam at diffingo.com> 4.10.1-2
2ad78a7
- License is actually GPLv3+
2ad78a7
- s/%%{__install}/%%{__install} -p/
2ad78a7
- NSS-ize
2ad78a7
2ad78a7
* Tue Nov 6 2007 Stewart Adam <s.adam at diffingo.com> 4.10.1-1
2ad78a7
- Initial RPM release