mirror of https://github.com/Icinga/icinga2.git
parent
a73f98414a
commit
941224cb68
|
@ -1,4 +1,4 @@
|
||||||
icinga2 (0.0.3-0) UNRELEASED; urgency=low
|
icinga2 (0.0.3) UNRELEASED; urgency=low
|
||||||
|
|
||||||
* Icinga2 Debian packaging for snapshots
|
* Icinga2 Debian packaging for snapshots
|
||||||
|
|
||||||
|
@ -7,4 +7,4 @@ icinga2 (0.0.3-0) UNRELEASED; urgency=low
|
||||||
*** is merely a technology preview and if you're planning to set up
|
*** is merely a technology preview and if you're planning to set up
|
||||||
*** a production environment for Icinga you should use Icinga 1.x instead.
|
*** a production environment for Icinga you should use Icinga 1.x instead.
|
||||||
|
|
||||||
-- Markus Frosch <markus@lazyfrosch.de> Wed, 23 Oct 2013 17:41:03 +0200
|
-- Markus Frosch <markus@lazyfrosch.de> Fri, 08 Nov 2013 13:39:03 +0100
|
||||||
|
|
|
@ -3,23 +3,22 @@ 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: Alexander Wirt <formorer@debian.org>, Markus Frosch <markus@lazyfrosch.de>
|
Uploaders: Alexander Wirt <formorer@debian.org>, Markus Frosch <markus@lazyfrosch.de>
|
||||||
Build-Depends: automake,
|
Build-Depends: cmake (>= 2.8.9),
|
||||||
autoconf,
|
make (>= 3.81),
|
||||||
autotools-dev,
|
|
||||||
bison,
|
bison,
|
||||||
debhelper (>= 9),
|
debhelper (>= 9),
|
||||||
dh-autoreconf,
|
|
||||||
doxygen,
|
doxygen,
|
||||||
flex,
|
flex,
|
||||||
g++ (>= 1.96),
|
g++ (>= 1.96),
|
||||||
libboost-dev,
|
libboost-dev,
|
||||||
libboost-program-options-dev,
|
libboost-program-options-dev,
|
||||||
libboost-signals-dev,
|
|
||||||
libboost-system-dev,
|
libboost-system-dev,
|
||||||
libboost-test-dev,
|
libboost-test-dev,
|
||||||
libboost-thread-dev,
|
libboost-thread-dev,
|
||||||
|
libboost-regex-dev,
|
||||||
libltdl-dev,
|
libltdl-dev,
|
||||||
libmysqlclient-dev,
|
libmysqlclient-dev,
|
||||||
|
libpq-dev,
|
||||||
libssl-dev,
|
libssl-dev,
|
||||||
libtool,
|
libtool,
|
||||||
po-debconf,
|
po-debconf,
|
||||||
|
@ -101,3 +100,18 @@ Description: host and network monitoring system - IDO for MySQL
|
||||||
.
|
.
|
||||||
This package provides the IDO module for the MySQL database.
|
This package provides the IDO module for the MySQL database.
|
||||||
|
|
||||||
|
Package: icinga2-ido-pgsql
|
||||||
|
Architecture: any
|
||||||
|
Pre-Depends: ${misc:Pre-Depends}
|
||||||
|
Depends: icinga2-common (= ${source:Version}),
|
||||||
|
icinga2-bin (= ${binary:Version}),
|
||||||
|
${shlibs:Depends}, ${misc:Depends}
|
||||||
|
Recommends: postgresql-client
|
||||||
|
Suggests: postgresql
|
||||||
|
Description: host and network monitoring system - IDO for PostgreSQL
|
||||||
|
Icinga 2 is still in development and not ready for production use!
|
||||||
|
.
|
||||||
|
Better description to come.
|
||||||
|
.
|
||||||
|
This package provides the IDO module for the PostgreSQL database.
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/bin/sh -e
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
. /usr/share/debconf/confmodule
|
. /usr/share/debconf/confmodule
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
# ignoring apache2 warning
|
||||||
|
# this is actually not a problem, because the handling is backwards compatible
|
||||||
|
apache2-reverse-dependency-calls-invoke-rc.d postrm
|
||||||
|
apache2-reverse-dependency-calls-wrapper-script postinst a2enmod
|
||||||
|
apache2-reverse-dependency-calls-invoke-rc.d postinst
|
|
@ -37,14 +37,21 @@ SCRIPTNAME=/etc/init.d/$NAME
|
||||||
|
|
||||||
# check run directory
|
# check run directory
|
||||||
check_run () {
|
check_run () {
|
||||||
if [ ! -d '/var/run/icinga2' ];
|
test -d '/var/run/icinga2' || mkdir /var/run/icinga2
|
||||||
then
|
test -d '/var/run/icinga2/cmd' || mkdir /var/run/icinga2/cmd
|
||||||
mkdir /var/run/icinga2
|
|
||||||
chown nagios:nagios /var/run/icinga2
|
chown nagios:nagios /var/run/icinga2
|
||||||
chmod 0750 /var/run/icinga2
|
chmod 0755 /var/run/icinga2
|
||||||
fi
|
|
||||||
|
chown nagios:www-data /var/run/icinga2/cmd
|
||||||
|
chmod 2710 /var/run/icinga2/cmd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
check_config () {
|
||||||
|
$DAEMON -C $DAEMON_ARGS
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Function that starts the daemon/service
|
# Function that starts the daemon/service
|
||||||
#
|
#
|
||||||
|
@ -107,6 +114,12 @@ check_run
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
|
log_action_msg "checking Icinga2 configuration"
|
||||||
|
if ! check_config; then
|
||||||
|
log_failure_msg "config test failed!"
|
||||||
|
log_end_msg 1
|
||||||
|
fi
|
||||||
|
|
||||||
log_daemon_msg "Starting $DESC" "$NAME"
|
log_daemon_msg "Starting $DESC" "$NAME"
|
||||||
do_start
|
do_start
|
||||||
case "$?" in
|
case "$?" in
|
||||||
|
@ -126,11 +139,23 @@ case "$1" in
|
||||||
status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
|
status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
|
||||||
;;
|
;;
|
||||||
reload|force-reload)
|
reload|force-reload)
|
||||||
|
log_action_msg "checking Icinga2 configuration"
|
||||||
|
if ! check_config; then
|
||||||
|
log_failure_msg "config test failed!"
|
||||||
|
log_end_msg 1
|
||||||
|
fi
|
||||||
|
|
||||||
log_daemon_msg "Reloading $DESC" "$NAME"
|
log_daemon_msg "Reloading $DESC" "$NAME"
|
||||||
do_reload
|
do_reload
|
||||||
log_end_msg $?
|
log_end_msg $?
|
||||||
;;
|
;;
|
||||||
restart)
|
restart)
|
||||||
|
log_action_msg "checking Icinga2 configuration"
|
||||||
|
if ! check_config; then
|
||||||
|
log_failure_msg "config test failed!"
|
||||||
|
log_end_msg 1
|
||||||
|
fi
|
||||||
|
|
||||||
log_daemon_msg "Restarting $DESC" "$NAME"
|
log_daemon_msg "Restarting $DESC" "$NAME"
|
||||||
do_stop
|
do_stop
|
||||||
case "$?" in
|
case "$?" in
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
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
|
||||||
|
# for later
|
||||||
|
#components/db_ido_pgsql/schema/upgrades/*.sql usr/share/icinga2-ido-pgsql/schema/upgrades
|
|
@ -0,0 +1 @@
|
||||||
|
[type: gettext/rfc822deb] icinga2-classicui.templates
|
|
@ -1,11 +1,9 @@
|
||||||
#!/usr/bin/make -f
|
#!/usr/bin/make -f
|
||||||
|
|
||||||
#export DH_VERBOSE=1
|
export DH_VERBOSE=1
|
||||||
|
|
||||||
export NOCONFIGURE=1
|
|
||||||
|
|
||||||
%:
|
%:
|
||||||
dh $@ --with autotools-dev
|
dh $@
|
||||||
|
|
||||||
override_dh_auto_clean:
|
override_dh_auto_clean:
|
||||||
dh_auto_clean
|
dh_auto_clean
|
||||||
|
@ -13,23 +11,19 @@ override_dh_auto_clean:
|
||||||
rm -f config.status
|
rm -f config.status
|
||||||
|
|
||||||
override_dh_auto_configure:
|
override_dh_auto_configure:
|
||||||
./autogen.sh
|
dh_auto_configure -- \
|
||||||
dh_auto_configure -- --enable-python \
|
-DCMAKE_INSTALL_LOCALSTATEDIR=/var \
|
||||||
--with-icinga-user=root \
|
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
|
||||||
--with-icinga-group=bin \
|
-DICINGA2_USER=nagios \
|
||||||
--with-icingacmd-user=root \
|
-DICINGA2_GROUP=nagios \
|
||||||
--with-icingacmd-group=bin
|
-DICINGA2_COMMAND_USER=nagios \
|
||||||
|
-DICINGA2_COMMAND_GROUP=www-data
|
||||||
override_dh_auto_install:
|
|
||||||
dh_auto_install
|
|
||||||
# cleanup dependencies in .la files
|
|
||||||
sed -i "/dependency_libs/ s/'.*'/''/" `find debian/tmp/ -name '*.la'`
|
|
||||||
|
|
||||||
override_dh_install:
|
override_dh_install:
|
||||||
dh_install
|
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-mysql*; 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_mysql*
|
rm debian/icinga2-bin/usr/lib/*/icinga2/libdb_ido_*
|
||||||
|
|
||||||
override_dh_installinit:
|
override_dh_installinit:
|
||||||
dh_installinit --name=icinga2
|
dh_installinit --name=icinga2
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
tar-ignore = "obj-*-*"
|
||||||
|
tar-ignore = ".git"
|
Loading…
Reference in New Issue