icinga2 icon indicating copy to clipboard operation
icinga2 copied to clipboard

Add package version and vendor to `icinga2 --version`

Open julianbrost opened this issue 4 years ago • 3 comments

It would be nice to show the package version and vendor in the output of icinga2 --version

My suggestion would be the following, but details are up to discussion:

Add CMake options to support something like -DICINGA2_PACKAGE_VERSION=2.13.0 -DICINGA2_PACKAGE_VENDOR=Icinga If these options were set, extend the output of icinga2 --version with a new block:

Package information:
  Version: 2.13.0-1
  Vendor: Icinga

Our packaging repos already make use of some vendor variable, so we can also include this here to allow distributions to set it to their name. This allows us to quickly know where the package was obtained in bug reports.

Our RPM packages already show the package revision in the icinga2 --version output, but more due to an accident (#8959). It would still be nice to have this information.

julianbrost avatar Aug 06 '21 13:08 julianbrost