]> git.pld-linux.org Git - SPECS.git/blob - nagios-alert-jabber.spec
SPECS updated Tue 30 Apr 15:06:09 CEST 2024
[SPECS.git] / nagios-alert-jabber.spec
1 Summary:        Program to send (Nagios) alerts via jabber
2 Summary(pl.UTF-8):      Program do wysyłania alarmów (Nagiosa) przez jabbera
3 Name:           nagios-alert-jabber
4 Version:        1.3
5 Release:        1
6 License:        GPL
7 Group:          Networking
8 Source0:        nagios-jabber.alert
9 Requires:       cyrus-sasl-plain
10 Requires:       nagios-common
11 Requires:       python3-pyxmpp2
12 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14 %define         _sysconfdir     /etc/nagios
15
16 %description
17 nagios-jabber.alert is a program to send Nagios (or other)
18 notifications over jabber protocol.
19
20 %description -l pl.UTF-8
21 nagios-jabber.alert to program do wysyłania powiadomień Nagiosa (lub
22 innych) po protokole jabber.
23
24 %prep
25 %setup -q -c -T
26 install %{SOURCE0} .
27 cat <<'EOF' > jabber-notify.ini
28 ; jabber id and password for jabber-notify script
29 [jabber_id@example.org]
30 jid = jid@example.org
31 password = PASSWORD
32 EOF
33
34 %install
35 rm -rf $RPM_BUILD_ROOT
36 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir}}
37 install nagios-jabber.alert $RPM_BUILD_ROOT%{_sbindir}/nagios-notify-jabber
38 cp -a jabber-notify.ini $RPM_BUILD_ROOT%{_sysconfdir}
39
40 %clean
41 rm -rf $RPM_BUILD_ROOT
42
43 %files
44 %defattr(644,root,root,755)
45 %attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/jabber-notify.ini
46 %attr(755,root,root) %{_sbindir}/nagios-notify-jabber
This page took 1.037305 seconds and 3 git commands to generate.