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.
This commit is contained in:
Luca Boccassi 2021-10-01 11:44:33 +01:00
parent 948def4af6
commit f4d74c6105
24 changed files with 41 additions and 0 deletions

View file

@ -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)

View file

@ -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}"

View file

@ -1,4 +1,5 @@
#!/usr/bin/env python3
# SPDX-License-Identifier: CC0-1.0
"""

View file

@ -1,4 +1,5 @@
#!/usr/bin/python
# SPDX-License-Identifier: CC0-1.0
import ast
import re

View file

@ -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}"

View file

@ -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

View file

@ -1,4 +1,5 @@
#!/bin/sh
# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
if [ -z "$1" ]; then

View file

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: CC0-1.0 */
#include <stdio.h>
#include <stdint.h>
#include <sd-hwdb.h>

View file

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: CC0-1.0 */
#include <stdio.h>
#include <systemd/sd-id128.h>

View file

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: CC0-1.0 */
#include <stdio.h>
#include <string.h>
#include <sys/inotify.h>

View file

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: CC0-1.0 */
#include <poll.h>
#include <time.h>
#include <systemd/sd-journal.h>

View file

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: CC0-1.0 */
#include <stdio.h>
#include <string.h>
#include <systemd/sd-journal.h>

View file

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: CC0-1.0 */
#include <stdio.h>
#include <string.h>
#include <systemd/sd-journal.h>

View file

@ -1,4 +1,6 @@
#!/bin/sh
# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
if [ -z "$1" ]; then

View file

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: CC0-1.0 */
#include <stdio.h>
#include <stdlib.h>
#include <sd-path.h>

View file

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: CC0-1.0 */
#include <stdio.h>
#include <string.h>
#include <unistd.h>

View file

@ -1,6 +1,8 @@
<?xml version='1.0'?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
<!-- SPDX-License-Identifier: LGPL-2.1-or-later -->
<refentry id="repart.d" conditional='ENABLE_REPART'
xmlns:xi="http://www.w3.org/2001/XInclude">

View file

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: CC0-1.0 */
#include <systemd/sd-bus.h>
int append_strings_to_message(sd_bus_message *m, const char *const *arr) {

View file

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: CC0-1.0 */
#include <stdio.h>
#include <systemd/sd-bus.h>

View file

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: CC0-1.0 */
#include <systemd/sd-bus.h>
#define _cleanup_(f) __attribute__((cleanup(f)))

View file

@ -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

View file

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: CC0-1.0 */
#include <errno.h>
#include <stdbool.h>
#include <stddef.h>

View file

@ -1,5 +1,6 @@
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<!-- SPDX-License-Identifier: LGPL-2.1-or-later -->
<node>
<interface name="org.freedesktop.DBus.Peer">
<method name="Ping"/>

View file

@ -1,3 +1,5 @@
# SPDX-License-Identifier: CC0-1.0
# Destroy any old key on the Yubikey (careful!)
ykman piv reset