]>
Commit | Line | Data |
---|---|---|
3144b7ee | 1 | Summary: Program to send (Nagios) alerts via jabber |
d22ed022 | 2 | Summary(pl.UTF-8): Program do wysyłania alarmów (Nagiosa) przez jabbera |
3144b7ee | 3 | Name: nagios-alert-jabber |
a79c5045 | 4 | Version: 1.2 |
458fe103 | 5 | Release: 10 |
3144b7ee ER |
6 | License: GPL |
7 | Group: Networking | |
8 | Source0: nagios-jabber.alert | |
ccf64c97 | 9 | Requires: cyrus-sasl-plain |
4024051d | 10 | Requires: nagios-common |
ccf64c97 | 11 | Requires: python-M2Crypto |
3144b7ee ER |
12 | Requires: python-pyxmpp |
13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
14 | ||
4cc3adb3 ER |
15 | %define _sysconfdir /etc/nagios |
16 | ||
3144b7ee ER |
17 | %description |
18 | nagios-jabber.alert is a program to send Nagios (or other) | |
19 | notifications over jabber protocol. | |
20 | ||
a3b35eb5 JR |
21 | %description -l pl.UTF-8 |
22 | nagios-jabber.alert to program do wysyłania powiadomień Nagiosa (lub | |
be4c64b3 JB |
23 | innych) po protokole jabber. |
24 | ||
3144b7ee ER |
25 | %prep |
26 | %setup -q -c -T | |
27 | install %{SOURCE0} . | |
4cc3adb3 ER |
28 | cat <<'EOF' > jabber-notify.ini |
29 | ; jabber id and password for jabber-notify script | |
30 | [jabber_id@example.org] | |
31 | jid = jid@example.org | |
32 | password = PASSWORD | |
33 | EOF | |
3144b7ee ER |
34 | |
35 | %install | |
36 | rm -rf $RPM_BUILD_ROOT | |
4cc3adb3 ER |
37 | install -d $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir}} |
38 | install nagios-jabber.alert $RPM_BUILD_ROOT%{_sbindir}/nagios-notify-jabber | |
39 | cp -a jabber-notify.ini $RPM_BUILD_ROOT%{_sysconfdir} | |
3144b7ee ER |
40 | |
41 | %clean | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
44 | %files | |
45 | %defattr(644,root,root,755) | |
4024051d | 46 | %attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/jabber-notify.ini |
4cc3adb3 | 47 | %attr(755,root,root) %{_sbindir}/nagios-notify-jabber |