]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Add reuse integration for ensuring license compliance
authorDavid Runge <dave@sleepmap.de>
Wed, 18 Sep 2024 12:14:16 +0000 (14:14 +0200)
committerDavid Runge <dave@sleepmap.de>
Wed, 18 Sep 2024 12:14:16 +0000 (14:14 +0200)
Rename use of legacy LGPL-2.1+ SPDX-License-Identifier to the more
widely used LGPL-2.1-or-later.

Add missing licenses and move existing ones to their respective correct
locations in the LICENSES directory.

Add REUSE.toml describing the licensing of all files.

Signed-off-by: David Runge <dave@sleepmap.de>
LICENSES/GPL-2.0-only.txt [moved from LICENSE.GPL2 with 100% similarity]
LICENSES/LGPL-2.1-or-later.txt [moved from LICENSE with 100% similarity]
LICENSES/OFL-1.1.txt [new file with mode: 0644]
LICENSES/PSF-2.0.txt [new file with mode: 0644]
REUSE.toml [new file with mode: 0644]
mkosi/distributions/azure.py
mkosi/distributions/kali.py

similarity index 100%
rename from LICENSE.GPL2
rename to LICENSES/GPL-2.0-only.txt
similarity index 100%
rename from LICENSE
rename to LICENSES/LGPL-2.1-or-later.txt
diff --git a/LICENSES/OFL-1.1.txt b/LICENSES/OFL-1.1.txt
new file mode 100644 (file)
index 0000000..79ed1e5
--- /dev/null
@@ -0,0 +1,93 @@
+Copyright 2014 The Heebo Project Authors (https://github.com/OdedEzer/heebo)\r
+\r
+This Font Software is licensed under the SIL Open Font License, Version 1.1.\r
+This license is copied below, and is also available with a FAQ at:\r
+https://scripts.sil.org/OFL\r
+\r
+\r
+-----------------------------------------------------------\r
+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007\r
+-----------------------------------------------------------\r
+\r
+PREAMBLE\r
+The goals of the Open Font License (OFL) are to stimulate worldwide\r
+development of collaborative font projects, to support the font creation\r
+efforts of academic and linguistic communities, and to provide a free and\r
+open framework in which fonts may be shared and improved in partnership\r
+with others.\r
+\r
+The OFL allows the licensed fonts to be used, studied, modified and\r
+redistributed freely as long as they are not sold by themselves. The\r
+fonts, including any derivative works, can be bundled, embedded, \r
+redistributed and/or sold with any software provided that any reserved\r
+names are not used by derivative works. The fonts and derivatives,\r
+however, cannot be released under any other type of license. The\r
+requirement for fonts to remain under this license does not apply\r
+to any document created using the fonts or their derivatives.\r
+\r
+DEFINITIONS\r
+"Font Software" refers to the set of files released by the Copyright\r
+Holder(s) under this license and clearly marked as such. This may\r
+include source files, build scripts and documentation.\r
+\r
+"Reserved Font Name" refers to any names specified as such after the\r
+copyright statement(s).\r
+\r
+"Original Version" refers to the collection of Font Software components as\r
+distributed by the Copyright Holder(s).\r
+\r
+"Modified Version" refers to any derivative made by adding to, deleting,\r
+or substituting -- in part or in whole -- any of the components of the\r
+Original Version, by changing formats or by porting the Font Software to a\r
+new environment.\r
+\r
+"Author" refers to any designer, engineer, programmer, technical\r
+writer or other person who contributed to the Font Software.\r
+\r
+PERMISSION & CONDITIONS\r
+Permission is hereby granted, free of charge, to any person obtaining\r
+a copy of the Font Software, to use, study, copy, merge, embed, modify,\r
+redistribute, and sell modified and unmodified copies of the Font\r
+Software, subject to the following conditions:\r
+\r
+1) Neither the Font Software nor any of its individual components,\r
+in Original or Modified Versions, may be sold by itself.\r
+\r
+2) Original or Modified Versions of the Font Software may be bundled,\r
+redistributed and/or sold with any software, provided that each copy\r
+contains the above copyright notice and this license. These can be\r
+included either as stand-alone text files, human-readable headers or\r
+in the appropriate machine-readable metadata fields within text or\r
+binary files as long as those fields can be easily viewed by the user.\r
+\r
+3) No Modified Version of the Font Software may use the Reserved Font\r
+Name(s) unless explicit written permission is granted by the corresponding\r
+Copyright Holder. This restriction only applies to the primary font name as\r
+presented to the users.\r
+\r
+4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font\r
+Software shall not be used to promote, endorse or advertise any\r
+Modified Version, except to acknowledge the contribution(s) of the\r
+Copyright Holder(s) and the Author(s) or with their explicit written\r
+permission.\r
+\r
+5) The Font Software, modified or unmodified, in part or in whole,\r
+must be distributed entirely under this license, and must not be\r
+distributed under any other license. The requirement for fonts to\r
+remain under this license does not apply to any document created\r
+using the Font Software.\r
+\r
+TERMINATION\r
+This license becomes null and void if any of the above conditions are\r
+not met.\r
+\r
+DISCLAIMER\r
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\r
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT\r
+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE\r
+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\r
+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL\r
+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\r
+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM\r
+OTHER DEALINGS IN THE FONT SOFTWARE.\r
diff --git a/LICENSES/PSF-2.0.txt b/LICENSES/PSF-2.0.txt
new file mode 100644 (file)
index 0000000..8a38e52
--- /dev/null
@@ -0,0 +1,47 @@
+PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
+
+1. This LICENSE AGREEMENT is between the Python Software Foundation
+("PSF"), and the Individual or Organization ("Licensee") accessing and
+otherwise using this software ("Python") in source or binary form and
+its associated documentation.
+
+2. Subject to the terms and conditions of this License Agreement, PSF hereby
+grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce,
+analyze, test, perform and/or display publicly, prepare derivative works,
+distribute, and otherwise use Python alone or in any derivative version,
+provided, however, that PSF's License Agreement and PSF's notice of copyright,
+i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
+2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019 Python Software Foundation;
+All Rights Reserved" are retained in Python alone or in any derivative version
+prepared by Licensee.
+
+3. In the event Licensee prepares a derivative work that is based on
+or incorporates Python or any part thereof, and wants to make
+the derivative work available to others as provided herein, then
+Licensee hereby agrees to include in any such work a brief summary of
+the changes made to Python.
+
+4. PSF is making Python available to Licensee on an "AS IS"
+basis.  PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
+IMPLIED.  BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND
+DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
+FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT
+INFRINGE ANY THIRD PARTY RIGHTS.
+
+5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
+FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
+A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON,
+OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
+
+6. This License Agreement will automatically terminate upon a material
+breach of its terms and conditions.
+
+7. Nothing in this License Agreement shall be deemed to create any
+relationship of agency, partnership, or joint venture between PSF and
+Licensee.  This License Agreement does not grant permission to use PSF
+trademarks or trade name in a trademark sense to endorse or promote
+products or services of Licensee, or any third party.
+
+8. By copying, installing or otherwise using Python, Licensee
+agrees to be bound by the terms and conditions of this License
+Agreement.
diff --git a/REUSE.toml b/REUSE.toml
new file mode 100644 (file)
index 0000000..d84d243
--- /dev/null
@@ -0,0 +1,67 @@
+# NOTE: This project does not attribute contributors individually. Instead refer to `git log --format="%an <%aE>" | sort -u` for a list of individual contributors.
+version = 1
+SPDX-PackageName = "mkosi"
+SPDX-PackageSupplier = "systemd"
+SPDX-PackageDownloadLocation = "https://github.com/systemd/mkosi"
+
+[[annotations]]
+path = [
+    ".codespellrc",
+    ".dir-locals.el",
+    ".editorconfig",
+    "bin/mkosi",
+    "docs/CNAME",
+    "**.gitignore",
+    "**.bash",
+    "**.chroot",
+    "**.conf",
+    "**.css",
+    "**.html",
+    "**.in",
+    "**.install",
+    "**.json",
+    "**.mailmap",
+    "**.md",
+    "**.png",
+    "**.postinst",
+    "**.prepare",
+    "**.preset",
+    "**.py",
+    "**.service",
+    "**.sources",
+    "**.sh",
+    "**.svg",
+    "**.toml",
+    "**.yaml",
+    "**.yml",
+    "**.zsh",
+]
+precedence = "aggregate"
+SPDX-FileCopyrightText = "Mkosi Contributors"
+SPDX-License-Identifier = "LGPL-2.1-or-later"
+
+[[annotations]]
+path = [
+    "mkosi/resources/mkosi-initrd/mkosi.extra/usr/lib/udev/rules.d/10-mkosi-initrd-md.rules",
+    "mkosi/resources/mkosi-initrd/mkosi.extra/usr/lib/udev/rules.d/10-mkosi-initrd-dm.rules",
+]
+precedence = "aggregate"
+SPDX-FileCopyrightText = "Mkosi Contributors"
+SPDX-License-Identifier = "GPL-2.0-only"
+
+[[annotations]]
+path = [
+    "mkosi/backport.py",
+]
+precedence = "aggregate"
+SPDX-FileCopyrightText = "Mkosi Contributors"
+SPDX-License-Identifier = "PSF-2.0"
+
+[[annotations]]
+path = [
+    "docs/fonts/heebo-bold.woff",
+    "docs/fonts/heebo-regular.woff",
+]
+precedence = "aggregate"
+SPDX-FileCopyrightText = "Mkosi Contributors"
+SPDX-License-Identifier = "OFL-1.1"
index 2cc9f2ea16aa249f38d670d1127f3edf8558b943..985251ee997b6a69b7773f309ad223cc5dc94a0a 100644 (file)
@@ -1,4 +1,4 @@
-# SPDX-License-Identifier: LGPL-2.1+
+# SPDX-License-Identifier: LGPL-2.1-or-later
 
 from collections.abc import Iterable
 
index d0ccbb08904a906341f802863091f3ca4891fd1a..73370509efab954e4362b0c104175f421d2f1d34 100644 (file)
@@ -1,4 +1,4 @@
-# SPDX-License-Identifier: LGPL-2.1+
+# SPDX-License-Identifier: LGPL-2.1-or-later
 
 from collections.abc import Iterable
 from pathlib import Path