From f4d74c610584784a6b066d65239abdd00e2252e5 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Fri, 1 Oct 2021 11:44:33 +0100 Subject: [PATCH] man: add licenses to all files that lack one Documentation is licensed under LGPL-2.1-or-later. Scripts are MIT to facilitate reuse. Examples are relicensed to CC0-1.0 to maximise copy-and-paste for users, with permission from authors. --- man/.dir-locals.el | 1 + man/50-xdg-data-dirs.sh | 1 + man/90-rearrange-path.py | 1 + man/check-os-release.py | 1 + man/check-os-release.sh | 1 + man/fido2-crypttab.sh | 2 ++ man/html.in | 1 + man/hwdb-usb-device.c | 2 ++ man/id128-app-specific.c | 2 ++ man/inotify-watch-tmp.c | 2 ++ man/journal-iterate-poll.c | 2 ++ man/journal-iterate-unique.c | 2 ++ man/journal-iterate-wait.c | 2 ++ man/man.in | 2 ++ man/path-documents.c | 2 ++ man/print-unit-path.c | 2 ++ man/repart.d.xml | 2 ++ man/sd-bus-container-append.c | 2 ++ man/sd-bus-container-read.c | 2 ++ man/send-unit-files-changed.c | 2 ++ man/tpm2-crypttab.sh | 2 ++ man/vtable-example.c | 2 ++ man/vtable-example.xml | 1 + man/yubikey-crypttab.sh | 2 ++ 24 files changed, 41 insertions(+) diff --git a/man/.dir-locals.el b/man/.dir-locals.el index c252bd37035..bd028d1ff01 100644 --- a/man/.dir-locals.el +++ b/man/.dir-locals.el @@ -1,3 +1,4 @@ +; SPDX-License-Identifier: LGPL-2.1-or-later ; special .c mode with reduced indentation for man pages ((c-mode . ((fill-column . 80) (c-basic-offset . 2) diff --git a/man/50-xdg-data-dirs.sh b/man/50-xdg-data-dirs.sh index ce062e394bf..02216abf6c6 100755 --- a/man/50-xdg-data-dirs.sh +++ b/man/50-xdg-data-dirs.sh @@ -1,4 +1,5 @@ #!/bin/bash +# SPDX-License-Identifier: CC0-1.0 # set the default value XDG_DATA_DIRS="${XDG_DATA_DIRS:-/usr/local/share/:/usr/share}" diff --git a/man/90-rearrange-path.py b/man/90-rearrange-path.py index 70ee982d475..50696a60e24 100755 --- a/man/90-rearrange-path.py +++ b/man/90-rearrange-path.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# SPDX-License-Identifier: CC0-1.0 """ diff --git a/man/check-os-release.py b/man/check-os-release.py index d009563f025..009eb8e4d53 100644 --- a/man/check-os-release.py +++ b/man/check-os-release.py @@ -1,4 +1,5 @@ #!/usr/bin/python +# SPDX-License-Identifier: CC0-1.0 import ast import re diff --git a/man/check-os-release.sh b/man/check-os-release.sh index d00c0f92689..35c8cac4bdd 100644 --- a/man/check-os-release.sh +++ b/man/check-os-release.sh @@ -1,4 +1,5 @@ #!/bin/sh -eu +# SPDX-License-Identifier: CC0-1.0 test -e /etc/os-release && os_release='/etc/os-release' || os_release='/usr/lib/os-release' . "${os_release}" diff --git a/man/fido2-crypttab.sh b/man/fido2-crypttab.sh index 49e536cae8d..f7d25bf88bb 100644 --- a/man/fido2-crypttab.sh +++ b/man/fido2-crypttab.sh @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: CC0-1.0 + # Enroll the security token in the LUKS2 volume. Replace /dev/sdXn by the # partition to use (e.g. /dev/sda1). sudo systemd-cryptenroll --fido2-device=auto /dev/sdXn diff --git a/man/html.in b/man/html.in index 3ae02bd77d3..5e545b74128 100755 --- a/man/html.in +++ b/man/html.in @@ -1,4 +1,5 @@ #!/bin/sh +# SPDX-License-Identifier: LGPL-2.1-or-later set -e if [ -z "$1" ]; then diff --git a/man/hwdb-usb-device.c b/man/hwdb-usb-device.c index a85c3bcf103..743c190f955 100644 --- a/man/hwdb-usb-device.c +++ b/man/hwdb-usb-device.c @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: CC0-1.0 */ + #include #include #include diff --git a/man/id128-app-specific.c b/man/id128-app-specific.c index b81e50ff326..39660f4f865 100644 --- a/man/id128-app-specific.c +++ b/man/id128-app-specific.c @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: CC0-1.0 */ + #include #include diff --git a/man/inotify-watch-tmp.c b/man/inotify-watch-tmp.c index ca790f0a99b..a1144790c69 100644 --- a/man/inotify-watch-tmp.c +++ b/man/inotify-watch-tmp.c @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: CC0-1.0 */ + #include #include #include diff --git a/man/journal-iterate-poll.c b/man/journal-iterate-poll.c index 100d07e2028..8205bfd858b 100644 --- a/man/journal-iterate-poll.c +++ b/man/journal-iterate-poll.c @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: CC0-1.0 */ + #include #include #include diff --git a/man/journal-iterate-unique.c b/man/journal-iterate-unique.c index fcf92e7b3f6..e9f273c6e50 100644 --- a/man/journal-iterate-unique.c +++ b/man/journal-iterate-unique.c @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: CC0-1.0 */ + #include #include #include diff --git a/man/journal-iterate-wait.c b/man/journal-iterate-wait.c index 0a23569f799..2b6d8a0fa83 100644 --- a/man/journal-iterate-wait.c +++ b/man/journal-iterate-wait.c @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: CC0-1.0 */ + #include #include #include diff --git a/man/man.in b/man/man.in index 40b7476bc5e..201c32dae25 100755 --- a/man/man.in +++ b/man/man.in @@ -1,4 +1,6 @@ #!/bin/sh +# SPDX-License-Identifier: LGPL-2.1-or-later + set -e if [ -z "$1" ]; then diff --git a/man/path-documents.c b/man/path-documents.c index 082d6c29fb4..13ea85a82ca 100644 --- a/man/path-documents.c +++ b/man/path-documents.c @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: CC0-1.0 */ + #include #include #include diff --git a/man/print-unit-path.c b/man/print-unit-path.c index 23b58a26e2a..41a21aab527 100644 --- a/man/print-unit-path.c +++ b/man/print-unit-path.c @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: CC0-1.0 */ + #include #include #include diff --git a/man/repart.d.xml b/man/repart.d.xml index d3059e9ec60..63d6d826948 100644 --- a/man/repart.d.xml +++ b/man/repart.d.xml @@ -1,6 +1,8 @@ + + diff --git a/man/sd-bus-container-append.c b/man/sd-bus-container-append.c index e350ea03d64..11238779ddc 100644 --- a/man/sd-bus-container-append.c +++ b/man/sd-bus-container-append.c @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: CC0-1.0 */ + #include int append_strings_to_message(sd_bus_message *m, const char *const *arr) { diff --git a/man/sd-bus-container-read.c b/man/sd-bus-container-read.c index b6c95f47fdf..75be5fa9bba 100644 --- a/man/sd-bus-container-read.c +++ b/man/sd-bus-container-read.c @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: CC0-1.0 */ + #include #include diff --git a/man/send-unit-files-changed.c b/man/send-unit-files-changed.c index aecfbcbed16..4d03dd1fe00 100644 --- a/man/send-unit-files-changed.c +++ b/man/send-unit-files-changed.c @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: CC0-1.0 */ + #include #define _cleanup_(f) __attribute__((cleanup(f))) diff --git a/man/tpm2-crypttab.sh b/man/tpm2-crypttab.sh index 41db2aeddda..a988fb6e0b3 100644 --- a/man/tpm2-crypttab.sh +++ b/man/tpm2-crypttab.sh @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: CC0-1.0 + # Enroll the TPM2 security chip in the LUKS2 volume, and bind it to PCR 7 # only. Replace /dev/sdXn by the partition to use (e.g. /dev/sda1). sudo systemd-cryptenroll --tpm2-device=auto --tpm2-pcrs=7 /dev/sdXn diff --git a/man/vtable-example.c b/man/vtable-example.c index dede12befdf..c6e73ae7c90 100644 --- a/man/vtable-example.c +++ b/man/vtable-example.c @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: CC0-1.0 */ + #include #include #include diff --git a/man/vtable-example.xml b/man/vtable-example.xml index a3cdeae704d..dc5fac4f267 100644 --- a/man/vtable-example.xml +++ b/man/vtable-example.xml @@ -1,5 +1,6 @@ + diff --git a/man/yubikey-crypttab.sh b/man/yubikey-crypttab.sh index 05e581b32b5..13084dbf122 100644 --- a/man/yubikey-crypttab.sh +++ b/man/yubikey-crypttab.sh @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: CC0-1.0 + # Destroy any old key on the Yubikey (careful!) ykman piv reset