-
Notifications
You must be signed in to change notification settings - Fork 3
/
eonapi.spec
92 lines (74 loc) · 3.09 KB
/
eonapi.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
Summary: API for the EON suite.
Name: eonapi
Version: 2.1
Release: 0.eon
Source: https://github.com/EyesOfNetworkCommunity/%{name}/archive/%{version}-%{release}.tar.gz
Group: Applications/System
License: GPL
Vendor: EyesOfNetwork Community
URL: https://github.com/EyesOfNetworkCommunity/eonapi
Requires: eonweb >= 6.0
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%define eondir /srv/eyesofnetwork
%define datadir %{eondir}/%{name}
%description
Eyes Of Network includes a web-based "RESTful" API (Application Programming Interface) called EONAPI that enables external programs to access information from the monitoring database and to manipulate objects inside the databases of EON suite.
%prep
%setup -q -n %{name}-%{version}-%{release}
%build
%install
install -d -m0755 %{buildroot}%{datadir}
install -d -m0755 %{buildroot}%{_sysconfdir}/httpd/conf.d
cp -afv ./* %{buildroot}%{datadir}
install -m 640 eonapi.conf %{buildroot}%{_sysconfdir}/httpd/conf.d/
rm -rf %{buildroot}%{datadir}/%{name}.spec
%post
systemctl restart httpd
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,eyesofnetwork)
%{eondir}
%defattr(-,root,root)
%{_sysconfdir}/httpd/conf.d/eonapi.conf
%changelog
* Wed Sep 15 2021 Julien GONZALEZ <[email protected]> - 2.1-0
- Update code compatibility for PHP 8
* Thu Dec 03 2020 Sebastien DAVOULT <[email protected]> - 2.0-3
- issue #16 injection getApiKey
- fix exception
- Add jekyll + Wiredcraft to manage documentation in eonapi
- Add Jekyll Documentation
- Update api_functions sql
- Fix verifyAuthenticationByApiKey()
* Fri Feb 07 2020 Sebastien DAVOULT <[email protected]> - 2.0-2
- FIX modifyNagiosMainConfiguration set value to none (null)
- FIX mysql_real_escape_string() for [username,password,apiKey] variables
- FIX APIKEY is now based on machine-id
* Thu Jul 24 2019 Sebastien DAVOULT <[email protected]> - 2.0-1
- FIX manage displayName
- Add "modifyHostTemplate"
- Add "deleteEonUser"
- Add "modifyEonUser"
- Add "createEonUser"
- Add "{create,modify,delete}EonGroup", add new features to manage eonweb group (create/modify/delete)
- Add "exporterNotifierConfig", add function witch manage the exportation of notifier config
- Add verification on the function add and modify rules
- Add modifyNotifier{Rule,Method,Timeperiod}
- Add {add,delete}Notifier{Rule,Method,Timeperiod}
- FIX access class method
- Backend: creation of foundations of the notifier database management (MVC modele)
- Add the management of Global Nagios configuration
- Add "deleteServiceGroup"
- Add "createServiceGroup"
- Add "createContactGroup"
* Mon May 06 2019 Jean-Philippe Levy <[email protected]> - 2.0-0
- Update to 2.0
* Thu Jun 14 2018 Jean-Philippe Levy <[email protected]> - 1.0-3
- Add addEventBroker and delEventBroker functions
* Sun May 13 2018 Jean-Philippe Levy <[email protected]> - 1.0-2
- Fix installation for EyesOfNetwork 5.2.
* Thu Oct 26 2017 Michael Aubertin <[email protected]> - 1.0-1
- Fix permission issue.
* Wed Oct 25 2017 Lucas Salinas - 1.0-0
-Package for EyesOfNetwork API.