From: Alexander Wirt Date: Mon, 18 Feb 2013 13:15:21 +0000 (+0100) Subject: Install and modify our configuration files X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6616bbe21f74faae75c7ce662baa6c8980e10e86;p=pkg-pnp4nagios.git Install and modify our configuration files --- diff --git a/debian/pnp4nagios-web-config-nagios3.install b/debian/pnp4nagios-web-config-nagios3.install new file mode 100644 index 0000000..c3605a3 --- /dev/null +++ b/debian/pnp4nagios-web-config-nagios3.install @@ -0,0 +1,2 @@ +etc/pnp4nagios/apache.conf +etc/pnp4nagios/config.php diff --git a/debian/pnp4nagios-web.install b/debian/pnp4nagios-web.install index 0bbade8..fccb4cb 100644 --- a/debian/pnp4nagios-web.install +++ b/debian/pnp4nagios-web.install @@ -1,11 +1,9 @@ -etc/pnp4nagios/apache.conf etc/pnp4nagios/background.pdf etc/pnp4nagios/templates/ etc/pnp4nagios/templates.d/ etc/pnp4nagios/pages/ etc/pnp4nagios/templates.special/ etc/pnp4nagios/pnp4nagios_release -etc/pnp4nagios/config.php usr/share/doc/pnp4nagios/examples/templates.special/ usr/share/doc/pnp4nagios/examples/pages/ usr/share/doc/pnp4nagios/examples/ssi/ diff --git a/debian/rules b/debian/rules index b9e40d0..acb0c56 100755 --- a/debian/rules +++ b/debian/rules @@ -155,6 +155,16 @@ install: build rmdir debian/tmp/usr/share/pnp4nagios/html/application/hooks/ #rmdir debian/tmp/usr/share/pnp4nagios/html/application/libraries/ + #create modified version of icinga specific configs + mkdir -p debian/pnp4nagios-web-config-icinga/etc/pnp4nagios + sed -e 's/nagios3/icinga/' -e 's/Nagios/Icinga/' \ + debian/tmp/etc/pnp4nagios/apache.conf >\ + debian/pnp4nagios-web-config-icinga/etc/pnp4nagios/apache.conf + + sed -e 's/nagios3/icinga/' -e 's/nagiosadmin/icingadmin/' \ + debian/tmp/etc/pnp4nagios/config.php >\ + debian/pnp4nagios-web-config-icinga/etc/pnp4nagios/config.php + mkdir debian/tmp/etc/pnp4nagios/templates.d cp debian/README.templates.d debian/tmp/etc/pnp4nagios/templates.d/README