git: b34658d1636f - main - security/py-netbox-secretstore: Update to 1.2.0

From: Kai Knoblich <kai_at_FreeBSD.org>
Date: Thu, 16 Jun 2022 16:30:32 UTC
The branch main has been updated by kai:

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

commit b34658d1636f487451331d30d1c8c986df46922f
Author:     Kai Knoblich <kai@FreeBSD.org>
AuthorDate: 2022-06-16 16:11:19 +0000
Commit:     Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2022-06-16 16:28:34 +0000

    security/py-netbox-secretstore: Update to 1.2.0
    
    Changelog since 1.0.14:
    
    https://github.com/DanSheps/netbox-secretstore/compare/v1.0.14...v1.2.0
---
 security/py-netbox-secretstore/Makefile             | 10 ++++------
 security/py-netbox-secretstore/distinfo             |  6 +++---
 security/py-netbox-secretstore/files/pkg-message.in | 18 +++++++++++++++++-
 3 files changed, 24 insertions(+), 10 deletions(-)

diff --git a/security/py-netbox-secretstore/Makefile b/security/py-netbox-secretstore/Makefile
index 3fc41bcc5ad2..dfd607bed9db 100644
--- a/security/py-netbox-secretstore/Makefile
+++ b/security/py-netbox-secretstore/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	netbox-secretstore
-DISTVERSION=	1.0.14
+DISTVERSION=	1.2.0
 CATEGORIES=	security python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -10,12 +10,10 @@ COMMENT=	Secret store for NetBox
 LICENSE=	APACHE20
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
-RUN_DEPENDS=	netbox>=3.1.0:net-mgmt/netbox \
-		${PYTHON_PKGNAMEPREFIX}importlib-metadata>0:devel/py-importlib-metadata@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}pycryptodome>0:security/py-pycryptodome@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}netbox-plugin-extensions>=1.0.8:net-mgmt/py-netbox-plugin-extensions@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>0:devel/py-importlib-metadata@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pycryptodome>0:security/py-pycryptodome@${PY_FLAVOR}
 
-USES=		python:3.7+
+USES=		python:3.8+
 USE_PYTHON=	autoplist distutils
 
 NO_ARCH=	yes
diff --git a/security/py-netbox-secretstore/distinfo b/security/py-netbox-secretstore/distinfo
index d5a395add4b1..d810fdfac558 100644
--- a/security/py-netbox-secretstore/distinfo
+++ b/security/py-netbox-secretstore/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1642253934
-SHA256 (netbox-secretstore-1.0.14.tar.gz) = efd023ab9e14fffd7a971d801c080aa51f63b5ee3d94e94f3aba42bbedcf2fc8
-SIZE (netbox-secretstore-1.0.14.tar.gz) = 44869
+TIMESTAMP = 1651694383
+SHA256 (netbox-secretstore-1.2.0.tar.gz) = 8fffb29bd61930c458e72e7b6aa24a0c53e4e59b59b4b14eaccefd11faf0e1bc
+SIZE (netbox-secretstore-1.2.0.tar.gz) = 46787
diff --git a/security/py-netbox-secretstore/files/pkg-message.in b/security/py-netbox-secretstore/files/pkg-message.in
index 272a01aa63b1..4957b1933eb1 100644
--- a/security/py-netbox-secretstore/files/pkg-message.in
+++ b/security/py-netbox-secretstore/files/pkg-message.in
@@ -6,7 +6,7 @@ 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','netbox_secretstore']
+   PLUGINS = ['netbox_secretstore']
 
 2. Run NetBox migrations and collect static files:
 
@@ -35,6 +35,22 @@ adjusted accordingly:
    # 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.2.0
+  message: <<EOD
+1. The plugin 'netbox_plugin_extensions' is no longer required since the
+   1.2.0 release.  Please remove it from the PLUGINS section in the nextbox
+   configuration.
+
+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
 }