]> git.pld-linux.org Git - packages/nagios-alert-jabber.git/blobdiff - nagios-alert-jabber.spec
- rel 7; use different resource for each script (in case when script is called twice...
[packages/nagios-alert-jabber.git] / nagios-alert-jabber.spec
index 141cfe76bf884d38d92744096c1456b53e9bc078..0ba5e6a7d40738cf5bf09923e239ca4bb7a001e3 100644 (file)
@@ -1,30 +1,47 @@
 Summary:       Program to send (Nagios) alerts via jabber
+Summary(pl.UTF-8):     Program do wysyłania alarmów (Nagiosa) przez jabbera
 Name:          nagios-alert-jabber
-Version:       1.0
-Release:       0.1
+Version:       1.2
+Release:       7
 License:       GPL
 Group:         Networking
 Source0:       nagios-jabber.alert
-# Source0-md5: bee229fc60f7536f854d8f10f7f553f4
+Requires:      cyrus-sasl-plain
+Requires:      nagios-common
+Requires:      python-M2Crypto
 Requires:      python-pyxmpp
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define                _sysconfdir     /etc/nagios
+
 %description
 nagios-jabber.alert is a program to send Nagios (or other)
 notifications over jabber protocol.
 
+%description -l pl.UTF-8
+nagios-jabber.alert to program do wysyłania powiadomień Nagiosa (lub
+innych) po protokole jabber.
+
 %prep
 %setup -q -c -T
 install %{SOURCE0} .
+cat <<'EOF' > jabber-notify.ini
+; jabber id and password for jabber-notify script
+[jabber_id@example.org]
+jid = jid@example.org
+password = PASSWORD
+EOF
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_bindir}
-install nagios-jabber.alert $RPM_BUILD_ROOT%{_bindir}/nagios-jabber.alert
+install -d $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir}}
+install nagios-jabber.alert $RPM_BUILD_ROOT%{_sbindir}/nagios-notify-jabber
+cp -a jabber-notify.ini $RPM_BUILD_ROOT%{_sysconfdir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/*
+%attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/jabber-notify.ini
+%attr(755,root,root) %{_sbindir}/nagios-notify-jabber
This page took 0.03379 seconds and 4 git commands to generate.