Skip to content

Commit

Permalink
net-mgmt/netbox: Update to 3.5.4
Browse files Browse the repository at this point in the history
* Adjust the sample netbox rc script as gunicorn emits a warning if the
  configuration file doesn't have a ".py" extension. [1]  Fix the
  default path of the "netbox_config" variable as well while I'm here.

Changelog:

Enhancements:
* Define colors for staged change action choices
* Include "add" button on all device & virtual machine component
  list views
* Add menu navigation button to add wireless links directly
* Add "add" buttons for reports & scripts to navigation menu

Bug Fixes:
* Update cable terminations when assigning a location to a new site
* Permit the assignment of non-site VLANs to prefixes assigned to a site
* Correct OpenAPI schema for connected device API endpoint
* Allow the assignment of all /31 IP addresses to interfaces
* Fix permissions evaluation when queuing a data sync job
* Fix encoding of whitespace in custom link URLs
* Correct rounding of rack power utilization values
* Fix pagination of objects for related IP addresses table
* Fix table configuration modal for the contact assignments list
* Permit mounting of devices in rack unit 100
* Clear stored ordering from user config when cleared by request

https://github.com/netbox-community/netbox/releases/tag/v3.5.4

Reported by:	Linda Lapinlampi (via e-mail) [1]
  • Loading branch information
knobix committed Jun 27, 2023
1 parent 5152c6e commit ed63bb8
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 12 deletions.
14 changes: 7 additions & 7 deletions net-mgmt/netbox/Makefile
@@ -1,6 +1,6 @@
PORTNAME= netbox
DISTVERSIONPREFIX= v
DISTVERSION= 3.5.3
DISTVERSION= 3.5.4
CATEGORIES= net-mgmt python

MAINTAINER= kai@FreeBSD.org
Expand All @@ -24,18 +24,18 @@ LICENSE_FILE= ${WRKSRC}/LICENSE.txt
# - www/py-dj41-djangorestframework
#
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django41>=4.1.9<4.2:www/py-django41@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dj41-django-cors-headers>=4.0.0<5:www/py-dj41-django-cors-headers@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dj41-django-cors-headers>=4.1.0<5:www/py-dj41-django-cors-headers@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dj41-django-debug-toolbar>=4.1.0<5:www/py-dj41-django-debug-toolbar@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dj41-django-filter>=23.2<24:www/py-dj41-django-filter@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dj41-django-graphiql-debug-toolbar>=0.2.0<1:www/py-dj41-django-graphiql-debug-toolbar@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dj41-django-mptt>=0.14.0<0.15:www/py-dj41-django-mptt@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dj41-django-prometheus>=2.3.1<2.4:www/py-dj41-django-prometheus@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dj41-django-redis>=5.2.0<6:www/py-dj41-django-redis@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dj41-django-rich>=1.5.0<2:www/py-dj41-django-rich@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dj41-django-rich>=1.6.0<2:www/py-dj41-django-rich@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dj41-django-rq>=2.8.1<2.9:devel/py-dj41-django-rq@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dj41-django-tables2>=2.5.3<2.6:www/py-dj41-django-tables2@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dj41-django-taggit>=3.1.0<5:www/py-dj41-django-taggit@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dj41-django-timezone-field>=5.0<6:www/py-dj41-django-timezone-field@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dj41-django-taggit>=4.0.0<5:www/py-dj41-django-taggit@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dj41-django-timezone-field>=5.1<6:www/py-dj41-django-timezone-field@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dj41-djangorestframework>=3.14.0<3.15.0:www/py-dj41-djangorestframework@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dj41-drf-spectacular>=0.26.2<1:www/py-dj41-drf-spectacular@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dj41-drf-spectacular-sidecar>=2023.6.1:www/py-dj41-drf-spectacular-sidecar@${PY_FLAVOR} \
Expand All @@ -48,7 +48,7 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django41>=4.1.9<4.2:www/py-django41@${PY_FLA
${PYTHON_PKGNAMEPREFIX}Jinja2>=3.1.2<4:devel/py-Jinja2@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}markdown>=3.3.7<3.4:textproc/py-markdown@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}markdown-include>=0.7.0<1:textproc/py-markdown-include@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}mkdocs-material>=9.1.15<10:textproc/py-mkdocs-material@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}mkdocs-material>=9.1.16<10:textproc/py-mkdocs-material@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}mkdocstrings>=0.17.0<1:textproc/py-mkdocstrings@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}netaddr>=0.8.0<1:net/py-netaddr@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pillow>=9.5.0:graphics/py-pillow@${PY_FLAVOR} \
Expand All @@ -57,7 +57,7 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django41>=4.1.9<4.2:www/py-django41@${PY_FLA
${PYTHON_PKGNAMEPREFIX}social-auth-app-django>=5.2.0<6:www/py-social-auth-app-django@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}social-auth-core>=4.4.2<5:security/py-social-auth-core@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}svgwrite>=1.4.3<2:graphics/py-svgwrite@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}tablib>=3.3.0<4:textproc/py-tablib@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}tablib>=3.5.0<4:textproc/py-tablib@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}tzdata>=2023.3:devel/py-tzdata@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}yaml>=6.0<7:devel/py-yaml@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}gunicorn>=20.1.0<21:www/py-gunicorn@${PY_FLAVOR}
Expand Down
6 changes: 3 additions & 3 deletions net-mgmt/netbox/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1685991618
SHA256 (netbox-community-netbox-v3.5.3_GH0.tar.gz) = 3032aa64954cc2ef8d41703f07a26b30628c4b734460d7eca0a4188ac4d1fa87
SIZE (netbox-community-netbox-v3.5.3_GH0.tar.gz) = 5768154
TIMESTAMP = 1687761839
SHA256 (netbox-community-netbox-v3.5.4_GH0.tar.gz) = 32cd3c3f8612b79404f6ae83c51759eb2dfd60aeeae3915f236f00e1efbb2fdd
SIZE (netbox-community-netbox-v3.5.4_GH0.tar.gz) = 5767557
4 changes: 2 additions & 2 deletions net-mgmt/netbox/files/netboxrc.sample.in
Expand Up @@ -19,7 +19,7 @@
# netbox_use_config (bool): Set to NO by default.
# If set, read the configuration parameter from file defined in
# "netbox_config" instead using rc variables.
# netbox_config (str): Default to "/usr/local/etc/${name}.conf}"
# netbox_config (str): Default to "%%LOCALBASE%%/etc/${name}.conf.py}"
# Config file for gunicorn's netbox config file
# netbox_command (str): Default to "%%LOCALBASE%%/bin/gunicorn"
# Path to gunicorn to run netbox
Expand Down Expand Up @@ -56,7 +56,7 @@ netbox_chdir=${netbox_path}
pidfile=${netbox_pidfile:-/var/run/${name}/${name}.pid}
netbox_user=${netbox_user:-%%WWWOWN%%}
netbox_use_config=${netbox_use_config:-no}
netbox_config=${netbox_config:-/${name}.conf}
netbox_config=${netbox_config:-%%LOCALBASE%%/etc/${name}.conf.py}
netbox_bind=${netbox_bind:-localhost:8001}
netbox_workers=${netbox_workers:-5}
netbox_threads=${netbox_threads:-3}
Expand Down
19 changes: 19 additions & 0 deletions net-mgmt/netbox/files/pkg-message.in
Expand Up @@ -373,4 +373,23 @@ EOD
- "/api/redoc/" is now "/api/schema/redoc/"
EOD
}
{ type: upgrade
maximum_version: 3.5.4
message: <<EOD
If a separate configuration file is used that does not have an ".py" extension,
the following message may appear when the netbox rc script is started:

!!!
!!! WARNING: configuration file should have a valid Python extension.
!!!

In this case, the existing configuration file should be provided with a ".py"
extension and if set, the rc variable "netbox_config" should also point to the
configuration file with the new file extension.

The netbox sample rc script, which is provided via the EXAMPLES option, has
been adjusted accordingly. This also includes a fix for the default path of
the configuration if the rc variable "netbox_config" is not set.
EOD
}
]

0 comments on commit ed63bb8

Please sign in to comment.