From b86b946791f8dcc23ed6c47d513e34ebb22c1610 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 13 Apr 2024 13:32:39 +0200 Subject: Adding debian version 2.14.2-1. Signed-off-by: Daniel Baumann --- debian/.gitlab-ci.yml | 9 + debian/TODO | 26 + debian/changelog | 1066 ++++++++++++++++++++++++++++ debian/config/apt.conf | 7 + debian/config/kernel.conf | 7 + debian/control | 220 ++++++ debian/copyright | 246 +++++++ debian/docs | 3 + debian/gbp.conf | 19 + debian/icinga2-bin.icinga2.default | 3 + debian/icinga2-bin.icinga2.init | 239 +++++++ debian/icinga2-bin.icinga2.service | 21 + debian/icinga2-bin.install | 4 + debian/icinga2-bin.lintian-overrides | 3 + debian/icinga2-bin.postinst | 41 ++ debian/icinga2-bin.postrm | 29 + debian/icinga2-common.bash-completion | 1 + debian/icinga2-common.dirs | 12 + debian/icinga2-common.install | 8 + debian/icinga2-common.mainscript | 1 + debian/icinga2-common.manpages | 0 debian/icinga2-common.postinst | 91 +++ debian/icinga2-common.postrm | 29 + debian/icinga2-doc.install | 1 + debian/icinga2-ido-mysql.config | 21 + debian/icinga2-ido-mysql.install | 3 + debian/icinga2-ido-mysql.lintian-overrides | 3 + debian/icinga2-ido-mysql.postinst | 43 ++ debian/icinga2-ido-mysql.postrm | 24 + debian/icinga2-ido-mysql.prerm | 10 + debian/icinga2-ido-mysql.templates | 17 + debian/icinga2-ido-pgsql.config | 21 + debian/icinga2-ido-pgsql.install | 3 + debian/icinga2-ido-pgsql.lintian-overrides | 3 + debian/icinga2-ido-pgsql.postinst | 43 ++ debian/icinga2-ido-pgsql.postrm | 24 + debian/icinga2-ido-pgsql.prerm | 10 + debian/icinga2-ido-pgsql.templates | 17 + debian/ido-mysql.conf-sample | 14 + debian/ido-pgsql.conf-sample | 13 + debian/libicinga2.install | 1 + debian/patches/21_config_changes | 16 + debian/patches/postgres-checkcommand.patch | 16 + debian/patches/series | 3 + debian/patches/systemd-checkcommand.patch | 16 + debian/po/POTFILES.in | 2 + debian/po/cs.po | 61 ++ debian/po/da.po | 62 ++ debian/po/de.po | 61 ++ debian/po/es.po | 82 +++ debian/po/fr.po | 61 ++ debian/po/it.po | 62 ++ debian/po/ja.po | 61 ++ debian/po/nl.po | 69 ++ debian/po/pl.po | 64 ++ debian/po/pt.po | 63 ++ debian/po/pt_BR.po | 62 ++ debian/po/ro.po | 66 ++ debian/po/ru.po | 63 ++ debian/po/sv.po | 55 ++ debian/po/templates.pot | 58 ++ debian/po/tr.po | 62 ++ debian/rules | 107 +++ debian/source/format | 1 + debian/source/lintian-overrides | 3 + debian/tests/control | 3 + debian/tests/version | 18 + debian/upstream/metadata | 4 + debian/vim-icinga2.install | 1 + debian/vim-icinga2.neovim-addon | 1 + debian/vim-icinga2.vim-addon | 1 + debian/watch | 5 + 72 files changed, 3565 insertions(+) create mode 100644 debian/.gitlab-ci.yml create mode 100644 debian/TODO create mode 100644 debian/changelog create mode 100644 debian/config/apt.conf create mode 100644 debian/config/kernel.conf create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/docs create mode 100644 debian/gbp.conf create mode 100644 debian/icinga2-bin.icinga2.default create mode 100644 debian/icinga2-bin.icinga2.init create mode 100644 debian/icinga2-bin.icinga2.service create mode 100644 debian/icinga2-bin.install create mode 100644 debian/icinga2-bin.lintian-overrides create mode 100644 debian/icinga2-bin.postinst create mode 100644 debian/icinga2-bin.postrm create mode 100644 debian/icinga2-common.bash-completion create mode 100644 debian/icinga2-common.dirs create mode 100644 debian/icinga2-common.install create mode 100644 debian/icinga2-common.mainscript create mode 100644 debian/icinga2-common.manpages create mode 100644 debian/icinga2-common.postinst create mode 100644 debian/icinga2-common.postrm create mode 100644 debian/icinga2-doc.install create mode 100644 debian/icinga2-ido-mysql.config create mode 100644 debian/icinga2-ido-mysql.install create mode 100644 debian/icinga2-ido-mysql.lintian-overrides create mode 100644 debian/icinga2-ido-mysql.postinst create mode 100644 debian/icinga2-ido-mysql.postrm create mode 100644 debian/icinga2-ido-mysql.prerm create mode 100644 debian/icinga2-ido-mysql.templates create mode 100644 debian/icinga2-ido-pgsql.config create mode 100644 debian/icinga2-ido-pgsql.install create mode 100644 debian/icinga2-ido-pgsql.lintian-overrides create mode 100644 debian/icinga2-ido-pgsql.postinst create mode 100644 debian/icinga2-ido-pgsql.postrm create mode 100644 debian/icinga2-ido-pgsql.prerm create mode 100644 debian/icinga2-ido-pgsql.templates create mode 100644 debian/ido-mysql.conf-sample create mode 100644 debian/ido-pgsql.conf-sample create mode 100644 debian/libicinga2.install create mode 100644 debian/patches/21_config_changes create mode 100644 debian/patches/postgres-checkcommand.patch create mode 100644 debian/patches/series create mode 100644 debian/patches/systemd-checkcommand.patch create mode 100644 debian/po/POTFILES.in create mode 100644 debian/po/cs.po create mode 100644 debian/po/da.po create mode 100644 debian/po/de.po create mode 100644 debian/po/es.po create mode 100644 debian/po/fr.po create mode 100644 debian/po/it.po create mode 100644 debian/po/ja.po create mode 100644 debian/po/nl.po create mode 100644 debian/po/pl.po create mode 100644 debian/po/pt.po create mode 100644 debian/po/pt_BR.po create mode 100644 debian/po/ro.po create mode 100644 debian/po/ru.po create mode 100644 debian/po/sv.po create mode 100644 debian/po/templates.pot create mode 100644 debian/po/tr.po create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/source/lintian-overrides create mode 100644 debian/tests/control create mode 100644 debian/tests/version create mode 100644 debian/upstream/metadata create mode 100644 debian/vim-icinga2.install create mode 120000 debian/vim-icinga2.neovim-addon create mode 100644 debian/vim-icinga2.vim-addon create mode 100644 debian/watch diff --git a/debian/.gitlab-ci.yml b/debian/.gitlab-ci.yml new file mode 100644 index 0000000..fd78438 --- /dev/null +++ b/debian/.gitlab-ci.yml @@ -0,0 +1,9 @@ +--- +include: + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/recipes/debian.yml + +variables: + SALSA_CI_ENABLE_BUILD_PACKAGE_TWICE: 1 + +reprotest: + allow_failure: true diff --git a/debian/TODO b/debian/TODO new file mode 100644 index 0000000..2e7951f --- /dev/null +++ b/debian/TODO @@ -0,0 +1,26 @@ +icinga2 source TODOs +==================== + +* Replace embedded tools + - doc/ strapdownjs and jquery + +* Document embedded sources in tarball + - third-party/ + +* icinga2 not a meta package + - move default config to it + - move service to it + - to optimize dependencies + +* dependencies + - we should depend on /usr/bin/mail + - and probably recommend mail-transport-agent + +* IDO updates + - can fail when the daemon is running + - should properly disable/re-enable on updates + +* IDO packages + - mysql and pgsql should able to be installed at the same time + - enabling the feature on first install does not work (debconf) + - are features disabled properly on uninstall? diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..04d411b --- /dev/null +++ b/debian/changelog @@ -0,0 +1,1066 @@ +icinga2 (2.14.2-1) unstable; urgency=medium + + * Team upload. + * New upstream release. + * Ignore test failures on mips64el, ppc64el, powerpc. + + -- Bas Couwenberg Thu, 18 Jan 2024 13:26:54 +0100 + +icinga2 (2.14.1-1) unstable; urgency=medium + + * Team upload. + * New upstream release. + * Enable Salsa CI. + * Ignore test failures on i386. + (closes: #1058947) + * Use dh-sequence-{bash-completion,vim-addon}. + * Add Romanian debconf translation by Remus-Gabriel Chelu. + (closes: #1059155) + * Update lintian overrides. + * Move from experimental to unstable. + + -- Bas Couwenberg Thu, 21 Dec 2023 16:05:19 +0100 + +icinga2 (2.14.0-1~exp1) experimental; urgency=medium + + * Team upload. + * New upstream release. + * Update copyright file. + + -- Bas Couwenberg Wed, 12 Jul 2023 17:19:43 +0200 + +icinga2 (2.13.8-1) unstable; urgency=medium + + * Team upload. + * New upstream release. + * Bump debhelper compat to 13. + * Update copyright file. + * Update lintian overrides. + + -- Bas Couwenberg Wed, 12 Jul 2023 16:26:40 +0200 + +icinga2 (2.13.7-1) unstable; urgency=medium + + * Team upload. + * Add patch to use check_systemd path as provided by the + monitoring-plugins-systemd package. + (closes: #1033666) + * Move from experimental to unstable. + + -- Bas Couwenberg Sun, 11 Jun 2023 16:05:27 +0200 + +icinga2 (2.13.7-1~exp1) experimental; urgency=medium + + * Team upload. + * New upstream release. + + -- Bas Couwenberg Thu, 16 Feb 2023 20:47:13 +0100 + +icinga2 (2.13.6-2) unstable; urgency=medium + + * Team upload. + * Add Rules-Requires-Root to control file. + * Bump Standards-Version to 4.6.2, no changes. + * Add tzdata to build dependencies for timeperiod/dst test. + (closes: #1029422) + * Replace lsb-base dependency with sysvinit-utils (>= 3.05-4~). + + -- Bas Couwenberg Sun, 22 Jan 2023 17:36:37 +0100 + +icinga2 (2.13.6-1) unstable; urgency=medium + + * Team upload. + * New upstream release. + + -- Bas Couwenberg Mon, 07 Nov 2022 19:51:49 +0100 + +icinga2 (2.13.5-2) unstable; urgency=medium + + * Team upload. + + [ Bas Couwenberg ] + * Drop obsolete libwxgtk3.0-gtk3-dev build dependency. + (closes: #1019814) + * Update lintian overrides. + + [ Debian Janitor ] + * Remove constraints unnecessary since buster (oldstable): + + Build-Depends: Drop versioned constraint on cmake, g++ and make. + + icinga2-bin: Drop versioned constraint on icinga2-common in Replaces. + + icinga2-bin: Drop versioned constraint on icinga2-common in Breaks. + * Apply multi-arch hints. + + icinga2-doc: Add Multi-Arch: foreign. + + -- Bas Couwenberg Tue, 25 Oct 2022 05:31:01 +0200 + +icinga2 (2.13.5-1) unstable; urgency=medium + + * Team upload. + * New upstream release. + * Update libreadline Recommends. + (closes: #1014419) + * Drop obsolete dh_strip override, dbgsym migration complete. + * Update Vcs-* URLs for repo rename. + * Add libboost-iostreams-dev to build dependencies. + + -- Bas Couwenberg Thu, 11 Aug 2022 17:13:35 +0200 + +icinga2 (2.13.4-1) unstable; urgency=medium + + * Team upload. + * New upstream release. + * Bump Standards-Version to 4.6.1, no changes. + * Drop vim-icinga2-docs.patch, fixed upstream. + * Update lintian overrides. + * Override dh_vim-addon to only act on vim-icinga2. + + -- Bas Couwenberg Thu, 30 Jun 2022 15:29:22 +0200 + +icinga2 (2.13.3-1) unstable; urgency=medium + + * Team upload. + * New upstream release. + * Update copyright file. + * Refresh patches. + * Update lintian overrides. + + -- Bas Couwenberg Wed, 13 Apr 2022 15:55:28 +0200 + +icinga2 (2.13.2-1) unstable; urgency=medium + + * Team upload. + * New upstream release. + * Bump Standards-Version to 4.6.0, no changes. + * Update lintian overrides. + + -- Bas Couwenberg Sat, 13 Nov 2021 07:08:18 +0100 + +icinga2 (2.13.1-1) unstable; urgency=medium + + * Team upload. + * New upstream release. + * Move from experimental to unstable. + + -- Bas Couwenberg Thu, 19 Aug 2021 15:50:51 +0200 + +icinga2 (2.13.0-1~exp1) experimental; urgency=medium + + * Team upload. + * New upstream release. + * Update copyright file. + * Adopt upstream NotifyAccess & KillMode to systemd service changes. + * Refresh patches. + + -- Bas Couwenberg Wed, 04 Aug 2021 06:10:36 +0200 + +icinga2 (2.12.5-1) unstable; urgency=medium + + * Team upload. + * Move from experimental to unstable. + + -- Bas Couwenberg Sun, 15 Aug 2021 14:58:51 +0200 + +icinga2 (2.12.5-1~exp1) experimental; urgency=medium + + * Team upload. + * New upstream release. + * Apply patch by Louis-Philippe Véronneau to use dh-vim-addon. + (closes: #990376) + * Add patch to update documentation for vim-icinga2. + + -- Bas Couwenberg Fri, 16 Jul 2021 09:33:43 +0200 + +icinga2 (2.12.4-1~exp1) experimental; urgency=medium + + * Team upload. + + [ Adrian Bunk ] + * Remove the unity build disabling. + * Link with -latomic on architectures that need it. + + [ Bas Couwenberg ] + * New upstream release. + * Add --close-stdio to systemd service file. + (closes: #986465) + * Drop boost1.74 patches, included upstream. + * Update lintian overrides. + + -- Bas Couwenberg Thu, 27 May 2021 14:18:25 +0200 + +icinga2 (2.12.3-1) unstable; urgency=high + + * Team upload. + * New upstream release. + - Fixes CVE-2020-29663 + * Bump Standards-Version to 4.5.1, no changes. + + -- Bas Couwenberg Wed, 16 Dec 2020 05:36:35 +0100 + +icinga2 (2.12.2-1) unstable; urgency=medium + + * Team upload. + * New upstream release. + + -- Bas Couwenberg Thu, 26 Nov 2020 05:32:44 +0100 + +icinga2 (2.12.1-2) unstable; urgency=medium + + * Team upload. + * Bump watch file version to 4. + * Add patches to fix FTBFS with Boost 1.74. + (closes: #975416) + + -- Bas Couwenberg Sun, 22 Nov 2020 07:36:52 +0100 + +icinga2 (2.12.1-1) unstable; urgency=medium + + * Team upload. + * New upstream release. + * Move from experimental to unstable. + + -- Bas Couwenberg Sun, 18 Oct 2020 06:35:07 +0200 + +icinga2 (2.12.0-1~exp1) experimental; urgency=medium + + * Team upload. + * New upstream release. + * Add lintian overrides for file-references-package-build-path. + * Mark patches as Forwarded: not-needed. + + -- Bas Couwenberg Fri, 07 Aug 2020 07:40:24 +0200 + +icinga2 (2.12.0~rc1-1~exp1) experimental; urgency=medium + + * Team upload. + * New upstream release candidate. + - Fixes CVE-2021-32739 & CVE-2021-32743. + * Update copyright years for Icinga GmbH & Niels Lohmann. + * Drop boost-1.71.patch, applied upstream. + + -- Bas Couwenberg Tue, 17 Mar 2020 06:12:42 +0100 + +icinga2 (2.11.5-1) unstable; urgency=high + + * Team upload. + * New upstream release. + - Fixes CVE-2020-14004 + * Update gbp.conf & watch file for 2.11 releases. + * Add lintian overrides for file-references-package-build-path. + * Mark patches as Forwarded: not-needed. + + -- Bas Couwenberg Mon, 14 Sep 2020 05:46:26 +0200 + +icinga2 (2.11.3-2) unstable; urgency=medium + + * Team upload. + * Set additional permissions in icinga2-common.postinst. + (closes: #953425) + + -- Bas Couwenberg Mon, 09 Mar 2020 18:46:51 +0100 + +icinga2 (2.11.3-1) unstable; urgency=medium + + * Team upload. + + [ Debian Janitor ] + * Bump debhelper from old 9 to 12. + * Drop unnecessary dh arguments: --parallel + * Remove obsolete fields Name from debian/upstream/metadata. + * Rely on pre-initialized dpkg-architecture variables. + + [ Bas Couwenberg ] + * New upstream release. + * Bump Standards-Version to 4.5.0, no changes. + * Add patch by Giovanni Mascellani to fix FTBFS with Boost 1.71. + (closes: #949836) + * Add lsb-base to icinga2-bin dependencies. + * Replace dh_systemd_enable override with dh_installsystemd. + + -- Bas Couwenberg Tue, 03 Mar 2020 11:53:43 +0100 + +icinga2 (2.11.2-1) unstable; urgency=medium + + * Team upload. + * New upstream release. + + -- Bas Couwenberg Sat, 26 Oct 2019 16:53:23 +0200 + +icinga2 (2.11.1-2) unstable; urgency=medium + + * Team upload. + * Don't add -latomic, didn't fix the FTBFS. + * Switch to wxWidgets GTK 3 implementation. + (closes: #943438) + * Move from experimental to unstable. + + -- Bas Couwenberg Fri, 25 Oct 2019 06:24:43 +0200 + +icinga2 (2.11.1-2~exp1) experimental; urgency=medium + + * Team upload. + * Add -latomic to LDFLAGS on some architectures to fix FTFBS. + + -- Bas Couwenberg Fri, 18 Oct 2019 16:32:56 +0200 + +icinga2 (2.11.1-1) unstable; urgency=medium + + * Team upload. + * New upstream release. + * Bump Standards-Version to 4.4.1, no changes. + * Drop unused override for file-references-package-build-path. + * Move from experimental to unstable. + + -- Bas Couwenberg Fri, 18 Oct 2019 07:49:04 +0200 + +icinga2 (2.11.0-1~exp1) experimental; urgency=medium + + * Team upload. + * New upstream release. + * Mark autopkgtest as superficial. + * Update copyright years for Icinga Development Team. + * Drop spelling-errors.patch, applied upstream. + + -- Bas Couwenberg Fri, 20 Sep 2019 07:17:39 +0200 + +icinga2 (2.11.0~rc1-1~exp2) experimental; urgency=medium + + * Team upload. + * Use /run instead of /var/run. + * Set ownership of /etc/icinga2/features-enabled to nagios:nagios. + (closes: #934108) + + -- Bas Couwenberg Wed, 07 Aug 2019 14:50:58 +0200 + +icinga2 (2.11.0~rc1-1~exp1) experimental; urgency=medium + + * Team upload. + * New upstream release candidate. + * Bump Standards-Version to 4.4.0, no changes. + * Update copyright file, changes: + - Update copyright years for Icinga GmbH + - Add license & copyright for nlohmann_json & utf8cpp sources + * Drop icinga2-classicui package, Icinga 1.x is EOL. + * Refresh patches. + * Add additional boost build dependencies, drop libyajl-dev. + * Add patch to fix spelling errors. + + -- Bas Couwenberg Sat, 27 Jul 2019 08:06:39 +0200 + +icinga2 (2.10.6-1) unstable; urgency=medium + + * Team upload. + * New upstream release. + * Bump Standards-Version to 4.4.0, no changes. + + -- Bas Couwenberg Wed, 04 Sep 2019 11:37:41 +0200 + +icinga2 (2.10.5-1) unstable; urgency=medium + + * Team upload. + * Update gbp.conf to use --source-only-changes by default. + * Move from experimental to unstable. + + -- Bas Couwenberg Sun, 07 Jul 2019 12:34:48 +0200 + +icinga2 (2.10.5-1~exp1) experimental; urgency=medium + + * Team upload. + * New upstream release. + + -- Bas Couwenberg Fri, 24 May 2019 05:53:45 +0200 + +icinga2 (2.10.4-1~exp1) experimental; urgency=medium + + * Team upload. + * New upstream release. + * Add Icinga GmbH to copyright holders. + * Drop comparepasswords_issafe.patch, included upstream. + + -- Bas Couwenberg Fri, 22 Mar 2019 06:56:49 +0100 + +icinga2 (2.10.3-2) unstable; urgency=medium + + * Team upload. + * Add patch to fix comparepasswords_issafe test failure on i386. + * Set CTEST_OUTPUT_ON_FAILURE environment variable. + + -- Bas Couwenberg Fri, 01 Mar 2019 12:18:30 +0100 + +icinga2 (2.10.3-1) unstable; urgency=medium + + * Team upload. + * New upstream release. + * Bump Standards-Version to 4.3.0, no changes. + * Use .maintscript files instead of dpkg-maintscript-helper directly. + * Add lintian overrides for file-references-package-build-path. + + -- Bas Couwenberg Fri, 01 Mar 2019 06:52:34 +0100 + +icinga2 (2.10.2-1) unstable; urgency=medium + + * Team upload. + * New upstream release. + * Drop 42_mips_boost_bind_workaround patch, applied upstream. + + -- Bas Couwenberg Mon, 19 Nov 2018 18:20:51 +0100 + +icinga2 (2.10.1-3) unstable; urgency=medium + + * Team upload. + * Move init script & systemd service from -common to -bin package. + (closes: #912599) + + -- Bas Couwenberg Thu, 01 Nov 2018 20:29:09 +0100 + +icinga2 (2.10.1-2) unstable; urgency=medium + + * Team upload. + * Enable USE_SYSTEMD option & change icinga2.service to notify type. + (closes: #911672) + + -- Bas Couwenberg Tue, 23 Oct 2018 16:47:09 +0200 + +icinga2 (2.10.1-1) unstable; urgency=medium + + * Team upload. + * New upstream release. + * Update www.icinga.com URLs to icinga.com, and dev.icinga.com to GitHub. + * Drop spelling-errors.patch, applied upstream. + * Move from experimental to unstable. + + -- Bas Couwenberg Sat, 20 Oct 2018 18:03:58 +0200 + +icinga2 (2.10.0-1~exp1) experimental; urgency=medium + + * Team upload. + * New upstream release. + * Add patch to fix spelling errors. + + -- Bas Couwenberg Mon, 15 Oct 2018 07:59:08 +0200 + +icinga2 (2.9.2-1) unstable; urgency=medium + + * Team upload. + * New upstream release. + * Bump Standards-Version to 4.2.1, no changes. + + -- Bas Couwenberg Fri, 28 Sep 2018 07:32:37 +0200 + +icinga2 (2.9.1-1) unstable; urgency=medium + + * Team upload. + * New upstream release. + * Drop spelling-errors.patch, applied upstream. + + -- Bas Couwenberg Wed, 25 Jul 2018 06:22:55 +0200 + +icinga2 (2.9.0-1) unstable; urgency=medium + + * Team upload. + * New upstream release. + * Add patch by Jens Holzkämper to use check_postgres path as + provided by check-postgres package. + (closes: #898833) + * Apply patch by Dmitry Bogatov to also compress 01-about.md. + (closes: #898701) + * Bump Standards-Version to 4.1.5, no changes. + * Update license & copyright for mail notification scripts. + * Bump minimum required cmake version to 2.8.8. + * Refresh patches. + * Drop icinga2-studio package, removed upstream. + * Update ido install files for shim libraries. + * Drop libicinga2 package, libraries no longer built. + * Update spelling-errors.patch for "doesn't" typo. + + -- Bas Couwenberg Sat, 21 Jul 2018 09:05:20 +0200 + +icinga2 (2.8.4-2) unstable; urgency=medium + + * Team upload. + * Fix version autopkgtest. + + -- Bas Couwenberg Tue, 08 May 2018 08:18:35 +0200 + +icinga2 (2.8.4-1) unstable; urgency=medium + + * Team upload. + * Fix jQuery usage in icinga2-classicui. + (closes: #867884, #875686) + * Update Swedish debconf translation. Thanks to Jonatan Nyberg. + (closes: #873009) + * Change libreadline6 Recommends to libreadline7. + (closes: #880488) + * Add upstream metadata. + * Move from experimental to unstable. + + -- Bas Couwenberg Sat, 05 May 2018 16:29:11 +0200 + +icinga2 (2.8.4-1~exp1) experimental; urgency=medium + + * Team upload. + + [ Bas Couwenberg ] + * New upstream release. + - CVEs fixes in 2.8.2: + CVE-2017-16933, CVE-2018-6532, CVE-2018-6533, + CVE-2018-6534, CVE-2018-6535, CVE-2018-6536 + (closes: #897301, #891333, #883247) + * Add gbp.conf to use pristine-tar by default. + * Update copyright file, changes: + - Update copyright years for Icinga Development Team. + - Use stand-alone license paragraphs + - Add license & copyright for socketpair + * Restructure control file with cme. + * Change priority from extra to optional. + * Sort (build) dependencies. + * Drop obsolete dbg package. + * Update Vcs-* URLs for Salsa. + * Update copyright format URL to use HTTPS. + * Update various debian.org & icinga.com URLs to use HTTPS. + * Bump Standards-Version to 4.1.4, changes: priority, copyright format. + * Enable parallel globally. + * Simplify 'disable unity builds' rules. + * Drop obsolete dh-systemd build dependency. + * Use DEB_BUILD_ARCH instead of DEB_HOST_ARCH, and not unconditionally. + * Drop obsolete mysql (build) dependency alternatives. + * Strip trailing whitespace from changelog. + * Enable all hardening buildflags. + * Add patch to fix spelling errors. + * Move spelling-error-in-binary override from icinga2-bin to libicinga2. + * Drop unused overrides for apache2-deprecated-auth-config. + * Move rm_conffile from prerm to postrm. + * Update systemd service file, changes: + - Remove obsolete syslog.target + - Add Documentation key + * Add lintian overrides for hardening-no-fortify-functions. + * Override dh_missing to use --list-missing. + * Sort rules in order of execution. + * Reorder and align install files. + * Install IDO SQL files from debian/tmp. + * Explicitly remove files not included in any package. + + [ Dimitri John Ledkov ] + * Make sure icinga2-common has /etc/icinga2/pki folder, which appears to + still be in use. + + -- Bas Couwenberg Tue, 01 May 2018 20:38:14 +0200 + +icinga2 (2.7.0-1) unstable; urgency=medium + + * [3f2f6e0] New upstream version 2.7.0 + * [8861bd7] Improve systemd unit file + * [f25990d] fix linebreak + * [98b7e3f] Update debhelper dependency (Closes: #854349) + * [8c35696] Update swedish translation (Closes: #855364) + * [6f58b41] Install nsca_api plugin + + -- Alexander Wirt Wed, 02 Aug 2017 22:24:35 +0200 + +icinga2 (2.6.3-1) experimental; urgency=medium + + * [83b389e] New upstream version 2.6.3 + + -- Alexander Wirt Wed, 29 Mar 2017 23:45:01 +0200 + +icinga2 (2.6.2-1~exp1) experimental; urgency=medium + + * [16eb968] Depend on network.target and fix typo in service deps + * [7eee479] New upstream version 2.6.2 + + -- Alexander Wirt Mon, 13 Feb 2017 20:50:38 +0100 + +icinga2 (2.6.1-1~exp1) experimental; urgency=medium + + * [8cc068c] New upstream version 2.6.1 + * [509d654] Allow mysqlclient-dev dependency to be backwards compatible + * [8cc068c] New upstream version 2.6.1 + * [95aa4c2] Remove obsolete patch 41_ido_mysql57 + + -- Markus Frosch Tue, 31 Jan 2017 17:23:26 +0100 + +icinga2 (2.6.0-2) unstable; urgency=medium + + * [e0f34e4] Add patch 41_ido_mysql57 - for compatibility with MySQL 5.7 + * [6512d11] Remove obsolete patch 30_use_libmysql (empty) + * [16e341b] Recommend default-mysql-{server,client} + * [749f1fa] Adding missing dependency on lsb-base + * [4ed1e10] Update initscript to ignore SIGPIPE in daemon + * [5c10b76] Add patch 42_mips_boost_bind_workaround + * [86a23e5] makeshlibs: no scripts, we don't export shared libraries + + -- Markus Frosch Mon, 19 Dec 2016 16:13:45 +0100 + +icinga2 (2.6.0-1) unstable; urgency=medium + + [ Alexander Wirt ] + * [4e44b28] New upstream version 2.6.0 + - Fix unittests (Closes: #838358) + + [ Gunnar Beutner ] + * [de73edf] Add support for versioned private libraries + + -- Alexander Wirt Tue, 13 Dec 2016 13:11:05 +0100 + +icinga2 (2.5.4-3) unstable; urgency=medium + + * [e09f7d4] Link against libmysqlclient (Closes: #825079) + + -- Alexander Wirt Sat, 26 Nov 2016 17:00:09 +0100 + +icinga2 (2.5.4-2) unstable; urgency=medium + + * [f749f15] Disable unity builds for arm + * [33face7] Disable unity builds for mips and mipsel + (Closes: #836589) + + -- Alexander Wirt Fri, 09 Sep 2016 08:59:57 +0200 + +icinga2 (2.5.4-1) unstable; urgency=medium + + * [7cf17d9] Recommend specific icinga-doc version + * [d2c5d89] New upstream version 2.5.4 + + -- Alexander Wirt Wed, 31 Aug 2016 10:31:34 +0200 + +icinga2 (2.5.3-1) unstable; urgency=medium + + * [6cd83c4] Imported Upstream version 2.5.3 + + -- Alexander Wirt Thu, 25 Aug 2016 13:11:20 +0200 + +icinga2 (2.5.1-1) unstable; urgency=medium + + [ Markus Frosch ] + * [4dd5a4c] Update source TODO + + [ Alexander Wirt ] + * [7225af7] Include environment file + * [15c6c98] Imported Upstream version 2.5.0 + Fix FTBFS with OpenSSL 1.1.0 (Closes: #828347) + * [990c22b] Add swedish po templates (Closes: #822101) + * [d0a6d59] Explicitly set permissions on /etc/icinga2/pki (Closes: #824482) + * [ee12097] Add a stricter umask to service file (Closes: #827338) + * [0ad33c8] Add enviromentfile from /usr/lib (Closes: #831794) + * [063c582] Add build-dep for pkg-config to ease backporting (Closes: #831357) + * [792b520] Imported Upstream version 2.5.1 + + -- Alexander Wirt Tue, 23 Aug 2016 17:17:24 +0200 + +icinga2 (2.4.10-1) unstable; urgency=medium + + * [c5525bc] Imported Upstream version 2.4.10 + + -- Alexander Wirt Thu, 19 May 2016 13:41:17 +0200 + +icinga2 (2.4.9-1) unstable; urgency=medium + + * [71d8006] Imported Upstream version 2.4.9 + + -- Alexander Wirt Thu, 19 May 2016 11:30:53 +0200 + +icinga2 (2.4.8-1) unstable; urgency=medium + + * [c734d9e] Imported Upstream version 2.4.8 + + -- Alexander Wirt Tue, 17 May 2016 13:23:10 +0200 + +icinga2 (2.4.7-1) unstable; urgency=medium + + * Imported Upstream version 2.4.7 + + -- Alexander Wirt Thu, 21 Apr 2016 18:35:07 +0200 + +icinga2 (2.4.6-1) unstable; urgency=medium + + * Imported Upstream version 2.4.6 + + -- Alexander Wirt Wed, 20 Apr 2016 18:57:22 +0200 + +icinga2 (2.4.5-1) unstable; urgency=medium + + * [26a7374] Imported Upstream version 2.4.5 + + -- Alexander Wirt Wed, 20 Apr 2016 13:09:03 +0200 + +icinga2 (2.4.4-1) unstable; urgency=medium + + * [a2d01fb] Imported Upstream version 2.4.4 + + -- Alexander Wirt Wed, 16 Mar 2016 12:10:49 +0100 + +icinga2 (2.4.3-1) unstable; urgency=medium + + * [39ba8d6] Imported Upstream version 2.4.3 + + -- Markus Frosch Wed, 24 Feb 2016 16:13:18 +0100 + +icinga2 (2.4.2-1) unstable; urgency=medium + + * [3584c36] Imported Upstream version 2.4.2 + * [89ee45e] Bump standards version to 3.9.7 + + -- Markus Frosch Tue, 23 Feb 2016 16:30:32 +0100 + +icinga2 (2.4.1-2) unstable; urgency=medium + + [ Alexander Wirt ] + * [09024ca] Fail on reload if daemon isn't running + + [ Markus Frosch ] + * [dafe178] Fix rules for binary-{arch,indep} (Closes: #806623) + * [522fca2] Add vim-icinga2 syntax package + * [9261421] Don't install all the syntax files with icinga2-common + * [b4f5917] Install nanorc properly with icinga2-common + * [89b3a4a] Move bash-completion to /usr/share + * [53e9965] Remove obsolete menu file for icinga2-studio + * [108f078] Update lintian-overrides for icinga2-classicui + * [5a824b1] Update VCS URLs to secure + * [6222da3] Update copyright + * [ee74d47] Remove features-enabled on purge + * [ccb8bbe] Enable verbose cmake output for build log validation + + -- Markus Frosch Thu, 04 Feb 2016 16:55:46 +0100 + +icinga2 (2.4.1-1) unstable; urgency=medium + + * [9725e3c] Add proper conflicts and replaces from icinga2-bin to libicinga2 + (Closes: #806146) + * [7b31eda] Imported Upstream version 2.4.1 + + -- Alexander Wirt Thu, 26 Nov 2015 12:51:07 +0100 + +icinga2 (2.4.0-1) unstable; urgency=medium + + [ Gunnar Beutner ] + * Add Build-Depends for libedit and add Recommends for libreadline6 + * Revert "Run 'api setup' in post install task for icinga2-bin" + + [ Michael Friedrich ] + * Run 'api setup' in post install task for icinga2-bin + + [ Markus Frosch ] + * Add icinga2-studio package for Icinga 2.4 + + [ Alexander Wirt ] + * change application name for icinga studio + * Imported Upstream version 2.4.0 + + -- Alexander Wirt Mon, 16 Nov 2015 11:25:14 +0100 + +icinga2 (2.3.11-1) unstable; urgency=medium + + * [b9e26af] Change ido database name/user to icinga2 for new installations + * [6d4fa9d] Imported Upstream version 2.3.11 + + -- Alexander Wirt Tue, 20 Oct 2015 09:08:18 +0200 + +icinga2 (2.3.10-1) unstable; urgency=medium + + * [129f6ea] Imported Upstream version 2.3.10 + * [173da67] Merge systemd service file with upstreams implementation + + -- Alexander Wirt Sun, 06 Sep 2015 21:29:12 +0200 + +icinga2 (2.3.9-1) unstable; urgency=medium + + * [a03c364] Imported Upstream version 2.3.9 + + -- Alexander Wirt Thu, 27 Aug 2015 12:30:21 +0200 + +icinga2 (2.3.8-1) unstable; urgency=medium + + * [0f463b5] Imported Upstream version 2.3.8 + + -- Markus Frosch Mon, 20 Jul 2015 21:24:42 +0200 + +icinga2 (2.3.7-1) unstable; urgency=medium + + * [c4d8f2b] Really enable ido-pgsql if we have to + * [35c654e] Allow nagios group to write/remove perfdata + * [0fff36a] Imported Upstream version 2.3.7 + + -- Alexander Wirt Wed, 15 Jul 2015 11:41:51 +0200 + +icinga2 (2.3.6-1) unstable; urgency=medium + + [ Alexander Wirt ] + * [7eaa5f9] Imported Upstream version 2.3.6 + + -- Alexander Wirt Wed, 08 Jul 2015 10:57:35 +0200 + +icinga2 (2.3.5-1) unstable; urgency=medium + + * [64334db] Imported Upstream version 2.3.5 + * [afffeeb] Remove obsolete patches + + -- Alexander Wirt Wed, 17 Jun 2015 14:48:59 +0200 + +icinga2 (2.3.4-3) unstable; urgency=medium + + * [392a0bf] Add patch to fix broken postrotate script + + -- Alexander Wirt Wed, 22 Apr 2015 09:42:11 +0200 + +icinga2 (2.3.4-2) unstable; urgency=medium + + * [54904c5] Fix upstream version in icinga2 --version + * [3bb3712] Add first autopkgtest (dep8) support + + -- Alexander Wirt Mon, 20 Apr 2015 17:19:39 +0200 + +icinga2 (2.3.4-1) unstable; urgency=medium + + [ Achim Ledermüller ] + * [8009d66] Specify pidfile for status_of_proc in the init script + + [ Alexander Wirt ] + * [2a5d1cb] Remove obsolete logrotate_use_service patch + * [43b9dd6] Imported Upstream version 2.3.4 + * [be9777c] Recommend logrotate in icinga2-common + + -- Alexander Wirt Mon, 20 Apr 2015 13:16:16 +0200 + +icinga2 (2.3.3-1) unstable; urgency=medium + + * [8870a28] Imported Upstream version 2.3.3 + + -- Alexander Wirt Thu, 26 Mar 2015 11:43:11 +0100 + +icinga2 (2.3.2-1) unstable; urgency=medium + + * [d4e0ec3] Imported Upstream version 2.3.2 + + -- Alexander Wirt Thu, 12 Mar 2015 16:05:24 +0100 + +icinga2 (2.3.1-1) unstable; urgency=medium + + * [2927737] Create /var/log/icinga2/crash + * [730bfc7] Imported Upstream version 2.3.1 + + -- Alexander Wirt Thu, 12 Mar 2015 15:05:34 +0100 + +icinga2 (2.3.0-1) unstable; urgency=medium + + [ Gunnar Beutner ] + * [bbd4107] Add the PIDFile setting to the systemd unit file + + [ Alexander Wirt ] + * [739d013] Use service instead of killall in logrotate snippet + (Closes: #778892) + * [92c6b16] Imported Upstream version 2.3.0 + * [57d4676] Use kill -USR1 instead of service. + + -- Alexander Wirt Tue, 10 Mar 2015 10:38:18 +0100 + +icinga2 (2.2.4-1) unstable; urgency=medium + + [ Alexander Wirt ] + * [9f05d5b] Imported Upstream version 2.2.4 + * [7cfdc48] Update dutch debconf translation (Closes: #775782) + * [2a36397] Alternate to virtual-mysql-client in ido-mysql package + (Closes: #769278) + + -- Alexander Wirt Thu, 05 Feb 2015 16:05:57 +0100 + +icinga2 (2.2.3-1) unstable; urgency=medium + + * [c33e9ae] Imported Upstream version 2.2.3 + + -- Alexander Wirt Mon, 12 Jan 2015 10:38:27 +0100 + +icinga2 (2.2.2-2) unstable; urgency=medium + + * [ec8d305] Fix binary-only builds + + -- Markus Frosch Sun, 28 Dec 2014 17:24:06 +0100 + +icinga2 (2.2.2-1) unstable; urgency=medium + + * [89b506f] Imported Upstream version 2.2.2 + * [b04381a] Let icinga2-classicui depend on icinga2-bin (Closes: #770534) + * [8928097] Add dutch debconf translation (Closes: #766173) + * [7973e4e] Remove unsupported options from default file + * [d8e832f] Also install upgrade files to /usr/share + * [3b08f9d] Remove obsolete configuration option + * [adde104] Fix intendation in rules file + * [bb53657] python-icinga2 is no more, cleanup copyright and gitignore file + * [a1478f3] Remove some debug from icinga2-classicui.postinst + + -- Alexander Wirt Thu, 18 Dec 2014 13:11:04 +0100 + +icinga2 (2.2.1-1) unstable; urgency=medium + + [ Alexander Wirt ] + * [e73d057] Links are tested with -L + * [d605522] Just to be safe, use -e to check for the old apache configfile. + (Closes: #770743) + * [05f8f54] Move enable-feature to icinga2-bin (Closes: #770534) + * [c6fd841] Imported Upstream version 2.2.1 + * [1135583] Add is_fresh_install to icinga2-bin postinst + * [1deb08b] icinga2-prepare-dirs was renamed to prepare-dirs + + [ Gunnar Beutner ] + * [c3d13b5] Fix support for Apache 2.4 + + -- Alexander Wirt Mon, 01 Dec 2014 20:48:59 +0100 + +icinga2 (2.2.0-2) unstable; urgency=medium + + * [cf28c7d] Fix indentation in apache config + * [d608338] Lower needed dpkg version in pre-depends + * [b42c495] Let icinga2-common depend on icinga2-bin (Closes: #770534) + + -- Alexander Wirt Sat, 22 Nov 2014 13:29:20 +0100 + +icinga2 (2.2.0-1) unstable; urgency=medium + + [ Jan Wagner ] + * [cc6aad5] Fixing threshold for snmp-load check command + + [ Alexander Wirt ] + * [9a53b6f] Imported Upstream version 2.2.0 + * [74a5438] Remove obsolete snmp threshold patch + * [cd0954a] Fix path of sql upgrade files + * [0609016] Move sql files to a new location + * [dced984] The python package does not exist anymore + * [945985d] Reflect the new icinga cli tool + * [418ba11] Python is no more + * [5f880bb] dh-python is not needed anymore + * [e3c6d8d] Bump standards version (no changes) + * [5db6146] Update example configuration + * [cd040c6] Build-depend on libyajl-dev + * [f004624] Add yajl license + * [62b4c4b] Update initscript to new cli command style + * [f7183e3] Change filename of apt.conf and install bash-completion + for new cli + * [87415d0] Update postinst script to new cli command style + * [8dd43b4] Allow the nagios user to write to /etc/icinga2 + * [ea389c7] Use new cli command style + * [42e1c2d] Use new command line style interface for debconf templates + * [4833cee] Use new commandline interface in classicui postinst + * [6c4485d] Allow parallel builds + * [4723043] Update translations for new command + * [83a2c2a] Add support for systemd + * [e104007] Enhance apache 2.4 support + * [4fecd7b] Fix apache config with 2.4 + * [27bc54b] Move icinga2-classicui to its own configuration directory. + * [e6fe02e] Replace python-icinga2 + * [434cbef] Add a pre-depends to dpkg for dpkg-maintscript-helper + * [28e9995] Fix indenting in apache config + * [eaec113] Replace/Break/Conflict with deprecated python-icinga2 + + -- Alexander Wirt Fri, 21 Nov 2014 13:48:18 +0100 + +icinga2 (2.1.1-1) unstable; urgency=medium + + * [4a0350e] Imported Upstream version 2.1.1 + * [81a704c] gnu_hurd.patch is now upstream + * [e5709e4] pipe_ENOSYS.patch is now upstream + + -- Alexander Wirt Thu, 18 Sep 2014 08:00:44 +0200 + +icinga2 (2.1.0-3) unstable; urgency=medium + + * [dd04e8c] Fix build problem with CMake libdir on Hurd and kFreeBSD + Using dist version of GNUInstallDirs.cmake + + -- Markus Frosch Mon, 08 Sep 2014 16:39:23 +0200 + +icinga2 (2.1.0-2) unstable; urgency=medium + + [ Markus Frosch ] + * [26e4092] Update copyright for python embed + * [f9dd427] Fixed typo in copyright + * [f236eb4] Include all existing manpages + * [280f892] Adding patches for arch problems on Hurd and FreeBSD + * [ba59e9c] Fix lintian warning in copyright + + [ Christian Perrier ] + * Debconf templates and debian/control reviewed by the debian-l10n- + english team as part of the Smith review project. Closes: #755248 + * [Debconf translation updates] + * Portuguese (Américo Monteiro). Closes: #758573 + * Russian (Yuri Kozlov). Closes: #758790 + * German (Chris Leick). Closes: #759364 + * Brazilian Portuguese (). Closes: #759599 + * Danish (Joe Hansen). Closes: #759778 + * Japanese (victory). Closes: #760094 + * Spanish; (Matías A. Bellone). Closes: #760115 + * Czech (Michal Simunek). Closes: #760145 + * Polish (Michał Kułach). Closes: #760180 + * Italian (Beatrice Torracca). Closes: #760300 + * Turkish (Mert Dirik). Closes: #760329 + * French (Steve Petruzzello). Closes: #760600 + + -- Markus Frosch Mon, 08 Sep 2014 14:03:13 +0200 + +icinga2 (2.1.0-1) unstable; urgency=medium + + [ Alexander Wirt ] + * [e1b3b50] Prefer monitoring-plugins over nagios-plugins + + [ Markus Frosch ] + * [e192c30] Imported Upstream version 2.1.0 + * [4e08221] Added python-icinga2 and updates for list-objects + * [4bd22b4] Update maintainer mail and copyright + * [cd79431] Add missing Python dependency macros + * [63d5bfb] Update gitignore + * [42a8707] Update lintian ignores + * [33ca186] Add patch 21_config_changes to change default mail + (Closes: #759011) + + -- Markus Frosch Fri, 29 Aug 2014 14:07:28 +0200 + +icinga2 (2.0.2-1) unstable; urgency=medium + + [ Jan Wagner ] + * [e6fec86] Adding me to the Uploaders + + [ Alexander Wirt ] + * [aef20e1] Imported Upstream version 2.0.2 + * [2b1d87f] README is now README.md + * [ac7b2ba] Reenable Make snippet for installing upgrade files + * [f66aa0e] Fix dep on icinga-cgi-bin + + -- Alexander Wirt Thu, 07 Aug 2014 14:42:05 +0200 + +icinga2 (2.0.1-2) unstable; urgency=medium + + [ Alexander Wirt ] + * [93ca878] Fix dependency on apache2-utils and take care cgi is loaded + + [ Jan Wagner ] + * [63fb799] Adding Vcs-headers + + -- Alexander Wirt Wed, 30 Jul 2014 19:36:09 +0200 + +icinga2 (2.0.1-1) unstable; urgency=medium + + [ Alexander Wirt ] + * [1fc2d37] Wrap and sort + * [37d2d90] Recommend nagios-plugins in meta package + * [5b33ec5] Adapt url_cgi_path in cgi.cfg, so that icinga2-classic + doesn't trigger csrf protection + * [3639615] Add dbcconfig-common to ido-pg depends + * [2f7dcb6] Imported Upstream version 2.0.1 + * [0842ae8] let the ido packages epend on ucf + + [ Markus Frosch ] + * [5aaa17c] Fix some lintian warnings + + -- Alexander Wirt Mon, 14 Jul 2014 20:33:58 +0200 + +icinga2 (2.0.0-1) unstable; urgency=low + + [ Markus Frosch ] + * Initial Debian packaging for the Icinga 2 betas (Closes: #751509) + + [ Alexander Wirt ] + * [f4e1a77] Run check_run only in do_start() + * [d4bc561] Add support for dbconfig-common and enabling ido* via debconf + * [b5829a8] Don't install static configuration file + * [edd86d2] Remove enabled symlink on package purge + * [4c69aaa] Let those ido modules conflict for now + * [a6ccd18] Imported Upstream version 2.0.0 + + -- Alexander Wirt Mon, 16 Jun 2014 12:22:43 +0200 diff --git a/debian/config/apt.conf b/debian/config/apt.conf new file mode 100644 index 0000000..b2c77a0 --- /dev/null +++ b/debian/config/apt.conf @@ -0,0 +1,7 @@ +apply Service "apt" { + import "generic-service" + + check_command = "apt" + + assign where host.name == NodeName +} diff --git a/debian/config/kernel.conf b/debian/config/kernel.conf new file mode 100644 index 0000000..8817b2e --- /dev/null +++ b/debian/config/kernel.conf @@ -0,0 +1,7 @@ +apply Service "kernel" { + import "generic-service" + + check_command = "running_kernel" + + assign where host.name == NodeName +} diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..14b897a --- /dev/null +++ b/debian/control @@ -0,0 +1,220 @@ +Source: icinga2 +Maintainer: Debian Nagios Maintainer Group +Uploaders: Markus Frosch , + Jan Wagner , + Alexander Wirt +Section: admin +Priority: optional +Build-Depends: bash-completion, + bison, + cmake, + debhelper-compat (= 13), + dh-sequence-bash-completion, + dh-sequence-vim-addon, + dh-vim-addon, + flex, + libboost-dev, + libboost-context-dev, + libboost-coroutine-dev, + libboost-filesystem-dev, + libboost-iostreams-dev, + libboost-program-options-dev, + libboost-regex-dev, + libboost-system-dev, + libboost-test-dev, + libboost-thread-dev, + libedit-dev, + default-libmysqlclient-dev, + libpq-dev, + libssl-dev, + libsystemd-dev, + pkg-config, + po-debconf, + tzdata +Standards-Version: 4.6.2 +Vcs-Browser: https://salsa.debian.org/nagios-team/icinga2 +Vcs-Git: https://salsa.debian.org/nagios-team/icinga2.git +Homepage: https://icinga.com +Rules-Requires-Root: no + +Package: icinga2 +Architecture: any +Depends: icinga2-bin (= ${binary:Version}), + icinga2-common (= ${source:Version}), + ${misc:Depends} +Recommends: icinga2-doc (= ${binary:Version}), + monitoring-plugins-basic | nagios-plugins-basic, + libreadline8 +Suggests: vim-icinga2 +Description: host and network monitoring system + Icinga 2 is a general-purpose monitoring application to fit the needs of + any size of network. Icinga 1.x was a Nagios fork; this new generation + has been rewritten from scratch in C++, with multi-threading and cluster + support. + . + Features: + * all standard features of Icinga and Nagios; + * much faster and more scalable than Icinga 1 and Nagios; + * new, more intuitive, template-based configuration format; + * monitoring services on ICMP (ping) or TCP ports (HTTP, NNTP, POP3, + SMTP, etc.) by executing checks (see monitoring-plugins*); + * any small script following the Nagios plugin API can be used as a + check plugin; + * notifications about alerts for any custom script (with examples); + * native support for Livestatus and Graphite. + . + This is the metapackage to install all Icinga 2 features. + +Package: icinga2-common +Architecture: all +Depends: adduser, + lsb-release, + sysvinit-utils (>= 3.05-4~), + ${misc:Depends} +Recommends: logrotate +Conflicts: python-icinga2 +Provides: python-icinga2 +Replaces: python-icinga2 +Description: host and network monitoring system - common files + Icinga 2 is a general-purpose monitoring application to fit the needs of + any size of network. Icinga 1.x was a Nagios fork; this new generation + has been rewritten from scratch in C++, with multi-threading and cluster + support. + . + Features: + * all standard features of Icinga and Nagios; + * much faster and more scalable than Icinga 1 and Nagios; + * new, more intuitive, template-based configuration format; + * monitoring services on ICMP (ping) or TCP ports (HTTP, NNTP, POP3, + SMTP, etc.) by executing checks (see monitoring-plugins*); + * any small script following the Nagios plugin API can be used as a + check plugin; + * notifications about alerts for any custom script (with examples); + * native support for Livestatus and Graphite. + . + This package provides configuration and some basic helper scripts. + +Package: icinga2-bin +Architecture: any +Depends: icinga2-common (= ${source:Version}), + sysvinit-utils (>= 3.05-4~), + ${misc:Depends}, + ${shlibs:Depends} +Pre-Depends: ${misc:Pre-Depends} +Description: host and network monitoring system - daemon + Icinga 2 is a general-purpose monitoring application to fit the needs of + any size of network. Icinga 1.x was a Nagios fork; this new generation + has been rewritten from scratch in C++, with multi-threading and cluster + support. + . + Features: + * all standard features of Icinga and Nagios; + * much faster and more scalable than Icinga 1 and Nagios; + * new, more intuitive, template-based configuration format; + * monitoring services on ICMP (ping) or TCP ports (HTTP, NNTP, POP3, + SMTP, etc.) by executing checks (see monitoring-plugins*); + * any small script following the Nagios plugin API can be used as a + check plugin; + * notifications about alerts for any custom script (with examples); + * native support for Livestatus and Graphite. + . + This package provides the Icinga 2 daemon. + +Package: icinga2-doc +Architecture: all +Section: doc +Depends: ${misc:Depends} +Multi-Arch: foreign +Description: host and network monitoring system - documentation + Icinga 2 is a general-purpose monitoring application to fit the needs of + any size of network. Icinga 1.x was a Nagios fork; this new generation + has been rewritten from scratch in C++, with multi-threading and cluster + support. + . + Features: + * all standard features of Icinga and Nagios; + * much faster and more scalable than Icinga 1 and Nagios; + * new, more intuitive, template-based configuration format; + * monitoring services on ICMP (ping) or TCP ports (HTTP, NNTP, POP3, + SMTP, etc.) by executing checks (see monitoring-plugins*); + * any small script following the Nagios plugin API can be used as a + check plugin; + * notifications about alerts for any custom script (with examples); + * native support for Livestatus and Graphite. + . + This package provides the Icinga 2 documentation. + +Package: icinga2-ido-mysql +Architecture: any +Depends: dbconfig-common, + icinga2-bin (= ${binary:Version}), + icinga2-common (= ${source:Version}), + ucf, + ${misc:Depends}, + ${shlibs:Depends} +Recommends: default-mysql-client | virtual-mysql-client +Suggests: default-mysql-server | virtual-mysql-server +Pre-Depends: ${misc:Pre-Depends} +Conflicts: icinga2-ido-pgsql +Description: host and network monitoring system - MySQL support + Icinga 2 is a general-purpose monitoring application to fit the needs of + any size of network. Icinga 1.x was a Nagios fork; this new generation + has been rewritten from scratch in C++, with multi-threading and cluster + support. + . + Features: + * all standard features of Icinga and Nagios; + * much faster and more scalable than Icinga 1 and Nagios; + * new, more intuitive, template-based configuration format; + * monitoring services on ICMP (ping) or TCP ports (HTTP, NNTP, POP3, + SMTP, etc.) by executing checks (see monitoring-plugins*); + * any small script following the Nagios plugin API can be used as a + check plugin; + * notifications about alerts for any custom script (with examples); + * native support for Livestatus and Graphite. + . + This package provides the IDO module for the MySQL database. + +Package: icinga2-ido-pgsql +Architecture: any +Depends: dbconfig-common, + icinga2-bin (= ${binary:Version}), + icinga2-common (= ${source:Version}), + ucf, + ${misc:Depends}, + ${shlibs:Depends} +Recommends: postgresql-client +Suggests: postgresql +Pre-Depends: ${misc:Pre-Depends} +Conflicts: icinga2-ido-mysql +Description: host and network monitoring system - PostgreSQL support + Icinga 2 is a general-purpose monitoring application to fit the needs of + any size of network. Icinga 1.x was a Nagios fork; this new generation + has been rewritten from scratch in C++, with multi-threading and cluster + support. + . + Features: + * all standard features of Icinga and Nagios; + * much faster and more scalable than Icinga 1 and Nagios; + * new, more intuitive, template-based configuration format; + * monitoring services on ICMP (ping) or TCP ports (HTTP, NNTP, POP3, + SMTP, etc.) by executing checks (see monitoring-plugins*); + * any small script following the Nagios plugin API can be used as a + check plugin; + * notifications about alerts for any custom script (with examples); + * native support for Livestatus and Graphite. + . + This package provides the IDO module for the PostgreSQL database. + +Package: vim-icinga2 +Architecture: all +Depends: ${vim-addon:Depends}, + ${misc:Depends} +Description: syntax highlighting for Icinga 2 config files in VIM + Icinga 2 is a general-purpose monitoring application to fit the needs of + any size of network. Icinga 1.x was a Nagios fork; this new generation + has been rewritten from scratch in C++, with multi-threading and cluster + support. + . + The vim-icinga2 package provides filetype detection and syntax + highlighting for Icinga 2 config files. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..da9bb62 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,246 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Icinga 2 +Source: https://github.com/Icinga/icinga2 + +Files: * +Copyright: 2012-2019, Icinga Development Team (https://icinga.com) + 2012, 2019-2023, Icinga GmbH +License: GPL-2+ with OpenSSL exception + +Files: etc/icinga2/scripts/mail-host-notification.sh + etc/icinga2/scripts/mail-service-notification.sh +Copyright: 2012-2018, Icinga Development Team (https://icinga.com/) + Brian White (brian@aljex.com) +Comment: urlencode function by Brian White (brian@aljex.com) uses MIT license +License: GPL-2+ with OpenSSL exception and Expat + +Files: third-party/cmake/BoostTestTargets.* + third-party/cmake/CopyResourcesToBuildTree.cmake + third-party/cmake/GetForceIncludeDefinitions.cmake + third-party/cmake/GetGitRevisionDescription.cmake.in +Copyright: 2009-2010, Ryan Pavlik + 2009-2012, Iowa State University + 2011-2015, Contributors +License: BSL-1.0 + +Files: third-party/cmake/FindBISON.cmake third-party/cmake/FindFLEX.cmake +Copyright: 2006, Tristan Carel + 2009, Kitware, Inc. + 2010, Jon Siwek +License: BSD-3-clause + +Files: third-party/cmake/FindGit.cmake +Copyright: 2010, Kitware, Inc. + 2012, Rolf Eike Beer +License: BSD-3-clause-Kitware + +Files: third-party/cmake/FindPostgreSQL.cmake +Copyright: 2004-2009, Kitware, Inc. +License: BSD-3-clause-Kitware + +Files: third-party/execvpe/* +Copyright: 1991-1992, 1995-1999, 2002, 2004, 2005, 2007, 2009, Free Software Foundation, Inc. +License: LGPL-2.1+ + +Files: third-party/mmatch/* +Copyright: 1990, Jarkko Oikarinen + 1996, Run +License: GPL-1+ + +Files: third-party/nlohmann_json/* +Copyright: 2013-2020, Niels Lohmann +License: Expat + +Files: third-party/socketpair/socketpair.c + third-party/socketpair/socketpair.h +Copyright: 2007, 2010, Nathan C. Myers +License: BSD-3-clause + +Files: third-party/utf8cpp/* +Copyright: 2006-2018, Nemanja Trifunovic +License: BSL-1.0 + +Files: debian/* +Copyright: 2012-2014, Alexander Wirt + 2013-2014, Markus Frosch + 2014, Icinga Development Team (https://icinga.com) +License: GPL-2+ + +License: BSD-3-clause + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + . + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + . + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + . + * Neither the names of Kitware, Inc., the Insight Software Consortium, + nor the names of their contributors may be used to endorse or promote + products derived from this software without specific prior written + permission. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + . + This software is distributed WITHOUT ANY WARRANTY; without even the + implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the License for more information. + +License: BSD-3-clause-Kitware + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + . + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + . + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + . + * Neither the names of Kitware, Inc., the Insight Software Consortium, + nor the names of their contributors may be used to endorse or promote + products derived from this software without specific prior written + permission. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + . + This software is distributed WITHOUT ANY WARRANTY; without even the + implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the License for more information. + +License: BSL-1.0 + Permission is hereby granted, free of charge, to any person or organization + obtaining a copy of the software and accompanying documentation covered by + this license (the "Software") to use, reproduce, display, distribute, + execute, and transmit the Software, and to prepare derivative works of the + Software, and to permit third-parties to whom the Software is furnished to + do so, all subject to the following: + . + The copyright notices in the Software and this entire statement, including + the above license grant, this restriction and the following disclaimer, + must be included in all copies of the Software, in whole or in part, and + all derivative works of the Software, unless such copies or derivative + works are solely in the form of machine-executable object code generated by + a source language processor. + . + 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, TITLE AND NON-INFRINGEMENT. IN NO EVENT + SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE + FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, + ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + DEALINGS IN THE SOFTWARE. + +License: Expat + 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. + +License: GPL-1+ + 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 1, or (at your option) + any later version. + . + 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. + . + On Debian systems, the complete text of the GNU General + Public License version 1 can be found in "/usr/share/common-licenses/GPL-1". + +License: GPL-2+ + This package 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, or + (at your option) any later version. + . + This package 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. + . + On Debian systems, the complete text of the GNU General + Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". + +License: GPL-2+ with OpenSSL exception + This package 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, or + (at your option) any later version. + . + This package 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. + . + On Debian systems, the complete text of the GNU General + Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". + . + In addition, as a special exception, the copyright holders give + permission to link the code of portions of this program with the + OpenSSL library under certain conditions as described in each + individual source file, and distribute linked combinations including + the two. + . + You must obey the GNU General Public License in all respects for all + of the code used other than OpenSSL. If you modify file(s) with this + exception, you may extend this exception to your version of the + file(s), but you are not obligated to do so. If you do not wish to do + so, delete this exception statement from your version. If you delete + this exception statement from all source files in the program, then + also delete it here. + +License: LGPL-2.1+ + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + . + The GNU C Library 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 + Lesser General Public License for more details. + . + On Debian systems, the complete text of the GNU General + Public License version 2 can be found in "/usr/share/common-licenses/LGPL-2.1". + diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..46a4ca7 --- /dev/null +++ b/debian/docs @@ -0,0 +1,3 @@ +AUTHORS +NEWS +README.md diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..e3daba6 --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,19 @@ +[DEFAULT] + +# The default name for the upstream branch is "upstream". +# Change it if the name is different (for instance, "master"). +upstream-branch = upstream + +# The default name for the Debian branch is "master". +# Change it if the name is different (for instance, "debian/unstable"). +debian-branch = master + +# git-import-orig uses the following names for the upstream tags. +# Change the value if you are not using git-import-orig +upstream-tag = upstream/%(version)s + +# Always use pristine-tar. +pristine-tar = True + +[buildpackage] +pbuilder-options = --source-only-changes diff --git a/debian/icinga2-bin.icinga2.default b/debian/icinga2-bin.icinga2.default new file mode 100644 index 0000000..c452408 --- /dev/null +++ b/debian/icinga2-bin.icinga2.default @@ -0,0 +1,3 @@ +# default settings for icinga2's initscript + +#DAEMON_ARGS="-e /var/log/icinga2/icinga2.err" diff --git a/debian/icinga2-bin.icinga2.init b/debian/icinga2-bin.icinga2.init new file mode 100644 index 0000000..3abca95 --- /dev/null +++ b/debian/icinga2-bin.icinga2.init @@ -0,0 +1,239 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: icinga2 +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: icinga2 host/service/network monitoring and management system +# Description: icinga2 is a monitoring and management system for hosts, services and networks. +### END INIT INFO + +# Author: Alexander Wirt +# Markus Frosch + +# PATH should only include /usr/* if it runs after the mountnfs.sh script +PATH=/sbin:/usr/sbin:/bin:/usr/bin +DESC="icinga2 monitoring daemon" +NAME=icinga2 +DAEMON=/usr/sbin/icinga2 +DAEMON_CONFIG="/etc/icinga2/icinga2.conf" +DAEMON_USER=nagios +DAEMON_GROUP=nagios +DAEMON_CMDGROUP=www-data +DAEMON_ARGS="-e /var/log/icinga2/icinga2.err" +STARTUP_LOG="/var/log/icinga2/startup.log" +PIDFILE=/run/icinga2/$NAME.pid +SCRIPTNAME=/etc/init.d/$NAME + +# Block/ignore SIGPIPE inside Icinga2 +# Workaround for a known bug in 2.6.0 +# see https://github.com/Icinga/icinga2/issues/4867#issuecomment-273109525 +trap '' 13 # SIGPIPE + +# Exit if the package is not installed +[ -x "$DAEMON" ] || exit 0 + +# Read configuration variable file if it is present +[ -r /etc/default/$NAME ] && . /etc/default/$NAME + +# Load the VERBOSE setting and other rcS variables +. /lib/init/vars.sh + +# Define LSB log_* functions. +# Depend on lsb-base (>= 3.2-14) to ensure that this file is present +# and status_of_proc is working. +. /lib/lsb/init-functions + +# check run directory +check_run () { + test -d '/run/icinga2' || mkdir /run/icinga2 + test -d '/run/icinga2/cmd' || mkdir /run/icinga2/cmd + + chown "$DAEMON_USER":"$DAEMON_GROUP" /run/icinga2 + chmod 0755 /run/icinga2 + + chown "$DAEMON_USER":"$DAEMON_CMDGROUP" /run/icinga2/cmd + chmod 2710 /run/icinga2/cmd +} + +check_config () { + $DAEMON daemon --validate +} + +# +# Function that starts the daemon/service +# +do_start() +{ + check_run + # Return + # 0 if daemon has been started + # 1 if daemon was already running + # 2 if daemon could not be started + start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \ + || return 1 + start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \ + daemon -d $DAEMON_ARGS \ + || return 2 + # Add code here, if necessary, that waits for the process to be ready + # to handle requests from services started subsequently which depend + # on this one. As a last resort, sleep for some time. +} + +# +# Function that starts the daemon/service in foreground for debugging +# +do_foreground() +{ + start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test \ + || return 1 + start-stop-daemon --start --pidfile $PIDFILE --exec $DAEMON -- \ + daemon $DAEMON_ARGS \ + || return 2 +} + +# +# Function that stops the daemon/service +# +do_stop() +{ + # Return + # 0 if daemon has been stopped + # 1 if daemon was already stopped + # 2 if daemon could not be stopped + # other if a failure occurred + start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME + RETVAL="$?" + [ "$RETVAL" = 2 ] && return 2 + # Wait for children to finish too if this is a daemon that forks + # and if the daemon is only ever run from this initscript. + # If the above conditions are not satisfied then add some other code + # that waits for the process to drop all resources that could be + # needed by services started subsequently. A last resort is to + # sleep for some time. + start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON + [ "$?" = 2 ] && return 2 + # Many daemons don't delete their pidfiles when they exit. + rm -f $PIDFILE + return "$RETVAL" +} + +# +# Function that sends a SIGHUP to the daemon/service +# +do_reload() { + # + # If the daemon can reload its configuration without + # restarting (for example, when it is sent a SIGHUP), + # then implement that here. + # + start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME + return 0 +} + +do_check_config () { + DOEXITONOK="$1" + log_begin_msg "checking Icinga2 configuration" + if ! check_config >$STARTUP_LOG 2>&1; then + echo + [ -n "$DOEXITONOK" ] && cat $STARTUP_LOG + log_failure_msg "checking Icinga2 configuration. Check '$STARTUP_LOG' for details." + exit 1 + else + log_end_msg 0 + [ -n "$DOEXITONOK" ] && exit 0 + fi +} + +case "$1" in + start) + do_check_config + log_daemon_msg "Starting $DESC" "$NAME" + do_start + case "$?" in + 0|1) log_end_msg 0 ;; + 2) log_end_msg 1 ;; + esac + ;; + foreground) + do_check_config + log_action_msg "Starting $DESC in foreground" + status=0 + trap 'status=2;' INT # handle intr here + for i in 1 2; do + do_foreground || status="$?" + case "$status" in + 0) + log_success_msg "$NAME ended graceful" + break + ;; + 1) + if [ "$i" -eq 1 ]; then + log_warning_msg "$NAME already running!" + log_begin_msg "Do you want to stop $NAME before going foreground? [y/N] " + read -r question + if [ "$question" = "y" ] || [ "$question" = "yes" ]; then + do_stop + continue + fi + fi + log_failure_msg "$NAME already running! Please stop before starting in foreground!" + break + ;; + 2) + log_failure_msg "$NAME ended" + break + ;; + esac + done + exit $status + ;; + stop) + log_daemon_msg "Stopping $DESC" "$NAME" + do_stop + case "$?" in + 0|1) log_end_msg 0 ;; + 2) log_end_msg 1 ;; + esac + ;; + status) + status_of_proc -p "$PIDFILE" "$DAEMON" "$NAME" && exit 0 || exit $? + ;; + reload|force-reload) + do_check_config + status_of_proc -p "$PIDFILE" "$DAEMON" "$NAME" || exit $? + log_daemon_msg "Reloading $DESC" "$NAME" + do_reload + log_end_msg $? + ;; + restart) + do_check_config + log_daemon_msg "Restarting $DESC" "$NAME" + do_stop + case "$?" in + 0|1) + do_start + case "$?" in + 0) log_end_msg 0 ;; + 1) log_end_msg 1 ;; # Old process is still running + *) log_end_msg 1 ;; # Failed to start + esac + ;; + *) + # Failed to stop + log_end_msg 1 + ;; + esac + ;; + checkconfig) + do_check_config 1 + ;; + *) + echo "Usage: $SCRIPTNAME {start|stop|status|reload|force-reload|restart|checkconfig|foreground}" >&2 + exit 3 + ;; +esac + +# vi: ts=2 sw=2 expandtab : +: diff --git a/debian/icinga2-bin.icinga2.service b/debian/icinga2-bin.icinga2.service new file mode 100644 index 0000000..94d8ea3 --- /dev/null +++ b/debian/icinga2-bin.icinga2.service @@ -0,0 +1,21 @@ +[Unit] +Description=Icinga host/service/network monitoring system +Documentation=https://icinga.com/docs/icinga2/latest/ +After=network-online.target postgresql.service mariadb.service carbon-cache.service carbon-relay.service + +[Service] +Type=notify +NotifyAccess=all +UMask=0007 +EnvironmentFile=/usr/lib/icinga2/icinga2 +EnvironmentFile=/etc/default/icinga2 +ExecStartPre=/usr/lib/icinga2/prepare-dirs /usr/lib/icinga2/icinga2 +ExecStart=/usr/sbin/icinga2 daemon --close-stdio -e ${ICINGA2_ERROR_LOG} +ExecReload=/usr/lib/icinga2/safe-reload /usr/lib/icinga2/icinga2 +TimeoutStartSec=30m +KillMode=mixed +PIDFile=/run/icinga2/icinga2.pid + +[Install] +WantedBy=multi-user.target + diff --git a/debian/icinga2-bin.install b/debian/icinga2-bin.install new file mode 100644 index 0000000..e75ab74 --- /dev/null +++ b/debian/icinga2-bin.install @@ -0,0 +1,4 @@ +usr/lib/*/icinga2/sbin +usr/lib/nagios/plugins/check_nscp_api +usr/sbin/icinga2 +usr/share/man/man8/icinga2.8 diff --git a/debian/icinga2-bin.lintian-overrides b/debian/icinga2-bin.lintian-overrides new file mode 100644 index 0000000..9543c94 --- /dev/null +++ b/debian/icinga2-bin.lintian-overrides @@ -0,0 +1,3 @@ +# This is actually a defined word in the livestatus protocol... +spelling-error-in-binary childs children [usr/lib/*/icinga2/sbin/icinga2] + diff --git a/debian/icinga2-bin.postinst b/debian/icinga2-bin.postinst new file mode 100644 index 0000000..52d78ae --- /dev/null +++ b/debian/icinga2-bin.postinst @@ -0,0 +1,41 @@ +#!/bin/sh +# postinst script for icinga2-bn + +set -e + +is_fresh_install() +{ + if [ -z "$2" ] ; then + return 0 + fi + return 1 +} + +enable_default_features() { + FIX_VERSION="0.0.5+icingasnap201312070000" + if is_fresh_install $@ \ + || dpkg --compare-versions "$2" lt "$FIX_VERSION"; then + echo "enabling default icinga2 features" + icinga2 feature enable checker notification mainlog + fi + # handle new default features here in the future +} + +case "$1" in + configure) + # enable default features + enable_default_features $@ + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 diff --git a/debian/icinga2-bin.postrm b/debian/icinga2-bin.postrm new file mode 100644 index 0000000..ed08a02 --- /dev/null +++ b/debian/icinga2-bin.postrm @@ -0,0 +1,29 @@ +#!/bin/sh +# postrm script for icinga2-bin + +set -e + +case "$1" in + purge) + for f in /etc/icinga2/features-enabled/*; do + [ -L "$f" ] && rm -f "$f" + done + ;; + + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + diff --git a/debian/icinga2-common.bash-completion b/debian/icinga2-common.bash-completion new file mode 100644 index 0000000..b3e3ebd --- /dev/null +++ b/debian/icinga2-common.bash-completion @@ -0,0 +1 @@ +etc/bash_completion.d/icinga2 diff --git a/debian/icinga2-common.dirs b/debian/icinga2-common.dirs new file mode 100644 index 0000000..f165bd8 --- /dev/null +++ b/debian/icinga2-common.dirs @@ -0,0 +1,12 @@ +etc/icinga2/pki +var/cache/icinga2 +var/lib/icinga2 +var/lib/icinga2/api/log +var/lib/icinga2/api/repository +var/lib/icinga2/api/zones +var/log/icinga2 +var/log/icinga2/compat/archives +var/log/icinga2/crash +var/spool/icinga2 +var/spool/icinga2/perfdata +var/spool/icinga2/tmp diff --git a/debian/icinga2-common.install b/debian/icinga2-common.install new file mode 100644 index 0000000..a379ed1 --- /dev/null +++ b/debian/icinga2-common.install @@ -0,0 +1,8 @@ +debian/config/apt.conf etc/icinga2/conf.d +debian/tmp/etc/icinga2 +debian/tmp/etc/logrotate.d +etc/sysconfig/icinga2 usr/lib/icinga2 +tools/syntax/nano/icinga2.nanorc usr/share/nano +usr/lib/icinga2/prepare-dirs +usr/lib/icinga2/safe-reload +usr/share/icinga2 diff --git a/debian/icinga2-common.mainscript b/debian/icinga2-common.mainscript new file mode 100644 index 0000000..023c048 --- /dev/null +++ b/debian/icinga2-common.mainscript @@ -0,0 +1 @@ +rm_conffile /etc/bash_completion.d/icinga2 2.4.1-2~ diff --git a/debian/icinga2-common.manpages b/debian/icinga2-common.manpages new file mode 100644 index 0000000..e69de29 diff --git a/debian/icinga2-common.postinst b/debian/icinga2-common.postinst new file mode 100644 index 0000000..9f7aa20 --- /dev/null +++ b/debian/icinga2-common.postinst @@ -0,0 +1,91 @@ +#!/bin/sh +# postinst script for icinga2-common + +set -e + +setperm() { + ownopt= + if [ "$1" = -R ]; then + ownopt="-R" + shift + fi + user="$1" + group="$2" + mode="$3" + file="$4" + shift 4 + # only do something when no setting exists + if ! dpkg-statoverride --list "$file" >/dev/null 2>&1; then + chown $ownopt "$user":"$group" "$file" + chmod "$mode" "$file" + fi +} + +is_fresh_install() +{ + if [ -z "$2" ] ; then + return 0 + fi + return 1 +} + +case "$1" in + configure) + if ! getent passwd nagios > /dev/null ; then + echo 'Adding system-user for nagios' 1>&2 + adduser --system --group --home /var/lib/nagios \ + --disabled-login --force-badname nagios > /dev/null + fi + + # explicitly set permissions on some files that are dependent + # on the uid/gid of the nagios user, which is dynamically created. + if ! dpkg-statoverride --list /etc/icinga2; then + setperm nagios nagios 0750 /etc/icinga2 + setperm nagios nagios 0640 /etc/icinga2/icinga2.conf + setperm nagios nagios 0640 /etc/icinga2/constants.conf + setperm nagios nagios 0640 /etc/icinga2/zones.conf + setperm -R nagios nagios 0700 /etc/icinga2/pki + setperm -R nagios nagios 0750 /etc/icinga2/conf.d + setperm -R nagios nagios 0750 /etc/icinga2/features-enabled + setperm -R nagios nagios 0750 /etc/icinga2/features-available + setperm nagios nagios 0750 /etc/icinga2/zones.d + fi + + setperm nagios adm 2751 /var/log/icinga2 + setperm nagios adm 2751 /var/log/icinga2/compat + setperm nagios adm 2755 /var/log/icinga2/compat/archives + setperm nagios adm 2751 /var/log/icinga2/crash + + setperm nagios nagios 0750 /var/lib/icinga2 + setperm nagios nagios 0750 /var/lib/icinga2/api + setperm nagios nagios 0750 /var/lib/icinga2/api/log + setperm nagios nagios 0750 /var/lib/icinga2/api/repository + setperm nagios nagios 0750 /var/lib/icinga2/api/zones + + setperm nagios www-data 0750 /var/cache/icinga2 + + setperm nagios nagios 0750 /var/spool/icinga2 + setperm nagios nagios 0770 /var/spool/icinga2/perfdata + setperm nagios nagios 0750 /var/spool/icinga2/tmp + + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +init_failed () +{ + echo "Icinga 2 was unable to start due to configuration errors."; + echo "Please fix them and manually restart the icinga2 daemon using"; + echo " ´service icinga2 start´"; +} + +#DEBHELPER# + +exit 0 diff --git a/debian/icinga2-common.postrm b/debian/icinga2-common.postrm new file mode 100644 index 0000000..d61f582 --- /dev/null +++ b/debian/icinga2-common.postrm @@ -0,0 +1,29 @@ +#!/bin/sh +# postrm script for icinga2-common + +set -e + +case "$1" in + purge) + rm -rf /etc/icinga2/features-enabled/ + rm -rf /var/lib/icinga2/ + rm -rf /var/log/icinga2/ + rm -rf /var/cache/icinga2/ + rm -rf /var/spool/icinga2/ + ;; + + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 diff --git a/debian/icinga2-doc.install b/debian/icinga2-doc.install new file mode 100644 index 0000000..aa32af1 --- /dev/null +++ b/debian/icinga2-doc.install @@ -0,0 +1 @@ +usr/share/doc/icinga2/markdown diff --git a/debian/icinga2-ido-mysql.config b/debian/icinga2-ido-mysql.config new file mode 100644 index 0000000..3c63d33 --- /dev/null +++ b/debian/icinga2-ido-mysql.config @@ -0,0 +1,21 @@ +#!/bin/sh +set -e + +. /usr/share/debconf/confmodule + +if [ -f /usr/share/dbconfig-common/dpkg/config.mysql ]; then + . /usr/share/dbconfig-common/dpkg/config.mysql + dbc_dbname=icinga2 + dbc_dbuser=icinga2 + + dbc_go icinga2-ido-mysql $@ +fi + +# check if the feature is enabled +if test -L /etc/icinga2/features-enabled/ido-mysql.conf; then + db_set icinga2-ido-mysql/enable "true" +else + db_set icinga2-ido-mysql/enable "false" +fi +db_input high icinga2-ido-mysql/enable || true +db_go || true diff --git a/debian/icinga2-ido-mysql.install b/debian/icinga2-ido-mysql.install new file mode 100644 index 0000000..fff4a29 --- /dev/null +++ b/debian/icinga2-ido-mysql.install @@ -0,0 +1,3 @@ +debian/ido-mysql.conf-sample usr/share/icinga2/tmpl +usr/lib/*/icinga2/libmysql_shim* +usr/share/icinga2-ido-mysql/schema diff --git a/debian/icinga2-ido-mysql.lintian-overrides b/debian/icinga2-ido-mysql.lintian-overrides new file mode 100644 index 0000000..12edd8f --- /dev/null +++ b/debian/icinga2-ido-mysql.lintian-overrides @@ -0,0 +1,3 @@ +# Not a problem +library-not-linked-against-libc [usr/lib/*/icinga2/*_shim.so.*] + diff --git a/debian/icinga2-ido-mysql.postinst b/debian/icinga2-ido-mysql.postinst new file mode 100644 index 0000000..dd16a19 --- /dev/null +++ b/debian/icinga2-ido-mysql.postinst @@ -0,0 +1,43 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/dbconfig-common/dpkg/postinst + +#dbc_debug='1' +dbc_generate_include='template:/etc/icinga2/features-available/ido-mysql.conf' +dbc_generate_include_owner='nagios:nagios' +dbc_generate_include_args='--ucf -o template_infile=/usr/share/icinga2/tmpl/ido-mysql.conf-sample' +dbc_go icinga2-ido-mysql $@ + + +if [ "$1" = configure ]; then + + # get values from debconf db + db_get icinga2-ido-mysql/enable + + if [ "$RET" = "false" ]; then + if [ -L /etc/icinga2/features-enabled/ido-mysql.conf ] + then + echo "disable ido mysql feature" + icinga2 feature disable ido-mysql + echo "reloading icinga2" + [ -x $(which invoke-rc.d) ] && invoke-rc.d icinga2 reload + fi + else + if [ ! -L /etc/icinga2/features-enabled/ido-mysql.conf ] + then + echo "enable ido mysql feature" + icinga2 feature enable ido-mysql + echo "reloading icinga2" + [ -x $(which invoke-rc.d) ] && invoke-rc.d icinga2 reload + + fi + fi +fi + +#DEBHELPER# +db_stop + + diff --git a/debian/icinga2-ido-mysql.postrm b/debian/icinga2-ido-mysql.postrm new file mode 100644 index 0000000..ad99b5d --- /dev/null +++ b/debian/icinga2-ido-mysql.postrm @@ -0,0 +1,24 @@ +#!/bin/sh + +set -e + +if [ -f /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule +fi + +if [ -f /usr/share/dbconfig-common/dpkg/postrm ]; then + . /usr/share/dbconfig-common/dpkg/postrm + dbc_go icinga2-ido-mysql $@ +fi + +if [ "$1" = "purge" ]; then + rm -f /etc/icinga2/features-available/ido-mysql.conf + rm -f /etc/icinga2/features-enabled/ido-mysql.conf + if which ucf >/dev/null; then + ucf --purge /etc/icinga2/features-available/ido-mysql.conf + fi + db_purge +fi + +#DEBHELPER# + diff --git a/debian/icinga2-ido-mysql.prerm b/debian/icinga2-ido-mysql.prerm new file mode 100644 index 0000000..81b478a --- /dev/null +++ b/debian/icinga2-ido-mysql.prerm @@ -0,0 +1,10 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/dbconfig-common/dpkg/prerm +dbc_go icinga2-ido-mysql $@ + +#DEBHELPER# + diff --git a/debian/icinga2-ido-mysql.templates b/debian/icinga2-ido-mysql.templates new file mode 100644 index 0000000..746f54b --- /dev/null +++ b/debian/icinga2-ido-mysql.templates @@ -0,0 +1,17 @@ +# These templates have been reviewed by the debian-l10n-english +# team +# +# If modifications/additions/rewording are needed, please ask +# debian-l10n-english@lists.debian.org for advice. +# +# Even minor modifications require translation updates and such +# changes should be coordinated with translators and reviewers. + +Template: icinga2-ido-mysql/enable +Type: boolean +Default: true +_Description: Enable Icinga 2's ido-mysql feature? + Please specify whether Icinga 2 should use MySQL. + . + You may later disable the feature by using the + "icinga2 feature disable ido-mysql" command. diff --git a/debian/icinga2-ido-pgsql.config b/debian/icinga2-ido-pgsql.config new file mode 100644 index 0000000..8a59cf7 --- /dev/null +++ b/debian/icinga2-ido-pgsql.config @@ -0,0 +1,21 @@ +#!/bin/sh +set -e + +. /usr/share/debconf/confmodule + +if [ -f /usr/share/dbconfig-common/dpkg/config.pgsql ]; then + . /usr/share/dbconfig-common/dpkg/config.pgsql + dbc_dbname=icinga2 + dbc_dbuser=icinga2 + dbc_authmethod_user="password" + dbc_go icinga2-ido-pgsql $@ +fi + +# check if the feature is enabled +if test -L /etc/icinga2/features-enabled/ido-pgsql.conf; then + db_set icinga2-ido-pgsql/enable "true" +else + db_set icinga2-ido-pgsql/enable "false" +fi +db_input high icinga2-ido-pgsql/enable || true +db_go || true diff --git a/debian/icinga2-ido-pgsql.install b/debian/icinga2-ido-pgsql.install new file mode 100644 index 0000000..8a213c4 --- /dev/null +++ b/debian/icinga2-ido-pgsql.install @@ -0,0 +1,3 @@ +debian/ido-pgsql.conf-sample usr/share/icinga2/tmpl +usr/lib/*/icinga2/libpgsql_shim* +usr/share/icinga2-ido-pgsql/schema diff --git a/debian/icinga2-ido-pgsql.lintian-overrides b/debian/icinga2-ido-pgsql.lintian-overrides new file mode 100644 index 0000000..12edd8f --- /dev/null +++ b/debian/icinga2-ido-pgsql.lintian-overrides @@ -0,0 +1,3 @@ +# Not a problem +library-not-linked-against-libc [usr/lib/*/icinga2/*_shim.so.*] + diff --git a/debian/icinga2-ido-pgsql.postinst b/debian/icinga2-ido-pgsql.postinst new file mode 100644 index 0000000..a8fe507 --- /dev/null +++ b/debian/icinga2-ido-pgsql.postinst @@ -0,0 +1,43 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/dbconfig-common/dpkg/postinst + +#dbc_debug='1' +dbc_generate_include='template:/etc/icinga2/features-available/ido-pgsql.conf' +dbc_generate_include_owner='nagios:nagios' +dbc_generate_include_args='--ucf -o template_infile=/usr/share/icinga2/tmpl/ido-pgsql.conf-sample' +dbc_go icinga2-ido-pgsql $@ + + +if [ "$1" = configure ]; then + + # get values from debconf db + db_get icinga2-ido-pgsql/enable + + if [ "$RET" = "false" ]; then + if [ -L /etc/icinga2/features-enabled/ido-pgsql.conf ] + then + echo "disable ido pgsql feature" + icinga2 feature disable ido-pgsql + echo "reloading icinga2" + [ -x $(which invoke-rc.d) ] && invoke-rc.d icinga2 reload + fi + else + if [ ! -L /etc/icinga2/features-enabled/ido-pgsql.conf ] + then + echo "enable ido pgsql feature" + icinga2 feature enable ido-pgsql + echo "reloading icinga2" + [ -x $(which invoke-rc.d) ] && invoke-rc.d icinga2 reload + + fi + fi +fi + +#DEBHELPER# +db_stop + + diff --git a/debian/icinga2-ido-pgsql.postrm b/debian/icinga2-ido-pgsql.postrm new file mode 100644 index 0000000..e1e3dea --- /dev/null +++ b/debian/icinga2-ido-pgsql.postrm @@ -0,0 +1,24 @@ +#!/bin/sh + +set -e + +if [ -f /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule +fi + +if [ -f /usr/share/dbconfig-common/dpkg/postrm ]; then + . /usr/share/dbconfig-common/dpkg/postrm + dbc_go icinga2-ido-pgsql $@ +fi + +if [ "$1" = "purge" ]; then + rm -f /etc/icinga2/features-available/ido-pgsql.conf + rm -f /etc/icinga2/features-enabled/ido-pgsql.conf + if which ucf >/dev/null; then + ucf --purge /etc/icinga2/features-available/ido-pgsql.conf + fi + db_purge +fi + +#DEBHELPER# + diff --git a/debian/icinga2-ido-pgsql.prerm b/debian/icinga2-ido-pgsql.prerm new file mode 100644 index 0000000..be80f9c --- /dev/null +++ b/debian/icinga2-ido-pgsql.prerm @@ -0,0 +1,10 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule +. /usr/share/dbconfig-common/dpkg/prerm +dbc_go icinga2-ido-pgsql $@ + +#DEBHELPER# + diff --git a/debian/icinga2-ido-pgsql.templates b/debian/icinga2-ido-pgsql.templates new file mode 100644 index 0000000..0056f57 --- /dev/null +++ b/debian/icinga2-ido-pgsql.templates @@ -0,0 +1,17 @@ +# These templates have been reviewed by the debian-l10n-english +# team +# +# If modifications/additions/rewording are needed, please ask +# debian-l10n-english@lists.debian.org for advice. +# +# Even minor modifications require translation updates and such +# changes should be coordinated with translators and reviewers. + +Template: icinga2-ido-pgsql/enable +Type: boolean +Default: true +_Description: Enable Icinga 2's ido-pgsql feature? + Please specify whether Icinga 2 should use PostgreSQL. + . + You may later disable the feature by using the + "icinga2 feature disable ido-pgsql" command. diff --git a/debian/ido-mysql.conf-sample b/debian/ido-mysql.conf-sample new file mode 100644 index 0000000..84752b4 --- /dev/null +++ b/debian/ido-mysql.conf-sample @@ -0,0 +1,14 @@ +/** + * The db_ido_mysql library implements IDO functionality + * for MySQL. + */ + +library "db_ido_mysql" + +object IdoMysqlConnection "ido-mysql" { + user = "_DBC_DBUSER_", + password = "_DBC_DBPASS_", + host = "_DBC_DBSERVER_", + database = "_DBC_DBNAME_" +} + diff --git a/debian/ido-pgsql.conf-sample b/debian/ido-pgsql.conf-sample new file mode 100644 index 0000000..244ab10 --- /dev/null +++ b/debian/ido-pgsql.conf-sample @@ -0,0 +1,13 @@ +/** + * The db_ido_pgsql library implements IDO functionality + * for PostgreSQL. + */ + +library "db_ido_pgsql" + +object IdoPgsqlConnection "ido-pgsql" { + user = "_DBC_DBUSER_", + password = "_DBC_DBPASS_", + host = "_DBC_DBSERVER_", + database = "_DBC_DBNAME_" +} diff --git a/debian/libicinga2.install b/debian/libicinga2.install new file mode 100644 index 0000000..1a7dbcf --- /dev/null +++ b/debian/libicinga2.install @@ -0,0 +1 @@ +usr/lib/*/icinga2/*.so.* diff --git a/debian/patches/21_config_changes b/debian/patches/21_config_changes new file mode 100644 index 0000000..7d7ade8 --- /dev/null +++ b/debian/patches/21_config_changes @@ -0,0 +1,16 @@ +Description: Configuration changes for Debian + - change icingaadmin mail address to root@localhost +Author: Markus Frosch +Forwarded: not-needed + +--- a/etc/icinga2/conf.d/users.conf ++++ b/etc/icinga2/conf.d/users.conf +@@ -9,7 +9,7 @@ object User "icingaadmin" { + display_name = "Icinga 2 Admin" + groups = [ "icingaadmins" ] + +- email = "icinga@localhost" ++ email = "root@localhost" + } + + object UserGroup "icingaadmins" { diff --git a/debian/patches/postgres-checkcommand.patch b/debian/patches/postgres-checkcommand.patch new file mode 100644 index 0000000..f10a9ff --- /dev/null +++ b/debian/patches/postgres-checkcommand.patch @@ -0,0 +1,16 @@ +Description: Use check_postgres path as provided by check-postgres package. +Author: Jens Holzkämper +Forwarded: not-needed +Bug-Debian: https://bugs.debian.org/898833 + +--- a/itl/plugins-contrib.d/databases.conf ++++ b/itl/plugins-contrib.d/databases.conf +@@ -513,7 +513,7 @@ object CheckCommand "oracle_health" { + object CheckCommand "postgres" { + import "ipv4-or-ipv6" + +- command = [ PluginContribDir + "/check_postgres.pl" ] ++ command = [ "/usr/bin/check_postgres" ] + + arguments = { + "-H" = { diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..a603290 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1,3 @@ +21_config_changes +postgres-checkcommand.patch +systemd-checkcommand.patch diff --git a/debian/patches/systemd-checkcommand.patch b/debian/patches/systemd-checkcommand.patch new file mode 100644 index 0000000..6ebc0b3 --- /dev/null +++ b/debian/patches/systemd-checkcommand.patch @@ -0,0 +1,16 @@ +Description: Use check_systemd path as provided by monitoring-plugins-systemd package. +Author: Bas Couwenberg +Forwarded: not-needed +Bug-Debian: https://bugs.debian.org/1033666 + +--- a/itl/plugins-contrib.d/systemd.conf ++++ b/itl/plugins-contrib.d/systemd.conf +@@ -1,7 +1,7 @@ + /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */ + + object CheckCommand "systemd" { +- command = [ PluginContribDir + "/check_systemd.py" ] ++ command = [ PluginContribDir + "/check_systemd" ] + + arguments = { + "--unit" = { diff --git a/debian/po/POTFILES.in b/debian/po/POTFILES.in new file mode 100644 index 0000000..0350c80 --- /dev/null +++ b/debian/po/POTFILES.in @@ -0,0 +1,2 @@ +[type: gettext/rfc822deb] icinga2-ido-mysql.templates +[type: gettext/rfc822deb] icinga2-ido-pgsql.templates diff --git a/debian/po/cs.po b/debian/po/cs.po new file mode 100644 index 0000000..e5ae914 --- /dev/null +++ b/debian/po/cs.po @@ -0,0 +1,61 @@ +# Czech PO debconf template translation of icinga2. +# Copyright (C) 2014 Michal Simunek +# This file is distributed under the same license as the icinga2 package. +# Michal Simunek , 2014. +# +msgid "" +msgstr "" +"Project-Id-Version: icinga2 2.0.1-2\n" +"Report-Msgid-Bugs-To: icinga2@packages.debian.org\n" +"POT-Creation-Date: 2014-08-18 15:18+0200\n" +"PO-Revision-Date: 2014-09-01 09:15+0200\n" +"Last-Translator: Michal Simunek \n" +"Language-Team: Czech \n" +"Language: cs\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +msgid "Enable Icinga 2's ido-mysql feature?" +msgstr "Povolit pro Icinga 2 funkci ido-mysql?" + +#. Type: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +msgid "Please specify whether Icinga 2 should use MySQL." +msgstr "Uveďte prosím, zda má Icinga 2 používat MySQL." + +#. Type: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +msgid "" +"You may later disable the feature by using the \"icinga2 feature disable ido-" +"mysql\" command." +msgstr "" +"Tuto funkci můžete později zakázat příkazem \"icinga2 feature disable ido-" +"mysql\"." + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +msgid "Enable Icinga 2's ido-pgsql feature?" +msgstr "Povolit pro Icinga 2 funkci ido-pgsql?" + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +msgid "Please specify whether Icinga 2 should use PostgreSQL." +msgstr "Uveďte prosím, zda má Icinga 2 používat PostgreSQL." + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +msgid "" +"You may later disable the feature by using the \"icinga2 feature disable ido-" +"pgsql\" command." +msgstr "" +"Tuto funkci můžete později zakázat příkazem \"icinga2 feature disable ido-" +"pgsql\"." diff --git a/debian/po/da.po b/debian/po/da.po new file mode 100644 index 0000000..487f32e --- /dev/null +++ b/debian/po/da.po @@ -0,0 +1,62 @@ +# Translation of icinga2 to Danish. +# Copyright (C) 2014 the icinga2 team. +# This file is distributed under the same license as the icinga2 package. +# Joe Hansen , 2014. +# +msgid "" +msgstr "" +"Project-Id-Version: icinga2\n" +"Report-Msgid-Bugs-To: icinga2@packages.debian.org\n" +"POT-Creation-Date: 2014-08-18 15:18+0200\n" +"PO-Revision-Date: 2014-08-30 21:27+0200\n" +"Last-Translator: Joe Hansen \n" +"Language-Team: Danish \n" +"Language: da\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: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +msgid "Enable Icinga 2's ido-mysql feature?" +msgstr "Aktiver Icinga 2's ido-mysql-funktion?" + +#. Type: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +msgid "Please specify whether Icinga 2 should use MySQL." +msgstr "Angiv venligst om Icinga 2 skal bruge MySQL." + +#. Type: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +msgid "" +"You may later disable the feature by using the \"icinga2 feature disable ido-" +"mysql\" command." +msgstr "" +"Du kan senere deaktivere funktionen ved at bruge kommandoen »icinga2-disable-" +"feature ido-mysql«." + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +msgid "Enable Icinga 2's ido-pgsql feature?" +msgstr "Aktiver Icinga 2-s ido-pgsql-funktion?" + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +msgid "Please specify whether Icinga 2 should use PostgreSQL." +msgstr "Angiv venligst om Icinga 2 skal bruge PostgreSQL." + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +msgid "" +"You may later disable the feature by using the \"icinga2 feature disable ido-" +"pgsql\" command." +msgstr "" +"Du kan senere deaktivere denne funktion ved at bruge kommandoen »icinga2-" +"disable-feature ido-pgsql«." diff --git a/debian/po/de.po b/debian/po/de.po new file mode 100644 index 0000000..bd2abda --- /dev/null +++ b/debian/po/de.po @@ -0,0 +1,61 @@ +# German debconf translation of icinga2. +# This file is distributed under the same license as the icinga2 package. +# Copyright (C) 2012-2014 Icinga Development Team. +# Copyright (C) of this file 2014 Chris Leick . +# +msgid "" +msgstr "" +"Project-Id-Version: icinga2 2.0.1-2\n" +"Report-Msgid-Bugs-To: icinga2@packages.debian.org\n" +"POT-Creation-Date: 2014-08-18 15:18+0200\n" +"PO-Revision-Date: 2014-08-21 11:21+0100\n" +"Last-Translator: Chris Leick \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" + +#. Type: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +msgid "Enable Icinga 2's ido-mysql feature?" +msgstr "Soll die Ido-MySQL-Funktionalität von Icinga 2 aktiviert werden?" + +#. Type: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +msgid "Please specify whether Icinga 2 should use MySQL." +msgstr "Bitte geben Sie an, ob Icinga 2 MySQL verwenden soll." + +#. Type: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +msgid "" +"You may later disable the feature by using the \"icinga2 feature disable ido-" +"mysql\" command." +msgstr "" +"Sie können diese Funktionalität später mit dem Befehl »icinga2-disable-" +"feature ido-mysql« deaktivieren." + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +msgid "Enable Icinga 2's ido-pgsql feature?" +msgstr "Soll die Ido-PgSQL-Funktionalität von Icinga 2 aktiviert werden?" + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +msgid "Please specify whether Icinga 2 should use PostgreSQL." +msgstr "Bitte geben Sie an, ob Icinga 2 PostgreSQL verwenden soll." + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +msgid "" +"You may later disable the feature by using the \"icinga2 feature disable ido-" +"pgsql\" command." +msgstr "" +"Sie können diese Funktionalität später mit dem Befehl »icinga2-disable-" +"feature ido-pgsql« deaktivieren." diff --git a/debian/po/es.po b/debian/po/es.po new file mode 100644 index 0000000..36a2a7e --- /dev/null +++ b/debian/po/es.po @@ -0,0 +1,82 @@ +# incinga2 po-debconf translation to Spanish +# Copyright (C) 2014 Software in the Public Interest +# This file is distributed under the same license as the icinga2 package. +# +# Changes: +# - Initial translation +# Matías A. Bellone , 2014 +# +# Traductores, si no conocen el formato PO, merece la pena leer la +# documentación de gettext, especialmente las secciones dedicadas a este +# formato, por ejemplo ejecutando: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Equipo de traducción al español, por favor lean antes de traducir +# los siguientes documentos: +# +# - El proyecto de traducción de Debian al español +# https://www.debian.org/intl/spanish/ +# especialmente las notas y normas de traducción en +# https://www.debian.org/intl/spanish/notas +# +# - La guía de traducción de po's de debconf: +# /usr/share/doc/po-debconf/README-trans +# o https://www.debian.org/intl/l10n/po-debconf/README-trans +# +msgid "" +msgstr "" +"Project-Id-Version: icinga2\n" +"Report-Msgid-Bugs-To: icinga2@packages.debian.org\n" +"POT-Creation-Date: 2014-08-18 15:18+0200\n" +"PO-Revision-Date: 2014-08-18 23:00-0300\n" +"Last-Translator: Matías A. Bellone \n" +"Language-Team: Debian l10n Spanish \n" +"Language: es\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +msgid "Enable Icinga 2's ido-mysql feature?" +msgstr "¿Desea activar la funcionalidad «ido-mysql» de Icinga 2?" + +#. Type: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +msgid "Please specify whether Icinga 2 should use MySQL." +msgstr "Indique si Icinga 2 debería utilizar MySQL." + +#. Type: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +msgid "" +"You may later disable the feature by using the \"icinga2 feature disable ido-" +"mysql\" command." +msgstr "" +"Podrá desactivar la funcionalidad más adelante ejecutando «icinga2-disable-" +"feature ido-mysql»." + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +msgid "Enable Icinga 2's ido-pgsql feature?" +msgstr "¿Desea activar la funcionalidad «ido-pgsql» de Icinga 2?" + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +msgid "Please specify whether Icinga 2 should use PostgreSQL." +msgstr "Indique si Icinga 2 debería utilizar PostgreSQL." + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +msgid "" +"You may later disable the feature by using the \"icinga2 feature disable ido-" +"pgsql\" command." +msgstr "" +"Podrá desactivar la funcionalidad más adelante ejecutando «icinga2-disable-" +"feature ido-pgsql»." diff --git a/debian/po/fr.po b/debian/po/fr.po new file mode 100644 index 0000000..cd0b2a9 --- /dev/null +++ b/debian/po/fr.po @@ -0,0 +1,61 @@ +# Translation of icinga2 debconf template to French +# Copyright (C) 2014 +# This file is distributed under the same license as the icinga2 package. +# Steve Petruzzello +# +msgid "" +msgstr "" +"Project-Id-Version: icinga2_2.1.0-1\n" +"Report-Msgid-Bugs-To: icinga2@packages.debian.org\n" +"POT-Creation-Date: 2014-08-18 15:18+0200\n" +"PO-Revision-Date: 2014-09-05 20:37+0200\n" +"Last-Translator: Steve Petruzzello \n" +"Language-Team: French \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +msgid "Enable Icinga 2's ido-mysql feature?" +msgstr "Faut-il activer la fonctionnalité ido-mysql pour Icinga 2 ?" + +#. Type: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +msgid "Please specify whether Icinga 2 should use MySQL." +msgstr "Veuillez indiquer si Icinga 2 doit utiliser MySQL." + +#. Type: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +msgid "" +"You may later disable the feature by using the \"icinga2 feature disable ido-" +"mysql\" command." +msgstr "" +"Vous pouvez à tout moment désactiver cette fonctionnalité en utilisant la " +"commande « icinga2 feature disable ido-mysql »." + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +msgid "Enable Icinga 2's ido-pgsql feature?" +msgstr "Faut-il activer la fonctionnalité ido-pgsql pour Icinga 2 ?" + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +msgid "Please specify whether Icinga 2 should use PostgreSQL." +msgstr "Veuillez indiquer si Icinga 2 doit utiliser PostgreSQL." + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +msgid "" +"You may later disable the feature by using the \"icinga2 feature disable ido-" +"pgsql\" command." +msgstr "" +"Vous pouvez à tout moment désactiver cette fonctionnalité en utilisant la " +"commande « icinga2 feature disable ido-pgsql »." diff --git a/debian/po/it.po b/debian/po/it.po new file mode 100644 index 0000000..43efa74 --- /dev/null +++ b/debian/po/it.po @@ -0,0 +1,62 @@ +# Italian translation of icinga2 debconf messages +# Copyright (C) 2014, icinga2 package's copyright holder +# This file is distributed under the same license as the icinga2 package. +# Beatrice Torracca , 2014. +msgid "" +msgstr "" +"Project-Id-Version: icinga2\n" +"Report-Msgid-Bugs-To: icinga2@packages.debian.org\n" +"POT-Creation-Date: 2014-08-18 15:18+0200\n" +"PO-Revision-Date: 2014-08-19 16:48+0200\n" +"Last-Translator: Beatrice Torracca \n" +"Language-Team: Italian \n" +"Language: it\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" +"X-Generator: Virtaal 0.7.1\n" + +#. Type: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +msgid "Enable Icinga 2's ido-mysql feature?" +msgstr "Abilitare la funzionalità ido-mysql di Icinga 2?" + +#. Type: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +msgid "Please specify whether Icinga 2 should use MySQL." +msgstr "Specificare se Icinga 2 debba usare MySQL." + +#. Type: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +msgid "" +"You may later disable the feature by using the \"icinga2 feature disable ido-" +"mysql\" command." +msgstr "" +"Si può successivamente disabilitare questa funzionalità usando il comando " +"«icinga2 feature disable ido-mysql»." + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +msgid "Enable Icinga 2's ido-pgsql feature?" +msgstr "Abilitare la funzionalità ido-pgsql di Icinga 2?" + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +msgid "Please specify whether Icinga 2 should use PostgreSQL." +msgstr "Specificare se Icinga 2 debba usare PostgreSQL." + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +msgid "" +"You may later disable the feature by using the \"icinga2 feature disable ido-" +"pgsql\" command." +msgstr "" +"Si può successivamente disabilitare questa funzionalità usando il comando " +"«icinga2 feature disable ido-pgsql»." diff --git a/debian/po/ja.po b/debian/po/ja.po new file mode 100644 index 0000000..211f80b --- /dev/null +++ b/debian/po/ja.po @@ -0,0 +1,61 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the icinga2 package. +# victory , 2014. +# +msgid "" +msgstr "" +"Project-Id-Version: icinga2\n" +"Report-Msgid-Bugs-To: icinga2@packages.debian.org\n" +"POT-Creation-Date: 2014-08-18 15:18+0200\n" +"PO-Revision-Date: 2014-08-18 22:18+0900\n" +"Last-Translator: victory \n" +"Language-Team: Japanese \n" +"Language: ja\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +msgid "Enable Icinga 2's ido-mysql feature?" +msgstr "Icinga 2 の ido-mysql 機能を有効にしますか?" + +#. Type: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +msgid "Please specify whether Icinga 2 should use MySQL." +msgstr "Icinga 2 で MySQL を利用するか指定してください。" + +#. Type: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +msgid "" +"You may later disable the feature by using the \"icinga2 feature disable ido-" +"mysql\" command." +msgstr "" +"後で「icinga2 feature disable ido-mysql」コマンドを使ってこの機能を無効化でき" +"ます。" + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +msgid "Enable Icinga 2's ido-pgsql feature?" +msgstr "Icinga 2 の ido-pgsql 機能を有効にしますか?" + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +msgid "Please specify whether Icinga 2 should use PostgreSQL." +msgstr "Icinga 2 で PostgreSQL を利用するか指定してください。" + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +msgid "" +"You may later disable the feature by using the \"icinga2 feature disable ido-" +"pgsql\" command." +msgstr "" +"後で「icinga2 feature disable ido-pgsql」コマンドを使ってこの機能を無効化でき" +"ます。" diff --git a/debian/po/nl.po b/debian/po/nl.po new file mode 100644 index 0000000..cf70d94 --- /dev/null +++ b/debian/po/nl.po @@ -0,0 +1,69 @@ +# Dutch translation of icinga2 debconf templates. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the icinga2 package. +# Frans Spiesschaert , 2014, 2015. +# +msgid "" +msgstr "" +"Project-Id-Version: icinga2\n" +"Report-Msgid-Bugs-To: icinga2@packages.debian.org\n" +"POT-Creation-Date: 2014-08-18 15:18+0200\n" +"PO-Revision-Date: 2015-01-04 15:52+0100\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" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Gtranslator 2.91.6\n" + +#. Type: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +msgid "Enable Icinga 2's ido-mysql feature?" +msgstr "De ido-mysql-functionaliteit van Icinga 2 activeren?" + +#. Type: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +msgid "Please specify whether Icinga 2 should use MySQL." +msgstr "Specificeer of Icinga 2 gebruik moet maken van MySQL." + +#. Type: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +#| msgid "" +#| "You may later disable the feature by using the \"icinga2-disable-feature " +#| "ido-mysql\" command." +msgid "" +"You may later disable the feature by using the \"icinga2 feature disable ido-" +"mysql\" command." +msgstr "" +"U kunt later deze functionaliteit uitschakelen met het commando \"icinga2 " +"feature disable ido-mysql\"." + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +msgid "Enable Icinga 2's ido-pgsql feature?" +msgstr "De ido-pgsql van Icinga 2 activeren?" + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +msgid "Please specify whether Icinga 2 should use PostgreSQL." +msgstr "Specificeer of Icinga 2 gebruik moet maken van PostgreSQL." + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +#| msgid "" +#| "You may later disable the feature by using the \"icinga2-disable-feature " +#| "ido-pgsql\" command." +msgid "" +"You may later disable the feature by using the \"icinga2 feature disable ido-" +"pgsql\" command." +msgstr "" +"U kunt later deze functionaliteit uitschakelen met het commando \"icinga2 " +"feature disable ido-pgsql\"." diff --git a/debian/po/pl.po b/debian/po/pl.po new file mode 100644 index 0000000..24073bc --- /dev/null +++ b/debian/po/pl.po @@ -0,0 +1,64 @@ +# Translation of icinga2 debconf templates to Polish. +# Copyright (C) 2014 +# This file is distributed under the same license as the icinga2 package. +# +# Michał Kułach , 2014. +msgid "" +msgstr "" +"Project-Id-Version: icinga2\n" +"Report-Msgid-Bugs-To: icinga2@packages.debian.org\n" +"POT-Creation-Date: 2014-08-18 15:18+0200\n" +"PO-Revision-Date: 2014-08-31 13:30+0200\n" +"Last-Translator: Michał Kułach \n" +"Language-Team: Polish \n" +"Language: pl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2);\n" +"X-Generator: Lokalize 1.4\n" + +#. Type: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +msgid "Enable Icinga 2's ido-mysql feature?" +msgstr "Włączyć funkcję ido-mysql Icinga 2?" + +#. Type: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +msgid "Please specify whether Icinga 2 should use MySQL." +msgstr "Proszę określić, czy Icinga 2 ma używać MySQL." + +#. Type: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +msgid "" +"You may later disable the feature by using the \"icinga2 feature disable ido-" +"mysql\" command." +msgstr "" +"Można później wyłączyć tę funkcję za pomocą polecenia \"icinga2-disable-" +"feature ido-mysql\"" + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +msgid "Enable Icinga 2's ido-pgsql feature?" +msgstr "Włączyć funkcję ido-pgsql Icinga 2?" + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +msgid "Please specify whether Icinga 2 should use PostgreSQL." +msgstr "Proszę określić, czy Icinga 2 ma używać PostgreSQL." + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +msgid "" +"You may later disable the feature by using the \"icinga2 feature disable ido-" +"pgsql\" command." +msgstr "" +"Można później wyłączyć tę funkcję za pomocą polecenia \"icinga2-disable-" +"feature ido-pgsql\"" diff --git a/debian/po/pt.po b/debian/po/pt.po new file mode 100644 index 0000000..b65db54 --- /dev/null +++ b/debian/po/pt.po @@ -0,0 +1,63 @@ +# Translation of icinga2's debconf to European Portuguese +# Copyright (C) 2014 the iginga2's copyright holder +# This file is distributed under the same license as the icinga2 package. +# +# Américo Monteiro , 2007, 2010, 2012, 2014. +msgid "" +msgstr "" +"Project-Id-Version: icinga2 2.0.1-2\n" +"Report-Msgid-Bugs-To: icinga2@packages.debian.org\n" +"POT-Creation-Date: 2014-08-18 15:18+0200\n" +"PO-Revision-Date: 2014-08-18 22:37+0100\n" +"Last-Translator: Américo Monteiro \n" +"Language-Team: Portuguese \n" +"Language: pt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Lokalize 1.4\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. Type: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +msgid "Enable Icinga 2's ido-mysql feature?" +msgstr "Activar a funcionalidade ido-mysql do Icinga 2?" + +#. Type: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +msgid "Please specify whether Icinga 2 should use MySQL." +msgstr "Por favor especifique se o Icinga 2 deverá usar MySQL." + +#. Type: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +msgid "" +"You may later disable the feature by using the \"icinga2 feature disable ido-" +"mysql\" command." +msgstr "" +"Você pode desactivar a funcionalidade mais tarde usando o comando \"icinga2-" +"disable-feature ido-mysql\"" + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +msgid "Enable Icinga 2's ido-pgsql feature?" +msgstr "Activar a funcionalidade ido-pgsql do Icinga 2?" + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +msgid "Please specify whether Icinga 2 should use PostgreSQL." +msgstr "Por favor especifique se o Icinga 2 deverá usar PostgreSQL." + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +msgid "" +"You may later disable the feature by using the \"icinga2 feature disable ido-" +"pgsql\" command." +msgstr "" +"Você pode desactivar a funcionalidade mais tarde usando o comando \"icinga2-" +"disable-feature ido-pgsql\"" diff --git a/debian/po/pt_BR.po b/debian/po/pt_BR.po new file mode 100644 index 0000000..11f855b --- /dev/null +++ b/debian/po/pt_BR.po @@ -0,0 +1,62 @@ +# Debconf translations for icinga2. +# Copyright (C) 2014 THE icinga2'S COPYRIGHT HOLDER +# This file is distributed under the same license as the icinga2 package. +# Adriano Rafael Gomes , 2014. +# +msgid "" +msgstr "" +"Project-Id-Version: icinga2\n" +"Report-Msgid-Bugs-To: icinga2@packages.debian.org\n" +"POT-Creation-Date: 2014-08-18 15:18+0200\n" +"PO-Revision-Date: 2014-08-20 15:23-0300\n" +"Last-Translator: Adriano Rafael Gomes \n" +"Language-Team: Brazilian Portuguese \n" +"Language: pt_BR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +msgid "Enable Icinga 2's ido-mysql feature?" +msgstr "Habilitar a funcionalidade ido-mysql do Icinga 2?" + +#. Type: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +msgid "Please specify whether Icinga 2 should use MySQL." +msgstr "Por favor, especifique se o Icinga 2 deve usar o MySQL." + +#. Type: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +msgid "" +"You may later disable the feature by using the \"icinga2 feature disable ido-" +"mysql\" command." +msgstr "" +"Você pode desabilitar a funcionalidade mais tarde usando o comando \"icinga2-" +"disable-feature ido-mysql\"." + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +msgid "Enable Icinga 2's ido-pgsql feature?" +msgstr "Habilitar a funcionalidade ido-pgsql do Icinga 2?" + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +msgid "Please specify whether Icinga 2 should use PostgreSQL." +msgstr "Por favor, especifique se o Icinga 2 deve usar o PostgreSQL." + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +msgid "" +"You may later disable the feature by using the \"icinga2 feature disable ido-" +"pgsql\" command." +msgstr "" +"Você pode desabilitar a funcionalidade mais tarde usando o comando \"icinga2-" +"disable-feature ido-pgsql\"." diff --git a/debian/po/ro.po b/debian/po/ro.po new file mode 100644 index 0000000..a083980 --- /dev/null +++ b/debian/po/ro.po @@ -0,0 +1,66 @@ +# Mesajele în limba română pentru pachetul icinga2 (debconf). +# Romanian translation of icinga2 (debconf). +# Copyright © 2023 THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the icinga2 package. +# +# Remus-Gabriel Chelu , 2023 +# +msgid "" +msgstr "" +"Project-Id-Version: icinga2\n" +"Report-Msgid-Bugs-To: icinga2@packages.debian.org\n" +"POT-Creation-Date: 2014-08-18 15:18+0200\n" +"PO-Revision-Date: 2023-12-12 10:17+0100\n" +"Last-Translator: Remus-Gabriel Chelu \n" +"Language-Team: Romanian \n" +"Language: ro\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n==0 || (n!=1 && n%100>=1 && " +"n%100<=19) ? 1 : 2);\n" +"X-Generator: Poedit 3.2.2\n" + +#. Type: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +msgid "Enable Icinga 2's ido-mysql feature?" +msgstr "Doriți să activați caracteristica „ido-mysql” a lui Icinga 2?" + +#. Type: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +msgid "Please specify whether Icinga 2 should use MySQL." +msgstr "Specificați dacă Icinga 2 ar trebui să utilizeze MySQL." + +#. Type: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +msgid "" +"You may later disable the feature by using the \"icinga2 feature disable ido-" +"mysql\" command." +msgstr "" +"Ulterior, puteți dezactiva această caracteristică utilizând comanda «icinga2 " +"feature disable ido-mysql»." + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +msgid "Enable Icinga 2's ido-pgsql feature?" +msgstr "Doriți să activați caracteristica „ido-pgsql” a lui Icinga 2?" + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +msgid "Please specify whether Icinga 2 should use PostgreSQL." +msgstr "Specificați dacă Icinga 2 ar trebui să utilizeze PostgreSQL." + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +msgid "" +"You may later disable the feature by using the \"icinga2 feature disable ido-" +"pgsql\" command." +msgstr "" +"Ulterior, puteți dezactiva această caracteristică utilizând comanda «icinga2 " +"feature disable ido-pgsql»." diff --git a/debian/po/ru.po b/debian/po/ru.po new file mode 100644 index 0000000..37be651 --- /dev/null +++ b/debian/po/ru.po @@ -0,0 +1,63 @@ +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the icinga2 package. +# +# Yuri Kozlov , 2014. +msgid "" +msgstr "" +"Project-Id-Version: icinga2 2.0.1-2\n" +"Report-Msgid-Bugs-To: icinga2@packages.debian.org\n" +"POT-Creation-Date: 2014-08-18 15:18+0200\n" +"PO-Revision-Date: 2014-08-21 15:44+0400\n" +"Last-Translator: Yuri Kozlov \n" +"Language-Team: Russian \n" +"Language: ru\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"X-Generator: Lokalize 1.5\n" + +#. Type: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +msgid "Enable Icinga 2's ido-mysql feature?" +msgstr "Включить свойство ido-mysql в Icinga 2?" + +#. Type: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +msgid "Please specify whether Icinga 2 should use MySQL." +msgstr "Укажите, должна ли Icinga 2 использовать MySQL." + +#. Type: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +msgid "" +"You may later disable the feature by using the \"icinga2 feature disable ido-" +"mysql\" command." +msgstr "" +"Позднее вы можете выключить это свойство с помощью команды «icinga2-disable-" +"feature ido-mysql»." + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +msgid "Enable Icinga 2's ido-pgsql feature?" +msgstr "Включить свойство ido-pgsql в Icinga 2?" + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +msgid "Please specify whether Icinga 2 should use PostgreSQL." +msgstr "Укажите, должна ли Icinga 2 использовать PostgreSQL." + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +msgid "" +"You may later disable the feature by using the \"icinga2 feature disable ido-" +"pgsql\" command." +msgstr "" +"Позднее вы можете выключить это свойство с помощью команды «icinga2-disable-" +"feature ido-pgsql»." diff --git a/debian/po/sv.po b/debian/po/sv.po new file mode 100644 index 0000000..ea09a8f --- /dev/null +++ b/debian/po/sv.po @@ -0,0 +1,55 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: icinga2\n" +"Report-Msgid-Bugs-To: icinga2@packages.debian.org\n" +"POT-Creation-Date: 2014-08-18 15:18+0200\n" +"PO-Revision-Date: 2017-08-23 18:12+0200\n" +"Last-Translator: Jonatan Nyberg \n" +"Language: sv\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" +"X-Generator: Poedit 1.8.11\n" +"Language-Team: \n" + +#. Type: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +msgid "Enable Icinga 2's ido-mysql feature?" +msgstr "Aktivera ido-mysql funktionen för Icinga 2?" + +#. Type: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +msgid "Please specify whether Icinga 2 should use MySQL." +msgstr "Ange om Icinga 2 ska använda MySQL." + +#. Type: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +msgid "You may later disable the feature by using the \"icinga2 feature disable ido-mysql\" command." +msgstr "Du kan senare inaktivera funktionen genom att använda \"icinga2 feature disable ido-mysql\"-kommandot." + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +msgid "Enable Icinga 2's ido-pgsql feature?" +msgstr "Aktivera ido-pgsql funktionen för Icinga 2:s?" + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +msgid "Please specify whether Icinga 2 should use PostgreSQL." +msgstr "Ange om Icinga 2 ska använda PostgreSQL." + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +msgid "You may later disable the feature by using the \"icinga2 feature disable ido-pgsql\" command." +msgstr "Du kan senare inaktivera funktionen genom att använda \"icinga2 feature disable ido-pgsql\"-kommandot." diff --git a/debian/po/templates.pot b/debian/po/templates.pot new file mode 100644 index 0000000..38c4085 --- /dev/null +++ b/debian/po/templates.pot @@ -0,0 +1,58 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: icinga2\n" +"Report-Msgid-Bugs-To: icinga2@packages.debian.org\n" +"POT-Creation-Date: 2014-08-18 15:18+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: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +msgid "Enable Icinga 2's ido-mysql feature?" +msgstr "" + +#. Type: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +msgid "Please specify whether Icinga 2 should use MySQL." +msgstr "" + +#. Type: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +msgid "" +"You may later disable the feature by using the \"icinga2 feature disable ido-" +"mysql\" command." +msgstr "" + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +msgid "Enable Icinga 2's ido-pgsql feature?" +msgstr "" + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +msgid "Please specify whether Icinga 2 should use PostgreSQL." +msgstr "" + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +msgid "" +"You may later disable the feature by using the \"icinga2 feature disable ido-" +"pgsql\" command." +msgstr "" diff --git a/debian/po/tr.po b/debian/po/tr.po new file mode 100644 index 0000000..30096e6 --- /dev/null +++ b/debian/po/tr.po @@ -0,0 +1,62 @@ +# Turkish translation of icinga2 package +# Copyright (C) 2014 Mert Dirik +# This file is distributed under the same license as the icinga2 package. +# Mert Dirik , 2014. +# +msgid "" +msgstr "" +"Project-Id-Version: icinga2\n" +"Report-Msgid-Bugs-To: icinga2@packages.debian.org\n" +"POT-Creation-Date: 2014-08-18 15:18+0200\n" +"PO-Revision-Date: 2014-09-03 12:37+0200\n" +"Last-Translator: Mert Dirik \n" +"Language-Team: Debian L10n Turkish \n" +"Language: tr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 1.5.4\n" + +#. Type: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +msgid "Enable Icinga 2's ido-mysql feature?" +msgstr "Icinga 2'nin ido-mysql özelliği etkinleştirilsin mi?" + +#. Type: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +msgid "Please specify whether Icinga 2 should use MySQL." +msgstr "Icinga 2'nin MySQL kullanmasını istiyor musunuz?" + +#. Type: boolean +#. Description +#: ../icinga2-ido-mysql.templates:2001 +msgid "" +"You may later disable the feature by using the \"icinga2 feature disable ido-" +"mysql\" command." +msgstr "" +"Bu özelliği daha sonra \"icinga2 feature disable ido-mysql\" komutu ile " +"kapatabilirsiniz." + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +msgid "Enable Icinga 2's ido-pgsql feature?" +msgstr "Icinga 2'nin ido-pgsql özelliği etkinleştirilsin mi?" + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +msgid "Please specify whether Icinga 2 should use PostgreSQL." +msgstr "Icinga 2'nin PostgreSQL kullanmasını istiyor musunuz?" + +#. Type: boolean +#. Description +#: ../icinga2-ido-pgsql.templates:2001 +msgid "" +"You may later disable the feature by using the \"icinga2 feature disable ido-" +"pgsql\" command." +msgstr "" +"Bu özelliği daha sonra \"icinga2 feature disable ido-pgsql\" komutu ile " +"kapatabilirsiniz." diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..a52a8e4 --- /dev/null +++ b/debian/rules @@ -0,0 +1,107 @@ +#!/usr/bin/make -f + +#export DH_VERBOSE=1 + +# Enable hardening build flags +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +include /usr/share/dpkg/architecture.mk + +export CTEST_OUTPUT_ON_FAILURE=1 + +ifneq (,$(filter $(DEB_HOST_ARCH), armel mips mipsel powerpc)) + export DEB_LDFLAGS_MAINT_APPEND += -Wl,--no-as-needed -latomic -Wl,--as-needed +endif + +%: + dh $@ + +override_dh_auto_clean: + dh_auto_clean + + test ! -f third-party/cmake/GNUInstallDirs.cmake.disabled || \ + mv third-party/cmake/GNUInstallDirs.cmake.disabled third-party/cmake/GNUInstallDirs.cmake + +override_dh_auto_configure: + test -f third-party/cmake/GNUInstallDirs.cmake.disabled || \ + mv third-party/cmake/GNUInstallDirs.cmake third-party/cmake/GNUInstallDirs.cmake.disabled + + dh_auto_configure \ + -- \ + -DCMAKE_INSTALL_LOCALSTATEDIR=/var \ + -DCMAKE_INSTALL_SYSCONFDIR=/etc \ + -DICINGA2_RUNDIR=/run \ + -DICINGA2_USER=nagios \ + -DICINGA2_GROUP=nagios \ + -DICINGA2_COMMAND_GROUP=www-data \ + -DICINGA2_GIT_VERSION_INFO=false \ + -DICINGA2_PLUGINDIR=/usr/lib/nagios/plugins \ + -DUSE_SYSTEMD=ON + +override_dh_auto_test: +ifneq (,$(filter $(DEB_BUILD_ARCH),i386 mips64el ppc64el powerpc)) + dh_auto_test || echo "Ignoring test failures" +else + dh_auto_test +endif + +override_dh_auto_install: + dh_auto_install + + # remove features-enabled - these will be activated by postinst later + $(RM) -r debian/tmp/etc/icinga2/features-enabled/* + +override_dh_install-arch: + dh_install -a + + $(RM) debian/libicinga2/usr/lib/*/icinga2/libdb_ido_* + + for dbms in mysql pgsql; do \ + mkdir -p debian/icinga2-ido-$$dbms/usr/share/dbconfig-common/data/icinga2-ido-$$dbms/install ; \ + mkdir -p debian/icinga2-ido-$$dbms/usr/share/dbconfig-common/data/icinga2-ido-$$dbms/upgrade/$$dbms; \ + cp lib/db_ido_$$dbms/schema/$$dbms.sql debian/icinga2-ido-$$dbms/usr/share/dbconfig-common/data/icinga2-ido-$$dbms/install/$$dbms ; \ + for file in lib/db_ido_$$dbms/schema/upgrade/* ; do \ + cp $$file debian/icinga2-ido-$$dbms/usr/share/dbconfig-common/data/icinga2-ido-$$dbms/upgrade/$$dbms/`basename $$file .sql`; \ + done; \ + done + +override_dh_install-indep: + dh_install -i + + chmod +x debian/icinga2-common/usr/lib/icinga2/prepare-dirs + + $(RM) debian/icinga2-common/etc/icinga2/features-available/ido-* + +override_dh_installinit: + dh_installinit --name=icinga2 + +override_dh_installsystemd: + dh_installsystemd --name=icinga2 + +override_dh_vim-addon: + dh_vim-addon -p vim-icinga2 + +override_dh_compress: + dh_compress + dh_compress -p icinga2-doc usr/share/doc/icinga2/markdown/01-about.md + +override_dh_missing: + # Explicitly remove files not included in any package + $(RM) debian/tmp/etc/bash_completion.d/icinga2 + $(RM) debian/tmp/etc/init.d/icinga2 + $(RM) debian/tmp/usr/lib/*/icinga2/lib*.so + $(RM) debian/tmp/usr/lib/systemd/system/icinga2.service + $(RM) debian/tmp/usr/share/doc/icinga2/AUTHORS + $(RM) debian/tmp/usr/share/doc/icinga2/CHANGELOG.md + $(RM) debian/tmp/usr/share/doc/icinga2/COPYING + $(RM) debian/tmp/usr/share/doc/icinga2/COPYING.Exceptions + $(RM) debian/tmp/usr/share/doc/icinga2/NEWS + $(RM) debian/tmp/usr/share/doc/icinga2/README.md + + dh_missing --list-missing + +# we don't build shared libraries +override_dh_makeshlibs: + dh_makeshlibs --no-scripts + +# vi: noexpandtab ts=4 sw=4 : 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/source/lintian-overrides b/debian/source/lintian-overrides new file mode 100644 index 0000000..780eac6 --- /dev/null +++ b/debian/source/lintian-overrides @@ -0,0 +1,3 @@ +# Not a problem +superficial-tests + diff --git a/debian/tests/control b/debian/tests/control new file mode 100644 index 0000000..4cb0e7a --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,3 @@ +Tests: version +Restrictions: needs-root, superficial +Depends: icinga2, icinga2-bin, icinga2-common diff --git a/debian/tests/version b/debian/tests/version new file mode 100644 index 0000000..67c93f2 --- /dev/null +++ b/debian/tests/version @@ -0,0 +1,18 @@ +#!/bin/bash +#-------------------- +#Testing for correct version +#-------------------- + +set -e + +PACKAGE_VERSION="$(dpkg-parsechangelog -S Version |sed -ne 's/^\(\([0-9]\+\):\)\?\(.*\)-.*/\3/p' )" +ICINGA_VERSION="$(icinga2 --version | grep version: | head -n1 | sed -e 's/.*version: r\([0-9.]\+\).*$/\1/')" + +if [ "$ICINGA_VERSION" = "$PACKAGE_VERSION" ] +then + echo "OK: $ICINGA_VERSION is equal to $PACKAGE_VERSION" + exit 0 +else + echo "ERROR: $ICINGA_VERSION is not equal to $PACKAGE_VERSION" + exit 1 +fi diff --git a/debian/upstream/metadata b/debian/upstream/metadata new file mode 100644 index 0000000..9b98120 --- /dev/null +++ b/debian/upstream/metadata @@ -0,0 +1,4 @@ +Bug-Database: https://github.com/Icinga/icinga2/issues +Bug-Submit: https://github.com/Icinga/icinga2/issues/new +Repository: https://github.com/Icinga/icinga2.git +Repository-Browse: https://github.com/Icinga/icinga2 diff --git a/debian/vim-icinga2.install b/debian/vim-icinga2.install new file mode 100644 index 0000000..9d03eeb --- /dev/null +++ b/debian/vim-icinga2.install @@ -0,0 +1 @@ +tools/syntax/vim usr/share/icinga2 diff --git a/debian/vim-icinga2.neovim-addon b/debian/vim-icinga2.neovim-addon new file mode 120000 index 0000000..13c5207 --- /dev/null +++ b/debian/vim-icinga2.neovim-addon @@ -0,0 +1 @@ +vim-icinga2.vim-addon \ No newline at end of file diff --git a/debian/vim-icinga2.vim-addon b/debian/vim-icinga2.vim-addon new file mode 100644 index 0000000..827a9e5 --- /dev/null +++ b/debian/vim-icinga2.vim-addon @@ -0,0 +1 @@ +usr/share/icinga2/vim icinga2 diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..e84fe36 --- /dev/null +++ b/debian/watch @@ -0,0 +1,5 @@ +version=4 +# filenamemangle -> prepending icinga2 if only tag name +# versionmangle -> convert version addition to ~ version +opts=filenamemangle=s/.+\/(?:icinga2-|v)([\d.]+(?:-.+)?).tar.gz/icinga2-$1.tar.gz/,versionmangle=s/^([\d.]+)-(.+)?/$1~$2/ \ +https://github.com/Icinga/icinga2/tags .*/(?:icinga2-|v)([\d.]+(?:-.+)?).tar.gz -- cgit v1.2.3