icinga2/lib/icinga
Yonas Habteab 91c7e60df8 Replace all existing copyright headers with SPDX headers
I've used the following command to replace the original copyright header
lines in a C-style comment block:

```
$ find . \( -type d \( -name '\..*' -o -name third-party -o -name scripts -o -name prefix -o -name malloc -o -name server -o -name docker -o -name build -o -name doc \) -prune \) -o -type f -exec perl -pi -e 's{/\*[^*]*\(\s*c\s*\)\s*(\d{4})\s*Icinga\s+GmbH[^*]*\*/}{// SPDX-FileCopyrightText: \1 Icinga GmbH <https://icinga.com>\n// SPDX-License-Identifier: GPL-2.0-or-later}gi' {} +
```

For files that use shell-style comments (#) like CMakeLists.txt, I've
used this command:

```
$ find . \( -type d \( -name '\..*' -o -name third-party -o -name scripts -o -name prefix -o -name malloc -o -name server -o -name docker -o -name build -o -name doc \) -prune \) -o -type f -exec perl -pi -e 's{#.*\(\s*c\s*\)\s(\d{4})\sIcinga\s+GmbH.*}{# SPDX-FileCopyrightText: \1 Icinga GmbH <https://icinga.com>\n# SPDX-License-Identifier: GPL-2.0-or-later}gi' {} +
```

And for SQL files:

```
$ find . \( -type d \( -name '\..*' -o -name third-party -o -name scripts -o -name prefix -o -name malloc -o -name server -o -name docker -o -name build -o -name doc \) -prune \) -o -type f \( -name '*.sql' \) -exec perl -pi -e 's{--.*\(c\)\s(\d{4})\sIcinga\sGmbH.*}{-- SPDX-FileCopyrightText: \1 Icinga GmbH <https://icinga.com>\n-- SPDX-License-Identifier: GPL-2.0-or-later}gi' {} +
$ find . \( -type d \( -name '\..*' -o -name third-party -o -name scripts -o -name prefix -o -name malloc -o -name server -o -name docker -o -name build -o -name doc \) -prune \) -o -type f \( -name '*.sql' \) -exec perl -pi -e 's{-- Copyright \(c\)\s(\d{4})\sIcinga\s+Development\sTeam.*}{-- SPDX-FileCopyrightText: \1 Icinga GmbH <https://icinga.com>\n-- SPDX-License-Identifier: GPL-2.0-or-later}gi' {} +
```
2026-02-04 14:00:05 +01:00
..
apiactions.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
apiactions.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
apievents.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
apievents.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
checkable-check.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
checkable-comment.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
checkable-dependency.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
checkable-downtime.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
checkable-event.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
checkable-flapping.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
checkable-notification.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
checkable.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
checkable.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
checkable.ti Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
checkcommand.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
checkcommand.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
checkcommand.ti Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
checkresult.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
checkresult.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
checkresult.ti Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
cib.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
cib.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
clusterevents-check.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
clusterevents.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
clusterevents.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
CMakeLists.txt Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
command.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
command.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
command.ti Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
comment.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
comment.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
comment.ti Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
compatutility.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
compatutility.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
customvarobject.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
customvarobject.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
customvarobject.ti Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
dependency-apply.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
dependency-group.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
dependency-state.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
dependency.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
dependency.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
dependency.ti Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
downtime.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
downtime.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
downtime.ti Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
envresolver.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
envresolver.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
eventcommand.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
eventcommand.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
eventcommand.ti Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
externalcommandprocessor.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
externalcommandprocessor.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
host.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
host.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
host.ti Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
hostgroup.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
hostgroup.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
hostgroup.ti Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
i2-icinga.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
icinga-itl.conf Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
icingaapplication.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
icingaapplication.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
icingaapplication.ti Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
legacytimeperiod.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
legacytimeperiod.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
macroprocessor.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
macroprocessor.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
macroresolver.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
notification-apply.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
notification.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
notification.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
notification.ti Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
notificationcommand.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
notificationcommand.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
notificationcommand.ti Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
objectutils.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
objectutils.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
pluginutility.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
pluginutility.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
scheduleddowntime-apply.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
scheduleddowntime.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
scheduleddowntime.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
scheduleddowntime.ti Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
service-apply.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
service.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
service.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
service.ti Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
servicegroup.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
servicegroup.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
servicegroup.ti Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
timeperiod.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
timeperiod.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
timeperiod.ti Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
user.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
user.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
user.ti Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
usergroup.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
usergroup.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
usergroup.ti Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00