Skip to content

Commit

Permalink
GHA: add a REUSE license and copyright CI job
Browse files Browse the repository at this point in the history
Closes #34
  • Loading branch information
bagder committed Jun 21, 2023
1 parent 674e2b7 commit 24cc5f8
Show file tree
Hide file tree
Showing 8 changed files with 138 additions and 7 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/reuse.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
# SPDX-FileCopyrightText: 2022 Free Software Foundation Europe e.V. <https://fsfe.org>
#
# SPDX-License-Identifier: curl

name: REUSE compliance

on:
push:
branches:
- master
- '*/ci'
pull_request:
branches:
- master

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true

permissions: {}

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: REUSE Compliance Check
uses: fsfe/reuse-action@v1
19 changes: 19 additions & 0 deletions .reuse/dep5
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: roffit
Upstream-Contact: Daniel Stenberg <daniel@haxx.se>
Source: https://curl.se

# Tests
Files: testpage.1 testpage.output
Copyright: Daniel Stenberg, <daniel@haxx.se>, et al.
License: curl

# Docs
Files: README.md CHANGES
Copyright: Daniel Stenberg, <daniel@haxx.se>, et al.
License: curl

# Meta
Files: .gitignore
Copyright: Daniel Stenberg, <daniel@haxx.se>, et al.
License: curl
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
COPYRIGHT AND PERMISSION NOTICE

Copyright (c) 2004 - 2018, Daniel Stenberg, <daniel@haxx.se>.
Copyright (c) 2004 - 2023, Daniel Stenberg, <daniel@haxx.se>.

All rights reserved.

Expand Down
22 changes: 22 additions & 0 deletions LICENSES/curl.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
COPYRIGHT AND PERMISSION NOTICE

Copyright (C) Daniel Stenberg, <daniel@haxx.se>, and many
contributors, see the THANKS file.

All rights reserved.

Permission to use, copy, modify, and distribute this software for any purpose
with or without fee is hereby granted, provided that the above copyright
notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
OR OTHER DEALINGS IN THE SOFTWARE.

Except as contained in this notice, the name of a copyright holder shall not
be used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization of the copyright holder.
17 changes: 17 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
##########################################################################
#
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
#
# This software is licensed as described in the file LICENSE, which
# you should have received as part of this distribution.
#
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
# copies of the Software, and permit persons to whom the Software is
# furnished to do so, under the terms of the COPYING file.
#
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
# KIND, either express or implied.
#
# SPDX-License-Identifier: curl
#
##########################################################################
# default installation directory
INSTALLDIR=/usr/local/bin

Expand Down
17 changes: 17 additions & 0 deletions release.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
#!/usr/bin/perl
##########################################################################
#
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
#
# This software is licensed as described in the file LICENSE, which
# you should have received as part of this distribution.
#
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
# copies of the Software, and permit persons to whom the Software is
# furnished to do so, under the terms of the COPYING file.
#
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
# KIND, either express or implied.
#
# SPDX-License-Identifier: curl
#
##########################################################################

my @files=('CHANGES', 'roffit', 'roffit.1', 'LICENSE', 'Makefile', 'README');

Expand Down
21 changes: 16 additions & 5 deletions roffit
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
#!/usr/bin/env perl
##########################################################################
#
# roffit: convert man page source files to HTML
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
#
# Read an nroff file. Output a HTML file.
# This software is licensed as described in the file LICENSE, which
# you should have received as part of this distribution.
#
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
# copies of the Software, and permit persons to whom the Software is
# furnished to do so, under the terms of the COPYING file.
#
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
# KIND, either express or implied.
#
# This is a very simple script, but I use it on very simple man pages as I've
# found no decent script that makes really nice web pages.
# SPDX-License-Identifier: curl
#
##########################################################################
#
# Read an nroff file. Output a HTML file.
#
# Author: Daniel Stenberg <daniel@haxx.se>
# Web: https://daniel.haxx.se/projects/roffit

my $version = "0.13";
Expand Down
18 changes: 17 additions & 1 deletion roffit.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
.\" **************************************************************************
.\"
.\" Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
.\"
.\" This software is licensed as described in the file LICENSE, which
.\" you should have received as part of this distribution.
.\"
.\" You may opt to use, copy, modify, merge, publish, distribute and/or sell
.\" copies of the Software, and permit persons to whom the Software is
.\" furnished to do so, under the terms of the COPYING file.
.\"
.\" This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
.\" KIND, either express or implied.
.\"
.\" SPDX-License-Identifier: curl
.\"
.\" **************************************************************************
.\" You can view this file with:
.\" nroff -man roffit.1
.\" Written by Daniel Stenberg
.\"
.TH roffit 1 "October 5 2021" "roffit 0.13" "roffit Manual"
.SH NAME
Expand Down

0 comments on commit 24cc5f8

Please sign in to comment.