- new (wanted by cal6) master
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 18 Mar 2008 15:20:34 +0000 (15:20 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    checkping.spec -> 1.1

checkping.spec [new file with mode: 0644]

diff --git a/checkping.spec b/checkping.spec
new file mode 100644 (file)
index 0000000..718696f
--- /dev/null
@@ -0,0 +1,56 @@
+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@spam.ee',ERRORMAIL='root@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}
This page took 0.054967 seconds and 4 git commands to generate.