[icinga-checkins] icinga.org: icinga-web/master: icinga-web.spec: add experimental package icinga-web-module-pnp for automated pnp integration #2385

git at icinga.org git at icinga.org
Wed Feb 29 22:00:18 CET 2012


Module: icinga-web
Branch: master
Commit: 16e30952d8381a086b6855e279dbfef64d2f9e0a
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=16e30952d8381a086b6855e279dbfef64d2f9e0a

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Wed Feb 29 21:59:15 2012 +0100

icinga-web.spec: add experimental package icinga-web-module-pnp for automated pnp integration #2385

- add experimental package icinga-web-module-pnp for automated pnp integration. use with caution and report bugs. #2385
- add requires for module-pnp: icinga-web and pnp4nagios

test, test, test and report final issues for 1.7

refs #2385

---

 icinga-web.spec |   44 ++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 44 insertions(+), 0 deletions(-)

diff --git a/icinga-web.spec b/icinga-web.spec
index f1fa4c1..3b65d9a 100644
--- a/icinga-web.spec
+++ b/icinga-web.spec
@@ -54,13 +54,34 @@ Requires: apache2-mod_php5
 Requires: php-spl
 Requires: pcre >= 7.6
 
+
+##############################
 %description
+##############################
 Icinga Web for Icinga Core, uses Icinga IDOUtils DB as data source.
 
+##############################
+%package module-pnp
+##############################
+Summary: PNP Integration module for Icinga Web
+Group: Applications/System
+Requires: pnp4nagios
+Requires: %{name} = %{version}-%{release}
+
+##############################
+%description module-pnp
+##############################
+PNP Integration module for Icinga Web
+
+
+##############################
 %prep
+##############################
 %setup -n %{name}-%{version}
 
+##############################
 %build
+##############################
 %configure \
     --prefix="%{_datadir}/icinga-web" \
     --datadir="%{_datadir}/icinga-web" \
@@ -74,7 +95,9 @@ Icinga Web for Icinga Core, uses Icinga IDOUtils DB as data source.
     --with-cache-dir='%{cachedir}' \
     --with-web-apache-path=%{apacheconfdir}
 
+##############################
 %install
+##############################
 %{__rm} -rf %{buildroot}
 %{__mkdir} -p %{buildroot}/%{apacheconfdir}
 %{__mkdir} -p %{buildroot}/%{_bindir}
@@ -93,6 +116,9 @@ Icinga Web for Icinga Core, uses Icinga IDOUtils DB as data source.
 # wipe the rest of bin/, we don't need prepackage stuff in installed envs
 %{__rm} -rf %{buildroot}%{_datadir}/icinga-web/bin
 
+# place the pnp templates for -module-pnp
+%{__cp} contrib/PNP_Integration/templateExtensions/* %{buildroot}%{_datadir}/icinga-web/app/modules/Cronks/data/xml/extensions/
+
 ##############################
 %pre
 ##############################
@@ -123,6 +149,13 @@ fi
 %{__rm} -rf %{cachedir}/config/*.php
 
 ##############################
+%post module-pnp
+##############################
+
+# clean cronk template cache
+%{__rm} -rf %{cachedir}/CronkTemplates/*.php
+
+##############################
 %clean
 ##############################
 
@@ -154,6 +187,15 @@ fi
 %{_bindir}/%{name}-clearcache
 
 ##############################
+%files module-pnp
+##############################
+# templates, experimental treatment as configs (noreplace)
+%doc contrib/PNP_Integration/README
+%defattr(-,root,root)
+%dir %{_datadir}/icinga-web/app/modules/Cronks/data/xml/extensions
+%config(noreplace) %attr(644,-,-) %{_datadir}/icinga-web/app/modules/Cronks/data/xml/extensions/*
+
+##############################
 %changelog
 ##############################
 * Wed Feb 29 2012 Michael Friedrich <michael.friedrich at univie.ac.at> - 1.6.2-2
@@ -162,6 +204,8 @@ fi
 - install clearcache.sh as {_bindir}/icinga-web-clearcache #2115
 - remove rest of bin/, won't be needed on package install #2116
 - add contrib/ and partly doc/ to docs section #2384
+- add experimental package icinga-web-module-pnp for automated pnp integration. use with caution and report bugs. #2385
+- add requires for module-pnp: icinga-web and pnp4nagios
 
 * Mon Feb 20 2012 Michael Friedrich <michael.friedrich at univie.ac.at> - 1.6.2-1
 - bump to 1.6.2





More information about the icinga-checkins mailing list