git: ddf04ccd86c5 - main - net-mgmt/py-netbox-plugin-extensions: Update to 1.1.1

From: Kai Knoblich <kai_at_FreeBSD.org>
Date: Tue, 18 Jan 2022 18:19:56 UTC
The branch main has been updated by kai:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ddf04ccd86c501fb33569cb19aded8df522550f9

commit ddf04ccd86c501fb33569cb19aded8df522550f9
Author:     Kai Knoblich <kai@FreeBSD.org>
AuthorDate: 2022-01-18 18:04:59 +0000
Commit:     Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2022-01-18 18:18:11 +0000

    net-mgmt/py-netbox-plugin-extensions: Update to 1.1.1
    
    Changelog since 1.0.6:
    
    https://github.com/DanSheps/netbox-plugin-extensions/compare/v1.0.6...v1.1.1
    
    MFH:            No (contains backwards incompatible changes)
---
 net-mgmt/py-netbox-plugin-extensions/Makefile      |  5 ++-
 net-mgmt/py-netbox-plugin-extensions/distinfo      |  6 ++--
 .../files/pkg-message.in                           | 39 ++++++++++++++++++++++
 3 files changed, 46 insertions(+), 4 deletions(-)

diff --git a/net-mgmt/py-netbox-plugin-extensions/Makefile b/net-mgmt/py-netbox-plugin-extensions/Makefile
index b393b925d4d5..d9498064fd0e 100644
--- a/net-mgmt/py-netbox-plugin-extensions/Makefile
+++ b/net-mgmt/py-netbox-plugin-extensions/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	netbox-plugin-extensions
-DISTVERSION=	1.0.6
+DISTVERSION=	1.1.1
 CATEGORIES=	net-mgmt python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -17,4 +17,7 @@ USE_PYTHON=	autoplist distutils
 
 NO_ARCH=	yes
 
+SUB_FILES=	pkg-message
+SUB_LIST=	PYTHON_VER=${PYTHON_VER}
+
 .include <bsd.port.mk>
diff --git a/net-mgmt/py-netbox-plugin-extensions/distinfo b/net-mgmt/py-netbox-plugin-extensions/distinfo
index 28de4eba2d89..1ba9ec4e0927 100644
--- a/net-mgmt/py-netbox-plugin-extensions/distinfo
+++ b/net-mgmt/py-netbox-plugin-extensions/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1637871450
-SHA256 (netbox-plugin-extensions-1.0.6.tar.gz) = 470de703c450c320caf8deb6093137076a3f0e979f1eee81fed710532d192478
-SIZE (netbox-plugin-extensions-1.0.6.tar.gz) = 15659
+TIMESTAMP = 1642254201
+SHA256 (netbox-plugin-extensions-1.1.1.tar.gz) = 780055eea16440c2a83098541af0db4bea4a9c5b35d6ba9b3bf988a5b945ea7b
+SIZE (netbox-plugin-extensions-1.1.1.tar.gz) = 13216
diff --git a/net-mgmt/py-netbox-plugin-extensions/files/pkg-message.in b/net-mgmt/py-netbox-plugin-extensions/files/pkg-message.in
new file mode 100644
index 000000000000..27f7005aa2ef
--- /dev/null
+++ b/net-mgmt/py-netbox-plugin-extensions/files/pkg-message.in
@@ -0,0 +1,39 @@
+[
+{ type: install
+  message: <<EOD
+To enable the plugin please do the following steps:
+
+1. Add/update the following line in the netbox configuration (usually
+   %%LOCALBASE%%/share/netbox/netbox/configuration.py):
+
+   PLUGINS = ['netbox_plugin_extensions']
+
+2. Run NetBox migrations and collect static files:
+
+   # cd %%LOCALBASE%%/share/netbox
+   # python%%PYTHON_VER%% manage.py migrate
+   # python%%PYTHON_VER%% manage.py collectstatic --no-input
+
+3. Restart WSGI/httpd environment (supervisord/apache/nginx/etc.)
+EOD
+}
+{ type: upgrade
+  maximum_version: 1.1.1
+  message: <<EOD
+Since the 1.0.8 release following steps are required to enable the plugin:
+
+1. Add/update the following line in the netbox configuration (usually
+   %%LOCALBASE%%/share/netbox/netbox/configuration.py):
+
+   PLUGINS = ['netbox_plugin_extensions']
+
+2. Run NetBox migrations and collect static files:
+
+   # cd %%LOCALBASE%%/share/netbox
+   # python%%PYTHON_VER%% manage.py migrate
+   # python%%PYTHON_VER%% manage.py collectstatic --no-input
+
+3. Restart WSGI/httpd environment (supervisord/apache/nginx/etc.)
+EOD
+}
+]