From 780df1e3488b42663cc51806171e9a89cc7452aa Mon Sep 17 00:00:00 2001 From: Ole-Morten Duesund Date: Mon, 29 Sep 2025 13:46:19 +0200 Subject: [PATCH] Add MIT license and fix Debian packaging MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add MIT License for maximum permissivity - Update Cargo.toml with complete package metadata including license - Update README.md with license information and explanation - Fix Debian package systemd service installation conflict (remove manual installation, let debhelper handle it automatically) The MIT License allows anyone to use, modify, and distribute this software with minimal restrictions. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- Cargo.toml | 8 ++++++++ LICENSE | 21 +++++++++++++++++++++ README.md | 4 +++- debian/rules | 4 +--- 4 files changed, 33 insertions(+), 4 deletions(-) create mode 100644 LICENSE diff --git a/Cargo.toml b/Cargo.toml index 15b3456..b6f258c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,6 +2,14 @@ name = "naas" version = "1.0.0" edition = "2021" +license = "MIT" +description = "No as a Service - A lightweight HTTP service that always says 'no'" +repository = "https://kode.naiv.no/olemd/naas" +homepage = "https://kode.naiv.no/olemd/naas" +authors = ["Ole-Morten Duesund "] +keywords = ["http", "service", "api", "no", "rust"] +categories = ["web-programming::http-server"] +readme = "README.md" [dependencies] diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..565bc1e --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2024 Ole-Morten Duesund + +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. \ No newline at end of file diff --git a/README.md b/README.md index 072c14b..7122dce 100644 --- a/README.md +++ b/README.md @@ -156,4 +156,6 @@ podman build --build-arg RUST_VERSION=1.75 -t naas:latest . ## License -MIT \ No newline at end of file +This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. + +The MIT License is a permissive license that allows you to do almost anything with this code, including using it in commercial projects, modifying it, and distributing it, as long as you include the original copyright notice. \ No newline at end of file diff --git a/debian/rules b/debian/rules index a4def83..3973aa6 100755 --- a/debian/rules +++ b/debian/rules @@ -15,6 +15,4 @@ override_dh_auto_clean: override_dh_auto_install: dh_auto_install # Install config file - install -D -m 644 debian/naas.default debian/naas/etc/default/naas - # Install systemd service - install -D -m 644 debian/naas.service debian/naas/lib/systemd/system/naas.service \ No newline at end of file + install -D -m 644 debian/naas.default debian/naas/etc/default/naas \ No newline at end of file