SPECS: nagios-php.spec (NEW) - new, NFY, works for nagios 1.x only...
glen
glen at pld-linux.org
Mon Jul 4 23:51:25 CEST 2005
Author: glen Date: Mon Jul 4 21:51:25 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- new, NFY, works for nagios 1.x only, so can't test
---- Files affected:
SPECS:
nagios-php.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/nagios-php.spec
diff -u /dev/null SPECS/nagios-php.spec:1.1
--- /dev/null Mon Jul 4 23:51:25 2005
+++ SPECS/nagios-php.spec Mon Jul 4 23:51:20 2005
@@ -0,0 +1,62 @@
+# $Revision$, $Date$
+Summary: Alternative Nagios Interface written in PHP
+Name: nagios-php
+Version: 0.5.1
+Release: 0.1
+Epoch: 0
+License: GPL
+Group: Applications/WWW
+Source0: http://dl.sourceforge.net/nagios-php/%{name}-%{version}.tar.bz2
+# Source0-md5: ad4c00b51d3fe2f66c964843769756a2
+#Source1: -
+URL: http://nagios-php.sourceforge.net/
+Requires: php
+Requires: Smarty
+Requires: php-pear-Auth >= 1.2.3
+Requires: php-pear-Files_Passwd >= 1.1.0
+Requires: nagios >= 1.0
+Requires: nagios < 2.0
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _appdir %{_datadir}/%{name}
+%define _sysconfdir /etc/%{name}
+
+%description
+Alternative Nagios Interface written in PHP.
+
+%prep
+%setup -q
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT{%{_appdir}/{html,inc,templates},%{_sysconfdir}}
+cp -a php/html/* $RPM_BUILD_ROOT%{_appdir}/html
+cp -a php/inc/* $RPM_BUILD_ROOT%{_appdir}/inc
+cp -a smarty/*tpl $RPM_BUILD_ROOT%{_appdir}/templates
+
+sed -i -e '
+s;%%config_dir%%;%{_sysconfdir}/;g
+s;%php_dir%;%{_appdir}/;g
+' $RPM_BUILD_ROOT%{_appdir}/inc/{nagios,blacksmith}.inc.php
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc INSTALL README TODO
+%dir %{_sysconfdir}
+#%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
+%{_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 2005/07/04 21:51:20 glen
+- new, NFY, works for nagios 1.x only, so can't test
+
================================================================
More information about the pld-cvs-commit
mailing list