Skip to content

Commit b278a4e

Browse files
authored
Clarify licensing for bundled third-party components (#110)
This package bundles third-party components under multiple upstream licenses rather than a single package-wide MIT license. - Adjust the misleading `license` entry in `composer.json`. - Rename the root license file to `LICENSE.md`. - Scope the MIT text to Icinga-authored packaging glue. - Add `THIRD_PARTY_LICENSES.md` for non-MIT bundled components and assets. - Align `README.md` wording with the new licensing layout.
2 parents b900950 + f896ac8 commit b278a4e

4 files changed

Lines changed: 58 additions & 3 deletions

File tree

LICENSE renamed to LICENSE.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
1-
The MIT License
1+
# MIT License — Applies to Icinga-authored Files
22

3-
Copyright (c) 2018 Icinga GmbH https://www.icinga.com
3+
This package contains both Icinga-authored packaging glue and bundled
4+
third-party components.
5+
6+
The MIT license below applies to Icinga-authored files in this package
7+
unless a file or directory states otherwise. This includes repository metadata,
8+
helper scripts, and other Icinga-specific glue code.
9+
10+
Bundled third-party components are not covered by this license. They remain
11+
available under their respective upstream licenses. See
12+
[`THIRD_PARTY_LICENSES.md`](THIRD_PARTY_LICENSES.md) for bundled components
13+
and shipped assets under licenses other than MIT, including relevant indirect
14+
dependencies, and see the bundled license files under `vendor/` and `asset/`
15+
for the full license texts shipped with this package.
16+
17+
Copyright (c) 2018 Icinga GmbH https://icinga.com
418

519
Permission is hereby granted, free of charge, to any person obtaining a copy
620
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,14 @@ INSTALL_PATH="/usr/share/icinga-php/vendor"
3737
INSTALL_VERSION="stable/0.13.0"
3838
git clone https://github.com/Icinga/icinga-php-thirdparty.git "$INSTALL_PATH" --branch "$INSTALL_VERSION"
3939
```
40+
41+
## License
42+
43+
This package bundles third-party components under multiple upstream licenses.
44+
Icinga-authored packaging glue is licensed under MIT as described in
45+
[`LICENSE.md`](LICENSE.md), while bundled third-party components retain their
46+
respective upstream licenses. See
47+
[`THIRD_PARTY_LICENSES.md`](THIRD_PARTY_LICENSES.md) for bundled components
48+
and shipped assets under licenses other than MIT, including relevant indirect
49+
dependencies, and see the bundled license files under `vendor/` and `asset/`
50+
for the full license texts shipped with this package.

THIRD_PARTY_LICENSES.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Third-Party Licenses
2+
3+
This package bundles third-party components used by Icinga Web.
4+
Each bundled component remains available under its upstream license.
5+
6+
This file highlights bundled components and shipped assets under licenses other
7+
than MIT.
8+
9+
## License Summary
10+
11+
| License | Component | License Files / Notes |
12+
|-------------------|---------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------|
13+
| Apache-2.0 | [wikimedia/less.php](https://github.com/wikimedia/less.php) | [`vendor/wikimedia/less.php/LICENSE`](vendor/wikimedia/less.php/LICENSE) |
14+
| Apache-2.0 | [zircote/swagger-php](https://github.com/zircote/swagger-php) | [`vendor/zircote/swagger-php/LICENSE`](vendor/zircote/swagger-php/LICENSE) |
15+
| BSD-3-Clause | [icinga/zf1](https://github.com/Icinga/zf1) | [`vendor/icinga/zf1/LICENSE.txt`](vendor/icinga/zf1/LICENSE.txt) |
16+
| BSD-3-Clause | [jfcherng/php-diff](https://github.com/jfcherng/php-diff) | [`vendor/jfcherng/php-diff/LICENSE`](vendor/jfcherng/php-diff/LICENSE) |
17+
| BSD-3-Clause | [tedivm/jshrink](https://github.com/tedious/JShrink) | [`vendor/tedivm/jshrink/LICENSE`](vendor/tedivm/jshrink/LICENSE) |
18+
| ISC | [d3.js](https://d3js.org/) | [`asset/js/mbostock/LICENSE`](asset/js/mbostock/LICENSE); shipped as [`asset/js/mbostock/d3.js`](asset/js/mbostock/d3.js) |
19+
| LGPL-2.1 | [dompdf/dompdf](https://github.com/dompdf/dompdf) | [`vendor/dompdf/dompdf/LICENSE.LGPL`](vendor/dompdf/dompdf/LICENSE.LGPL) |
20+
| LGPL-2.1-or-later | [ezyang/htmlpurifier](https://github.com/ezyang/htmlpurifier) | [`vendor/ezyang/htmlpurifier/LICENSE`](vendor/ezyang/htmlpurifier/LICENSE) |
21+
| LGPL-3.0-or-later | [dompdf/php-svg-lib](https://github.com/dompdf/php-svg-lib) | [`vendor/dompdf/php-svg-lib/LICENSE`](vendor/dompdf/php-svg-lib/LICENSE); bundled through the `dompdf/dompdf` dependency |
22+
23+
## Notes
24+
25+
- This file lists top-level bundled components and additional shipped assets.
26+
- Components under MIT are not listed individually here.
27+
- Indirect dependencies are not listed one by one, but licenses they add to the
28+
shipped source tree are still reflected here when relevant. For example,
29+
`dompdf/dompdf` brings in a bundled `LGPL-3.0-or-later` dependency, so that
30+
license is included above.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "icinga/icinga-php-thirdparty",
33
"description": "Icinga Web - Bundle for all 3rd party PHP libraries",
4-
"license": "MIT",
4+
"license": "(MIT and LicenseRef-Icinga-Bundled-Upstream)",
55
"type": "project",
66
"homepage": "https://github.com/Icinga/icinga-php-thirdparty",
77
"require": {

0 commit comments

Comments
 (0)