Using fc37 source for compiliation
-
Message from Alex:
Hi, Info, how I compiled newest version of icinga2 for el9.
Hope you will update this project.Newest source:
wget https://github.com/Icinga/icinga2/archive/refs/tags/v2.14.2.tar.gz
Take icinga.spec file from fc37 icinga source code rpm:
wget https://packages.icinga.com/fedora/37/release/src/icinga2/icinga2-2.14.2-1.fc37.src.rpm
rpm2cpio icinga2-2.14.2-1.fc37.src.rpm | cpio -idv icinga2.specFix spec source:
sed -i 's/icina2-2.14.2.tgz/v2.14.2.tar.gz/g' icinga2.spec
Fix release:
sed -i 's/fc37/el9/g' icinga2.spec
Build source rpm:
mock --dnf --clean --spec icinga2.spec --sources=. --result=result --build
Build rpm:
mock --dnf --clean --sources=. --result=result --rebuild result/icinga2-2.14.2-1.el9.src.rpm
This project really helped:
https://repo.dynavirt.com/copr9/icinga2/