diff options
| author | Michael Gmelin <grembo@FreeBSD.org> | 2025-05-05 15:27:20 +0000 |
|---|---|---|
| committer | Michael Gmelin <grembo@FreeBSD.org> | 2025-05-05 18:00:36 +0000 |
| commit | 0ea179503a96ea442fcbc4eba59ad53c19b9a726 (patch) | |
| tree | 31d207a35909f3ec715ff2c77766c4b0ff4bf6c9 | |
| parent | 2dbbaacbadf7c775e331659abde0da139b4dcc99 (diff) | |
www/py-dj51-django-allauth: New port
Clone of existing port for Django 5.1.
Compared to py-django-allauth, this updates to the
latest version and enables MFA by default.
Did not want to push this onto sunpoet@, so currently
I'm the maintainer. Please feel free to take the port
from me without asking.
PR: 286533
Co-authored-by: Sebastian <sko@rostwald.de>
| -rw-r--r-- | www/Makefile | 1 | ||||
| -rw-r--r-- | www/py-dj51-django-allauth/Makefile | 43 | ||||
| -rw-r--r-- | www/py-dj51-django-allauth/distinfo | 3 | ||||
| -rw-r--r-- | www/py-dj51-django-allauth/pkg-descr | 2 |
4 files changed, 49 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile index 2736218b61a2..07355e6d6e13 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1537,6 +1537,7 @@ SUBDIR += py-dj50-strawberry-graphql-django SUBDIR += py-dj51-channels SUBDIR += py-dj51-channels-redis + SUBDIR += py-dj51-django-allauth SUBDIR += py-dj51-django-auth-ldap SUBDIR += py-dj51-django-choices-field SUBDIR += py-dj51-django-cors-headers diff --git a/www/py-dj51-django-allauth/Makefile b/www/py-dj51-django-allauth/Makefile new file mode 100644 index 000000000000..ab76e8235404 --- /dev/null +++ b/www/py-dj51-django-allauth/Makefile @@ -0,0 +1,43 @@ +PORTNAME= django-allauth +PORTVERSION= 65.7.0 +CATEGORIES= www python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}dj51- +DISTNAME= ${PORTNAME:S/-/_/}-${PORTVERSION} + +MAINTAINER= grembo@FreeBSD.org +COMMENT= User registration with social account authentication +WWW= https://allauth.org/ \ + https://docs.allauth.org/en/latest/ \ + https://github.com/pennersr/django-allauth + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=40.8.0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}fido2>=0:security/py-fido2@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django51>=5.1:www/py-django51@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +OPTIONS_DEFINE= MFA OPENID SAML SOCIALACCOUNT STEAM +OPTIONS_DEFAULT=MFA OPENID SOCIALACCOUNT +MFA_DESC= Multi-Factor Authentication support +OPENID_DESC= OpenID authentication support +SAML_DESC= Security Assertion Markup Language support +SOCIALACCOUNT_DESC= Social network account support +STEAM_DESC= Steam OpenID authentication support + +MFA_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}qrcode>=7.0.0:textproc/py-qrcode@${PY_FLAVOR} +OPENID_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}python3-openid>=3.0.8:security/py-python3-openid@${PY_FLAVOR} +SAML_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}python3-saml>=1.15.0<2.0.0:security/py-python3-saml@${PY_FLAVOR} +SOCIALACCOUNT_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyjwt>=1.7:www/py-pyjwt@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}requests-oauthlib>=0.3.0:www/py-requests-oauthlib@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}requests>=2.0.0:www/py-requests@${PY_FLAVOR} +STEAM_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}python3-openid>=3.0.8:security/py-python3-openid@${PY_FLAVOR} + +.include <bsd.port.mk> diff --git a/www/py-dj51-django-allauth/distinfo b/www/py-dj51-django-allauth/distinfo new file mode 100644 index 000000000000..b6869332c540 --- /dev/null +++ b/www/py-dj51-django-allauth/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1746458445 +SHA256 (django_allauth-65.7.0.tar.gz) = eb060692150f39e1529893c2de5f9b46e1dab51153ff6cca7ad72c7c125259ea +SIZE (django_allauth-65.7.0.tar.gz) = 1640126 diff --git a/www/py-dj51-django-allauth/pkg-descr b/www/py-dj51-django-allauth/pkg-descr new file mode 100644 index 000000000000..83cdfd8f3fe9 --- /dev/null +++ b/www/py-dj51-django-allauth/pkg-descr @@ -0,0 +1,2 @@ +django-allauth is a reusable Django app that allows for both local and social +authentication, with flows that just work. |
