packages: nagios-theme-exfoliation/nagios-theme-exfoliation.spec - need som...
glen
glen at pld-linux.org
Fri Jan 6 16:26:28 CET 2012
Author: glen Date: Fri Jan 6 15:26:28 2012 GMT
Module: packages Tag: HEAD
---- Log message:
- need some files from nagios package due the way themes are packaged in pld
---- Files affected:
packages/nagios-theme-exfoliation:
nagios-theme-exfoliation.spec (1.1 -> 1.2)
---- Diffs:
================================================================
Index: packages/nagios-theme-exfoliation/nagios-theme-exfoliation.spec
diff -u packages/nagios-theme-exfoliation/nagios-theme-exfoliation.spec:1.1 packages/nagios-theme-exfoliation/nagios-theme-exfoliation.spec:1.2
--- packages/nagios-theme-exfoliation/nagios-theme-exfoliation.spec:1.1 Fri Jan 6 16:25:04 2012
+++ packages/nagios-theme-exfoliation/nagios-theme-exfoliation.spec Fri Jan 6 16:26:23 2012
@@ -7,6 +7,8 @@
Group: Applications/WWW
Source0: http://lancet.mit.edu/mwall/projects/nagios/exfoliation-%{version}.tgz
# Source0-md5: 0398a7c560450906ba85c0638c17651b
+Source1: http://downloads.sourceforge.net/nagios/nagios-3.3.1.tar.gz
+# Source1-md5: c935354ce0d78a63bfabc3055fa77ad5
URL: http://lancet.mit.edu/mwall/projects/nagios/exfoliation.html
BuildRequires: sed >= 4.0
Requires: nagios-cgi >= 2.0-0.b3.31
@@ -22,12 +24,26 @@
Exfoliation is a simple makeover for the Nagios Core web interface.
%prep
-%setup -qc
+%setup -qc -a1
+# need some files from nagios tarball the way themes are made
+mv nagios/html .
+
+%{__sed} -e '
+ s#@cgiurl@#/nagios/cgi-bin#
+ s#@localstatedir@#/var/lib/nagios#
+
+ /cgi_config_file/ s#@sysconfdir@#/etc/webapps/nagios#
+ /main_config_file/ s#@sysconfdir@#/etc/nagios#
+
+' html/config.inc.php.in > html/config.inc.php
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{htmldir}
+# base files,. not present in the exfoliation
+cp -a html/*.php html/includes $RPM_BUILD_ROOT%{htmldir}
+
# copy theme files
cp -a images stylesheets $RPM_BUILD_ROOT%{htmldir}
@@ -36,8 +52,12 @@
%files
%defattr(644,root,root,755)
+%{htmldir}/*.php
+%{htmldir}/includes/*
%{htmldir}/images/*
%exclude %{htmldir}/images/favicon.ico
+#%exclude %{htmldir}/images/marker.png
+#%exclude %{htmldir}/images/shadow50.png
%{htmldir}/stylesheets/*
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -46,5 +66,8 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.2 2012/01/06 15:26:23 glen
+- need some files from nagios package due the way themes are packaged in pld
+
Revision 1.1 2012/01/06 15:25:04 glen
- new
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/nagios-theme-exfoliation/nagios-theme-exfoliation.spec?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list