Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Nov 2021 08:37:16 GMT
From:      Kai Knoblich <kai@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 6e6ef371ef24 - main - www/py-django-radius: Add new port
Message-ID:  <202111050837.1A58bGsV024346@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kai:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6e6ef371ef242201d0273bdfe84f9c27a2542cbe

commit 6e6ef371ef242201d0273bdfe84f9c27a2542cbe
Author:     Kai Knoblich <kai@FreeBSD.org>
AuthorDate: 2021-11-05 08:31:20 +0000
Commit:     Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2021-11-05 08:35:57 +0000

    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
---
 www/Makefile                              |  1 +
 www/py-django-radius/Makefile             | 27 +++++++++++++++++++++++++++
 www/py-django-radius/distinfo             |  3 +++
 www/py-django-radius/files/patch-setup.py | 11 +++++++++++
 www/py-django-radius/pkg-descr            |  4 ++++
 5 files changed, 46 insertions(+)

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202111050837.1A58bGsV024346>