aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Knoblich <kai@FreeBSD.org>2021-11-05 08:31:20 +0000
committerKai Knoblich <kai@FreeBSD.org>2021-11-05 08:35:57 +0000
commit6e6ef371ef242201d0273bdfe84f9c27a2542cbe (patch)
tree6ab79981773438be07d76ee311fe6f189b98489e
parent81389bf63ec797a6797a05a10fab6a958a281da5 (diff)
www/py-django-radius: Add new port
django-radius enables you to authenticate your Django users against one or many RADIUS servers easily. WWW: https://github.com/robgolding/django-radius
-rw-r--r--www/Makefile1
-rw-r--r--www/py-django-radius/Makefile27
-rw-r--r--www/py-django-radius/distinfo3
-rw-r--r--www/py-django-radius/files/patch-setup.py11
-rw-r--r--www/py-django-radius/pkg-descr4
5 files changed, 46 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index cd55207cccd0..b54a27756235 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1550,6 +1550,7 @@
SUBDIR += py-django-post_office
SUBDIR += py-django-prometheus
SUBDIR += py-django-pyscss
+ SUBDIR += py-django-radius
SUBDIR += py-django-ranged-response
SUBDIR += py-django-recaptcha
SUBDIR += py-django-redis
diff --git a/www/py-django-radius/Makefile b/www/py-django-radius/Makefile
new file mode 100644
index 000000000000..f46b3e9947d0
--- /dev/null
+++ b/www/py-django-radius/Makefile
@@ -0,0 +1,27 @@
+PORTNAME= django-radius
+DISTVERSION= 1.5.0
+CATEGORIES= www net python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= kai@FreeBSD.org
+COMMENT= Django authentication backend for RADIUS
+
+LICENSE= BSD3CLAUSE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyrad>=1.2:net/pyrad@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}future>=0.16.0:devel/py-future@${PY_FLAVOR}
+
+USES= python:3.6+
+USE_PYTHON= autoplist concurrent distutils
+
+NO_ARCH= yes
+PORTDOCS= README.md
+
+OPTIONS_DEFINE= DOCS
+
+post-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_MAN} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>
diff --git a/www/py-django-radius/distinfo b/www/py-django-radius/distinfo
new file mode 100644
index 000000000000..bc61184fec86
--- /dev/null
+++ b/www/py-django-radius/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1614808218
+SHA256 (django-radius-1.5.0.tar.gz) = c431aec30f69fd28ebd3ebcdfa561ed4c660de1fac40c4e000f0786efe9272f9
+SIZE (django-radius-1.5.0.tar.gz) = 6914
diff --git a/www/py-django-radius/files/patch-setup.py b/www/py-django-radius/files/patch-setup.py
new file mode 100644
index 000000000000..95d0016e65c3
--- /dev/null
+++ b/www/py-django-radius/files/patch-setup.py
@@ -0,0 +1,11 @@
+Relax version requirement of devel/py-future
+
+--- setup.py.orig 2021-11-04 18:14:51 UTC
++++ setup.py
+@@ -19,5 +19,5 @@ setup(
+ ],
+ zip_safe=False,
+ packages=find_packages(),
+- install_requires=['pyrad >= 1.2', 'future==0.16.0'],
++ install_requires=['pyrad >= 1.2', 'future>=0.16.0'],
+ )
diff --git a/www/py-django-radius/pkg-descr b/www/py-django-radius/pkg-descr
new file mode 100644
index 000000000000..ebb9abf681bc
--- /dev/null
+++ b/www/py-django-radius/pkg-descr
@@ -0,0 +1,4 @@
+django-radius enables you to authenticate your Django users against one or many
+RADIUS servers easily.
+
+WWW: https://github.com/robgolding/django-radius