From f4d74c610584784a6b066d65239abdd00e2252e5 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Fri, 1 Oct 2021 11:44:33 +0100 Subject: 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 c252bd3703..bd028d1ff0 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 ce062e394b..02216abf6c 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 70ee982d47..50696a60e2 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 d009563f02..009eb8e4d5 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 d00c0f9268..35c8cac4bd 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 49e536cae8..f7d25bf88b 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 3ae02bd77d..5e545b7412 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 a85c3bcf10..743c190f95 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 b81e50ff32..39660f4f86 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 ca790f0a99..a1144790c6 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 100d07e202..8205bfd858 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 fcf92e7b3f..e9f273c6e5 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 0a23569f79..2b6d8a0fa8 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 40b7476bc5..201c32dae2 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 082d6c29fb..13ea85a82c 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 23b58a26e2..41a21aab52 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 d3059e9ec6..63d6d82694 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 e350ea03d6..11238779dd 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 b6c95f47fd..75be5fa9bb 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 aecfbcbed1..4d03dd1fe0 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 41db2aeddd..a988fb6e0b 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 dede12befd..c6e73ae7c9 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 a3cdeae704..dc5fac4f26 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 05e581b32b..13084dbf12 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 -- cgit v1.2.1