From: Egor Date: Wed, 4 Jun 2025 19:33:38 +0000 (+0300) Subject: REUSE compliance X-Git-Url: https://git.patchysicp.xyz/?a=commitdiff_plain;h=3ce53f1100ac5f6e3916ec88cd069b86227d71ff;p=patchyircd.git REUSE compliance --- diff --git a/LICENSES/GPL-2.0-or-later.txt b/LICENSES/GPL-2.0-or-later.txt new file mode 120000 index 0000000..012065c --- /dev/null +++ b/LICENSES/GPL-2.0-or-later.txt @@ -0,0 +1 @@ +../COPYING \ No newline at end of file diff --git a/LICENSES/MIT.txt b/LICENSES/MIT.txt new file mode 100644 index 0000000..7da1ab3 --- /dev/null +++ b/LICENSES/MIT.txt @@ -0,0 +1,18 @@ +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, subject to +the following conditions: + +The above copyright notice and this permission notice shall be included +in all copies or substantial portions of the Software. + +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/LICENSES/Unlicense.txt b/LICENSES/Unlicense.txt new file mode 100644 index 0000000..68a49da --- /dev/null +++ b/LICENSES/Unlicense.txt @@ -0,0 +1,24 @@ +This is free and unencumbered software released into the public domain. + +Anyone is free to copy, modify, publish, use, compile, sell, or +distribute this software, either in source code form or as a compiled +binary, for any purpose, commercial or non-commercial, and by any +means. + +In jurisdictions that recognize copyright laws, the author or authors +of this software dedicate any and all copyright interest in the +software to the public domain. We make this dedication for the benefit +of the public at large and to the detriment of our heirs and +successors. We intend this dedication to be an overt act of +relinquishment in perpetuity of all present and future rights to this +software under copyright law. + +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 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. + +For more information, please refer to diff --git a/README.md b/README.md index f9650a6..eb193d4 100644 --- a/README.md +++ b/README.md @@ -84,3 +84,21 @@ defaulting to `DATADIR/patchyircd/lua`, or `lua`. If you're installing system-wide, the following is sufficient: `-DLOCALSTATEDIR=/var -DDATADIR=/usr/share` + +## Copyright +Copyright (c) 2022, 2024 Sam Smith +Copyright (c) 2022-2025 Egor +SPDX-License-Identifier: GPL-2.0-or-later + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This program 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 General Public License for more details. + +You should have received a copy of the GNU General Public License along +with this program; if not, see . diff --git a/REUSE.toml b/REUSE.toml new file mode 100644 index 0000000..26c3a13 --- /dev/null +++ b/REUSE.toml @@ -0,0 +1,27 @@ +version = 1 + +[[annotations]] +path = [ + ".gitignore", + "data/.gitignore", + + "Makefile", + "config.example.mk", + + "data/help.example.txt", + + "vg", + "libtls.suppressions", +] +SPDX-FileCopyrightText = "Copyright (c) 2022-2025 Egor" +SPDX-License-Identifier = "Unlicense" + +# this is to avoid a stray line being picked up as FileCopyrightText +[[annotations]] +path = "src/crypt_blowfish.cpp" +precedence = "override" +SPDX-FileCopyrightText = [ + "Copyright (c) 1998-2014 Solar Designer", + "Copyright (c) 2005-2020 Rich Felker, et al.", +] +SPDX-License-Identifier = "MIT" diff --git a/src/main.cpp b/src/main.cpp index dd9e6ee..1c8058d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -194,12 +194,36 @@ static void determine_hostname(void) } } +static void show_license(void) +{ + fprintf(stderr, +"PatchyIRCD 0.0.1\n" +"Copyright (c) 2022, 2024 Sam Smith\n" +"Copyright (c) 2022-2025 Egor\n" +"\n" +"This program is free software; you can redistribute it and/or modify\n" +"it under the terms of the GNU General Public License as published by\n" +"the Free Software Foundation; either version 2 of the License, or\n" +"(at your option) any later version.\n" +"\n" +"This program is distributed in the hope that it will be useful,\n" +"but WITHOUT ANY WARRANTY; without even the implied warranty of\n" +"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" +"GNU General Public License for more details.\n" +"\n" +"You should have received a copy of the GNU General Public License along\n" +"with this program; if not, see .\n"); +} + int main(int argc, char *argv[]) { #define MAX_LISTENERS 16 struct listener listeners[MAX_LISTENERS]; int listener_count = 0; setlocale(LC_ALL, "C"); + + show_license(); + fprintf(stderr, "[PatchyIRCD]: Starting up...\n"); net_init();