Commit 3dea56ca authored by Markus Frosch's avatar Markus Frosch
Browse files

Support Icinga Boost packages for building

parent a32d2b4e
...@@ -2,28 +2,31 @@ Source: icinga2 ...@@ -2,28 +2,31 @@ Source: icinga2
Section: admin Section: admin
Priority: extra Priority: extra
Maintainer: Icinga Development Team <info@icinga.com> Maintainer: Icinga Development Team <info@icinga.com>
Build-Depends: bash-completion, Build-Depends:
bison, bash-completion,
cmake (>= 2.8.7), bison,
pkg-config, cmake (>= 2.8.7),
debhelper (>= 9), pkg-config,
dh-systemd (>= 1.5), debhelper (>= 9),
libsystemd-dev, dh-systemd (>= 1.5),
flex, libsystemd-dev,
g++ (>= 1.96), flex,
libboost-dev, g++ (>= 1.96),
libboost-program-options-dev, libboost-dev (>= 1.66) | libboost1.67-dev | libboost1.67-icinga-dev,
libboost-regex-dev, libboost-context-dev (>= 1.66) | libboost-context1.67-dev | libboost-context1.67-icinga-dev,
libboost-system-dev, libboost-coroutine-dev (>= 1.66) | libboost-coroutine1.67-dev | libboost-coroutine1.67-icinga-dev,
libboost-test-dev, libboost-program-options-dev (>= 1.66) | libboost-program-options1.67-dev | libboost-program-options1.67-icinga-dev,
libboost-thread-dev, libboost-regex-dev (>= 1.66) | libboost-regex1.67-dev | libboost-regex1.67-icinga-dev,
libmysqlclient-dev, libboost-system-dev (>= 1.66) | libboost-system1.67-dev | libboost-system1.67-icinga-dev,
libpq-dev, libboost-test-dev (>= 1.66) | libboost-test1.67-dev | libboost-test1.67-icinga-dev,
libssl-dev, libboost-thread-dev (>= 1.66) | libboost-thread1.67-dev | libboost-thread1.67-icinga-dev,
libyajl-dev, libmysqlclient-dev,
libedit-dev, libpq-dev,
make (>= 3.81), libssl-dev,
po-debconf libyajl-dev,
libedit-dev,
make (>= 3.81),
po-debconf
Standards-Version: 3.9.8 Standards-Version: 3.9.8
Homepage: http://www.icinga.org Homepage: http://www.icinga.org
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-nagios/pkg-icinga2.git Vcs-Browser: https://anonscm.debian.org/cgit/pkg-nagios/pkg-icinga2.git
......
...@@ -6,6 +6,15 @@ LTO_BUILD = -DICINGA2_LTO_BUILD=On ...@@ -6,6 +6,15 @@ LTO_BUILD = -DICINGA2_LTO_BUILD=On
DEB_HOST_ARCH = $(shell dpkg-architecture -qDEB_HOST_ARCH) DEB_HOST_ARCH = $(shell dpkg-architecture -qDEB_HOST_ARCH)
ifneq (,$(wildcard /usr/include/icinga-boost))
BOOST_FLAGS = \
-DBoost_NO_BOOST_CMAKE=TRUE \
-DBoost_NO_SYSTEM_PATHS=TRUE \
-DBOOST_LIBRARYDIR=/usr/lib/$(DEB_HOST_MULTIARCH)/icinga-boost \
-DBOOST_INCLUDEDIR=/usr/include/icinga-boost \
-DCMAKE_INSTALL_RPATH=/usr/lib/$(DEB_HOST_MULTIARCH)/icinga-boost
endif
# disable unity/lto builds for arches with low memory # disable unity/lto builds for arches with low memory
ifneq ($(findstring $(DEB_HOST_ARCH), armhf),) ifneq ($(findstring $(DEB_HOST_ARCH), armhf),)
UNITY_BUILD = -DICINGA2_UNITY_BUILD=Off UNITY_BUILD = -DICINGA2_UNITY_BUILD=Off
...@@ -22,8 +31,6 @@ ifneq ($(findstring $(DEB_HOST_ARCH), mipsel),) ...@@ -22,8 +31,6 @@ ifneq ($(findstring $(DEB_HOST_ARCH), mipsel),)
LTO_BUILD = -DICINGA2_LTO_BUILD=Off LTO_BUILD = -DICINGA2_LTO_BUILD=Off
endif endif
%: %:
dh $@ --with systemd --with bash_completion dh $@ --with systemd --with bash_completion
...@@ -52,6 +59,7 @@ override_dh_auto_configure: ...@@ -52,6 +59,7 @@ override_dh_auto_configure:
-DICINGA2_GIT_VERSION_INFO=false \ -DICINGA2_GIT_VERSION_INFO=false \
-DICINGA2_PLUGINDIR=/usr/lib/nagios/plugins \ -DICINGA2_PLUGINDIR=/usr/lib/nagios/plugins \
-DUSE_SYSTEMD=ON \ -DUSE_SYSTEMD=ON \
$(BOOST_FLAGS) \
$(UNITY_BUILD) \ $(UNITY_BUILD) \
$(LTO_BUILD) $(LTO_BUILD)
......
...@@ -2,30 +2,31 @@ Source: icinga2 ...@@ -2,30 +2,31 @@ Source: icinga2
Section: admin Section: admin
Priority: extra Priority: extra
Maintainer: Icinga Development Team <info@icinga.com> Maintainer: Icinga Development Team <info@icinga.com>
Build-Depends: bash-completion, Build-Depends:
bison, bash-completion,
cmake (>= 2.8.7), bison,
cmake (>= 3.2.2) | pkg-config, cmake (>= 2.8.7),
debhelper (>= 9), cmake (>= 3.2.2) | pkg-config,
dh-systemd (>= 1.5), debhelper (>= 9),
libsystemd-dev, dh-systemd (>= 1.5),
flex, libsystemd-dev,
g++ (>= 1.96), flex,
libboost-dev (>= 1.66) | libboost1.67-dev, g++ (>= 1.96),
libboost-context-dev (>= 1.66) | libboost-context1.67-dev, libboost-dev (>= 1.66) | libboost1.67-dev | libboost1.67-icinga-dev,
libboost-coroutine-dev (>= 1.66) | libboost-coroutine1.67-dev, libboost-context-dev (>= 1.66) | libboost-context1.67-dev | libboost-context1.67-icinga-dev,
libboost-program-options-dev (>= 1.66) | libboost-program-options1.67-dev, libboost-coroutine-dev (>= 1.66) | libboost-coroutine1.67-dev | libboost-coroutine1.67-icinga-dev,
libboost-regex-dev (>= 1.66) | libboost-regex1.67-dev, libboost-program-options-dev (>= 1.66) | libboost-program-options1.67-dev | libboost-program-options1.67-icinga-dev,
libboost-system-dev (>= 1.66) | libboost-system1.67-dev, libboost-regex-dev (>= 1.66) | libboost-regex1.67-dev | libboost-regex1.67-icinga-dev,
libboost-test-dev (>= 1.66) | libboost-test1.67-dev, libboost-system-dev (>= 1.66) | libboost-system1.67-dev | libboost-system1.67-icinga-dev,
libboost-thread-dev (>= 1.66) | libboost-thread1.67-dev, libboost-test-dev (>= 1.66) | libboost-test1.67-dev | libboost-test1.67-icinga-dev,
default-libmysqlclient-dev | libmysqlclient-dev, libboost-thread-dev (>= 1.66) | libboost-thread1.67-dev | libboost-thread1.67-icinga-dev,
libpq-dev, default-libmysqlclient-dev | libmysqlclient-dev,
libssl-dev, libpq-dev,
libyajl-dev, libssl-dev,
libedit-dev, libyajl-dev,
make (>= 3.81), libedit-dev,
po-debconf make (>= 3.81),
po-debconf
Standards-Version: 3.9.8 Standards-Version: 3.9.8
Homepage: http://www.icinga.org Homepage: http://www.icinga.org
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-nagios/pkg-icinga2.git Vcs-Browser: https://anonscm.debian.org/cgit/pkg-nagios/pkg-icinga2.git
......
...@@ -6,6 +6,15 @@ LTO_BUILD = -DICINGA2_LTO_BUILD=On ...@@ -6,6 +6,15 @@ LTO_BUILD = -DICINGA2_LTO_BUILD=On
DEB_HOST_ARCH = $(shell dpkg-architecture -qDEB_HOST_ARCH) DEB_HOST_ARCH = $(shell dpkg-architecture -qDEB_HOST_ARCH)
ifneq (,$(wildcard /usr/include/icinga-boost))
BOOST_FLAGS = \
-DBoost_NO_BOOST_CMAKE=TRUE \
-DBoost_NO_SYSTEM_PATHS=TRUE \
-DBOOST_LIBRARYDIR=/usr/lib/$(DEB_HOST_MULTIARCH)/icinga-boost \
-DBOOST_INCLUDEDIR=/usr/include/icinga-boost \
-DCMAKE_INSTALL_RPATH=/usr/lib/$(DEB_HOST_MULTIARCH)/icinga-boost
endif
# disable unity/lto builds for arches with low memory # disable unity/lto builds for arches with low memory
ifneq ($(findstring $(DEB_HOST_ARCH), armhf),) ifneq ($(findstring $(DEB_HOST_ARCH), armhf),)
UNITY_BUILD = -DICINGA2_UNITY_BUILD=Off UNITY_BUILD = -DICINGA2_UNITY_BUILD=Off
...@@ -22,8 +31,6 @@ ifneq ($(findstring $(DEB_HOST_ARCH), mipsel),) ...@@ -22,8 +31,6 @@ ifneq ($(findstring $(DEB_HOST_ARCH), mipsel),)
LTO_BUILD = -DICINGA2_LTO_BUILD=Off LTO_BUILD = -DICINGA2_LTO_BUILD=Off
endif endif
%: %:
dh $@ --with systemd --with bash_completion dh $@ --with systemd --with bash_completion
...@@ -52,6 +59,7 @@ override_dh_auto_configure: ...@@ -52,6 +59,7 @@ override_dh_auto_configure:
-DICINGA2_GIT_VERSION_INFO=false \ -DICINGA2_GIT_VERSION_INFO=false \
-DICINGA2_PLUGINDIR=/usr/lib/nagios/plugins \ -DICINGA2_PLUGINDIR=/usr/lib/nagios/plugins \
-DUSE_SYSTEMD=ON \ -DUSE_SYSTEMD=ON \
$(BOOST_FLAGS) \
$(UNITY_BUILD) \ $(UNITY_BUILD) \
$(LTO_BUILD) $(LTO_BUILD)
......
...@@ -6,26 +6,29 @@ Maintainer: Icinga Development Team <info@icinga.com> ...@@ -6,26 +6,29 @@ Maintainer: Icinga Development Team <info@icinga.com>
#Uploaders: Markus Frosch <lazyfrosch@debian.org>, #Uploaders: Markus Frosch <lazyfrosch@debian.org>,
# Jan Wagner <waja@cyconet.org>, # Jan Wagner <waja@cyconet.org>,
# Alexander Wirt <formorer@debian.org> # Alexander Wirt <formorer@debian.org>
Build-Depends: bash-completion, Build-Depends:
bison, bash-completion,
cmake (>= 2.8.7), bison,
cmake (>= 3.2.2) | pkg-config, cmake (>= 2.8.7),
debhelper (>= 9), cmake (>= 3.2.2) | pkg-config,
flex, debhelper (>= 9),
g++ (>= 1.96), flex,
libboost-dev, g++ (>= 1.96),
libboost-program-options-dev, libboost-dev (>= 1.66) | libboost1.67-dev | libboost1.67-icinga-dev,
libboost-regex-dev, libboost-context-dev (>= 1.66) | libboost-context1.67-dev | libboost-context1.67-icinga-dev,
libboost-system-dev, libboost-coroutine-dev (>= 1.66) | libboost-coroutine1.67-dev | libboost-coroutine1.67-icinga-dev,
libboost-test-dev, libboost-program-options-dev (>= 1.66) | libboost-program-options1.67-dev | libboost-program-options1.67-icinga-dev,
libboost-thread-dev, libboost-regex-dev (>= 1.66) | libboost-regex1.67-dev | libboost-regex1.67-icinga-dev,
default-libmysqlclient-dev | libmysqlclient-dev, libboost-system-dev (>= 1.66) | libboost-system1.67-dev | libboost-system1.67-icinga-dev,
libpq-dev, libboost-test-dev (>= 1.66) | libboost-test1.67-dev | libboost-test1.67-icinga-dev,
libssl-dev, libboost-thread-dev (>= 1.66) | libboost-thread1.67-dev | libboost-thread1.67-icinga-dev,
libyajl-dev, default-libmysqlclient-dev | libmysqlclient-dev,
libedit-dev, libpq-dev,
make (>= 3.81), libssl-dev,
po-debconf libyajl-dev,
libedit-dev,
make (>= 3.81),
po-debconf
Standards-Version: 3.9.8 Standards-Version: 3.9.8
Homepage: http://www.icinga.org Homepage: http://www.icinga.org
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-nagios/pkg-icinga2.git Vcs-Browser: https://anonscm.debian.org/cgit/pkg-nagios/pkg-icinga2.git
......
...@@ -6,6 +6,15 @@ LTO_BUILD = -DICINGA2_LTO_BUILD=On ...@@ -6,6 +6,15 @@ LTO_BUILD = -DICINGA2_LTO_BUILD=On
DEB_HOST_ARCH = $(shell dpkg-architecture -qDEB_HOST_ARCH) DEB_HOST_ARCH = $(shell dpkg-architecture -qDEB_HOST_ARCH)
ifneq (,$(wildcard /usr/include/icinga-boost))
BOOST_FLAGS = \
-DBoost_NO_BOOST_CMAKE=TRUE \
-DBoost_NO_SYSTEM_PATHS=TRUE \
-DBOOST_LIBRARYDIR=/usr/lib/$(DEB_HOST_MULTIARCH)/icinga-boost \
-DBOOST_INCLUDEDIR=/usr/include/icinga-boost \
-DCMAKE_INSTALL_RPATH=/usr/lib/$(DEB_HOST_MULTIARCH)/icinga-boost
endif
# disable unity/lto builds for arches with low memory # disable unity/lto builds for arches with low memory
ifneq ($(findstring $(DEB_HOST_ARCH), armhf),) ifneq ($(findstring $(DEB_HOST_ARCH), armhf),)
UNITY_BUILD = -DICINGA2_UNITY_BUILD=Off UNITY_BUILD = -DICINGA2_UNITY_BUILD=Off
...@@ -49,6 +58,7 @@ override_dh_auto_configure: ...@@ -49,6 +58,7 @@ override_dh_auto_configure:
-DICINGA2_COMMAND_GROUP=www-data \ -DICINGA2_COMMAND_GROUP=www-data \
-DICINGA2_GIT_VERSION_INFO=false \ -DICINGA2_GIT_VERSION_INFO=false \
-DICINGA2_PLUGINDIR=/usr/lib/nagios/plugins \ -DICINGA2_PLUGINDIR=/usr/lib/nagios/plugins \
$(BOOST_FLAGS) \
$(UNITY_BUILD) \ $(UNITY_BUILD) \
$(LTO_BUILD) $(LTO_BUILD)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment