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
|
||||
|
||||
|
@ -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
|
||||
*** 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
|
||||
Maintainer: Debian Nagios Maintainer Group <pkg-nagios-devel@lists.alioth.debian.org>
|
||||
Uploaders: Alexander Wirt <formorer@debian.org>, Markus Frosch <markus@lazyfrosch.de>
|
||||
Build-Depends: automake,
|
||||
autoconf,
|
||||
autotools-dev,
|
||||
Build-Depends: cmake (>= 2.8.9),
|
||||
make (>= 3.81),
|
||||
bison,
|
||||
debhelper (>= 9),
|
||||
dh-autoreconf,
|
||||
doxygen,
|
||||
flex,
|
||||
g++ (>= 1.96),
|
||||
libboost-dev,
|
||||
libboost-program-options-dev,
|
||||
libboost-signals-dev,
|
||||
libboost-system-dev,
|
||||
libboost-test-dev,
|
||||
libboost-thread-dev,
|
||||
libboost-regex-dev,
|
||||
libltdl-dev,
|
||||
libmysqlclient-dev,
|
||||
libpq-dev,
|
||||
libssl-dev,
|
||||
libtool,
|
||||
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.
|
||||
|
||||
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
|
||||
|
||||
|
|
|
@ -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 () {
|
||||
if [ ! -d '/var/run/icinga2' ];
|
||||
then
|
||||
mkdir /var/run/icinga2
|
||||
chown nagios:nagios /var/run/icinga2
|
||||
chmod 0750 /var/run/icinga2
|
||||
fi
|
||||
test -d '/var/run/icinga2' || mkdir /var/run/icinga2
|
||||
test -d '/var/run/icinga2/cmd' || mkdir /var/run/icinga2/cmd
|
||||
|
||||
chown nagios:nagios /var/run/icinga2
|
||||
chmod 0755 /var/run/icinga2
|
||||
|
||||
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
|
||||
#
|
||||
|
@ -107,6 +114,12 @@ check_run
|
|||
|
||||
case "$1" in
|
||||
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"
|
||||
do_start
|
||||
case "$?" in
|
||||
|
@ -126,11 +139,23 @@ case "$1" in
|
|||
status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
|
||||
;;
|
||||
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"
|
||||
do_reload
|
||||
log_end_msg $?
|
||||
;;
|
||||
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"
|
||||
do_stop
|
||||
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
|
||||
|
||||
#export DH_VERBOSE=1
|
||||
|
||||
export NOCONFIGURE=1
|
||||
export DH_VERBOSE=1
|
||||
|
||||
%:
|
||||
dh $@ --with autotools-dev
|
||||
dh $@
|
||||
|
||||
override_dh_auto_clean:
|
||||
dh_auto_clean
|
||||
|
@ -13,23 +11,19 @@ override_dh_auto_clean:
|
|||
rm -f config.status
|
||||
|
||||
override_dh_auto_configure:
|
||||
./autogen.sh
|
||||
dh_auto_configure -- --enable-python \
|
||||
--with-icinga-user=root \
|
||||
--with-icinga-group=bin \
|
||||
--with-icingacmd-user=root \
|
||||
--with-icingacmd-group=bin
|
||||
|
||||
override_dh_auto_install:
|
||||
dh_auto_install
|
||||
# cleanup dependencies in .la files
|
||||
sed -i "/dependency_libs/ s/'.*'/''/" `find debian/tmp/ -name '*.la'`
|
||||
dh_auto_configure -- \
|
||||
-DCMAKE_INSTALL_LOCALSTATEDIR=/var \
|
||||
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
|
||||
-DICINGA2_USER=nagios \
|
||||
-DICINGA2_GROUP=nagios \
|
||||
-DICINGA2_COMMAND_USER=nagios \
|
||||
-DICINGA2_COMMAND_GROUP=www-data
|
||||
|
||||
override_dh_install:
|
||||
dh_install
|
||||
# remove ido files from other packages
|
||||
if [ -d debian/icinga2-common/ ]; then rm debian/icinga2-common/etc/icinga2/features-available/ido-mysql*; fi
|
||||
rm debian/icinga2-bin/usr/lib/*/icinga2/libdb_ido_mysql*
|
||||
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_*
|
||||
|
||||
override_dh_installinit:
|
||||
dh_installinit --name=icinga2
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
tar-ignore = "obj-*-*"
|
||||
tar-ignore = ".git"
|
Loading…
Reference in New Issue