From 8f1a9a63e6df4574f5b3dee67eb847e36ccb6766 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 14 Apr 2024 15:14:29 +0200 Subject: Adding debian version 0.0.1+20160321-5. Signed-off-by: Daniel Baumann --- debian/changelog | 49 +++++++++++++++++++ debian/control | 24 +++++++++ debian/copyright | 29 +++++++++++ debian/icingaweb2-module-boxydash.config | 13 +++++ debian/icingaweb2-module-boxydash.docs | 1 + debian/icingaweb2-module-boxydash.examples | 1 + debian/icingaweb2-module-boxydash.postinst | 48 ++++++++++++++++++ debian/icingaweb2-module-boxydash.postrm | 23 +++++++++ debian/icingaweb2-module-boxydash.templates | 9 ++++ debian/local/config.ini | 7 +++ .../patches/debian/0001-php-short-open-tags.patch | 57 ++++++++++++++++++++++ debian/patches/series | 1 + debian/po/POTFILES.in | 1 + debian/po/es.po | 37 ++++++++++++++ debian/po/ge.po | 36 ++++++++++++++ debian/po/nl.po | 38 +++++++++++++++ debian/po/templates.pot | 36 ++++++++++++++ debian/rules | 24 +++++++++ debian/source/format | 1 + debian/upstream/metadata | 5 ++ 20 files changed, 440 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/icingaweb2-module-boxydash.config create mode 100644 debian/icingaweb2-module-boxydash.docs create mode 100644 debian/icingaweb2-module-boxydash.examples create mode 100755 debian/icingaweb2-module-boxydash.postinst create mode 100755 debian/icingaweb2-module-boxydash.postrm create mode 100644 debian/icingaweb2-module-boxydash.templates create mode 100644 debian/local/config.ini create mode 100644 debian/patches/debian/0001-php-short-open-tags.patch create mode 100644 debian/patches/series create mode 100644 debian/po/POTFILES.in create mode 100644 debian/po/es.po create mode 100644 debian/po/ge.po create mode 100644 debian/po/nl.po create mode 100644 debian/po/templates.pot create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/upstream/metadata diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..e970235 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,49 @@ +icingaweb2-module-boxydash (0.0.1+20160321-5) unstable; urgency=medium + + * Configure debconf. + * Adding upstream metadatas. + * Updating copyright for debian directory. + * Updating Standards-Version to 4.6.2. + * Remove duplicate Section in control. + * Adding Rules-Requires-Root to control. + * Standardization of the rules for icingaweb2 modules. + * Updating. + * Adding Spanish debconf translations from Camaleón. + * Adding Dutch debconf translations from Francs Spiesschaert. + * Adding German debconf translations from Christoph Brinkhaus. + + -- David Kunz Fri, 25 Aug 2023 16:15:42 +0200 + +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 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 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 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 Wed, 16 Jan 2019 11:47:08 +0100 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..b8be196 --- /dev/null +++ b/debian/control @@ -0,0 +1,24 @@ +Source: icingaweb2-module-boxydash +Section: admin +Priority: optional +Maintainer: David Kunz +Build-Depends: + debhelper-compat (= 13), +Standards-Version: 4.6.2 +Rules-Requires-Root: no +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 +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..d26406e --- /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 +Source: https://github.com/morgajel/icingaweb2-module-boxydash/releases + +Files: * +Copyright: 2015-2016 Jesse Morgan +License: GPL-2+ + +Files: debian/* +Copyright: 2019-2023 David Kunz +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 . + . + 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.config b/debian/icingaweb2-module-boxydash.config new file mode 100755 index 0000000..cbdafa7 --- /dev/null +++ b/debian/icingaweb2-module-boxydash.config @@ -0,0 +1,13 @@ +#!/bin/sh + +set -e + +MODULE=icingaweb2-module-boxydash + +. /usr/share/debconf/confmodule + +db_settitle ${MODULE}/title +db_input low ${MODULE}/enable || true +db_go + +db_stop 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/icingaweb2-module-boxydash.postinst b/debian/icingaweb2-module-boxydash.postinst new file mode 100755 index 0000000..38e7037 --- /dev/null +++ b/debian/icingaweb2-module-boxydash.postinst @@ -0,0 +1,48 @@ +#!/bin/sh + +set -e + +MODULE="boxydash" + +case "${1}" in + configure) + . /usr/share/debconf/confmodule + + db_get icingaweb2-module-${MODULE}/enable + MODULE_ENABLE="${RET:-true}" + + db_stop + + if ! getent group icingaweb2 > /dev/null + then + groupadd --system icingaweb2 > /dev/null + fi + + if [ "${MODULE_ENABLE}" = "true" ] + then + if [ ! -e "/etc/icingaweb2/enabledModules" ] + then + mkdir -p "/etc/icingaweb2/enabledModules" + chown root:icingaweb2 "/etc/icingaweb2/enabledModules" > /dev/null 2>&1 || true + fi + + ln -sf "/usr/share/icingaweb2/modules/${MODULE}" "/etc/icingaweb2/enabledModules/${MODULE}" + chown root:icingaweb2 "/etc/icingaweb2/enabledModules/${MODULE}" > /dev/null 2>&1 || true + else + rm -f "/etc/icingaweb2/enabledModules/${MODULE}" + fi + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument: \`${1}'." >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 diff --git a/debian/icingaweb2-module-boxydash.postrm b/debian/icingaweb2-module-boxydash.postrm new file mode 100755 index 0000000..f2efa9c --- /dev/null +++ b/debian/icingaweb2-module-boxydash.postrm @@ -0,0 +1,23 @@ +#!/bin/sh + +set -e + +MODULE="boxydash" + +case ${1} in + remove) + rm -f "/etc/icingaweb2/enabledModules/${MODULE}" + ;; + + purge|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "postrm called with unknown argument: \`${1}'." >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 diff --git a/debian/icingaweb2-module-boxydash.templates b/debian/icingaweb2-module-boxydash.templates new file mode 100644 index 0000000..0cc0c62 --- /dev/null +++ b/debian/icingaweb2-module-boxydash.templates @@ -0,0 +1,9 @@ +Template: icingaweb2-module-boxydash/title +Type: title +_Description: icingaweb2-module-boxydash: Setup + +Template: icingaweb2-module-boxydash/enable +Type: boolean +Default: true +_Description: Should this module be enabled? + This module is possible to be enabled or disabled. 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 +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 @@ +- + +

Boxy Dashboard

+- showlegend){ ?> ++ showlegend){ ?> +
+ + ✔ = Acknowledged +@@ -36,9 +36,9 @@ use Icinga\Module\Monitoring\Object\Host + unknown + +
+- ++ +

Host Info

+-hosts as $host){ + $title = htmlspecialchars($host->{'host_display_name'}); + $size=$this->boxsize; +@@ -50,12 +50,12 @@ foreach ($this->hosts as $host){ + $title.=" (Acknowledged)"; + }?> + ' class='boxy_box state ' style='width:px; height:px; font-size:px;' title=""> +- ++ + +
+

Service Info

+ +-services as $service){ ++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'});?> + &service={'service_description'}?>' class='boxy_box state ' style='width:px; height:px; font-size:px;' title=""> + +- ++ +
+
debug?>
+ 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/po/POTFILES.in b/debian/po/POTFILES.in new file mode 100644 index 0000000..f013d8b --- /dev/null +++ b/debian/po/POTFILES.in @@ -0,0 +1 @@ +[type: gettext/rfc822deb] icingaweb2-module-boxydash.templates diff --git a/debian/po/es.po b/debian/po/es.po new file mode 100644 index 0000000..a971e75 --- /dev/null +++ b/debian/po/es.po @@ -0,0 +1,37 @@ +# Translation of icingaweb2-module-boxydash debconf templates to Spanish. +# Copyright (C) 2023 Camaleón +# This file is distributed under the same license as the icingaweb2-module-boxydash package. +# Camaleón , 2023. +# +msgid "" +msgstr "" +"Project-Id-Version: icingaweb2-module-boxydash\n" +"Report-Msgid-Bugs-To: icingaweb2-module-boxydash@packages.debian.org\n" +"POT-Creation-Date: 2023-06-14 11:35+0200\n" +"PO-Revision-Date: 2023-06-19 19:14+0200\n" +"Last-Translator: Camaleón \n" +"Language-Team: Debian Spanish \n" +"Language: es\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 2.4.2\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. Type: title +#. Description +#: ../icingaweb2-module-boxydash.templates:1001 +msgid "icingaweb2-module-boxydash: Setup" +msgstr "icingaweb2-module-boxydash: Configuración" + +#. Type: boolean +#. Description +#: ../icingaweb2-module-boxydash.templates:2001 +msgid "Should this module be enabled?" +msgstr "¿Desea activar este módulo?" + +#. Type: boolean +#. Description +#: ../icingaweb2-module-boxydash.templates:2001 +msgid "This module is possible to be enabled or disabled." +msgstr "Puede activar o desactivar este módulo." diff --git a/debian/po/ge.po b/debian/po/ge.po new file mode 100644 index 0000000..6ab8972 --- /dev/null +++ b/debian/po/ge.po @@ -0,0 +1,36 @@ +# German translation of manpages +# This file is distributed under the same license as the icingaweb2-module-boxydash package. +# Copyright © of this file: +# Christoph Brinkhaus , 2023. +# +msgid "" +msgstr "" +"Project-Id-Version: icingaweb2-module-boxydash\n" +"Report-Msgid-Bugs-To: icingaweb2-module-boxydash@packages.debian.org\n" +"POT-Creation-Date: 2023-06-14 11:35+0200\n" +"PO-Revision-Date: 2023-06-17 10:30+0200\n" +"Last-Translator: Christoph Brinkhaus \n" +"Language-Team: German \n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. Type: title +#. Description +#: ../icingaweb2-module-boxydash.templates:1001 +msgid "icingaweb2-module-boxydash: Setup" +msgstr "icingaweb2-module-boxydash: Einrichtung" + +#. Type: boolean +#. Description +#: ../icingaweb2-module-boxydash.templates:2001 +msgid "Should this module be enabled?" +msgstr "Soll dieses Modul aktiviert werden?" + +#. Type: boolean +#. Description +#: ../icingaweb2-module-boxydash.templates:2001 +msgid "This module is possible to be enabled or disabled." +msgstr "Dieses Modul kann aktiviert oder deaktiviert werden." diff --git a/debian/po/nl.po b/debian/po/nl.po new file mode 100644 index 0000000..c39d542 --- /dev/null +++ b/debian/po/nl.po @@ -0,0 +1,38 @@ +# Dutch translation of icingaweb2-module-boxydash debconf templates. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the icingaweb2-module-boxydash package. +# # Frans Spiesschaert , 2023. +# Frans Spiesschaert , 2023. +# +msgid "" +msgstr "" +"Project-Id-Version: icingaweb2-module-boxydash_1.2.2-2\n" +"Report-Msgid-Bugs-To: icingaweb2-module-boxydash@packages.debian.org\n" +"POT-Creation-Date: 2023-06-14 11:35+0200\n" +"PO-Revision-Date: 2023-07-05 22:55+0200\n" +"Last-Translator: Frans Spiesschaert \n" +"Language-Team: Debian Dutch l10n Team \n" +"Language: nl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Gtranslator 3.30.1\n" +"Plural-Forms: nplurals=2; plural=(n != 1)\n" + +#. Type: title +#. Description +#: ../icingaweb2-module-boxydash.templates:1001 +msgid "icingaweb2-module-boxydash: Setup" +msgstr "icingaweb2-module-boxydash: Instellen" + +#. Type: boolean +#. Description +#: ../icingaweb2-module-boxydash.templates:2001 +msgid "Should this module be enabled?" +msgstr "Moet deze module ingeschakeld worden?" + +#. Type: boolean +#. Description +#: ../icingaweb2-module-boxydash.templates:2001 +msgid "This module is possible to be enabled or disabled." +msgstr "Deze module kan in- of uitgeschakeld worden." diff --git a/debian/po/templates.pot b/debian/po/templates.pot new file mode 100644 index 0000000..2a3f5d2 --- /dev/null +++ b/debian/po/templates.pot @@ -0,0 +1,36 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the icingaweb2-module-boxydash package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: icingaweb2-module-boxydash\n" +"Report-Msgid-Bugs-To: icingaweb2-module-boxydash@packages.debian.org\n" +"POT-Creation-Date: 2023-06-14 16:19+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: title +#. Description +#: ../icingaweb2-module-boxydash.templates:1001 +msgid "icingaweb2-module-boxydash: Setup" +msgstr "" + +#. Type: boolean +#. Description +#: ../icingaweb2-module-boxydash.templates:2001 +msgid "Should this module be enabled?" +msgstr "" + +#. Type: boolean +#. Description +#: ../icingaweb2-module-boxydash.templates:2001 +msgid "This module is possible to be enabled or disabled." +msgstr "" diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..91efcf5 --- /dev/null +++ b/debian/rules @@ -0,0 +1,24 @@ +#!/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) \; + + # move config file + mkdir -p $(DEBDIR)/etc/icingaweb2/modules/$(MODULE) + cp debian/local/config.ini $(DEBDIR)/etc/icingaweb2/modules/$(MODULE)/ + +execute_after_dh_installdocs: + find $(DEBDIR)/usr/share/icingaweb2/modules/$(MODULE) -name AUTHORS -exec rm -f {} \; + find $(DEBDIR)/usr/share/icingaweb2/modules/$(MODULE) -name COPYING -exec rm -f {} \; + find $(DEBDIR)/usr/share/icingaweb2/modules/$(MODULE) -name LICENSE -exec rm -f {} \; + find $(DEBDIR)/usr/share/icingaweb2/modules/$(MODULE) -name README -exec rm -f {} \; + find $(DEBDIR)/usr/share/icingaweb2/modules/$(MODULE) -name "*.md" -exec rm -f {} \; + find $(DEBDIR)/usr/share/icingaweb2/modules/$(MODULE) -type d -empty -delete + rm -rf $(DEBDIR)/usr/share/icingaweb2/modules/$(MODULE)/doc 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) diff --git a/debian/upstream/metadata b/debian/upstream/metadata new file mode 100644 index 0000000..a0f86db --- /dev/null +++ b/debian/upstream/metadata @@ -0,0 +1,5 @@ +Archive: "https://github.com/morgajel" +Bug-Database: "https://github.com/morgajel/icingaweb2-module-boxydash/labels/bug" +Documentation: "https://github.com/morgajel/icingaweb2-module-boxydash/blob/master/README.md" +Repository: "https://github.com/morgajel/icingaweb2-module-boxydash" +Repository-Browse: "https://github.com/morgajel?tab=repositories" -- cgit v1.2.3