1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/net-mgmt/netbox/Makefile
Kai Knoblich 34b7bd9d59 net-mgmt/netbox: Change RUN_DEPENDS
* Switch the port from the repo-copied py-dj22-django* dependencies to the
  original ones as they're using Django 2.2 now.

* Bump PORTREVISION due changed dependencies.
2020-06-21 08:57:10 +00:00

81 lines
3.2 KiB
Makefile

# $FreeBSD$
PORTNAME= netbox
DISTVERSIONPREFIX= v
DISTVERSION= 2.7.12
PORTREVISION= 1
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}django-cacheops>=4.2:www/py-django-cacheops@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}django-cors-headers>=3.2.1:www/py-django-cors-headers@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}django-debug-toolbar>=2.1:www/py-django-debug-toolbar@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}django-filter>=2.2.0:www/py-django-filter@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}django-mptt>=0.9.1:www/py-django-mptt@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}django-prometheus>=1.1.0:www/py-django-prometheus@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}django-rq>=2.2.0:devel/py-django-rq@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}django-tables2>=2.2.1:www/py-django-tables2@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}django-taggit>=1.2.0:www/py-django-taggit@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}django-taggit-serializer>=0.1.7:www/py-django-taggit-serializer@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}django-timezone-field>=4.0:www/py-django-timezone-field@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}djangorestframework>=3.10.3:www/py-djangorestframework@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}drf-yasg>=1.17.0:www/py-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}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} \
${PY_PILLOW} \
${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} \
${PYTHON_PKGNAMEPREFIX}gunicorn>=19.9.0.:www/py-gunicorn@${PY_FLAVOR}
USES= pgsql:9.4+ python:3.5+
USE_GITHUB= yes
GH_ACCOUNT= netbox-community
SUB_FILES= 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= DOCS 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
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
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKDIR}/netboxrc.sample ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>