From 93dc446ead2062aa0be2b068f5aed1f98ea5de0e Mon Sep 17 00:00:00 2001 From: Amolith Date: Fri, 31 Dec 2021 12:49:26 -0500 Subject: [PATCH] Add licenses for REUSE compliance --- .gitignore | 4 ++++ .pre-commit-config.yaml | 9 +++++++++ LICENSES/BSD-2-Clause.txt | 9 +++++++++ funcs.go | 4 ++++ go.mod | 4 ++++ go.sum.license | 3 +++ handlers.go | 4 ++++ list.txt.license | 3 +++ main.go | 4 ++++ 9 files changed, 44 insertions(+) create mode 100644 .pre-commit-config.yaml create mode 100644 LICENSES/BSD-2-Clause.txt create mode 100644 go.sum.license create mode 100644 list.txt.license diff --git a/.gitignore b/.gitignore index 2045351..1196e79 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,6 @@ +# SPDX-FileCopyrightText: 2021 Amolith +# +# SPDX-License-Identifier: CC0-1.0 + # Big HTML webpage generated with pandoc index.html diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..11086b0 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,9 @@ +# SPDX-FileCopyrightText: 2021 Amolith +# +# SPDX-License-Identifier: CC0-1.0 + +repos: + - repo: https://github.com/fsfe/reuse-tool + rev: v0.13.0 + hooks: + - id: reuse diff --git a/LICENSES/BSD-2-Clause.txt b/LICENSES/BSD-2-Clause.txt new file mode 100644 index 0000000..5f662b3 --- /dev/null +++ b/LICENSES/BSD-2-Clause.txt @@ -0,0 +1,9 @@ +Copyright (c) + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/funcs.go b/funcs.go index 9cdc298..570492e 100644 --- a/funcs.go +++ b/funcs.go @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Amolith +// +// SPDX-License-Identifier: BSD-2-Clause + package main import ( diff --git a/go.mod b/go.mod index 78ad1f4..22cf217 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Amolith +// +// SPDX-License-Identifier: CC0-1.0 + module git.sr.ht/~amolith/go-webring go 1.17 diff --git a/go.sum.license b/go.sum.license new file mode 100644 index 0000000..251b1d3 --- /dev/null +++ b/go.sum.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2021 Amolith + +SPDX-License-Identifier: CC0-1.0 \ No newline at end of file diff --git a/handlers.go b/handlers.go index afa4530..d238907 100644 --- a/handlers.go +++ b/handlers.go @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Amolith +// +// SPDX-License-Identifier: BSD-2-Clause + package main import ( diff --git a/list.txt.license b/list.txt.license new file mode 100644 index 0000000..251b1d3 --- /dev/null +++ b/list.txt.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2021 Amolith + +SPDX-License-Identifier: CC0-1.0 \ No newline at end of file diff --git a/main.go b/main.go index c7672bc..a855341 100644 --- a/main.go +++ b/main.go @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2021 Amolith +// +// SPDX-License-Identifier: BSD-2-Clause + package main import (