From 734a29e0ca5a1212ca6539b87e58dfd77311192e Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Sun, 6 Nov 2022 00:02:09 +0100 Subject: [PATCH] test/data/: Add SPDX license information based on current knowledge Signed-off-by: Ralf Habacker --- LICENSES/LicenseRef-unknown.txt | 18 +++++++++ REUSE.toml | 69 ++++++++++++++++++++++++++++++++- 2 files changed, 86 insertions(+), 1 deletion(-) create mode 100644 LICENSES/LicenseRef-unknown.txt diff --git a/LICENSES/LicenseRef-unknown.txt b/LICENSES/LicenseRef-unknown.txt new file mode 100644 index 00000000..29704851 --- /dev/null +++ b/LICENSES/LicenseRef-unknown.txt @@ -0,0 +1,18 @@ +Several older source files were contributed to dbus without explicitly +specifying a license or a copyright holder. A reasonable assumption is +that those files are probably intended to be licensed under +"AFL-2.1 OR GPL-2.0-or-later". + +Other projects wishing to reuse those source files should do whatever +level of legal checking and research they consider to be appropriate. + +A note explaining why this license is useful has been added at +https://gitlab.freedesktop.org/dbus/dbus/-/merge_requests/304#note_2044026. +The following text has been slightly modified as several files are +affected: + +... +The fact that it’s not MIT-licensed would be machine-readable, and we +would avoid the situation where someone accidentally does add +SPDX-License-Identifier: MIT (or some other valid license) to the +file(s) later on in a second pass without realising the history here. diff --git a/REUSE.toml b/REUSE.toml index c1d1245b..b0c4a49d 100644 --- a/REUSE.toml +++ b/REUSE.toml @@ -9,7 +9,74 @@ SPDX-FileCopyrightText = ["© 2022-2023 Meson contributors"] SPDX-License-Identifier = "MIT" [[annotations]] -path = "doc/*.xml.in" +path = ["test/data/invalid-config-files/*.conf"] +precedence = "aggregate" +SPDX-FileCopyrightText = ["Copyright © 2018 Collabora Ltd"] +SPDX-License-Identifier = "AFL-2.1 OR GPL-2.0-or-later" + +[[annotations]] +path = [ + "doc/*.xml.in", + "test/data/auth/*-script", + "test/data/invalid-config-files/badselinux-2.conf", + "test/data/invalid-config-files/truncated-file.conf", + "test/data/invalid-config-files/badselinux-1.conf" +] precedence = "aggregate" SPDX-FileCopyrightText = ["(c) 2003 Red Hat, Inc."] SPDX-License-Identifier = "AFL-2.1 OR GPL-2.0-or-later" + +[[annotations]] +path = [ + "test/data/invalid-config-files/circular-1.conf", + "test/data/invalid-config-files/circular-2.conf", + "test/data/invalid-config-files/circular-3.conf", + "test/data/invalid-config-files/not-well-formed.conf" +] +precedence = "override" +SPDX-License-Identifier = "LicenseRef-unknown" + +[[annotations]] +path = [ + "test/data/auth/external-username.auth-script", + "test/data/auth/external-auto.auth-script" +] +precedence = "override" +SPDX-FileCopyrightText = ["Copyright © 2018 Collabora Ltd"] +SPDX-License-Identifier = "AFL-2.1 OR GPL-2.0-or-later" + +[[annotations]] +path = [ + "test/data/auth/cookie-sha1-username.auth-script", + "test/data/auth/cookie-sha1.auth-script" +] +precedence = "override" +SPDX-FileCopyrightText = ["Copyright © 2019 Collabora Ltd"] +SPDX-License-Identifier = "AFL-2.1 OR GPL-2.0-or-later" + +[[annotations]] +path = ["test/data/auth/fallback.auth-script"] +precedence = "override" +SPDX-License-Identifier = "LicenseRef-unknown" + +[[annotations]] +path = [ + "bus/*.in", + "test/data/equiv-config-files/*", + "test/data/equiv-config-files/basic/*", + "test/data/equiv-config-files/basic/basic.d/*", + "test/data/equiv-config-files/entities/*", + "test/data/equiv-config-files/entities/basic.d/*", + "test/data/invalid-service-files-system/*", + "test/data/sha-1/*", + "test/data/systemd-activation/*", + "test/data/valid-config-files-system/*", + "test/data/valid-config-files-system/system.d/*", + "test/data/valid-config-files/*", + "test/data/valid-config-files/basic.d/*", + "test/data/valid-service-files/*", + "test/data/valid-service-files-system/*", + "test/data/valid-service-files-system/system.d/*", +] +precedence = "aggregate" +SPDX-License-Identifier = "LicenseRef-unknown"