SPECS: checkping.spec (NEW) - new (wanted by cal6)

glen glen at pld-linux.org
Tue Mar 18 16:20:40 CET 2008


Author: glen                         Date: Tue Mar 18 15:20:39 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new (wanted by cal6)

---- Files affected:
SPECS:
   checkping.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/checkping.spec
diff -u /dev/null SPECS/checkping.spec:1.1
--- /dev/null	Tue Mar 18 16:20:40 2008
+++ SPECS/checkping.spec	Tue Mar 18 16:20:34 2008
@@ -0,0 +1,66 @@
+# $Revision$, $Date$
+Summary:	CheckPing
+Name:		checkping
+Version:	0.4
+Release:	1
+License:	GPL
+Group:		Applications/WWW
+Source0:	http://dl.sourceforge.net/checkping/%{name}-%{version}.tar.gz
+# Source0-md5:	79b61771893779a47c70de4814e6d66f
+URL:		http://sourceforge.net/projects/checkping/
+Requires:	php(gd)
+Requires:	php(mysql)
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_sysconfdir		/etc/%{name}
+%define		_appdir			%{_datadir}/%{name}
+
+%description
+Keep your eye on unlimited number of machines using CheckPing.
+Timeouts, ping times, live graphs and notification via
+mail/SMS/pager/etc.
+
+%prep
+%setup -q
+
+%{__sed} -i -e "
+s,HOMEDIR='/path/to/checkping-0.4',HOMEDIR='%{_sysconfdir}',
+s,DBUSER='root',DBUSER='mysql',
+s,DBPASS='mysecretpass',DBPASS='',
+s,ERRORMAIL='cal6 at spam.ee',ERRORMAIL='root at localhost',
+" checkping.sh
+
+%{__sed} -i -e "
+s/'root'/'mysql'/
+s/'mysecretpass'/''/
+" connect.php
+
+%{__sed} -n '3,/^##/p' checkping.sh > README
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir},%{_appdir}}
+install checkping.sh $RPM_BUILD_ROOT%{_bindir}/checkping
+touch $RPM_BUILD_ROOT%{_sysconfdir}/iplist.txt
+cp -a *.php $RPM_BUILD_ROOT%{_appdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%attr(755,root,root) %{_bindir}/checkping
+%dir %{_sysconfdir}
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/iplist.txt
+%{_appdir}
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2008-03-18 15:20:34  glen
+- new (wanted by cal6)
================================================================


More information about the pld-cvs-commit mailing list