Commit Graph

226 Commits

Author SHA1 Message Date
Gunnar Beutner 0d3563ddaa Add -flto to compiler flags
fixes #12564
2016-08-27 16:07:37 +02:00
Gunnar Beutner b5b09216c6 Use lambda functions for INITIALIZE_ONCE
fixes #12562
2016-08-27 09:48:36 +02:00
Gunnar Beutner 03b593fa67 Fix support for building with ccache
refs #12537
2016-08-27 08:01:13 +02:00
Gunnar Beutner 60e86e02ff Improve error message for old versions of GCC
refs #12537
2016-08-27 07:45:37 +02:00
Gunnar Beutner 30762e5330 Set versions for all internal libraries
fixes #12552
2016-08-25 17:56:18 +02:00
Gunnar Beutner bdaf02295f Update cmake config to require a compiler that supports C++11
fixes #12537
2016-08-25 06:32:45 +02:00
Gunnar Beutner 376e83bd06 Add -fvisibility=hidden to the default compiler flags
fixes #12536
2016-08-25 05:05:51 +02:00
Louis Sautier e725e6719c Detect logrotate not installed in /usr/sbin
Gentoo started installing the logrotate binary to bin, see
gentoo/gentoo@bc23def39c
and https://bugs.gentoo.org/show_bug.cgi?id=588156
There might be other systems doing that, which makes it a good idea
to stop hardcoding the path.

fixes #12535

Signed-off-by: Gunnar Beutner <gunnar.beutner@netways.de>
2016-08-24 21:10:03 +02:00
Gunnar Beutner 72faf42f1a Build fix for Ubuntu precise
refs #12389
2016-08-10 08:22:17 +02:00
Gunnar Beutner e8ae1dc4a6 Include compiler name/version and build host name in --version
fixes #12389
2016-08-10 08:09:44 +02:00
Gunnar Beutner 5c04331de3 Fix include for icinga2.wixpatch (again)
refs #11449
2016-04-14 14:58:13 +02:00
Gunnar Beutner bff4a139bd Remove cmake_policy call
refs #11449
2016-04-14 14:14:57 +02:00
Gunnar Beutner 936bd4aa0d Fix support for building debug MSI packages
refs #11449
2016-04-14 14:08:18 +02:00
Gunnar Beutner 63a7453e10 Make sure NSIS-based installations are uninstalled before we copy the new
files

refs #11449
2016-04-14 12:16:45 +02:00
Gunnar Beutner d4f4d57699 Add new images for the Windows installer
refs #11449
2016-04-11 18:02:56 +02:00
Gunnar Beutner 782fce79a4 Remove support for NSIS
refs #11449
2016-03-31 14:53:54 +02:00
Gunnar Beutner 14db2f04a8 Add missing pre and post installation commands
refs #11449
2016-03-31 14:53:54 +02:00
Gunnar Beutner 6bf3225e84 Implement support for running custom install/uninstall actions
refs #11449
2016-03-31 14:53:54 +02:00
Gunnar Beutner c5b7f9000d Add preliminary support for 64-bit packages
refs #11449
2016-03-30 11:47:39 +02:00
Gunnar Beutner eb7887dad0 Update NSClient++ to version 0.4.4.19
fixes #11473
fixes #11474
2016-03-30 09:47:45 +02:00
Louis Sautier 4970c459ee Re-add the 'su' directive to logrotate if supported
- try to detect a recent logrotate version which supports the 'su'
directive (added in 3.8.0, see
5be96cf182 (diff-e4eb329834da3d36278b1b7d943b3bc9R6))
- if logrotate can't be found, assume an old version is used
- allow the parameter to be forced by the user

fixes #9249

Signed-off-by: Gunnar Beutner <gunnar@beutner.name>
2016-03-29 14:59:06 +02:00
Gunnar Beutner 02ed66847c Add /bigobj compiler option for Windows
refs #11462
2016-03-29 08:45:46 +02:00
Gunnar Beutner 9e9298f4fa Add -pthread to build flags
refs #10963
2016-02-16 13:08:21 +01:00
Gunnar Beutner 599929b0f6 Update copyright headers for 2016 2016-01-12 08:29:59 +01:00
Gunnar Beutner 82961d8977 Build fix for Windows
fixes #10824
2016-01-11 14:28:58 +01:00
Michael Friedrich 138d416ee2 Fix build error with older CMake versions on VERSION_LESS compare
fixes #10826
2015-12-11 14:45:04 +01:00
Gunnar Beutner 8269556f02 Disable --std=c++11 for ancient GCC versions
fixes #10744
2015-11-30 08:16:39 +01:00
Michael Friedrich 81c3b4d1d4 Add CMake flag for disabling the unit tests
fixes #10660
2015-11-25 15:24:04 +01:00
Gunnar Beutner e1e103f72c Update download URL for NSClient++
fixes #10629
2015-11-14 05:38:03 +01:00
Gunnar Beutner 3ded63a01c Revert "Make sure 'api setup' is run by the Windows installer"
This reverts commit 2c6a87576b.

refs #9948
2015-11-06 17:23:55 +01:00
Matthaus Owens 80d63d7e58 Don't try to use --gc-sections on SunOS
The linker on Solaris pukes on the floor when handed --gc-sections, so this commit adds SunOS to the list of OSes to exclude from this section of CMakery.

fixes #10555

Signed-off-by: Gunnar Beutner <gunnar@beutner.name>
2015-11-06 17:02:32 +01:00
Gunnar Beutner 438210651f Build fix for OpenBSD 2015-10-20 22:54:58 +02:00
Gunnar Beutner 2c6a87576b Make sure 'api setup' is run by the Windows installer
fixes #9948
2015-10-01 08:42:03 +02:00
Hendrik Röder 33c0c2feff Use SIDs for setting permissions on $INSTDIR
fixes #10093
2015-09-24 08:45:35 +02:00
Gunnar Beutner 6fff339212 Add start menu item for Icinga Studio
refs #10042
2015-08-31 08:35:24 +02:00
Gunnar Beutner c37a23ccba Implement the Icinga Studio application
fixes #10042
2015-08-31 07:50:01 +02:00
Gunnar Beutner 854f8ec918 Don't re-download NSCP for every build
fixes #9961
2015-08-18 20:16:22 +02:00
Gunnar Beutner 7890e20da7 Implement reload functionality for Windows
fixes #7880
2015-08-10 15:28:31 +02:00
Michael Friedrich c8d129bf9f Enable -Wno-deprecated-register for Clang and AppleClang
refs #9414
2015-07-14 15:02:43 +02:00
Gunnar Beutner 93177ee09a Fix build problems on AIX
fixes #9531
2015-07-01 08:48:42 +02:00
Gunnar Beutner a1d80418db Add "Install NSClient++" check box in the Windows wizard
fixes #9263
2015-06-15 11:19:18 +02:00
Michael Friedrich 8fa39c3d48 Really remove the NSClient++ installer
refs #9238
2015-05-29 10:56:05 +02:00
Gunnar Beutner 0548754a9b Remove NSClient++ from the installer (for now; will be moved to the setup wizard)
refs #9238
2015-05-19 10:15:26 +02:00
Gunnar Beutner 84f5041091 Change permissions for the etc directory on Windows
fixes #9269
2015-05-13 13:57:28 +02:00
Gunnar Beutner 69578eb7de Bundle NSClient++ in Windows installer
fixes #9238
2015-05-12 16:00:04 +02:00
Gunnar Beutner 85d773a21b Improve user experience when updating Icinga 2 with the NSIS installer
fixes #8116
2015-05-12 13:55:40 +02:00
Gunnar Beutner 42a7ca4e78 Avoid most other unnecessary PLT indirections
refs #8890
2015-03-28 17:40:01 +01:00
Gunnar Beutner 665c3b45c1 Add support for the C++11 keyword 'override'
fixes #8842
2015-03-23 07:55:06 +01:00
Gunnar Beutner 37736caa5c Implement support for libedit
fixes #8776
2015-03-17 15:05:47 +01:00
Gunnar Beutner f485424f7f Add -fvisibility-inlines-hidden to the C/CXX flags when available 2015-03-09 09:49:55 +01:00
Gunnar Beutner 24db685806 Add -fno-fat-lto-objects to the compiler flags when ICINGA2_LTO_BUILD is enabled 2015-03-04 10:58:06 +01:00
Gunnar Beutner 47842e2797 Add a CMake variable for -flto 2015-03-04 08:57:20 +01:00
Gunnar Beutner 663fe5a4bd Add --gc-sections to the linker flags 2015-03-01 15:29:57 +01:00
Gunnar Beutner 6495e85760 Enable unity builds by default 2015-03-01 01:28:17 +01:00
Gunnar Beutner d8203f4bb5 Build fix for OpenBSD
fixes #8434
2015-02-13 11:21:20 +01:00
Michael Friedrich 78bfd0204c Update copyright year 2015-01-22 12:00:23 +01:00
Gunnar Beutner a20d168340 Remove libreadline support
fixes #8168
2015-01-13 14:45:38 +01:00
Gunnar Beutner 97168378e8 Rename _DEBUG to I2_DEBUG
fixes #7767
2014-12-19 12:19:28 +01:00
Gunnar Beutner 7be19a2134 Move the InstallConfig include into the top-level CMakeLists.txt file
refs #7794
2014-12-19 09:51:14 +01:00
Gunnar Beutner cb7f93dc19 Implement CMake options for some of the modules
fixes #7794
fixes #7795
2014-12-19 09:46:41 +01:00
Gunnar Beutner c90c8919ca Fix the dependency nightmare that is libreadline
refs #8091
2014-12-17 10:24:13 +01:00
Gunnar Beutner d82defe6a9 Add readline support for the "repl" command
fixes #8091
2014-12-16 13:26:26 +01:00
Gunnar Beutner 622bb6f012 Fix path for the OpenSSL DLLs 2014-12-11 13:47:12 +01:00
Gunnar Beutner d60211d693 Use relative paths for the OpenSSL DLLs 2014-12-06 08:07:54 +01:00
Gunnar Beutner 795b5b87d6 Fix warnings when using CMake 3.1.0
fixes #7894
2014-12-04 22:02:44 +01:00
Lars Engels b81bb67910 Add support to conditionally use MysSQL and/or PostgreSQL
refs #7680

Signed-off-by: Gunnar Beutner <gunnar.beutner@netways.de>
2014-11-14 10:43:52 +01:00
Gunnar Beutner dfd24e6359 Fix _DEBUG define on *NIX 2014-11-12 11:34:59 +01:00
Jean Flach ea8fd12a07 Add Windows plugins
refs #7242
2014-11-06 15:17:08 +01:00
Gunnar Beutner 05d642f69d Use system-provided version of YAJL where available
fixes #7454
2014-10-27 12:42:57 +01:00
Gunnar Beutner 6e17eadf8f Remove {DAEMON,ICINGA2}_USER and {DAEMON,ICINGA2}_GROUP variables
refs #7370
2014-10-20 21:41:04 +02:00
Gunnar Beutner e6a62fe312 Fix CMake warnings on OS X
fixes #7417
2014-10-19 13:18:43 +02:00
Gunnar Beutner 5abc3cfe55 Remove icinga2-build-ca, icinga2-build-key and icinga2-sign-key
refs #7244
2014-10-16 13:29:18 +02:00
Gunnar Beutner 425dbba35b Remove icinga2-list-objects
refs #7251
2014-10-15 15:06:52 +02:00
Gunnar Beutner 98eb771b1d Move all libraries into the lib/ directory 2014-10-13 09:51:49 +02:00
Gunnar Beutner 24f17c0fc6 Add the agent scripts to cmake
refs #7243
2014-09-17 11:29:58 +02:00
Gunnar Beutner 666c92fa76 Check whether the nice() function is available
refs #7115
2014-09-06 02:20:25 +02:00
Gunnar Beutner ba0062b543 Update CFLAGS/CXXFLAGS for the SunPro compiler
refs #6896
2014-09-03 08:24:14 +02:00
Gunnar Beutner 6f2ea6bc08 Fix build problems with Oracle Solaris Studio
refs #6896
2014-09-02 13:09:17 +02:00
Gunnar Beutner 6ba0612644 Detect whether __COUNTER__ is available
fixes #7040
2014-08-31 11:01:37 +02:00
Gunnar Beutner eb091a87b0 Implement support for unity builds
fixes #7034
fixes #7035
2014-08-30 20:02:12 +02:00
Gunnar Beutner 3cbebd985a Add Python module for the icinga2.debug file
refs #6702
2014-08-16 20:22:43 +02:00
Michael Friedrich d2ddde3fec Rename README to README.md
fixes #6688
2014-08-05 21:27:21 +02:00
Tim Hardeck f51a98e8a7 Don't copy INSTALL documentation to system docs
The INSTALL documentation is not relevant after installation, especially
if packages are used.

This does prevent a rpmlint warning.

refs #5818
2014-07-30 13:02:10 +02:00
Gunnar Beutner 20c16a8e93 Rename ICINGA2_PLUGIN_PATH to ICINGA2_PLUGINDIR
refs #6548
2014-07-22 13:26:42 +02:00
Gunnar Beutner a49a598eef Make location of the /run directory configurable
fixes #6627
2014-07-22 13:26:37 +02:00
Gunnar Beutner e6dc8c21a1 Add cmake constant for PluginDir
fixes #6548
2014-07-16 09:03:51 +02:00
Gunnar Beutner 0f9f9a12b3 Add missing license headers
refs #6493
2014-06-23 10:56:12 +02:00
Michael Friedrich 4525ce5040 move cmake scripts to third-party/
refs #6485
2014-06-15 02:17:01 +02:00
Michael Friedrich 571321f386 Move agent files to contrib/ for now
refs #6481
2014-06-13 20:04:00 +02:00
Michael Friedrich 6a7f4f8d03 Fix revision in version string.
Fixes #6231
2014-05-21 10:33:14 +02:00
Gunnar Beutner c5e3d5de9d Fix compatibility with older versions of CMake.
Fixes #6240
2014-05-20 08:30:26 +02:00
Gunnar Beutner 497e58e4d6 Implement the ICINGA2_GIT_VERSION_INFO option.
Refs #5410
2014-05-18 14:34:13 +02:00
Gunnar Beutner a05348acd2 Implement support for overriding the version number.
Fixes #5410
2014-05-18 14:20:11 +02:00
Gunnar Beutner dade476533 Remove the ZlibStream class and the stream_bio functionality.
Fixes #6119
2014-05-09 10:23:54 +02:00
Gunnar Beutner ad894c367a Stop the Icinga service before uninstalling the files.
Refs #4865
2014-04-20 15:35:51 +02:00
Gunnar Beutner 7ece6dd2b9 Remove debug output for CPack.
Refs #4865
2014-04-20 14:06:09 +02:00
Gunnar Beutner e749f6eae5 Make sure the installer doesn't overwrite config files.
Refs #4865
2014-04-20 11:22:15 +02:00
Gunnar Beutner b7d4593b8c Fix OpenSSL path.
Refs #4865
2014-04-19 12:25:33 +02:00
Gunnar Beutner f6953d76ef Add OpenSSL libs to the Windows installer package.
Refs #4865
2014-04-19 10:45:50 +02:00
Gunnar Beutner 0bb5b6f584 Install runtime libraries in sbin on Windows.
Refs #4865
2014-04-19 02:05:54 +02:00
Gunnar Beutner c1ebf2933a Add include for InstallRequiredSystemLibraries.
Refs #4865
2014-04-19 01:54:56 +02:00
Gunnar Beutner 85667f552c Fix project settings (again).
Refs #4865
2014-04-18 14:11:47 +02:00
Gunnar Beutner 0fb55f3404 Fix NSIS installer and Windows service.
Refs #4865
2014-04-18 12:15:01 +02:00
Gunnar Beutner 7be74c8141 Revert "Use full Git version tag for the MSI package."
This reverts commit 03750951c2.
2014-04-16 20:26:02 +02:00
Gunnar Beutner 9c85b2c409 Add icon for the Windows installer.
Refs #4865
2014-04-16 19:54:18 +02:00
Carlos Cesario 56ce830286 GNU C++ pthread compiler option for AIX.
Ref. https://www.ibm.com/developerworks/aix/library/au-gnu.html

Fixes #5999

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
2014-04-16 15:33:30 +02:00
Gunnar Beutner 03750951c2 Use full Git version tag for the MSI package.
Refs #4865
2014-04-16 15:01:53 +02:00
Gunnar Beutner a6dcb757f6 Build fix for Windows. 2014-04-16 11:13:55 +02:00
Gunnar Beutner 8c771d51e4 Fix another exception issue with FreeBSD.
Refs #6008
2014-04-14 03:02:33 +02:00
Michael Friedrich ce737ff2f3 Change copyright header (again).
Fixes #5424
2014-03-19 11:42:47 +01:00
Gunnar Beutner 95e26b0726 Fix dladdr detection.
Fixes #5717
2014-03-06 12:16:00 +01:00
Gunnar Beutner f8a2ddc464 Include source file name and line numbers in stack traces.
Fixes #5715
2014-03-06 10:59:13 +01:00
Michael Friedrich a2e504bd01 Build fix.
Refs #5409
2014-01-27 17:03:50 +01:00
Michael Friedrich 4428e1a4e2 Don't include unnecessary dirs in release tarball.
Fixes #5409
2014-01-27 16:28:03 +01:00
Michael Friedrich 555d72150a Update copyright header.
Fixes #5424
2014-01-09 00:32:11 +01:00
Michael Friedrich 7e03fbb2b4 Fix el5 build.
Fixes #5033
2013-12-18 15:16:00 +01:00
Gunnar Beutner f67343967c Make ICINGA2_{USER,GROUP,COMMAND_USER,COMMAND_GROUP} variables overwritable.
Fixes #5257
2013-12-05 09:42:42 +01:00
Gunnar Beutner b6220c6ecf Change default build type to 'Release'.
Refs #5246
2013-12-02 08:40:00 +01:00
Gunnar Beutner 4ff308c948 Fix icinga-version.h in dist tarballs.
Fixes #5226
2013-11-27 11:31:19 +01:00
Gunnar Beutner 4ed798385d Improve bug messages.
Refs #4635
2013-11-26 18:35:36 +01:00
Gunnar Beutner e5fba1d881 Set default build type to RelWithDebInfo.
Fixes #5112
2013-11-20 16:36:11 +01:00
Gunnar Beutner 4b52528c48 Fix BIO_f_zlib detection.
Fixes #5019
2013-11-13 12:01:39 +01:00
Michael Friedrich 74f9106243 Implement regex match attribute filters (~, ~~)
Requires the boost regex library.

Refs #5007

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
2013-11-05 17:13:40 +01:00
Gunnar Beutner de6cac6e4a Create RPM package for ido-pgsql.
Fixes #4999
2013-11-05 10:37:36 +01:00
Gunnar Beutner 0c59f34ab9 Fix compiler warnings when compiling with Clang.
Fixes #4997
2013-11-05 07:32:11 +01:00
Gunnar Beutner f2307c4242 Add cmake build files.
Refs #4962
2013-11-03 13:45:26 +01:00