From 0a81a0474607e38e5365ed3269b51825857f0239 Mon Sep 17 00:00:00 2001 From: MrBlake Date: Fri, 13 Nov 2026 15:52:13 +0100 Subject: [PATCH] docs: state fork, original authors and Apache 2.0 license Follow the attribution requirements of the Apache License 2.0 for this fork of ICTU/netbox_slm: - add a NOTICE file with the original copyright (ICTU) and the fork's notice - mark every file changed since upstream 1.9.0 as modified (section 4b); the original copyright header in __init__.py is kept - add a visible fork notice and a section on origin, credits, changes and license to the README - point project URLs to this fork (with an Upstream link), list ICTU as author and MrBlake as maintainer, and stop showing ICTU's email address as the plugin contact - ship NOTICE in the package and drop the MANIFEST entry for the removed SECURITY.md Bump version to 1.14.1. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 8 +++++ MANIFEST.in | 2 +- NOTICE | 16 +++++++++ README.md | 34 ++++++++++++++----- netbox_slm/__init__.py | 6 ++-- netbox_slm/api/serializers.py | 2 ++ netbox_slm/api/urls.py | 2 ++ netbox_slm/api/views.py | 2 ++ netbox_slm/filtersets.py | 2 ++ netbox_slm/forms/__init__.py | 2 ++ netbox_slm/forms/software_license.py | 2 ++ netbox_slm/forms/software_product.py | 2 ++ .../forms/software_product_installation.py | 2 ++ netbox_slm/forms/software_product_version.py | 2 ++ netbox_slm/models.py | 2 ++ netbox_slm/navigation.py | 2 ++ netbox_slm/tables.py | 2 ++ .../installations_card_include.html | 2 ++ .../templates/netbox_slm/softwarelicense.html | 2 ++ .../templates/netbox_slm/softwareproduct.html | 2 ++ .../softwareproductinstallation.html | 2 ++ .../netbox_slm/softwareproductversion.html | 2 ++ netbox_slm/tests/base.py | 2 ++ netbox_slm/tests/test_functional.py | 2 ++ netbox_slm/tests/test_models.py | 2 ++ netbox_slm/urls.py | 2 ++ netbox_slm/views/__init__.py | 2 ++ netbox_slm/views/software_license.py | 2 ++ pyproject.toml | 12 +++++-- 29 files changed, 109 insertions(+), 15 deletions(-) create mode 100644 NOTICE diff --git a/CHANGELOG.md b/CHANGELOG.md index 8641c02..cc32aa2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,15 @@ + # Changelog ## [Unreleased] +### Changed + +* State the fork, the original authors and the Apache 2.0 license clearly in the README and a new NOTICE file +* Mark files changed in this fork as modified (Apache License 2.0, section 4b) +* Point project URLs to this fork and list ICTU as original author and MrBlake as maintainer + ### Fixed * Add the missing migration for the platform constraint's error message (verified against NetBox 4.7.2) diff --git a/MANIFEST.in b/MANIFEST.in index 7647d68..0378e7b 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,6 +1,6 @@ include LICENSE +include NOTICE include README.md -include SECURITY.md graft netbox_slm prune netbox_slm/tests global-exclude *.py[cod] diff --git a/NOTICE b/NOTICE new file mode 100644 index 0000000..9d915ef --- /dev/null +++ b/NOTICE @@ -0,0 +1,16 @@ +NetBox SLM (fork) +Copyright 2022-2025 ICTU +Modifications Copyright 2026 MrBlake + +This product is a modified version of NetBox SLM by ICTU +(https://github.com/ICTU/netbox_slm), based on its release 1.9.0. + +The original work is licensed under the Apache License, Version 2.0. The +modifications are distributed under the same license; see the LICENSE file. + +Files that were changed in this fork carry a notice stating that they were +modified. The complete history, including all original commits, is available at +https://git.mrblake.cc/MrBlake/NetBox-SLM + +This fork is maintained independently and is not affiliated with or endorsed +by ICTU. diff --git a/README.md b/README.md index f215274..1fa14a3 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,10 @@ Software lifecycle and license management for NetBox: software products, versions, installations, licenses and certificates — with expiry notifications and optional tenant assignment. +> **Fork notice:** This is a modified version of [NetBox SLM](https://github.com/ICTU/netbox_slm) +> by **ICTU**, licensed under the [Apache License 2.0](LICENSE). It is maintained independently +> and is not affiliated with or endorsed by ICTU. See [Origin, license and credits](#origin-license-and-credits). + | | | |---|---| | **Plugin name** | `netbox_slm` | @@ -204,15 +208,29 @@ and can be filtered by e.g. `type`, `common_name`, `issuer`, `device_id`, `virtualmachine_id`, `tenant_id`, `expiration_date__lte` and `expiration_date__gte`. -## Origin and license +## Origin, license and credits -This repository is based on the original project -[ICTU/netbox_slm](https://github.com/ICTU/netbox_slm). **ICTU** is the original -author and publisher; [Mart Visser](https://github.com/MartVisser) is named as -the contact in the original project. +**Original project:** [NetBox SLM](https://github.com/ICTU/netbox_slm) by **ICTU** +(Copyright 2022-2025 ICTU). The original plugin was started by Hedde van der Heide +and developed by ICTU and its contributors; [Mart Visser](https://github.com/MartVisser) +is named as the contact of the original project. This fork is based on release 1.9.0, +and the complete original commit history is retained in this repository. -The changes in this fork are maintained at +**This fork:** maintained by MrBlake at [git.mrblake.cc/MrBlake/NetBox-SLM](https://git.mrblake.cc/MrBlake/NetBox-SLM). +It is not affiliated with or endorsed by ICTU. Please report problems with this fork +[here](https://git.mrblake.cc/MrBlake/NetBox-SLM/issues), not to the original project. -Licensed under the [Apache License 2.0](LICENSE). Notices of the original -authors are retained. +**Main changes compared to the original** (details in [CHANGELOG.md](CHANGELOG.md)): + +- Certificate management with expiry reminders and import from PEM/DER files +- Tenant group and tenant assignment for licenses +- Renewal intervals, license files, license keys and vendor portal links +- License expiry notifications in NetBox and optionally by email +- German translation +- Support for NetBox 4.6 and 4.7, installation via Git/pip instead of Docker + +**License:** The original work and all modifications are licensed under the +[Apache License, Version 2.0](LICENSE). The [NOTICE](NOTICE) file lists the copyright +holders. The original copyright and license notices are retained, and every file +changed in this fork carries a notice stating that it was modified. diff --git a/netbox_slm/__init__.py b/netbox_slm/__init__.py index afc765e..3fcf426 100644 --- a/netbox_slm/__init__.py +++ b/netbox_slm/__init__.py @@ -1,5 +1,6 @@ """ Copyright 2022-2025 ICTU +Modifications Copyright 2026 MrBlake (NetBox-SLM fork, https://git.mrblake.cc/MrBlake/NetBox-SLM) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -17,7 +18,7 @@ limitations under the License. from netbox.plugins import PluginConfig from django.utils.translation import gettext, gettext_lazy as _ -__version__ = "1.14.0" +__version__ = "1.14.1" class SLMConfig(PluginConfig): @@ -25,8 +26,7 @@ class SLMConfig(PluginConfig): verbose_name = _("Licences") version = __version__ description = _("Licence Management NetBox Plugin.") - author = "ICTU" - author_email = "open-source-projects@ictu.nl" + author = "ICTU (original), MrBlake (fork)" base_url = "slm" required_settings = [] default_settings = { diff --git a/netbox_slm/api/serializers.py b/netbox_slm/api/serializers.py index c95210a..aa8fe94 100644 --- a/netbox_slm/api/serializers.py +++ b/netbox_slm/api/serializers.py @@ -1,3 +1,5 @@ +# Modified by MrBlake for the NetBox-SLM fork: https://git.mrblake.cc/MrBlake/NetBox-SLM +# Based on ICTU/netbox_slm (Apache License 2.0). See the LICENSE and NOTICE files. from django.core.files.uploadedfile import UploadedFile from rest_framework import serializers from rest_framework.serializers import SerializerMethodField, HyperlinkedIdentityField diff --git a/netbox_slm/api/urls.py b/netbox_slm/api/urls.py index 42fd788..59ba119 100644 --- a/netbox_slm/api/urls.py +++ b/netbox_slm/api/urls.py @@ -1,3 +1,5 @@ +# Modified by MrBlake for the NetBox-SLM fork: https://git.mrblake.cc/MrBlake/NetBox-SLM +# Based on ICTU/netbox_slm (Apache License 2.0). See the LICENSE and NOTICE files. from netbox.api.routers import NetBoxRouter from netbox_slm.api.views import ( NetboxSLMRootView, diff --git a/netbox_slm/api/views.py b/netbox_slm/api/views.py index 14b6e64..4581950 100644 --- a/netbox_slm/api/views.py +++ b/netbox_slm/api/views.py @@ -1,3 +1,5 @@ +# Modified by MrBlake for the NetBox-SLM fork: https://git.mrblake.cc/MrBlake/NetBox-SLM +# Based on ICTU/netbox_slm (Apache License 2.0). See the LICENSE and NOTICE files. from rest_framework.routers import APIRootView from netbox.api.viewsets import NetBoxModelViewSet diff --git a/netbox_slm/filtersets.py b/netbox_slm/filtersets.py index 9d818cc..6cdbba0 100644 --- a/netbox_slm/filtersets.py +++ b/netbox_slm/filtersets.py @@ -1,3 +1,5 @@ +# Modified by MrBlake for the NetBox-SLM fork: https://git.mrblake.cc/MrBlake/NetBox-SLM +# Based on ICTU/netbox_slm (Apache License 2.0). See the LICENSE and NOTICE files. from django.db.models import Q from django.utils.translation import gettext_lazy as _ from django_filters import CharFilter, DateFilter, ModelMultipleChoiceFilter, MultipleChoiceFilter, NumberFilter diff --git a/netbox_slm/forms/__init__.py b/netbox_slm/forms/__init__.py index 33d025e..85a44ed 100644 --- a/netbox_slm/forms/__init__.py +++ b/netbox_slm/forms/__init__.py @@ -1,3 +1,5 @@ +# Modified by MrBlake for the NetBox-SLM fork: https://git.mrblake.cc/MrBlake/NetBox-SLM +# Based on ICTU/netbox_slm (Apache License 2.0). See the LICENSE and NOTICE files. from .software_license import ( SoftwareLicenseForm, SoftwareLicenseFilterForm, diff --git a/netbox_slm/forms/software_license.py b/netbox_slm/forms/software_license.py index b56aaf2..8dd1354 100644 --- a/netbox_slm/forms/software_license.py +++ b/netbox_slm/forms/software_license.py @@ -1,3 +1,5 @@ +# Modified by MrBlake for the NetBox-SLM fork: https://git.mrblake.cc/MrBlake/NetBox-SLM +# Based on ICTU/netbox_slm (Apache License 2.0). See the LICENSE and NOTICE files. from django.forms import CharField, DateField, ChoiceField, IntegerField, NullBooleanField, Textarea from django.urls import reverse_lazy from django.utils.translation import gettext_lazy as _ diff --git a/netbox_slm/forms/software_product.py b/netbox_slm/forms/software_product.py index 022772e..5d1ad4c 100644 --- a/netbox_slm/forms/software_product.py +++ b/netbox_slm/forms/software_product.py @@ -1,3 +1,5 @@ +# Modified by MrBlake for the NetBox-SLM fork: https://git.mrblake.cc/MrBlake/NetBox-SLM +# Based on ICTU/netbox_slm (Apache License 2.0). See the LICENSE and NOTICE files. from django.forms import CharField from django.utils.translation import gettext_lazy as _ diff --git a/netbox_slm/forms/software_product_installation.py b/netbox_slm/forms/software_product_installation.py index 5cf8ad3..c9afbf0 100644 --- a/netbox_slm/forms/software_product_installation.py +++ b/netbox_slm/forms/software_product_installation.py @@ -1,3 +1,5 @@ +# Modified by MrBlake for the NetBox-SLM fork: https://git.mrblake.cc/MrBlake/NetBox-SLM +# Based on ICTU/netbox_slm (Apache License 2.0). See the LICENSE and NOTICE files. from django.forms import ValidationError from django.urls import reverse_lazy from django.utils.translation import gettext_lazy as _ diff --git a/netbox_slm/forms/software_product_version.py b/netbox_slm/forms/software_product_version.py index 32f2ecf..06778cb 100644 --- a/netbox_slm/forms/software_product_version.py +++ b/netbox_slm/forms/software_product_version.py @@ -1,3 +1,5 @@ +# Modified by MrBlake for the NetBox-SLM fork: https://git.mrblake.cc/MrBlake/NetBox-SLM +# Based on ICTU/netbox_slm (Apache License 2.0). See the LICENSE and NOTICE files. from django.forms import DateField, CharField, MultipleChoiceField from django.urls import reverse_lazy from django.utils.translation import gettext_lazy as _ diff --git a/netbox_slm/models.py b/netbox_slm/models.py index 8f6e24b..b37a1d7 100644 --- a/netbox_slm/models.py +++ b/netbox_slm/models.py @@ -1,3 +1,5 @@ +# Modified by MrBlake for the NetBox-SLM fork: https://git.mrblake.cc/MrBlake/NetBox-SLM +# Based on ICTU/netbox_slm (Apache License 2.0). See the LICENSE and NOTICE files. import calendar from datetime import timedelta diff --git a/netbox_slm/navigation.py b/netbox_slm/navigation.py index a9a692d..6b5b42a 100644 --- a/netbox_slm/navigation.py +++ b/netbox_slm/navigation.py @@ -1,3 +1,5 @@ +# Modified by MrBlake for the NetBox-SLM fork: https://git.mrblake.cc/MrBlake/NetBox-SLM +# Based on ICTU/netbox_slm (Apache License 2.0). See the LICENSE and NOTICE files. from netbox.plugins import PluginMenuButton, PluginMenuItem, PluginMenu, get_plugin_config from django.utils.translation import gettext_lazy as _ from . import SLMConfig diff --git a/netbox_slm/tables.py b/netbox_slm/tables.py index c2f7fb8..2442e1e 100644 --- a/netbox_slm/tables.py +++ b/netbox_slm/tables.py @@ -1,3 +1,5 @@ +# Modified by MrBlake for the NetBox-SLM fork: https://git.mrblake.cc/MrBlake/NetBox-SLM +# Based on ICTU/netbox_slm (Apache License 2.0). See the LICENSE and NOTICE files. import django_tables2 as tables from django.db.models import Count, F, Value from django.utils.translation import gettext_lazy as _ diff --git a/netbox_slm/templates/netbox_slm/installations_card_include.html b/netbox_slm/templates/netbox_slm/installations_card_include.html index 3b7d09a..1e0051d 100644 --- a/netbox_slm/templates/netbox_slm/installations_card_include.html +++ b/netbox_slm/templates/netbox_slm/installations_card_include.html @@ -1,3 +1,5 @@ +{# Modified by MrBlake for the NetBox-SLM fork: https://git.mrblake.cc/MrBlake/NetBox-SLM #} +{# Based on ICTU/netbox_slm (Apache License 2.0). See the LICENSE and NOTICE files. #} {% load helpers %} {% load i18n %} diff --git a/netbox_slm/templates/netbox_slm/softwarelicense.html b/netbox_slm/templates/netbox_slm/softwarelicense.html index 10aeece..d882df6 100644 --- a/netbox_slm/templates/netbox_slm/softwarelicense.html +++ b/netbox_slm/templates/netbox_slm/softwarelicense.html @@ -1,3 +1,5 @@ +{# Modified by MrBlake for the NetBox-SLM fork: https://git.mrblake.cc/MrBlake/NetBox-SLM #} +{# Based on ICTU/netbox_slm (Apache License 2.0). See the LICENSE and NOTICE files. #} {% extends 'generic/object.html' %} {% load buttons %} {% load static %} diff --git a/netbox_slm/templates/netbox_slm/softwareproduct.html b/netbox_slm/templates/netbox_slm/softwareproduct.html index 58f1c71..baf122b 100644 --- a/netbox_slm/templates/netbox_slm/softwareproduct.html +++ b/netbox_slm/templates/netbox_slm/softwareproduct.html @@ -1,3 +1,5 @@ +{# Modified by MrBlake for the NetBox-SLM fork: https://git.mrblake.cc/MrBlake/NetBox-SLM #} +{# Based on ICTU/netbox_slm (Apache License 2.0). See the LICENSE and NOTICE files. #} {% extends 'generic/object.html' %} {% load buttons %} {% load static %} diff --git a/netbox_slm/templates/netbox_slm/softwareproductinstallation.html b/netbox_slm/templates/netbox_slm/softwareproductinstallation.html index dbb82ae..e192fad 100644 --- a/netbox_slm/templates/netbox_slm/softwareproductinstallation.html +++ b/netbox_slm/templates/netbox_slm/softwareproductinstallation.html @@ -1,3 +1,5 @@ +{# Modified by MrBlake for the NetBox-SLM fork: https://git.mrblake.cc/MrBlake/NetBox-SLM #} +{# Based on ICTU/netbox_slm (Apache License 2.0). See the LICENSE and NOTICE files. #} {% extends 'generic/object.html' %} {% load buttons %} {% load static %} diff --git a/netbox_slm/templates/netbox_slm/softwareproductversion.html b/netbox_slm/templates/netbox_slm/softwareproductversion.html index 2602157..ef32a18 100644 --- a/netbox_slm/templates/netbox_slm/softwareproductversion.html +++ b/netbox_slm/templates/netbox_slm/softwareproductversion.html @@ -1,3 +1,5 @@ +{# Modified by MrBlake for the NetBox-SLM fork: https://git.mrblake.cc/MrBlake/NetBox-SLM #} +{# Based on ICTU/netbox_slm (Apache License 2.0). See the LICENSE and NOTICE files. #} {% extends 'generic/object.html' %} {% load buttons %} {% load static %} diff --git a/netbox_slm/tests/base.py b/netbox_slm/tests/base.py index a8e5053..ab95a32 100644 --- a/netbox_slm/tests/base.py +++ b/netbox_slm/tests/base.py @@ -1,3 +1,5 @@ +# Modified by MrBlake for the NetBox-SLM fork: https://git.mrblake.cc/MrBlake/NetBox-SLM +# Based on ICTU/netbox_slm (Apache License 2.0). See the LICENSE and NOTICE files. from django.test import TestCase from dcim.models import Device, DeviceRole, DeviceType, Manufacturer, Site diff --git a/netbox_slm/tests/test_functional.py b/netbox_slm/tests/test_functional.py index 3123413..f7d1832 100644 --- a/netbox_slm/tests/test_functional.py +++ b/netbox_slm/tests/test_functional.py @@ -1,3 +1,5 @@ +# Modified by MrBlake for the NetBox-SLM fork: https://git.mrblake.cc/MrBlake/NetBox-SLM +# Based on ICTU/netbox_slm (Apache License 2.0). See the LICENSE and NOTICE files. from unittest.mock import patch from django.contrib.auth import get_user_model diff --git a/netbox_slm/tests/test_models.py b/netbox_slm/tests/test_models.py index 132a5d1..642a51a 100644 --- a/netbox_slm/tests/test_models.py +++ b/netbox_slm/tests/test_models.py @@ -1,3 +1,5 @@ +# Modified by MrBlake for the NetBox-SLM fork: https://git.mrblake.cc/MrBlake/NetBox-SLM +# Based on ICTU/netbox_slm (Apache License 2.0). See the LICENSE and NOTICE files. from datetime import date, timedelta from unittest.mock import Mock, patch diff --git a/netbox_slm/urls.py b/netbox_slm/urls.py index 1f3e465..40a63a9 100644 --- a/netbox_slm/urls.py +++ b/netbox_slm/urls.py @@ -1,3 +1,5 @@ +# Modified by MrBlake for the NetBox-SLM fork: https://git.mrblake.cc/MrBlake/NetBox-SLM +# Based on ICTU/netbox_slm (Apache License 2.0). See the LICENSE and NOTICE files. from django.urls import path, include from netbox_slm import views # noqa F401 diff --git a/netbox_slm/views/__init__.py b/netbox_slm/views/__init__.py index 8c88056..736a783 100644 --- a/netbox_slm/views/__init__.py +++ b/netbox_slm/views/__init__.py @@ -1,3 +1,5 @@ +# Modified by MrBlake for the NetBox-SLM fork: https://git.mrblake.cc/MrBlake/NetBox-SLM +# Based on ICTU/netbox_slm (Apache License 2.0). See the LICENSE and NOTICE files. from .software_license import ( SoftwareLicenseListView, SoftwareLicenseView, diff --git a/netbox_slm/views/software_license.py b/netbox_slm/views/software_license.py index 35bb8c3..c963f00 100644 --- a/netbox_slm/views/software_license.py +++ b/netbox_slm/views/software_license.py @@ -1,3 +1,5 @@ +# Modified by MrBlake for the NetBox-SLM fork: https://git.mrblake.cc/MrBlake/NetBox-SLM +# Based on ICTU/netbox_slm (Apache License 2.0). See the LICENSE and NOTICE files. from netbox.views import generic from django.utils.translation import gettext_lazy as _ from netbox_slm import filtersets, forms, tables diff --git a/pyproject.toml b/pyproject.toml index 816c887..eb55303 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,5 @@ +# Modified by MrBlake for the NetBox-SLM fork: https://git.mrblake.cc/MrBlake/NetBox-SLM +# Based on ICTU/netbox_slm (Apache License 2.0). See the LICENSE and NOTICE files. [build-system] requires = ["setuptools"] build-backend = "setuptools.build_meta" @@ -12,6 +14,9 @@ license = { text = "Apache-2.0" } authors = [ {name = "ICTU", email = "open-source-projects@ictu.nl"}, ] +maintainers = [ + {name = "MrBlake"}, +] classifiers = [ "Development Status :: 5 - Production/Stable", "Environment :: Plugins", @@ -48,9 +53,10 @@ ci = [ ] [project.urls] -Homepage = "https://github.com/ICTU/netbox_slm/" -Changelog = "https://github.com/ICTU/netbox_slm/blob/master/CHANGELOG.md" -Issues = "https://github.com/ICTU/netbox_slm/issues/" +Homepage = "https://git.mrblake.cc/MrBlake/NetBox-SLM" +Changelog = "https://git.mrblake.cc/MrBlake/NetBox-SLM/src/branch/master/CHANGELOG.md" +Issues = "https://git.mrblake.cc/MrBlake/NetBox-SLM/issues" +Upstream = "https://github.com/ICTU/netbox_slm" [tool.setuptools.dynamic] version = {attr = "netbox_slm.__version__"}