mirror of https://github.com/Icinga/icinga2.git
Debian: Merge back release packaging into development
Signed-off-by: Markus Frosch <markus@lazyfrosch.de> Refs #5816
This commit is contained in:
parent
30384a4340
commit
52d3461060
|
@ -2,25 +2,23 @@ Source: icinga2
|
||||||
Section: admin
|
Section: admin
|
||||||
Priority: extra
|
Priority: extra
|
||||||
Maintainer: Debian Nagios Maintainer Group <pkg-nagios-devel@lists.alioth.debian.org>
|
Maintainer: Debian Nagios Maintainer Group <pkg-nagios-devel@lists.alioth.debian.org>
|
||||||
Uploaders:
|
Uploaders: Markus Frosch <markus@lazyfrosch.de>,
|
||||||
Markus Frosch <markus@lazyfrosch.de>,
|
|
||||||
Alexander Wirt <formorer@debian.org>
|
Alexander Wirt <formorer@debian.org>
|
||||||
Build-Depends:
|
Build-Depends: bison,
|
||||||
cmake (>= 2.8.7),
|
cmake (>= 2.8.7),
|
||||||
make (>= 3.81),
|
|
||||||
bison,
|
|
||||||
debhelper (>= 9),
|
debhelper (>= 9),
|
||||||
flex,
|
flex,
|
||||||
g++ (>= 1.96),
|
g++ (>= 1.96),
|
||||||
libboost-dev,
|
libboost-dev,
|
||||||
libboost-program-options-dev,
|
libboost-program-options-dev,
|
||||||
|
libboost-regex-dev,
|
||||||
libboost-system-dev,
|
libboost-system-dev,
|
||||||
libboost-test-dev,
|
libboost-test-dev,
|
||||||
libboost-thread-dev,
|
libboost-thread-dev,
|
||||||
libboost-regex-dev,
|
|
||||||
libmysqlclient-dev,
|
libmysqlclient-dev,
|
||||||
libpq-dev,
|
libpq-dev,
|
||||||
libssl-dev,
|
libssl-dev,
|
||||||
|
make (>= 3.81),
|
||||||
po-debconf
|
po-debconf
|
||||||
Standards-Version: 3.9.5
|
Standards-Version: 3.9.5
|
||||||
Homepage: http://www.icinga.org
|
Homepage: http://www.icinga.org
|
||||||
|
@ -30,7 +28,7 @@ Architecture: any
|
||||||
Depends: icinga2-bin (= ${binary:Version}),
|
Depends: icinga2-bin (= ${binary:Version}),
|
||||||
icinga2-common (= ${source:Version}),
|
icinga2-common (= ${source:Version}),
|
||||||
${misc:Depends}
|
${misc:Depends}
|
||||||
Recommends: icinga2-doc
|
Recommends: icinga2-doc, nagios-plugins-basic
|
||||||
Description: host and network monitoring system
|
Description: host and network monitoring system
|
||||||
Icinga 2 is a general-purpose monitoring application and the next generation
|
Icinga 2 is a general-purpose monitoring application and the next generation
|
||||||
after Icinga 1.x - which was a Nagios fork. It should fit the needs of a small
|
after Icinga 1.x - which was a Nagios fork. It should fit the needs of a small
|
||||||
|
@ -78,7 +76,8 @@ Package: icinga2-bin
|
||||||
Architecture: any
|
Architecture: any
|
||||||
Pre-Depends: ${misc:Pre-Depends}
|
Pre-Depends: ${misc:Pre-Depends}
|
||||||
Depends: icinga2-common (= ${source:Version}),
|
Depends: icinga2-common (= ${source:Version}),
|
||||||
${misc:Depends}, ${shlibs:Depends}
|
${misc:Depends},
|
||||||
|
${shlibs:Depends}
|
||||||
Description: host and network monitoring system - daemon
|
Description: host and network monitoring system - daemon
|
||||||
Icinga 2 is a general-purpose monitoring application and the next generation
|
Icinga 2 is a general-purpose monitoring application and the next generation
|
||||||
after Icinga 1.x - which was a Nagios fork. It should fit the needs of a small
|
after Icinga 1.x - which was a Nagios fork. It should fit the needs of a small
|
||||||
|
@ -125,8 +124,8 @@ Description: host and network monitoring system - documentation
|
||||||
|
|
||||||
Package: icinga2-classicui
|
Package: icinga2-classicui
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Depends: icinga2-common (= ${source:Version}),
|
Depends: icinga-cgi-bin | icinga-cgi (>= 1.9.0~),
|
||||||
icinga-cgi-bin | icinga-cgi (>= 1.9.0~),
|
icinga2-common (= ${source:Version}),
|
||||||
${misc:Depends}
|
${misc:Depends}
|
||||||
Recommends: apache2 | httpd
|
Recommends: apache2 | httpd
|
||||||
Description: host and network monitoring system - classic ui integration
|
Description: host and network monitoring system - classic ui integration
|
||||||
|
@ -152,9 +151,12 @@ Description: host and network monitoring system - classic ui integration
|
||||||
Package: icinga2-ido-mysql
|
Package: icinga2-ido-mysql
|
||||||
Architecture: any
|
Architecture: any
|
||||||
Pre-Depends: ${misc:Pre-Depends}
|
Pre-Depends: ${misc:Pre-Depends}
|
||||||
Depends: icinga2-common (= ${source:Version}),
|
Conflicts: icinga2-ido-pgsql
|
||||||
|
Depends: dbconfig-common,
|
||||||
icinga2-bin (= ${binary:Version}),
|
icinga2-bin (= ${binary:Version}),
|
||||||
${shlibs:Depends}, ${misc:Depends}
|
icinga2-common (= ${source:Version}),
|
||||||
|
${misc:Depends},
|
||||||
|
${shlibs:Depends}
|
||||||
Recommends: mysql-client
|
Recommends: mysql-client
|
||||||
Suggests: mysql-server
|
Suggests: mysql-server
|
||||||
Description: host and network monitoring system - IDO for MySQL
|
Description: host and network monitoring system - IDO for MySQL
|
||||||
|
@ -179,10 +181,12 @@ Description: host and network monitoring system - IDO for MySQL
|
||||||
|
|
||||||
Package: icinga2-ido-pgsql
|
Package: icinga2-ido-pgsql
|
||||||
Architecture: any
|
Architecture: any
|
||||||
|
Conflicts: icinga2-ido-mysql
|
||||||
Pre-Depends: ${misc:Pre-Depends}
|
Pre-Depends: ${misc:Pre-Depends}
|
||||||
Depends: icinga2-common (= ${source:Version}),
|
Depends: icinga2-bin (= ${binary:Version}),
|
||||||
icinga2-bin (= ${binary:Version}),
|
icinga2-common (= ${source:Version}),
|
||||||
${shlibs:Depends}, ${misc:Depends}
|
${misc:Depends},
|
||||||
|
${shlibs:Depends}
|
||||||
Recommends: postgresql-client
|
Recommends: postgresql-client
|
||||||
Suggests: postgresql
|
Suggests: postgresql
|
||||||
Description: host and network monitoring system - IDO for PostgreSQL
|
Description: host and network monitoring system - IDO for PostgreSQL
|
||||||
|
@ -209,8 +213,7 @@ Package: icinga2-dbg
|
||||||
Architecture: any
|
Architecture: any
|
||||||
Section: debug
|
Section: debug
|
||||||
Priority: extra
|
Priority: extra
|
||||||
Depends: icinga2-bin (= ${binary:Version}),
|
Depends: icinga2-bin (= ${binary:Version}), ${misc:Depends}
|
||||||
${misc:Depends}
|
|
||||||
Description: host and network monitoring system - debug symbols
|
Description: host and network monitoring system - debug symbols
|
||||||
Icinga 2 is a general-purpose monitoring application and the next generation
|
Icinga 2 is a general-purpose monitoring application and the next generation
|
||||||
after Icinga 1.x - which was a Nagios fork. It should fit the needs of a small
|
after Icinga 1.x - which was a Nagios fork. It should fit the needs of a small
|
||||||
|
@ -230,4 +233,3 @@ Description: host and network monitoring system - debug symbols
|
||||||
* Native support for Livestatus and Graphite
|
* Native support for Livestatus and Graphite
|
||||||
.
|
.
|
||||||
This package provides debug symbols for Icinga 2.
|
This package provides debug symbols for Icinga 2.
|
||||||
|
|
||||||
|
|
|
@ -103,3 +103,141 @@ License: GPL-1+
|
||||||
.
|
.
|
||||||
On Debian systems, the complete text of the GNU General
|
On Debian systems, the complete text of the GNU General
|
||||||
Public License version 2 can be found in "/usr/share/common-licenses/GPL-1".
|
Public License version 2 can be found in "/usr/share/common-licenses/GPL-1".
|
||||||
|
|
||||||
|
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 <rpavlik@iastate.edu> <abiryan@ryand.net>
|
||||||
|
2009-2010 Iowa State University
|
||||||
|
License: Boost Software License 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.
|
||||||
|
|
||||||
|
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
|
||||||
|
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.
|
||||||
|
|
||||||
|
Files: third-party/cmake/FindGit.cmake
|
||||||
|
Copyright: 2010 Kitware, Inc.
|
||||||
|
2012 Rolf Eike Beer <eike@sf-mail.de>
|
||||||
|
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.
|
||||||
|
|
||||||
|
Files: third-party/cmake/FindPostgreSQL.cmake
|
||||||
|
Copyright: 2004-2009 Kitware, Inc.
|
||||||
|
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.
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
usr/sbin/icinga2
|
|
||||||
usr/lib/*/icinga2
|
usr/lib/*/icinga2
|
||||||
|
usr/sbin/icinga2
|
||||||
usr/share/man/man8/icinga2.8
|
usr/share/man/man8/icinga2.8
|
||||||
|
|
|
@ -1,12 +1,8 @@
|
||||||
|
debian/config/apt.conf etc/icinga2/conf.d/hosts/localhost
|
||||||
debian/tmp/etc/icinga2
|
debian/tmp/etc/icinga2
|
||||||
debian/tmp/etc/logrotate.d
|
debian/tmp/etc/logrotate.d
|
||||||
debian/config/apt.conf etc/icinga2/conf.d/hosts/localhost
|
|
||||||
tools/syntax/* usr/share/icinga2-common/syntax
|
tools/syntax/* usr/share/icinga2-common/syntax
|
||||||
usr/bin/icinga2-build*
|
usr/bin/icinga2-build*
|
||||||
usr/bin/icinga2-sign-key
|
usr/bin/icinga2-sign-key
|
||||||
usr/sbin/icinga2-*-feature
|
usr/sbin/icinga2-*-feature
|
||||||
usr/share/icinga2
|
usr/share/icinga2
|
||||||
usr/share/man/man8/icinga2-*-feature.8
|
|
||||||
usr/share/man/man8/icinga2-build*.8
|
|
||||||
usr/share/man/man8/icinga2-sign-key.8
|
|
||||||
usr/share/man/man8/icinga2-prepare-dirs.8
|
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
#!/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_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
|
|
@ -1,3 +1,3 @@
|
||||||
debian/tmp/etc/icinga2/features-available/ido-mysql.conf
|
|
||||||
usr/lib/*/icinga2/libdb_ido_mysql*
|
|
||||||
components/db_ido_mysql/schema/*.sql usr/share/icinga2-ido-mysql/schema
|
components/db_ido_mysql/schema/*.sql usr/share/icinga2-ido-mysql/schema
|
||||||
|
debian/ido-mysql.conf-sample usr/share/icinga2/tmpl
|
||||||
|
usr/lib/*/icinga2/libdb_ido_mysql*
|
||||||
|
|
|
@ -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-disable-feature 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-enable-feature ido-mysql
|
||||||
|
echo "reloading icinga2"
|
||||||
|
[ -x $(which invoke-rc.d) ] && invoke-rc.d icinga2 reload
|
||||||
|
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
#DEBHELPER#
|
||||||
|
db_stop
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,22 @@
|
||||||
|
#!/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
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
. /usr/share/debconf/confmodule
|
||||||
|
. /usr/share/dbconfig-common/dpkg/prerm
|
||||||
|
dbc_go icinga2-ido-mysql $@
|
||||||
|
|
||||||
|
#DEBHELPER#
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
Template: icinga2-ido-mysql/enable
|
||||||
|
Type: boolean
|
||||||
|
Default: true
|
||||||
|
_Description: Enable icinga 2 mysql idoutils?
|
||||||
|
If you acknowledge this question the ido mysql
|
||||||
|
feature gets enabled for icinga 2.
|
||||||
|
.
|
||||||
|
If you want to disable the feature call
|
||||||
|
icinga2-disable-feature ido-mysql
|
|
@ -0,0 +1,19 @@
|
||||||
|
#!/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_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
|
|
@ -1,3 +1,4 @@
|
||||||
debian/tmp/etc/icinga2/features-available/ido-pgsql.conf
|
|
||||||
usr/lib/*/icinga2/libdb_ido_pgsql*
|
|
||||||
components/db_ido_pgsql/schema/*.sql usr/share/icinga2-ido-pgsql/schema
|
components/db_ido_pgsql/schema/*.sql usr/share/icinga2-ido-pgsql/schema
|
||||||
|
debian/ido-pgsql.conf-sample usr/share/icinga2/tmpl
|
||||||
|
usr/lib/*/icinga2/libdb_ido_pgsql*
|
||||||
|
|
|
@ -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-disable-feature 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-enable-feature ido-pgsql
|
||||||
|
echo "reloading icinga2"
|
||||||
|
[ -x $(which invoke-rc.d) ] && invoke-rc.d icinga2 reload
|
||||||
|
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
#DEBHELPER#
|
||||||
|
db_stop
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,22 @@
|
||||||
|
#!/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
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
. /usr/share/debconf/confmodule
|
||||||
|
. /usr/share/dbconfig-common/dpkg/prerm
|
||||||
|
dbc_go icinga2-ido-pgsql $@
|
||||||
|
|
||||||
|
#DEBHELPER#
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
Template: icinga2-ido-pgsql/enable
|
||||||
|
Type: boolean
|
||||||
|
Default: true
|
||||||
|
_Description: Enable icinga 2 pgsql idoutils?
|
||||||
|
If you acknowledge this question the ido pgsql
|
||||||
|
feature gets enabled for icinga 2.
|
||||||
|
.
|
||||||
|
If you want to disable the feature call
|
||||||
|
icinga2-disable-feature ido-pgsql
|
|
@ -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_"
|
||||||
|
}
|
||||||
|
|
|
@ -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_"
|
||||||
|
}
|
|
@ -17,8 +17,6 @@ ifeq ($(shell test -d .git && echo "git"),git) # verify we are in a GIT repo
|
||||||
endif
|
endif
|
||||||
# now clean build dir
|
# now clean build dir
|
||||||
dh_auto_clean
|
dh_auto_clean
|
||||||
rm -f config.log
|
|
||||||
rm -f config.status
|
|
||||||
|
|
||||||
override_dh_auto_configure:
|
override_dh_auto_configure:
|
||||||
dh_auto_configure -- \
|
dh_auto_configure -- \
|
||||||
|
@ -39,6 +37,16 @@ override_dh_install:
|
||||||
# remove ido files from other packages
|
# remove ido files from other packages
|
||||||
if [ -d debian/icinga2-common/ ]; then rm debian/icinga2-common/etc/icinga2/features-available/ido-*; fi
|
if [ -d debian/icinga2-common/ ]; then rm debian/icinga2-common/etc/icinga2/features-available/ido-*; fi
|
||||||
rm debian/icinga2-bin/usr/lib/*/icinga2/libdb_ido_*
|
rm debian/icinga2-bin/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 components/db_ido_$$dbms/schema/$$dbms.sql debian/icinga2-ido-$$dbms/usr/share/dbconfig-common/data/icinga2-ido-$$dbms/install/$$dbms ; \
|
||||||
|
done
|
||||||
|
# for file in components/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_installinit:
|
override_dh_installinit:
|
||||||
dh_installinit --name=icinga2
|
dh_installinit --name=icinga2
|
||||||
|
|
Loading…
Reference in New Issue