-
Notifications
You must be signed in to change notification settings - Fork 2
/
nagios-plugins-gitlab.spec
53 lines (37 loc) · 1.07 KB
/
nagios-plugins-gitlab.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Name: nagios-plugins-gitlab
Version: 1.0.1
Release: 1%{?dist}
Summary: Gitlab plugin for Icinga/Nagios
Group: Applications/System
License: GPLv3
URL: https://github.com/scrat14/check_gitlab
Source0: check_gitlab-%{version}.tar.gz
BuildRoot: %{_tmppath}/check_gitlab-%{version}-%{release}-root
%description
This plugin for Icinga/Nagios is used to monitor status of Gitlab
services.
BuildRequires: sudo
BuildRequires: nagios-plugins
Requires: sudo
%prep
%setup -q -n check_gitlab-%{version}
%build
%configure --prefix=%{_libdir}/nagios/plugins \
--with-nagios-user=nagios \
--with-nagios-group=nagios
make all
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT INSTALL_OPTS=""
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(0755,nagios,nagios)
%{_libdir}/nagios/plugins/check_gitlab
%attr(0440,root,root) %{_sysconfdir}/sudoers.d/check_gitlab
%doc README INSTALL NEWS ChangeLog LICENSE
%changelog
* Tue Oct 27 2015 Rene Koch <[email protected]> 1.0.1-1
- Fixed permissions for sudoers file.
* Wed Apr 29 2015 Rene Koch <[email protected]> 1.0-1
- Initial build.