]> git.pld-linux.org Git - packages/nagios-alert-jabber.git/blob - nagios-alert-jabber.spec
2e84acb5d1674383fec899e6facc09bc8c6a3f25
[packages/nagios-alert-jabber.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.2
5 Release:        9
6 License:        GPL
7 Group:          Networking
8 Source0:        nagios-jabber.alert
9 Requires:       cyrus-sasl-plain
10 Requires:       nagios-common
11 Requires:       python-M2Crypto
12 Requires:       python-pyxmpp
13 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15 %define         _sysconfdir     /etc/nagios
16
17 %description
18 nagios-jabber.alert is a program to send Nagios (or other)
19 notifications over jabber protocol.
20
21 %description -l pl.UTF-8
22 nagios-jabber.alert to program do wysyłania powiadomień Nagiosa (lub
23 innych) po protokole jabber.
24
25 %prep
26 %setup -q -c -T
27 install %{SOURCE0} .
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
34
35 %install
36 rm -rf $RPM_BUILD_ROOT
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}
40
41 %clean
42 rm -rf $RPM_BUILD_ROOT
43
44 %files
45 %defattr(644,root,root,755)
46 %attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/jabber-notify.ini
47 %attr(755,root,root) %{_sbindir}/nagios-notify-jabber
This page took 0.034822 seconds and 2 git commands to generate.