aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Gmelin <grembo@FreeBSD.org>2024-02-12 16:17:28 +0000
committerMichael Gmelin <grembo@FreeBSD.org>2024-02-18 14:41:38 +0000
commit02ddaaa15bc8994d6be0b245fd646a8f4f6144a9 (patch)
tree3fa01fecee916a78e267b5cd890fdca2fd4e0ef6
parent885a0659dc6890dfb753f1593b275f6c1734b517 (diff)
downloadports-02ddaaa15bc8994d6be0b245fd646a8f4f6144a9.tar.gz
ports-02ddaaa15bc8994d6be0b245fd646a8f4f6144a9.zip
www/py-dj42-django-guardian: New port
Django 4.2 version of www/py-django-guardian, happy to pass it to its maintainer or make it disappear, once 4.2 is the default django version.
-rw-r--r--www/Makefile1
-rw-r--r--www/py-dj42-django-guardian/Makefile23
-rw-r--r--www/py-dj42-django-guardian/distinfo3
-rw-r--r--www/py-dj42-django-guardian/pkg-descr2
4 files changed, 29 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index 4a37ba73b4c0..76a588dc3f9f 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1496,6 +1496,7 @@
SUBDIR += py-dj42-django-extensions
SUBDIR += py-dj42-django-filter
SUBDIR += py-dj42-django-graphiql-debug-toolbar
+ SUBDIR += py-dj42-django-guardian
SUBDIR += py-dj42-django-js-asset
SUBDIR += py-dj42-django-mptt
SUBDIR += py-dj42-django-multiselectfield
diff --git a/www/py-dj42-django-guardian/Makefile b/www/py-dj42-django-guardian/Makefile
new file mode 100644
index 000000000000..fe9af8720593
--- /dev/null
+++ b/www/py-dj42-django-guardian/Makefile
@@ -0,0 +1,23 @@
+PORTNAME= django-guardian
+PORTVERSION= 2.4.0
+CATEGORIES= www python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}dj42-
+
+MAINTAINER= grembo@FreeBSD.org
+COMMENT= Implementation of per object permissions for Django
+WWW= https://github.com/django-guardian/django-guardian
+
+LICENSE= BSD2CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django42>=2.2:www/py-django42@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist concurrent distutils
+
+CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}*${PORTNAME}
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/www/py-dj42-django-guardian/distinfo b/www/py-dj42-django-guardian/distinfo
new file mode 100644
index 000000000000..8280c82993be
--- /dev/null
+++ b/www/py-dj42-django-guardian/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1654276001
+SHA256 (django-guardian-2.4.0.tar.gz) = c58a68ae76922d33e6bdc0e69af1892097838de56e93e78a8361090bcd9f89a0
+SIZE (django-guardian-2.4.0.tar.gz) = 159008
diff --git a/www/py-dj42-django-guardian/pkg-descr b/www/py-dj42-django-guardian/pkg-descr
new file mode 100644
index 000000000000..9c4ac2d92cf9
--- /dev/null
+++ b/www/py-dj42-django-guardian/pkg-descr
@@ -0,0 +1,2 @@
+django-guardian is an implementation of object permissions for Django
+providing extra authentication backend.