diff options
Diffstat (limited to 'debian')
-rw-r--r-- | debian/changelog | 21 | ||||
-rw-r--r-- | debian/control | 30 | ||||
-rw-r--r-- | debian/copyright | 28 | ||||
-rw-r--r-- | debian/icingaweb2-module-fileshipper.docs | 2 | ||||
-rw-r--r-- | debian/local/config.ini | 2 | ||||
-rw-r--r-- | debian/patches/debian/0001-post-merge.patch | 11 | ||||
-rw-r--r-- | debian/patches/series | 1 | ||||
-rwxr-xr-x | debian/rules | 31 | ||||
-rw-r--r-- | debian/source/format | 1 | ||||
-rw-r--r-- | debian/watch | 3 |
10 files changed, 130 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..240a23c --- /dev/null +++ b/debian/changelog @@ -0,0 +1,21 @@ +icingaweb2-module-fileshipper (1.2.0-2) unstable; urgency=medium + + * Adding watch file. + * Updating copyrihgt. + * Updating vcs in control. + * Updating Standards-Version. + + -- David Kunz <david.kunz@dknet.ch> Wed, 29 Dec 2021 11:46:46 +0100 + +icingaweb2-module-fileshipper (1.2.0-1.1) unstable; urgency=medium + + * Non-maintainer upload. + * Source-only upload. + + -- Adrian Bunk <bunk@debian.org> Sun, 07 Feb 2021 12:44:02 +0200 + +icingaweb2-module-fileshipper (1.2.0-1) unstable; urgency=medium + + * Initial release (Closes: #921092). + + -- David Kunz <david.kunz@dknet.ch> Mon, 11 Jan 2021 15:35:08 +0200 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..e917761 --- /dev/null +++ b/debian/control @@ -0,0 +1,30 @@ +Source: icingaweb2-module-fileshipper +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/Icinga/icingaweb2-module-fileshipper +Vcs-Browser: https://salsa.debian.org/david.kunz/icingaweb2-module-fileshipper +Vcs-Git: https://salsa.debian.org/david.kunz/icingaweb2-module-fileshipper.git + +Package: icingaweb2-module-fileshipper +Section: admin +Architecture: all +Depends: + icingaweb2, + icingaweb2-module-director, + php-xml, + php-yaml, + php-zip, + ${misc:Depends}, +Enhances: + icingaweb2, +Description: This Module offers to deploy config files through the Director + Icinga Web 2 is a very modular, fast and simple web interface for your Icinga + monitoring environment. + . + This module offers the possibility to deploy hand-crafted Icinga 2 config files + through the Icinga Director based on Import Source able to deal with CSV, JSON, + YAML and XML files. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..0262b47 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,28 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: icingaweb2-module-fileshipper +Upstream-Contact: Icinga Development Team <icinga-devel@lists.icinga.org> +Source: https://github.com/Icinga/icingaweb2-module-fileshipper/releases + +Files: * +Copyright: 2016-2018 Icinga Development Team <icinga-devel@lists.icinga.org> +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. diff --git a/debian/icingaweb2-module-fileshipper.docs b/debian/icingaweb2-module-fileshipper.docs new file mode 100644 index 0000000..968f11e --- /dev/null +++ b/debian/icingaweb2-module-fileshipper.docs @@ -0,0 +1,2 @@ +README.md +doc/* diff --git a/debian/local/config.ini b/debian/local/config.ini new file mode 100644 index 0000000..2aa058c --- /dev/null +++ b/debian/local/config.ini @@ -0,0 +1,2 @@ +[Automation] +basedir = "/var/lib/icingaweb2/modules/fileshipper/import" diff --git a/debian/patches/debian/0001-post-merge.patch b/debian/patches/debian/0001-post-merge.patch new file mode 100644 index 0000000..0579569 --- /dev/null +++ b/debian/patches/debian/0001-post-merge.patch @@ -0,0 +1,11 @@ +Author: David Kunz <david.kunz@dknet.ch> +Description: Correcting git-hook post-merge. + +--- icingaweb2-module-fileshipper.orig/contrib/git-hooks/post-merge ++++ icingaweb2-module-fileshipper/contrib/git-hooks/post-merge +@@ -1,4 +1,4 @@ +-#/usr/bin/env bash ++#!/bin/sh + # Trigger Director config rendering when something changed + + # This is a git hook that will run after `git pull`. In case any file was diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..e81bf43 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +debian/0001-post-merge.patch diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..549598d --- /dev/null +++ b/debian/rules @@ -0,0 +1,31 @@ +#!/usr/bin/make -f + +MODULE := fileshipper +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) \; + +override_dh_fixperms: + dh_fixperms + find debian -name '*.php' -exec chmod -x {} + + + # remove useless files + 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)/ + mkdir -p $(DEBDIR)/var/lib/icingaweb2/modules/fileshipper/import + +override_dh_installdocs: + dh_installdocs + rm -f $(DEBDIR)/usr/share/doc/icingaweb2-module-$(MODULE)/02-Installation.md + + # 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) diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..284c5ac --- /dev/null +++ b/debian/watch @@ -0,0 +1,3 @@ +version=4 +opts=filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/icingaweb2-module-fileshipper-$1\.tar\.gz/ \ + https://github.com/icinga/icingaweb2-module-fileshipper/tags .*/v?(\d\S+)\.tar\.gz |