Changelog: Enhancements: * Add tenant group filters * Catch all exceptions during export template rendering * Add 2.5GE and 5GE interface form factors * Add inventory item count to manufacturers list * Add site link to rack reservations overview * Enable bulk deletion of sites * Improve performance for custom field access within templates * Add interface name filter for IP addresses Bug Fixes: * Fixed form field population of tags with spaces * Circuit termination missing from available cable termination types * Fix formatting of cable length during cable trace * Correctly display color block for white cables * Fix custom field rendering for Jinja2 export templates * Fix error handling when attempting to delete a protected object via API * Fix filtering devices by "has power outlets" * Fix exception when deleting a circuit with a termination(s) * Fixed login link retaining query parameters https://github.com/digitalocean/netbox/releases/tag/v2.5.13
72 lines
2.7 KiB
Makefile
72 lines
2.7 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= netbox
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 2.5.13
|
|
CATEGORIES= net-mgmt
|
|
|
|
MAINTAINER= kai@FreeBSD.org
|
|
COMMENT= IP address management tool
|
|
|
|
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-cors-headers>=2.4.0:www/py-dj22-django-cors-headers@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}dj22-django-debug-toolbar>=1.11:www/py-dj22-django-debug-toolbar@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}dj22-django-filter>=2.0.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-tables2>=2.0.3:www/py-dj22-django-tables2@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}dj22-django-taggit>=0.24.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.1:www/py-dj22-djangorestframework@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}dj22-drf-yasg>=1.14.0:www/py-dj22-drf-yasg@${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: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.7.2:security/py-pycryptodome@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}pillow>=5.3.0:graphics/py-pillow@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}psycopg2>=2.7.6.1:databases/py-psycopg2@${PY_FLAVOR}
|
|
|
|
USES= pgsql:9.4+ python:3.5+
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= digitalocean
|
|
|
|
SUB_FILES= pkg-message
|
|
SUB_LIST= DATADIR=${DATADIR} PYTHON_VER=${PYTHON_VER}
|
|
NO_BUILD= yes
|
|
NO_ARCH= yes
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|==|>=|' ${WRKSRC}/requirements.txt
|
|
|
|
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
|
|
|
|
post-install-DOCS-on:
|
|
cd ${WRKSRC}/docs ; \
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR} ; \
|
|
for src in $$( ${FIND} . ! -name '*.bak' ) ; do \
|
|
dst=${STAGEDIR}${DOCSDIR}$${src#.} ; \
|
|
if ${TEST} -d "$$src" ; then \
|
|
${MKDIR} "$$dst" ; \
|
|
else \
|
|
${INSTALL_DATA} "$$src" "$$dst" ; \
|
|
fi \
|
|
done
|
|
|
|
.include <bsd.port.mk>
|