-
Notifications
You must be signed in to change notification settings - Fork 0
/
zbx_mod_mysql.spec.in
49 lines (39 loc) · 1.1 KB
/
zbx_mod_mysql.spec.in
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
# Global macros and bconds:
%define _zbxmoddir %{expand:%(pkg-config zabbix-1.0 --variable=modulesdir)}
%define _sysconfdir %{expand:%(pkg-config zabbix-1.0 --variable=sysconfdir)}
Summary: Zabbix agent loadable module MySQL extenson
Name: zbx_mod_mysql
Version: @VERSION@
Release: 1%{?dist}
License: GPL v2+
Source0: zbx_mod_mysql-%{version}.tar.xz
URL: https://www.zabbix.com/
BuildRequires: pkgconfig
BuildRequires: zabbix-devel
Requires: zabbix-agentd
%description
Zabbix agent loadable module MySQL extenson.
It provides set of additional zabbix agent keys to monitor MySQL engine.
%prep
%autosetup -p1
%build
%configure \
LDFLAGS="-Wl,--as-needed"
%make_build
%install
%make_install
%check
%__make check
%post
%systemd_post zabbix-agent.service
%postun
%systemd_postun_with_restart zabbix-agent.service
%files
%doc AUTHORS ChangeLog NEWS README
%license COPYING
%{_sysconfdir}/zabbix_agentd/LoadModule=zbx_mod_mysql.so
%attr(755,root,root) %{_zbxmoddir}/zbx_mod_mysql.so
%exclude %{_zbxmoddir}/*.la
%changelog
* Thu Feb 2 2017 Tomasz Kłoczko <[email protected]> - 1.0.0-1%{?dist}
- initial version.