[omd-users] OMD on opensuse

Janis Briedis janis.briedis at pasts.lv
Thu Apr 30 14:27:53 CEST 2015


Hi all!

Here is the developers or anyone can transmit
------------------------------------------------------------------------------------------------------------------
I consume some time to build and install OMD on openSUSE 13.1.
May be you reviev end adapt to include in corect format in build system.
Sory for description text format and weak English, I'm an engineer and not speak english. 

Add openSUSE repository devel:perl
zypper ar http://download.opensuse.org/repositories/devel:/languages:/perl/openSUSE_13.1/ "devel:perl"
zypper ref 

cd OMD_source_directory 
 Add new OS in file distro, at end of SLES section
    elif [ "$VERSION" = 13.1 ]
    then
        echo "OPENSUSE$SEP${VERSION}"
        exit 0 

cd distros
cp Makefile.SLES_12 Makefile.OPENSUSE_13.1
edit Makefile.OPENSUSE_13.1
modify line:
DISTRO_CODE     = opensuse131 
add lines:
BUILD_PACKAGES += perl-Apache-LogFormat-Compiler
BUILD_PACKAGES += perl-CGI-Struct
BUILD_PACKAGES += perl-Data-Compare
BUILD_PACKAGES += perl-Devel-StackTrace-AsHTML
BUILD_PACKAGES += perl-File-ChangeNotify
BUILD_PACKAGES += perl-Filesys-Notify-Simple
BUILD_PACKAGES += perl-JSON-MaybeXS
BUILD_PACKAGES += perl-MailTools
BUILD_PACKAGES += perl-Mouse
BUILD_PACKAGES += perl-Object-Signature
BUILD_PACKAGES += perl-URI-ws 
modify line:
OS_PACKAGES    += libboost_program_options1_53_0 

cd OMD_source_directory/packages/perl-modules
./download_package Catalyst::Plugin::Session 
edit Makefile, insert package before
Catalyst-Plugin-Authentication 

cd OMD_source_directory/packages/apache-omd
edit Makefile, block about SLES12 module
(i dont know, may be these modifications damage other distributions)
modify existing and add new lines
# SLES12 and openSUSE13.1has apache 2.4 but does not have some modules to be loaded,
# so remove this load lines for these distro from the apache config
if [ ! -e $(MODULE_DIR)/mod_mpm_prefork.so ]; then \
   sed -i '/^LoadModule mpm_prefork_module/d' $(SKEL)/etc/apache/apache.conf ; \
fi
if [ ! -e $(MODULE_DIR)/mod_access_compat.so ]; then \
    sed -i '/^LoadModule access_compat_module /d' $(SKEL)/etc/apache/apache.conf ; \
fi 

cd OMD_source_directory 
./configure
make ... 

------------------------------------------------------------------------------------------------------------------
Best regards,
Jānis Briedis



More information about the omd-users mailing list