From ca96ca6bdb9efba8d11d0d3fa3bc26663b1bb283 Mon Sep 17 00:00:00 2001 From: Raul Metsma Date: Wed, 9 Sep 2026 22:19:42 +0300 Subject: [PATCH] Add copyright header check and change to MIT-0 IB-8622 Signed-off-by: Raul Metsma --- .github/workflows/build.yml | 6 ++++++ LICENSE | 16 ++++++++++++++++ debian/copyright | 35 ++++++++++++++++++++++------------- debian/rules | 2 ++ install-open-eid.sh | 4 +++- uninstall-open-eid.sh | 3 +++ 6 files changed, 52 insertions(+), 14 deletions(-) create mode 100644 LICENSE diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0ed7b85..98bde0b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Estonian Information System Authority +# SPDX-License-Identifier: MIT-0 + name: CI on: [push, pull_request] env: @@ -28,3 +31,6 @@ jobs: with: name: deb path: ./*.deb + copyright: + name: Check copyright headers + uses: open-eid/.github/.github/workflows/copyright.yml@b2d87c7447ebcc01beb54c84f3978a81c1d64877 # master diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..62f99c7 --- /dev/null +++ b/LICENSE @@ -0,0 +1,16 @@ +MIT No Attribution + +Copyright Estonian Information System Authority + +Permission is hereby granted, free of charge, to any person obtaining a copy of this +software and associated documentation files (the "Software"), to deal in the Software +without restriction, including without limitation the rights to use, copy, modify, +merge, publish, distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so. + +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. 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. diff --git a/debian/copyright b/debian/copyright index 65669cf..27cac31 100644 --- a/debian/copyright +++ b/debian/copyright @@ -1,15 +1,24 @@ -Copyright 2012 Estonian Information System's Authority +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: open-eid +Upstream-Contact: info@ria.ee +Source: https://github.com/open-eid/linux-installer -This library is free software; you can redistribute it and/or -modify it under the terms of the GNU Lesser General Public -License as published by the Free Software Foundation; either -version 2.1 of the License, or (at your option) any later version. +Files: * +Copyright: Estonian Information System Authority +License: MIT-0 -This library is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -Lesser General Public License for more details. - -You should have received a copy of the GNU Lesser General Public -License with your system, in /usr/share/common-licenses/LGPL-2.1 -If not, see . +License: MIT-0 + Permission is hereby granted, free of charge, to any person obtaining a copy of + this software and associated documentation files (the "Software"), to deal in + the Software without restriction, including without limitation the rights to + use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies + of the Software, and to permit persons to whom the Software is furnished to do + so. + . + 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. 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. diff --git a/debian/rules b/debian/rules index 3b9f851..f44e8ea 100755 --- a/debian/rules +++ b/debian/rules @@ -1,4 +1,6 @@ #!/usr/bin/make -f +# SPDX-FileCopyrightText: Estonian Information System Authority +# SPDX-License-Identifier: MIT-0 %: dh $@ diff --git a/install-open-eid.sh b/install-open-eid.sh index 86a9e9a..a51c910 100755 --- a/install-open-eid.sh +++ b/install-open-eid.sh @@ -1,6 +1,8 @@ #!/bin/sh +# SPDX-FileCopyrightText: Estonian Information System Authority +# SPDX-License-Identifier: MIT-0 + # This script configures .deb based Linux repositories -# License: public domain # Script https://github.com/open-eid/linux-installer # See wiki https://github.com/open-eid/linux-installer/wiki/Linux-Packages set -e diff --git a/uninstall-open-eid.sh b/uninstall-open-eid.sh index 6f00b1b..2082d38 100755 --- a/uninstall-open-eid.sh +++ b/uninstall-open-eid.sh @@ -1,4 +1,7 @@ #!/bin/bash +# SPDX-FileCopyrightText: Estonian Information System Authority +# SPDX-License-Identifier: MIT-0 + # This script removes open-eid .deb packages sudo dpkg --purge \