Module: check_mk
Branch: master
Commit: 8395decaafa1804bc7a7325a0ac161a29e5bda33
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8395decaafa180…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Oct 23 16:46:56 2018 +0200
Ubuntu 18.10: Add build support
Change-Id: Ia662928bfc41006b0495930b5cda60ab9eb2626a
---
omd/distros/UBUNTU_18.10.mk | 110 +++++++++++++++++++++
.../patches/0010-fix-missing-makedev.dif | 11 +++
omd/packages/python-modules/Makefile | 2 +-
3 files changed, 122 insertions(+), 1 deletion(-)
diff --git a/omd/distros/UBUNTU_18.10.mk b/omd/distros/UBUNTU_18.10.mk
new file mode 100644
index 0000000..93203fd
--- /dev/null
+++ b/omd/distros/UBUNTU_18.10.mk
@@ -0,0 +1,110 @@
+DISTRO_CODE = cosmic
+BUILD_PACKAGES =
+BUILD_PACKAGES += build-essential
+BUILD_PACKAGES += devscripts
+BUILD_PACKAGES += dpatch
+BUILD_PACKAGES += dnsutils
+BUILD_PACKAGES += smbclient # otherwise missing path in util.pm
+BUILD_PACKAGES += rpcbind # otherwise missing path in util.pm
+BUILD_PACKAGES += git-buildpackage
+BUILD_PACKAGES += libboost-all-dev
+BUILD_PACKAGES += libcloog-ppl1
+BUILD_PACKAGES += libcurl4-openssl-dev # needed by perl modules / thruk
+BUILD_PACKAGES += libevent-dev
+BUILD_PACKAGES += libgd-dev
+BUILD_PACKAGES += libglib2.0-dev
+BUILD_PACKAGES += libgnutls28-dev
+BUILD_PACKAGES += libldap2-dev
+BUILD_PACKAGES += libltdl-dev
+BUILD_PACKAGES += libmcrypt-dev
+BUILD_PACKAGES += libmysqlclient-dev
+BUILD_PACKAGES += libpq-dev
+BUILD_PACKAGES += libpango1.0-dev
+BUILD_PACKAGES += libperl-dev
+BUILD_PACKAGES += libreadline-dev
+BUILD_PACKAGES += libssl-dev
+BUILD_PACKAGES += libxml2-dev
+BUILD_PACKAGES += libsqlite3-dev # needed by Python (for sqlite3 module)
+BUILD_PACKAGES += tk-dev # needed by Python (for Tkinter module)
+BUILD_PACKAGES += patch
+BUILD_PACKAGES += rsync
+BUILD_PACKAGES += uuid-dev
+BUILD_PACKAGES += apache2-dev # compiling mod_python
+BUILD_PACKAGES += apache2 # compiling mod_python
+BUILD_PACKAGES += libncurses5-dev # compiling mod-gearman
+BUILD_PACKAGES += libpcap-dev # needed for CMC
+BUILD_PACKAGES += gettext # needed for german l10n
+BUILD_PACKAGES += libfreeradius-dev
+#
+# Check_MK build specific packages below
+#
+BUILD_PACKAGES += libgsf-1-dev # needed for msitools
+BUILD_PACKAGES += librrd-dev # needed for CMC
+BUILD_PACKAGES += libffi-dev # needed for pyOpenSSL (and dependant) compilations
+BUILD_PACKAGES += libkrb5-dev # needed for python kerberos support
+BUILD_PACKAGES += flex # needed for heirloom-pkgtools
+BUILD_PACKAGES += openssh-client # needed for check_by_ssh
+OS_PACKAGES =
+OS_PACKAGES += cron # needed for sites cron jobs
+OS_PACKAGES += time # needed for mk-job
+OS_PACKAGES += traceroute # needed for Check_MK parent scan
+OS_PACKAGES += curl
+OS_PACKAGES += dialog
+OS_PACKAGES += dnsutils
+OS_PACKAGES += graphviz
+OS_PACKAGES += apache2
+OS_PACKAGES += apache2-utils # contains htpasswd2
+OS_PACKAGES += libdbi1
+OS_PACKAGES += libevent-1.4-2
+OS_PACKAGES += libltdl7
+OS_PACKAGES += libpango1.0-0
+OS_PACKAGES += libperl5.26
+OS_PACKAGES += libreadline5
+OS_PACKAGES += libuuid1
+OS_PACKAGES += libxml2
+OS_PACKAGES += patch
+OS_PACKAGES += php-cli
+OS_PACKAGES += php-cgi
+OS_PACKAGES += php-gd
+OS_PACKAGES += php-sqlite3
+OS_PACKAGES += php-json
+OS_PACKAGES += php-pear
+OS_PACKAGES += pyro
+OS_PACKAGES += rsync
+OS_PACKAGES += smbclient
+OS_PACKAGES += rpcbind # otherwise missing path in util.pm
+OS_PACKAGES += unzip
+OS_PACKAGES += xinetd
+OS_PACKAGES += freeradius-utils
+#
+# Check_MK build specific packages below
+#
+OS_PACKAGES += libpcap0.8 # needed for cmc
+OS_PACKAGES += rpm # needed by msitools/Agent Bakery
+OS_PACKAGES += binutils # needed by msitools/Agent Bakery
+OS_PACKAGES += lcab # needed for creating MSI packages
+OS_PACKAGES += libgsf-1-114 # needed by msitools/Agent Bakery
+OS_PACKAGES += libglib2.0-0 # needed by msitools/Agent Bakery
+OS_PACKAGES += cpio # needed for Agent bakery (solaris pkgs)
+OS_PACKAGES += libfl2 # needed by heirloom-pkgtools
+OS_PACKAGES += poppler-utils # needed for preview of PDF in reporting
+OS_PACKAGES += libffi6 # needed for pyOpenSSL and dependant
+USERADD_OPTIONS =
+ADD_USER_TO_GROUP = gpasswd -a %(user)s %(group)s
+PACKAGE_INSTALL = apt-get -y update ; apt-get -y install
+ACTIVATE_INITSCRIPT = update-rc.d %s defaults
+APACHE_CONF_DIR = /etc/apache2/conf.d
+APACHE_INIT_NAME = apache2
+APACHE_USER = www-data
+APACHE_GROUP = www-data
+APACHE_BIN = /usr/sbin/apache2
+APACHE_CTL = /usr/sbin/apache2ctl
+APACHE_MODULE_DIR = /usr/lib/apache2/modules
+APACHE_MODULE_DIR_64 = /usr/lib/apache2/modules
+HTPASSWD_BIN = /usr/bin/htpasswd
+APACHE_ENMOD = a2enmod %s
+PHP_FCGI_BIN = /usr/bin/php-cgi
+BECOME_ROOT = sudo su -c
+ARCH = $(shell dpkg --print-architecture)
+MOUNT_OPTIONS =
+INIT_CMD = /etc/init.d/%(name)s %(action)s
diff --git a/omd/packages/heirloom-pkgtools/patches/0010-fix-missing-makedev.dif
b/omd/packages/heirloom-pkgtools/patches/0010-fix-missing-makedev.dif
new file mode 100644
index 0000000..516f419
--- /dev/null
+++ b/omd/packages/heirloom-pkgtools/patches/0010-fix-missing-makedev.dif
@@ -0,0 +1,11 @@
+diff -Nur heirloom-pkgtools-070227.orig/libpkg/verify.c
heirloom-pkgtools-070227/libpkg/verify.c
+--- heirloom-pkgtools-070227.orig/libpkg/verify.c 2018-10-23 17:00:45.157728635
+0000
++++ heirloom-pkgtools-070227/libpkg/verify.c 2018-10-23 17:00:59.885893565 +0000
+@@ -47,6 +47,7 @@
+ #include <sys/param.h>
+ #include <sys/stat.h>
+ #include <sys/statvfs.h>
++#include <sys/sysmacros.h>
+ #include <grp.h>
+ #include <pwd.h>
+ #include <errno.h>
diff --git a/omd/packages/python-modules/Makefile b/omd/packages/python-modules/Makefile
index 4e36a4e..40d1acf 100644
--- a/omd/packages/python-modules/Makefile
+++ b/omd/packages/python-modules/Makefile
@@ -102,7 +102,7 @@ else ifneq ($(filter $(DISTRO_CODE),el6),)
MODULES += cryptography-1.5.3.tar.gz
PATCHES += patches/0004-CMS_DEBUG_DECRYPT-fix.patch
PATCHES += patches/0009-cryptography-1.5.3-disable-version-warning.patch
-else ifneq ($(filter $(DISTRO_CODE),sles15),)
+else ifneq ($(filter $(DISTRO_CODE),sles15 cosmic),)
# cryptography-1.9 is not compatible with the OpenSSL 1.1.0h on SLES15. For the
# moment we only use the new version on this platfrom. Make the others also use
# this version in the future.