From: David Runge Date: Wed, 18 Sep 2024 12:14:16 +0000 (+0200) Subject: Add reuse integration for ensuring license compliance X-Git-Tag: v25~282^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6bb7fa7fdc58bc75ba1fdfa2da76f5d1b15fae51;p=thirdparty%2Fmkosi.git Add reuse integration for ensuring license compliance 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 --- diff --git a/LICENSE.GPL2 b/LICENSES/GPL-2.0-only.txt similarity index 100% rename from LICENSE.GPL2 rename to LICENSES/GPL-2.0-only.txt diff --git a/LICENSE b/LICENSES/LGPL-2.1-or-later.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 index 000000000..79ed1e5a2 --- /dev/null +++ b/LICENSES/OFL-1.1.txt @@ -0,0 +1,93 @@ +Copyright 2014 The Heebo Project Authors (https://github.com/OdedEzer/heebo) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +https://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/LICENSES/PSF-2.0.txt b/LICENSES/PSF-2.0.txt new file mode 100644 index 000000000..8a38e525c --- /dev/null +++ b/LICENSES/PSF-2.0.txt @@ -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 index 000000000..d84d24343 --- /dev/null +++ b/REUSE.toml @@ -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" diff --git a/mkosi/distributions/azure.py b/mkosi/distributions/azure.py index 2cc9f2ea1..985251ee9 100644 --- a/mkosi/distributions/azure.py +++ b/mkosi/distributions/azure.py @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: LGPL-2.1+ +# SPDX-License-Identifier: LGPL-2.1-or-later from collections.abc import Iterable diff --git a/mkosi/distributions/kali.py b/mkosi/distributions/kali.py index d0ccbb089..73370509e 100644 --- a/mkosi/distributions/kali.py +++ b/mkosi/distributions/kali.py @@ -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