Date: Fri, 20 Nov 2020 08:57:11 +0000 (UTC) From: Kai Knoblich <kai@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r555752 - in head/net-mgmt/netbox: . files Message-ID: <202011200857.0AK8vBE9096108@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kai Date: Fri Nov 20 08:57:10 2020 New Revision: 555752 URL: https://svnweb.freebsd.org/changeset/ports/555752 Log: net-mgmt/netbox: Update to 2.9.9 * Add to the EXAMPLES options a few example configurations and a sample rc script to make use of the RQ background service. Changelog: Enhancements: * Return server error messages as JSON when handling REST API requests * Link to rack groups within rack list table * Be more strict when capturing anticipated ImportError exceptions Bug Fixes: * Fix auto-population of region field when editing a device * Fix config context rendering when multiple tags are assigned to an object * Dry running scripts should not trigger webhooks * Add missing template extension tags for plugins for VM interface view * Fix CreatedUpdatedFilterTest when running in non-UTC timezone * Fix filtering of sites by null region https://github.com/netbox-community/netbox/releases/tag/v2.9.9 Added: head/net-mgmt/netbox/files/netbox_rq.sample.in (contents, props changed) Modified: head/net-mgmt/netbox/Makefile head/net-mgmt/netbox/distinfo head/net-mgmt/netbox/files/pkg-message.in head/net-mgmt/netbox/pkg-plist Modified: head/net-mgmt/netbox/Makefile ============================================================================== --- head/net-mgmt/netbox/Makefile Fri Nov 20 08:52:23 2020 (r555751) +++ head/net-mgmt/netbox/Makefile Fri Nov 20 08:57:10 2020 (r555752) @@ -2,7 +2,7 @@ PORTNAME= netbox DISTVERSIONPREFIX= v -DISTVERSION= 2.9.8 +DISTVERSION= 2.9.9 CATEGORIES= net-mgmt MAINTAINER= kai@FreeBSD.org @@ -53,7 +53,7 @@ USES= pgsql:9.6+ python:3.6+ USE_GITHUB= yes GH_ACCOUNT= netbox-community -SUB_FILES= netboxrc.sample pkg-message +SUB_FILES= netbox_rq.sample netboxrc.sample pkg-message SUB_LIST= DATADIR=${DATADIR} PYTHON_CMD=${PYTHON_CMD} PYTHON_VER=${PYTHON_VER} WWWOWN=${WWWOWN} NO_BUILD= yes NO_ARCH= yes @@ -85,6 +85,10 @@ post-install-DOCS-on: post-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKDIR}/netbox_rq.sample ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKDIR}/netboxrc.sample ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/contrib/apache.conf ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/contrib/gunicorn.py ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/contrib/nginx.conf ${STAGEDIR}${EXAMPLESDIR} .include <bsd.port.mk> Modified: head/net-mgmt/netbox/distinfo ============================================================================== --- head/net-mgmt/netbox/distinfo Fri Nov 20 08:52:23 2020 (r555751) +++ head/net-mgmt/netbox/distinfo Fri Nov 20 08:57:10 2020 (r555752) @@ -1,3 +1,3 @@ -TIMESTAMP = 1604135336 -SHA256 (netbox-community-netbox-v2.9.8_GH0.tar.gz) = 182a773b604ef0e6f01cc42752799356431debd9b852f5b86ef19b2bd928271e -SIZE (netbox-community-netbox-v2.9.8_GH0.tar.gz) = 5799405 +TIMESTAMP = 1605642137 +SHA256 (netbox-community-netbox-v2.9.9_GH0.tar.gz) = 9d6252753754d7fa4a15920b810e4f615b63138b2572128fdbdb39ab054c7142 +SIZE (netbox-community-netbox-v2.9.9_GH0.tar.gz) = 5801532 Added: head/net-mgmt/netbox/files/netbox_rq.sample.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/netbox/files/netbox_rq.sample.in Fri Nov 20 08:57:10 2020 (r555752) @@ -0,0 +1,43 @@ +#!/bin/sh + +# This sample rc script starts the RQ worker background service which is +# required for Webhooks and various automation tasks. + +# +# PROVIDE: netbox_rq +# REQUIRE: DAEMON +# KEYWORD: shutdown +# +# Add the following line to /etc/rc.conf.local or /etc/rc.conf +# to enable netbox-rq: +# +# netbox_rq_enable (bool): Set to NO by default. +# Set it to YES to enable netbox_rq. + +. /etc/rc.subr + +name=netbox_rq +rcvar=netbox_rq_enable + +load_rc_config $name + +start_cmd="netbox_rq_start" +start_precmd="netbox_rq_precmd" +command="%%PYTHON_CMD%%" +command_args="%%DATADIR%%/manage.py rqworker" +pidfile=${netbox_rq_pidfile:-/var/run/${name}/${name}.pid} +netbox_rq_user=${netbox_rq_user:-www} + + +netbox_rq_precmd() +{ + install -d -o ${netbox_rq_user} `dirname ${pidfile}` +} + +netbox_rq_start() +{ + echo "Starting netbox_rq." + /usr/sbin/daemon -cf -p ${pidfile} -u ${netbox_rq_user} ${command} ${command_args} +} + +run_rc_command "$1" Modified: head/net-mgmt/netbox/files/pkg-message.in ============================================================================== --- head/net-mgmt/netbox/files/pkg-message.in Fri Nov 20 08:52:23 2020 (r555751) +++ head/net-mgmt/netbox/files/pkg-message.in Fri Nov 20 08:57:10 2020 (r555752) @@ -249,4 +249,14 @@ rebuild the correct nested relationships after upgradi >>> TenantGroup.objects.rebuild() EOD } +{ type: upgrade + maximum_version: 2.9.9 + message: <<EOD +An new sample rc script has been added to manage the RQ-worker service. If the +EXAMPLES option is enabled (which is the default) it can be found in the +following directory: + +%%EXAMPLESDIR%%/netbox_rq.sample +EOD +} ] Modified: head/net-mgmt/netbox/pkg-plist ============================================================================== --- head/net-mgmt/netbox/pkg-plist Fri Nov 20 08:52:23 2020 (r555751) +++ head/net-mgmt/netbox/pkg-plist Fri Nov 20 08:57:10 2020 (r555752) @@ -135,7 +135,11 @@ %%PORTDOCS%%%%DOCSDIR%%/rest-api/filtering.md %%PORTDOCS%%%%DOCSDIR%%/rest-api/overview.md %%PORTDOCS%%%%DOCSDIR%%/rest-api/working-with-secrets.md +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/apache.conf +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/gunicorn.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/netbox_rq.sample %%PORTEXAMPLES%%%%EXAMPLESDIR%%/netboxrc.sample +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/nginx.conf %%DATADIR%%/circuits/__init__.py %%DATADIR%%/circuits/api/__init__.py %%DATADIR%%/circuits/api/nested_serializers.py
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202011200857.0AK8vBE9096108>