diff --git a/net-mgmt/netbox/Makefile b/net-mgmt/netbox/Makefile index 25b3d633f1eb..bbf3763d3b81 100644 --- a/net-mgmt/netbox/Makefile +++ b/net-mgmt/netbox/Makefile @@ -1,99 +1,99 @@ PORTNAME= netbox DISTVERSIONPREFIX= v -DISTVERSION= 3.5.3 +DISTVERSION= 3.5.4 CATEGORIES= net-mgmt python MAINTAINER= kai@FreeBSD.org COMMENT= IP address management tool WWW= https://github.com/netbox-community/netbox LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE.txt # NetBox has fixed Python package dependencies listed in "requirements.txt" # which are not checked during build/runtime because they're usually installed # via devel/py-pip. # # As a rule, slight deviations are usually not a problem, but there are a few # Django packages that are known for regressions in conjunction with NetBox and # should therefore only be updated with caution. # # - devel/py-dj41-django-rq # - www/py-dj41-django-filter # - www/py-dj41-django-tables2 # - 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} \ ${PYTHON_PKGNAMEPREFIX}dj41-graphene-django>=3.0.0,1<3.0.0_99,1:devel/py-dj41-graphene-django@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}django-pglocks>=1.0.4<1.1:www/py-django-pglocks@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}bleach>=5.0.1<7:www/py-bleach@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}boto3>=1.26.145<2:www/py-boto3@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}dulwich>=0.21.2<1:devel/py-dulwich@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}feedparser>=6.0.8<7:textproc/py-feedparser@${PY_FLAVOR} \ ${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} \ ${PYTHON_PKGNAMEPREFIX}psycopg2>=2.9.6<3:databases/py-psycopg2@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}sentry-sdk>=1.21.1<2:devel/py-sentry-sdk@${PY_FLAVOR} \ ${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} USES= cpe pgsql:11+ python:3.8+ CPE_VENDOR= netbox_project USE_GITHUB= yes GH_ACCOUNT= netbox-community SUB_FILES= 850.netbox-housekeeping.sample 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 OPTIONS_DEFINE= EXAMPLES do-install: cd ${WRKSRC}/netbox ; \ for src in $$( ${FIND} . ! -name '*.bak' ) ; do \ dst=${STAGEDIR}${DATADIR}$${src#.} ; \ if ${TEST} -d "$$src" ; then \ ${MKDIR} "$$dst" ; \ else \ ${INSTALL_DATA} "$$src" "$$dst" ; \ fi \ done cd ${WRKSRC} && ${COPYTREE_SHARE} docs ${STAGEDIR}${DATADIR} ${INSTALL_DATA} ${WRKSRC}/mkdocs.yml ${STAGEDIR}${DATADIR} post-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKDIR}/850.netbox-housekeeping.sample ${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 diff --git a/net-mgmt/netbox/distinfo b/net-mgmt/netbox/distinfo index 357ced0ec910..a0448672300d 100644 --- a/net-mgmt/netbox/distinfo +++ b/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 diff --git a/net-mgmt/netbox/files/netboxrc.sample.in b/net-mgmt/netbox/files/netboxrc.sample.in index f74676e1a4d4..79ad884f632a 100644 --- a/net-mgmt/netbox/files/netboxrc.sample.in +++ b/net-mgmt/netbox/files/netboxrc.sample.in @@ -1,111 +1,111 @@ #!/bin/sh # This sample rc script eliminate the need to use sysutils/py-supervisor to # run NetBox as a system service. Only www/py-gunicorn is needed as a WSGI. # # Of course a working HTTP server like Apache/nginx is still required to make # use of the gunicorn WSGI. # # PROVIDE: netbox # REQUIRE: DAEMON # KEYWORD: shutdown # # Add the following line to /etc/rc.conf.local or /etc/rc.conf # to enable netbox: # # netbox_enable (bool): Set to NO by default. # Set it to YES to enable netbox. # 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 # netbox_bind (str): Default to "localhost:8001" # Interface and port to bind to # netbox_workers (int): Default to "5" # Number of gunicorn workers # netbox_threads (int): Default to "3" # Number of worker threads per handling request # netbox_timeout (int): Default to "120" # Worker timeout for gunicorn # netbox_max_requests (int): Default to "5000" # Maximum number of requests a worker process will process before respawning # netbox_max_requests_jitter (int): Default to "500" # Maximum number jitter to add to "netbox_max_requests" # netbox_extra_args (str): Not set by default # Extra arguments that are passed to gunicorn # . /etc/rc.subr name="netbox" rcvar=netbox_enable netbox_path=%%DATADIR%% extra_commands="upgrade" load_rc_config $name start_precmd="netbox_precmd" upgrade_cmd="netbox_upgrade" command=${netbox_program:-%%LOCALBASE%%/bin/gunicorn} procname=${netbox_procname:-%%PYTHON_CMD%%} 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} netbox_timeout=${netbox_timeout:-120} netbox_max_requests=${netbox_max_requests:-5000} netbox_max_requests_jitter=${netbox_max_requests_jitter:-500} # Read settings from confguration file if set if checkyesno netbox_use_config && [ -f "${netbox_config}" ]; then command_args="${netbox_args} -D \ --log-syslog --log-syslog-prefix ${name} \ --log-syslog-to unix:///var/run/log#dgram \ --disable-redirect-access-to-syslog \ -p ${pidfile} --pythonpath ${netbox_path} \ -c ${netbox_config} \ netbox.wsgi" else command_args="${netbox_args} -D \ --log-syslog --log-syslog-prefix ${name} \ --log-syslog-to unix:///var/run/log#dgram \ --disable-redirect-access-to-syslog \ -p ${pidfile} --pythonpath ${netbox_path} \ -b ${netbox_bind} -w ${netbox_workers} --threads ${netbox_threads} -t ${netbox_timeout} \ --max-requests ${netbox_max_requests} --max-requests-jitter ${netbox_max_requests_jitter} \ ${netbox_extra_args} \ netbox.wsgi" fi netbox_precmd() { install -d -o ${netbox_user} `dirname ${pidfile}` } netbox_upgrade() { if [ -f ${pidfile} ]; then cd ${netbox_path} %%PYTHON_CMD%% manage.py migrate %%PYTHON_CMD%% manage.py trace_paths --no-input %%LOCALBASE%%/bin/mkdocs build %%PYTHON_CMD%% manage.py collectstatic --no-input %%PYTHON_CMD%% manage.py remove_stale_contenttypes --no-input %%PYTHON_CMD%% manage.py reindex --lazy %%PYTHON_CMD%% manage.py clearsessions %%PYTHON_CMD%% manage.py clearcache echo "Please restart NetBox and the WSGI environment." else echo "NetBox is not running!" fi } run_rc_command "$1" diff --git a/net-mgmt/netbox/files/pkg-message.in b/net-mgmt/netbox/files/pkg-message.in index e47b46f16529..2ae5d8a55343 100644 --- a/net-mgmt/netbox/files/pkg-message.in +++ b/net-mgmt/netbox/files/pkg-message.in @@ -1,376 +1,395 @@ [ { type: install message: <