summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 12:41:54 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 12:41:54 +0000
commit79ac4b78883bf3c46edbfe7beac49a13f098831f (patch)
treeceaf857941b85574c61aa828fd81c3638eddf1a3
parentAdding upstream version 0.0.1+20160321. (diff)
downloadicingaweb2-module-boxydash-79ac4b78883bf3c46edbfe7beac49a13f098831f.tar.xz
icingaweb2-module-boxydash-79ac4b78883bf3c46edbfe7beac49a13f098831f.zip
Adding debian version 0.0.1+20160321-4.debian/0.0.1+20160321-4debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r--debian/changelog33
-rw-r--r--debian/control24
-rw-r--r--debian/copyright29
-rw-r--r--debian/icingaweb2-module-boxydash.docs1
-rw-r--r--debian/icingaweb2-module-boxydash.examples1
-rw-r--r--debian/local/config.ini7
-rw-r--r--debian/patches/debian/0001-php-short-open-tags.patch57
-rw-r--r--debian/patches/series1
-rwxr-xr-xdebian/rules23
-rw-r--r--debian/source/format1
10 files changed, 177 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..a237260
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,33 @@
+icingaweb2-module-boxydash (0.0.1+20160321-4) unstable; urgency=medium
+
+ * Updating Standards-Version.
+ * Updating copyright.
+ * Updating vcs.
+ * Removing .pc files from inary package.
+
+ -- David Kunz <david.kunz@dknet.ch> Thu, 23 Dec 2021 10:47:57 +0100
+
+icingaweb2-module-boxydash (0.0.1+20160321-3) unstable; urgency=medium
+
+ * Fix short open tags in index.phtml (Closes: #977714).
+ * Create config file.
+ * Adding README.md.
+ * Adding "Fixing default_path_prefix" in changelog 0.0.1+20160321-2.
+
+ -- David Kunz <david.kunz@dknet.ch> Sat, 30 Jan 2021 10:10:10 +0100
+
+icingaweb2-module-boxydash (0.0.1+20160321-2) unstable; urgency=medium
+
+ * Updating debhelper.
+ * Updating standard version.
+ * Fixing default_path_prefix.
+ * Fixing typo in path (Closes: #952977).
+ * Fixing typo in previous changelog entry.
+
+ -- David Kunz <david.kunz@dknet.ch> Mon, 22 Jun 2020 07:47:06 +0200
+
+icingaweb2-module-boxydash (0.0.1+20160321-1) unstable; urgency=medium
+
+ * Initial release (Closes: #920421).
+
+ -- David Kunz <david.kunz@dknet.ch> Wed, 16 Jan 2019 11:47:08 +0100
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..7b4dd1d
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,24 @@
+Source: icingaweb2-module-boxydash
+Section: admin
+Priority: optional
+Maintainer: David Kunz <david.kunz@dknet.ch>
+Build-Depends:
+ debhelper-compat (= 13),
+Standards-Version: 4.6.0
+Homepage: https://github.com/morgajel/icingaweb2-module-boxydash
+Vcs-Browser: https://salsa.debian.org/david.kunz/icingaweb2-module-boxydash
+Vcs-Git: https://salsa.debian.org/david.kunz/icingaweb2-module-boxydash.git
+
+Package: icingaweb2-module-boxydash
+Section: admin
+Architecture: all
+Depends:
+ icingaweb2,
+ ${misc:Depends},
+Enhances:
+ icingaweb2,
+Description: simple and responsive web interface for Icinga - boxydash module
+ Icinga Web 2 is a very modular, fast and simple web interface for your Icinga
+ monitoring environment.
+ .
+ This module is intended to give you another view of the status of your board.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..313b409
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,29 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: icingaweb2-module-boxydash
+Upstream-Contact: Jesse Morgan <morgajel@gmail.com>
+Source: https://github.com/morgajel/icingaweb2-module-boxydash/releases
+
+Files: *
+Copyright: 2015-2016 Jesse Morgan <morgajel@gmail.com>
+License: GPL-2+
+
+Files: debian/*
+Copyright: 2019-2021 David Kunz <david.kunz@dknet.ch>
+License: GPL-2+
+
+License: GPL-2+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 2 of the License.
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ .
+ The complete text of the GNU General Public License
+ can be found in /usr/share/common-licenses/GPL-2 file, or
+ (at your option) any later version.
diff --git a/debian/icingaweb2-module-boxydash.docs b/debian/icingaweb2-module-boxydash.docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/icingaweb2-module-boxydash.docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/icingaweb2-module-boxydash.examples b/debian/icingaweb2-module-boxydash.examples
new file mode 100644
index 0000000..e64393c
--- /dev/null
+++ b/debian/icingaweb2-module-boxydash.examples
@@ -0,0 +1 @@
+debian/local/config.ini
diff --git a/debian/local/config.ini b/debian/local/config.ini
new file mode 100644
index 0000000..b55b5c0
--- /dev/null
+++ b/debian/local/config.ini
@@ -0,0 +1,7 @@
+[settings]
+setting_refresh = "10"
+setting_boxsize = "10"
+include_softstate = "1"
+requires_authentication = "1"
+show_legend = "1"
+path_prefix = "/icingaweb2"
diff --git a/debian/patches/debian/0001-php-short-open-tags.patch b/debian/patches/debian/0001-php-short-open-tags.patch
new file mode 100644
index 0000000..539f1ba
--- /dev/null
+++ b/debian/patches/debian/0001-php-short-open-tags.patch
@@ -0,0 +1,57 @@
+Author: David Kunz <david.kunz@dknet.ch>
+Description: correcting in php short open tags (Closes: #977714).
+
+diff -Naurp icingaweb2-module-boxydash-orig/application/views/scripts/index/index.phtml icingaweb2-module-boxydash/application/views/scripts/index/index.phtml
+--- icingaweb2-module-boxydash-orig/application/views/scripts/index/index.phtml
++++ icingaweb2-module-boxydash/application/views/scripts/index/index.phtml
+@@ -1,4 +1,4 @@
+-<?
++<?php
+ use Icinga\Module\Monitoring\Object\Service;
+ use Icinga\Module\Monitoring\Object\Host;
+
+@@ -15,7 +15,7 @@ use Icinga\Module\Monitoring\Object\Host
+ <div class="content">
+
+ <h1>Boxy Dashboard</h1>
+- <? if ($this->showlegend){ ?>
++ <?php if ($this->showlegend){ ?>
+ <div class="boxy_legend">
+ <span class="boxy_sublegend">
+ <span class="legendtext">&#10004; = Acknowledged</span>
+@@ -36,9 +36,9 @@ use Icinga\Module\Monitoring\Object\Host
+ <span class="boxy_legend_box unknown-ack" >unknown</span>
+ </span>
+ </div>
+- <? } ?>
++ <?php } ?>
+ <h2>Host Info</h2>
+-<?
++<?php
+ foreach ($this->hosts as $host){
+ $title = htmlspecialchars($host->{'host_display_name'});
+ $size=$this->boxsize;
+@@ -50,12 +50,12 @@ foreach ($this->hosts as $host){
+ $title.=" (Acknowledged)";
+ }?>
+ <a href='<?= $this->path_prefix ?>/monitoring/host/show?host=<?=$host->{'host_name'}?>' class='boxy_box state <?=$returncode?>' style='width:<?=$size?>px; height:<?=$size?>px; font-size:<?=$size?>px;' title="<?=$title?>"><?=$content?></a>
+-<? } ?>
++<?php } ?>
+
+ <br clear="all"/>
+ <h2>Service Info</h2>
+
+-<? foreach ($this->services as $service){
++<?php foreach ($this->services as $service){
+ $service->{'service_hard_state'} = ($service->{'service_hard_state'}) ? "hard" : "soft";
+ $title = $service->{'host_display_name'}.": ".$service->{'service_description'};
+ #."(".$service->{'current_check_attempt'} .",".$service->{'max_check_attempts'} .")(". $service->{'service_hard_state'}.")+acked:".$service->{'service_acknowledged'} ;
+@@ -78,7 +78,7 @@ foreach ($this->hosts as $host){
+ $title=htmlspecialchars($title."\n ".$service->{'service_output'});?>
+ <a href='<?= $this->path_prefix ?>/monitoring/service/show?host=<?=$service->{'host_name'}?>&service=<?=$service->{'service_description'}?>' class='boxy_box state <?=$returncode?>' style='width:<?=$size?>px; height:<?=$size?>px; font-size:<?=$size?>px;' title="<?=$title?>"><?=$content?></a>
+
+-<? } ?>
++<?php } ?>
+ <br clear=all>
+ <pre style="font-size:20px"><?=$this->debug?></pre>
+ </div>
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..c6eba43
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+debian/0001-php-short-open-tags.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..6bd7236
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,23 @@
+#!/usr/bin/make -f
+
+MODULE := boxydash
+DEBDIR := debian/icingaweb2-module-$(MODULE)
+
+%:
+ dh ${@}
+
+override_dh_auto_install:
+ mkdir -p $(DEBDIR)/usr/share/icingaweb2/modules/$(MODULE)
+ find . -maxdepth 1 -mindepth 1 -and -not -name debian -and -not -name ".git*" -and -not -name ".pc" -exec cp -a {} $(DEBDIR)/usr/share/icingaweb2/modules/$(MODULE) \;
+
+ # remove useless files
+ rm -f $(DEBDIR)/usr/share/icingaweb2/modules/$(MODULE)/README.md
+ find $(DEBDIR)/usr/share/icingaweb2/modules/$(MODULE) -name LICENSE -exec rm -f {} \;
+
+ # move config file
+ mkdir -p $(DEBDIR)/etc/icingaweb2/modules/$(MODULE)
+ cp debian/local/config.ini $(DEBDIR)/etc/icingaweb2/modules/$(MODULE)/
+
+ # enable module
+ mkdir -p $(DEBDIR)/etc/icingaweb2/enabledModules
+ ln -s /usr/share/icingaweb2/modules/$(MODULE) $(DEBDIR)/etc/icingaweb2/enabledModules/$(MODULE)
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)