]> git.pld-linux.org Git - packages/nagios-alert-jabber.git/commitdiff
- version 1.1: config file support auto/ac/nagios-alert-jabber-1_1-1
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 13 Nov 2006 09:05:38 +0000 (09:05 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    nagios-alert-jabber.spec -> 1.5

nagios-alert-jabber.spec

index bc31478862587424743c4bb40f7eaadfe6e9692e..cf775c35d4089e81c32452c494cdbc3f0b120045 100644 (file)
@@ -1,7 +1,7 @@
 Summary:       Program to send (Nagios) alerts via jabber
 Summary(pl):   Program do wysy³ania alarmów (Nagiosa) przez jabbera
 Name:          nagios-alert-jabber
-Version:       1.0
+Version:       1.1
 Release:       1
 License:       GPL
 Group:         Networking
@@ -11,6 +11,8 @@ 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.
@@ -22,15 +24,23 @@ 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}/*
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/jabber-notify.ini
+%attr(755,root,root) %{_sbindir}/nagios-notify-jabber
This page took 0.112207 seconds and 4 git commands to generate.