From e07c22a7d46ca15c6e1d03f50170397178355104 Mon Sep 17 00:00:00 2001 From: Nicolas Meienberger Date: Tue, 21 Oct 2025 19:56:59 +0200 Subject: [PATCH] docs: add required licences --- .dockerignore | 5 +++++ Dockerfile | 4 ++++ LICENSES/BSD-2-Clause-Restic.txt | 25 +++++++++++++++++++++++++ NOTICES.md | 29 +++++++++++++++++++++++++++++ README.md | 15 +++++++++++++++ 5 files changed, 78 insertions(+) create mode 100644 LICENSES/BSD-2-Clause-Restic.txt create mode 100644 NOTICES.md diff --git a/.dockerignore b/.dockerignore index 35056a5..47deeba 100644 --- a/.dockerignore +++ b/.dockerignore @@ -18,3 +18,8 @@ !apps/**/public/** !packages/**/src/** + +# License files and attributions +!LICENSE +!NOTICES.md +!LICENSES/** diff --git a/Dockerfile b/Dockerfile index 5160ce0..2cbb392 100644 --- a/Dockerfile +++ b/Dockerfile @@ -59,6 +59,10 @@ COPY --from=builder /app/apps/server/dist ./ COPY --from=builder /app/apps/server/drizzle ./assets/migrations COPY --from=builder /app/apps/client/dist/client ./assets/frontend +# Include third-party licenses and attribution +COPY ./LICENSES ./LICENSES +COPY ./NOTICES.md ./NOTICES.md +COPY ./LICENSE ./LICENSE.md CMD ["bun", "./index.js"] diff --git a/LICENSES/BSD-2-Clause-Restic.txt b/LICENSES/BSD-2-Clause-Restic.txt new file mode 100644 index 0000000..29b2ee5 --- /dev/null +++ b/LICENSES/BSD-2-Clause-Restic.txt @@ -0,0 +1,25 @@ +BSD 2-Clause License + +Copyright (c) 2014, Alexander Neumann +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* 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/NOTICES.md b/NOTICES.md new file mode 100644 index 0000000..7880af5 --- /dev/null +++ b/NOTICES.md @@ -0,0 +1,29 @@ +# Third-Party Software Licenses and Attributions + +This software includes the following third-party components that are subject to separate license terms: + +## Restic + +- **Version**: [Specify the version you're shipping] +- **Copyright**: Copyright (c) 2014, Alexander Neumann +- **License**: BSD 2-Clause License +- **Status**: Included unchanged +- **Source**: https://github.com/restic/restic +- **Full License Text**: See [LICENSES/BSD-2-Clause-Restic.txt](LICENSES/BSD-2-Clause-Restic.txt) + +Restic is a backup program that is fast, secure, and efficient. It's included in this distribution as-is without any modifications. + +--- + +## License Information + +The main source code of this project is licensed under the GNU Affero General Public License v3. See the [LICENSE](LICENSE) file for details. + +Each third-party component retains its original copyright and license. When distributing this software: + +1. The original license of each component must be preserved +2. Copyright notices must be retained +3. A notice of changes (if any) must be provided for modified components +4. The original license file should be included with distributions + +For more information about a specific component's license, refer to the corresponding license file in the [LICENSES/](LICENSES/) directory. diff --git a/README.md b/README.md index ef4df5e..74a5b90 100644 --- a/README.md +++ b/README.md @@ -73,3 +73,18 @@ Once the container is running, you can access the web interface at `http:// +- **Status**: Included unchanged +- **License Text**: See [LICENSES/BSD-2-Clause-Restic.txt](LICENSES/BSD-2-Clause-Restic.txt) + +For a complete list of third-party software licenses and attributions, please refer to the [NOTICES.md](NOTICES.md) file.