6 Group: Applications/WWW
7 Source0: http://dl.sourceforge.net/checkping/%{name}-%{version}.tar.gz
8 # Source0-md5: 79b61771893779a47c70de4814e6d66f
9 URL: http://sourceforge.net/projects/checkping/
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15 %define _sysconfdir /etc/%{name}
16 %define _appdir %{_datadir}/%{name}
19 Keep your eye on unlimited number of machines using CheckPing.
20 Timeouts, ping times, live graphs and notification via
27 s,HOMEDIR='/path/to/checkping-0.4',HOMEDIR='%{_sysconfdir}',
28 s,DBUSER='root',DBUSER='mysql',
29 s,DBPASS='mysecretpass',DBPASS='',
30 s,ERRORMAIL='cal6@spam.ee',ERRORMAIL='root@localhost',
38 %{__sed} -n '3,/^##/p' checkping.sh > README
41 rm -rf $RPM_BUILD_ROOT
42 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir},%{_appdir}}
43 install checkping.sh $RPM_BUILD_ROOT%{_bindir}/checkping
44 touch $RPM_BUILD_ROOT%{_sysconfdir}/iplist.txt
45 cp -a *.php $RPM_BUILD_ROOT%{_appdir}
48 rm -rf $RPM_BUILD_ROOT
51 %defattr(644,root,root,755)
53 %attr(755,root,root) %{_bindir}/checkping
55 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/iplist.txt