mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
New port: www/py-dj22-django-prometheus
Repocopy www/py-django-prometheus and assign it to Django 2.2. That port will be required for the upcoming update of net-mgmt/netbox to 2.6. Also limit the port to Python 3.5+ as Django 2.2 requires it as minimum dependency and add the related CONFLICTS_INSTALL entries.
This commit is contained in:
parent
06f65b4c7f
commit
58d5a18fa5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=504808
@ -1492,6 +1492,7 @@
|
||||
SUBDIR += py-dj22-django-filter
|
||||
SUBDIR += py-dj22-django-js-asset
|
||||
SUBDIR += py-dj22-django-mptt
|
||||
SUBDIR += py-dj22-django-prometheus
|
||||
SUBDIR += py-dj22-django-tables2
|
||||
SUBDIR += py-dj22-django-taggit
|
||||
SUBDIR += py-dj22-django-taggit-serializer
|
||||
|
35
www/py-dj22-django-prometheus/Makefile
Normal file
35
www/py-dj22-django-prometheus/Makefile
Normal file
@ -0,0 +1,35 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= django-prometheus
|
||||
PORTVERSION= 1.0.15
|
||||
CATEGORIES= www python
|
||||
MASTER_SITES= CHEESESHOP
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}dj22-
|
||||
|
||||
MAINTAINER= kai@FreeBSD.org
|
||||
COMMENT= Export Django monitoring metrics for Prometheus.io
|
||||
|
||||
LICENSE= APACHE20
|
||||
|
||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django22>=1.8:www/py-django22@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}prometheus-client>=0.0.21:net-mgmt/py-prometheus-client@${PY_FLAVOR}
|
||||
|
||||
USES= python:3.5+
|
||||
USE_PYTHON= autoplist distutils
|
||||
|
||||
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}django-prometheus
|
||||
|
||||
NO_ARCH= yes
|
||||
|
||||
OPTIONS_GROUP= DATABASE CACHE
|
||||
OPTIONS_GROUP_DATABASE= MYSQL PGSQL
|
||||
OPTIONS_GROUP_CACHE= MEMCACHED REDIS
|
||||
|
||||
MEMCACHED_DESC= Memcached distributed memory caching support
|
||||
|
||||
MEMCACHED_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}python-memcached>=0:databases/py-python-memcached@${PY_FLAVOR}
|
||||
MYSQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mysqlclient>=0:databases/py-mysqlclient@${PY_FLAVOR}
|
||||
PGSQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}psycopg2>=0:databases/py-psycopg2@${PY_FLAVOR}
|
||||
REDIS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django-redis>=4.8:www/py-django-redis@${PY_FLAVOR}
|
||||
|
||||
.include <bsd.port.mk>
|
3
www/py-dj22-django-prometheus/distinfo
Normal file
3
www/py-dj22-django-prometheus/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1556181024
|
||||
SHA256 (django-prometheus-1.0.15.tar.gz) = e8da2eb91cb20cfe0b8130305d34f3503766b7a08a244ce1031c36136beeb7a5
|
||||
SIZE (django-prometheus-1.0.15.tar.gz) = 13708
|
16
www/py-dj22-django-prometheus/pkg-descr
Normal file
16
www/py-dj22-django-prometheus/pkg-descr
Normal file
@ -0,0 +1,16 @@
|
||||
This library exports Django monitoring metrics for Prometheus.io.
|
||||
|
||||
It provides support to monitor the following databases types:
|
||||
|
||||
* SQLite (via Django)
|
||||
* PostgreSQL
|
||||
* MySQL
|
||||
|
||||
In addition, caches can also be monitored:
|
||||
|
||||
* memcached
|
||||
* Redis
|
||||
|
||||
It's even possible to export metrics of Django models and migrations.
|
||||
|
||||
WWW: https://github.com/korfuri/django-prometheus
|
@ -17,6 +17,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django111>=1.8:www/py-django111@${PY_FLAVOR}
|
||||
USES= python
|
||||
USE_PYTHON= autoplist distutils
|
||||
|
||||
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}dj22-django-prometheus
|
||||
|
||||
NO_ARCH= yes
|
||||
|
||||
OPTIONS_GROUP= DATABASE CACHE
|
||||
|
Loading…
Reference in New Issue
Block a user