diff options
-rw-r--r-- | debian/changelog | 69 | ||||
-rw-r--r-- | debian/control | 27 | ||||
-rw-r--r-- | debian/copyright | 58 | ||||
-rwxr-xr-x | debian/icingaweb2-module-graphite.config | 13 | ||||
-rw-r--r-- | debian/icingaweb2-module-graphite.docs | 3 | ||||
-rwxr-xr-x | debian/icingaweb2-module-graphite.postinst | 48 | ||||
-rwxr-xr-x | debian/icingaweb2-module-graphite.postrm | 23 | ||||
-rw-r--r-- | debian/icingaweb2-module-graphite.templates | 9 | ||||
-rw-r--r-- | debian/po/POTFILES.in | 1 | ||||
-rw-r--r-- | debian/po/es.po | 37 | ||||
-rw-r--r-- | debian/po/nl.po | 38 | ||||
-rw-r--r-- | debian/po/templates.pot | 36 | ||||
-rwxr-xr-x | debian/rules | 20 | ||||
-rw-r--r-- | debian/source/format | 1 | ||||
-rw-r--r-- | debian/upstream/metadata | 5 | ||||
-rw-r--r-- | debian/watch | 3 |
16 files changed, 391 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..43525ae --- /dev/null +++ b/debian/changelog @@ -0,0 +1,69 @@ +icingaweb2-module-graphite (1.2.2-3) unstable; urgency=medium + + * Updating postins/postrm. + * Adding required directory for enabling module (Closes: #1038929). + * Standardization of the rules for icingaweb2 modules. + * Replace Rules-Requires-Root. + * Adding Dutch debconf translations from Francs Spiesschaert + (Closes: #1041277). + * Adding Spanish debconf translations from Camaleón (Closes: #1039666). + * Create group icingaweb2 if not exist. + + -- David Kunz <david.kunz@dknet.ch> Mon, 14 Aug 2023 10:46:18 +0200 + +icingaweb2-module-graphite (1.2.2-2) unstable; urgency=medium + + * Remove unused section in control. + * Updating Standards-Version to 4.6.2. + * Adding Rules-Requires-Root to control. + * Updating copyright for debian directory. + * Remove unused doc files. + * Addign upstream metadata informations. + * Configure debconf. + * Change permissions from symlink to enable/disable + module in icingaweb2 interface (Closes: #1033583). + + -- David Kunz <david.kunz@dknet.ch> Wed, 14 Jun 2023 11:50:39 +0200 + +icingaweb2-module-graphite (1.2.2-1) unstable; urgency=medium + + * Merging upstream version 1.2.2. + + -- David Kunz <david.kunz@dknet.ch> Thu, 05 Jan 2023 10:32:39 +0100 + +icingaweb2-module-graphite (1.2.1-1) unstable; urgency=medium + + * Merging upstream version 1.2.1. + * Updating Standards-Version to 4.6.1. + * Updating depends. + * Updating enhances. + * Updating copyright for upstream. + * Updating copyright for debian. + + -- David Kunz <david.kunz@dknet.ch> Tue, 12 Jul 2022 11:15:36 +0200 + +icingaweb2-module-graphite (1.1.0-3) unstable; urgency=medium + + * Adding watchfile. + * Updating vcs in control. + * Updating Standards-Version. + * Updating copyright for David Kunz. + * Updating paths in copyright. + + -- David Kunz <david.kunz@dknet.ch> Wed, 29 Dec 2021 12:17:58 +0100 + +icingaweb2-module-graphite (1.1.0-2) unstable; urgency=medium + + * Updating debhelper. + * Updating standard version. + * Completion copyright (Closes: #939568). + * Fixing typo in path (Closes: #952982). + * Fixing typo in previous changelog entry. + + -- David Kunz <david.kunz@dknet.ch> Mon, 22 Jun 2020 07:59:26 +0200 + +icingaweb2-module-graphite (1.1.0-1) unstable; urgency=medium + + * Initial release (Closes: #920420). + + -- David Kunz <david.kunz@dknet.ch> Mon, 21 Jan 2019 15:25:27 +0100 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..c5d1838 --- /dev/null +++ b/debian/control @@ -0,0 +1,27 @@ +Source: icingaweb2-module-graphite +Section: admin +Priority: optional +Maintainer: David Kunz <david.kunz@dknet.ch> +Build-Depends: + debhelper-compat (= 13), +Standards-Version: 4.6.2 +Rules-Requires-Root: no +Homepage: https://github.com/Icinga/icingaweb2-module-graphite +Vcs-Git: https://salsa.debian.org/david.kunz/icingaweb2-module-graphite.git +Vcs-Browser: https://salsa.debian.org/david.kunz/icingaweb2-module-graphite + +Package: icingaweb2-module-graphite +Architecture: all +Depends: + icingaweb2, + icinga-php-library, + icinga-php-thirdparty, + ${misc:Depends}, +Enhances: + icingaweb2, + icingadb, +Description: simple and responsive web interface for Icinga - graphite module + Icinga Web 2 is a very modular, fast and simple web interface for your Icinga + monitoring environment. + . + This module adds graphite graphs to the web interface. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..932ee7a --- /dev/null +++ b/debian/copyright @@ -0,0 +1,58 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: icingaweb2-module-graphite +Upstream-Contact: Icinga Development Team <icinga-devel@lists.icinga.org> +Source: https://github.com/Icinga/icingaweb2-module-graphite + +Files: * +Copyright: 1989, 1991 Free Software Foundation + 2015-2022 Icinga Development Team <icinga-devel@lists.icinga.org> +License: GPL-2+ + +Files: library/vendor/iplx/* +Copyright: 1989, 1991 Free Software Foundation +License: GPL-2+ + +Files: library/vendor/Psr/* +Copyright: 2014 PHP Framework Interoperability Group +License: MIT + +Files: debian/* +Copyright: 2019-2023 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. + +License: MIT + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + diff --git a/debian/icingaweb2-module-graphite.config b/debian/icingaweb2-module-graphite.config new file mode 100755 index 0000000..32e4484 --- /dev/null +++ b/debian/icingaweb2-module-graphite.config @@ -0,0 +1,13 @@ +#!/bin/sh + +set -e + +MODULE=icingaweb2-module-graphite + +. /usr/share/debconf/confmodule + +db_settitle ${MODULE}/title +db_input low ${MODULE}/enable || true +db_go + +db_stop diff --git a/debian/icingaweb2-module-graphite.docs b/debian/icingaweb2-module-graphite.docs new file mode 100644 index 0000000..596bb6e --- /dev/null +++ b/debian/icingaweb2-module-graphite.docs @@ -0,0 +1,3 @@ +CHANGELOG.md +README.md +doc/* diff --git a/debian/icingaweb2-module-graphite.postinst b/debian/icingaweb2-module-graphite.postinst new file mode 100755 index 0000000..bd85cc4 --- /dev/null +++ b/debian/icingaweb2-module-graphite.postinst @@ -0,0 +1,48 @@ +#!/bin/sh + +set -e + +MODULE="graphite" + +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-graphite.postrm b/debian/icingaweb2-module-graphite.postrm new file mode 100755 index 0000000..949c2bb --- /dev/null +++ b/debian/icingaweb2-module-graphite.postrm @@ -0,0 +1,23 @@ +#!/bin/sh + +set -e + +MODULE="graphite" + +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-graphite.templates b/debian/icingaweb2-module-graphite.templates new file mode 100644 index 0000000..7b6f3c1 --- /dev/null +++ b/debian/icingaweb2-module-graphite.templates @@ -0,0 +1,9 @@ +Template: icingaweb2-module-graphite/title +Type: title +_Description: icingaweb2-module-graphite: Setup + +Template: icingaweb2-module-graphite/enable +Type: boolean +Default: true +_Description: Should this module be enabled? + This module is possible to be enabled or disabled. diff --git a/debian/po/POTFILES.in b/debian/po/POTFILES.in new file mode 100644 index 0000000..25d3023 --- /dev/null +++ b/debian/po/POTFILES.in @@ -0,0 +1 @@ +[type: gettext/rfc822deb] icingaweb2-module-graphite.templates diff --git a/debian/po/es.po b/debian/po/es.po new file mode 100644 index 0000000..252db10 --- /dev/null +++ b/debian/po/es.po @@ -0,0 +1,37 @@ +# Translation of icingaweb2-module-graphite debconf templates to Spanish. +# Copyright (C) 2023 Camaleón <noelamac@gmail.com> +# This file is distributed under the same license as the icingaweb2-module-graphite package. +# Camaleón <noelamac@gmail.com>, 2023. +# +msgid "" +msgstr "" +"Project-Id-Version: icingaweb2-module-graphite\n" +"Report-Msgid-Bugs-To: icingaweb2-module-graphite@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 <noelamac@gmail.com>\n" +"Language-Team: Debian Spanish <debian-l10n-spanish@lists.debian.org>\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-graphite.templates:1001 +msgid "icingaweb2-module-graphite: Setup" +msgstr "icingaweb2-module-graphite: Configuración" + +#. Type: boolean +#. Description +#: ../icingaweb2-module-graphite.templates:2001 +msgid "Should this module be enabled?" +msgstr "¿Desea activar este módulo?" + +#. Type: boolean +#. Description +#: ../icingaweb2-module-graphite.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/nl.po b/debian/po/nl.po new file mode 100644 index 0000000..0950959 --- /dev/null +++ b/debian/po/nl.po @@ -0,0 +1,38 @@ +# Dutch translation of icingaweb2-module-graphite debconf templates. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the icingaweb2-module-graphite package. +# # Frans Spiesschaert <Frans.Spiesschaert@yucom.be>, 2023. +# Frans Spiesschaert <Frans.Spiesschaert@yucom.be>, 2023. +# +msgid "" +msgstr "" +"Project-Id-Version: icingaweb2-module-graphite_1.2.2-2\n" +"Report-Msgid-Bugs-To: icingaweb2-module-graphite@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 <Frans.Spiesschaert@yucom.be>\n" +"Language-Team: Debian Dutch l10n Team <debian-l10n-dutch@lists.debian.org>\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-graphite.templates:1001 +msgid "icingaweb2-module-graphite: Setup" +msgstr "icingaweb2-module-graphite: Instellen" + +#. Type: boolean +#. Description +#: ../icingaweb2-module-graphite.templates:2001 +msgid "Should this module be enabled?" +msgstr "Moet deze module ingeschakeld worden?" + +#. Type: boolean +#. Description +#: ../icingaweb2-module-graphite.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..f02dcb6 --- /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-graphite package. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: icingaweb2-module-graphite\n" +"Report-Msgid-Bugs-To: icingaweb2-module-graphite@packages.debian.org\n" +"POT-Creation-Date: 2023-06-14 11:35+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\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-graphite.templates:1001 +msgid "icingaweb2-module-graphite: Setup" +msgstr "" + +#. Type: boolean +#. Description +#: ../icingaweb2-module-graphite.templates:2001 +msgid "Should this module be enabled?" +msgstr "" + +#. Type: boolean +#. Description +#: ../icingaweb2-module-graphite.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..d0b45c0 --- /dev/null +++ b/debian/rules @@ -0,0 +1,20 @@ +#!/usr/bin/make -f + +MODULE := graphite +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) \; + +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..2c8e406 --- /dev/null +++ b/debian/upstream/metadata @@ -0,0 +1,5 @@ +Archive: "https://github.com/Icinga/" +Bug-Database: "https://github.com/Icinga/icingaweb2-module-graphite/labels/bug" +Documentation: "https://github.com/Icinga/icingaweb2-module-graphite/tree/main/doc" +Repository: "https://github.com/Icinga/icingaweb2-module-graphite" +Repository-Browse: "https://github.com/orgs/Icinga/repositories" diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..48693a2 --- /dev/null +++ b/debian/watch @@ -0,0 +1,3 @@ +version=4 +opts=filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/icingaweb2-module-graphite-$1\.tar\.gz/ \ + https://github.com/icinga/icingaweb2-module-graphite/tags .*/v?(\d\S+)\.tar\.gz |