1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00

net-mgmt/netbox: Update to 2.7.7

* Remove the "post-patch" target because the "requirements.txt" is only used
  for installations via devel/py-pip.

Notable changes since 2.6.12:

* Bulk import of device components via CSV files
* External file storage support (FTP, S3, SFTP, etc.)
* Rack elevations rendered by SVG (= Scalable Vector Graphics)
* Separate configuration for Webhooks and Cache databases via Redis
* Add ability to clone objects (pre-populate form fields)
* Toggle config context display between JSON and YAML
* Add support for Redis Sentinel
* Further cable and port types
* Many other enhancements and bugfixes

https://github.com/netbox-community/netbox/blob/v2.7.7/docs/release-notes/version-2.7.md
This commit is contained in:
Kai Knoblich 2020-02-25 22:19:07 +00:00
parent 3c95ee3541
commit 9cdba54864
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=527141
5 changed files with 970 additions and 147 deletions

View File

@ -5,6 +5,65 @@ they are unavoidable.
You should get into the habit of checking this file for changes each time
you update your ports collection, before attempting any port upgrades.
20200225:
AFFECTS: users of net-mgmt/netbox
AUTHOR: kai@FreeBSD.org
1. Removal of the Topology Maps feature
The deprecated topology maps feature has been removed. Please replicate
any required data to another source before upgrading NetBox to v2.7.7, as
any existing topology maps will be deleted.
2. Changed REDIS database configuration settings
The REDIS database configuration parameters were splitted up in two
discrete subsections named "webhooks" and "caching" with the 2.7 release.
This requires modification of the REDIS parameter in configuration.py as
follows:
Old Redis sample configuration:
REDIS = {
'HOST': 'localhost',
'PORT': 6379,
'PASSWORD': '',
'DATABASE': 0,
'CACHE_DATABASE': 1,
'DEFAULT_TIMEOUT': 300,
'SSL': False,
}
New Redis sample configuration:
REDIS = {
'webhooks': {
'HOST': 'redis.example.com',
'PORT': 1234,
'PASSWORD': 'foobar',
'DATABASE': 0,
'DEFAULT_TIMEOUT': 300,
'SSL': False,
},
'caching': {
'HOST': 'localhost',
'PORT': 6379,
'PASSWORD': '',
'DATABASE': 1,
'DEFAULT_TIMEOUT': 300,
'SSL': False,
}
}
Note that the CACHE_DATABASE parameter has been removed and the connection
settings have been duplicated for both webhooks and caching. This allows
one to make use of separate Redis instances if desired. It is fine to use
the same Redis service for both functions, although the database
identifiers should be different.
Please also check the pkg-message and the changelogs for further info.
20200223:
AFFECTS: users of security/gsasl
AUTHOR: hrs@FreeBSD.org

View File

@ -2,7 +2,7 @@
PORTNAME= netbox
DISTVERSIONPREFIX= v
DISTVERSION= 2.6.12
DISTVERSION= 2.7.7
CATEGORIES= net-mgmt
MAINTAINER= kai@FreeBSD.org
@ -12,27 +12,30 @@ LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django22>=2.2<2.3:www/py-django22@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dj22-django-cacheops>=4.1:www/py-dj22-django-cacheops@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dj22-django-cors-headers>=3.0.2:www/py-dj22-django-cors-headers@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dj22-django-debug-toolbar>=2.0:www/py-dj22-django-debug-toolbar@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dj22-django-filter>=2.1.0:www/py-dj22-django-filter@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dj22-django-cacheops>=4.2:www/py-dj22-django-cacheops@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dj22-django-cors-headers>=3.2.1:www/py-dj22-django-cors-headers@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dj22-django-debug-toolbar>=2.1:www/py-dj22-django-debug-toolbar@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dj22-django-filter>=2.2.0:www/py-dj22-django-filter@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dj22-django-mptt>=0.9.1:www/py-dj22-django-mptt@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dj22-django-prometheus>=1.0.15:www/py-dj22-django-prometheus@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dj22-django-rq>=2.1.0:devel/py-dj22-django-rq@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dj22-django-tables2>=2.0.6:www/py-dj22-django-tables2@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dj22-django-taggit>=0:www/py-dj22-django-taggit@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dj22-django-prometheus>=1.1.0:www/py-dj22-django-prometheus@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dj22-django-rq>=2.2.0:devel/py-dj22-django-rq@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dj22-django-tables2>=2.2.1:www/py-dj22-django-tables2@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dj22-django-taggit>=1.2.0:www/py-dj22-django-taggit@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dj22-django-taggit-serializer>=0.1.7:www/py-dj22-django-taggit-serializer@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dj22-django-timezone-field>=3.0:www/py-dj22-django-timezone-field@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dj22-djangorestframework>=3.9.4:www/py-dj22-djangorestframework@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dj22-drf-yasg>=1.16.0:www/py-dj22-drf-yasg@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dj22-django-timezone-field>=4.0:www/py-dj22-django-timezone-field@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dj22-djangorestframework>=3.10.3:www/py-dj22-djangorestframework@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dj22-drf-yasg>=1.17.0:www/py-dj22-drf-yasg@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}django-pglocks>=1.0.4:www/py-django-pglocks@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}gfm>=0.1.4:textproc/py-gfm@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}graphviz>=0.10.1:graphics/py-graphviz@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}Jinja2>=2.10.1:devel/py-Jinja2@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}markdown>=2.6.11:textproc/py-markdown@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}netaddr>=0.7.19:net/py-netaddr@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pycryptodome>=3.8.2:security/py-pycryptodome@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pillow>=6.2.0:graphics/py-pillow@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}psycopg2>=2.8.3:databases/py-psycopg2@${PY_FLAVOR}
${PYTHON_PKGNAMEPREFIX}pillow>=7.0.0:graphics/py-pillow@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}psycopg2>=2.8.4:databases/py-psycopg2@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}redis>=3.3.11:databases/py-redis@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}svgwrite>=1.3.1:graphics/py-svgwrite@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}yaml>=5.2:devel/py-yaml@${PY_FLAVOR}
USES= pgsql:9.4+ python:3.5+
USE_GITHUB= yes
@ -45,9 +48,6 @@ NO_ARCH= yes
OPTIONS_DEFINE= DOCS EXAMPLES
post-patch:
@${REINPLACE_CMD} -e 's|==|>=|' ${WRKSRC}/requirements.txt
do-install:
cd ${WRKSRC}/netbox ; \
for src in $$( ${FIND} . ! -name '*.bak' ) ; do \

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1578994533
SHA256 (netbox-community-netbox-v2.6.12_GH0.tar.gz) = 79a416359c5945f21977f023725e8f015d4cbe932f9c2f840890cf42dbe8e92a
SIZE (netbox-community-netbox-v2.6.12_GH0.tar.gz) = 2463692
TIMESTAMP = 1582621814
SHA256 (netbox-community-netbox-v2.7.7_GH0.tar.gz) = f65eae2674872dfe584041d12b28a9f501ded2e4905d8ef9c4c78903acf333b3
SIZE (netbox-community-netbox-v2.7.7_GH0.tar.gz) = 4952554

View File

@ -79,6 +79,83 @@ EOD
The 2.6.6 release includes a migration which automatically updates all existing
cables to enable filtering by site/rack. This migration may take several
minutes to complete on installations with tens of thousands of cables defined.
EOD
}
{ type: upgrade
maximum_version: 2.7.7
message: <<EOD
1. Removal of the Topology Maps feature
The deprecated topology maps feature has been removed. Please replicate any
required data to another source before upgrading NetBox to v2.7.7, as any
existing topology maps will be deleted.
2. Changed REDIS database configuration settings
The REDIS database configuration parameters were splitted up in two discrete
subsections named "webhooks" and "caching". This requires modification of the
REDIS parameter in configuration.py as follows:
Old Redis sample configuration:
REDIS = {
'HOST': 'localhost',
'PORT': 6379,
'PASSWORD': '',
'DATABASE': 0,
'CACHE_DATABASE': 1,
'DEFAULT_TIMEOUT': 300,
'SSL': False,
}
New Redis sample configuration:
REDIS = {
'webhooks': {
'HOST': 'redis.example.com',
'PORT': 1234,
'PASSWORD': 'foobar',
'DATABASE': 0,
'DEFAULT_TIMEOUT': 300,
'SSL': False,
},
'caching': {
'HOST': 'localhost',
'PORT': 6379,
'PASSWORD': '',
'DATABASE': 1,
'DEFAULT_TIMEOUT': 300,
'SSL': False,
}
}
Note that the CACHE_DATABASE parameter has been removed and the connection
settings have been duplicated for both "webhooks" and "caching". This allows
one to make use of separate Redis instances if desired. It is fine to use the
same Redis service for both functions, although the database identifiers should
be different.
3. Removal of the WEBHOOKS_ENABLED configuration parameter
As django-rq is now a required library, NetBox assumes that the RQ worker
process is running and the WEBHOOKS_ENABLED configuration parameter is no
longer used. Please ensure that both the NetBox WSGI service and the RQ worker
process are running on all production installations.
4. Fixed natural orderding of interfaces
The 2.7.7 release contains a bug fix regarding the natural ordering of
interfaces. If any interfaces appear unordered, run the following management
command to recalculate their naturalized values after the usual upgrading steps
(database migrations, collect static files, etc.) were issued:
# cd %%DATADIR%%
# python%%PYTHON_VER%% manage.py renaturalize dcim.Interface
EOD
}
]
]

File diff suppressed because it is too large Load Diff