New port: www/py-dj21-django-auth-ldap

Repo-copy www/py-django-auth-ldap and assign it to Django 2.1 to enable LDAP
authentication with net-mgmt/netbox that has been switched to Django 2.1
recently.

Also limit the port to Python 3.5+ as Django 2.1 requires it as minimum
dependency and to save some overhead in the building infrastructure.

Reported by:	Thomas Kurschel (via private email)
Approved by:	miwi (mentor)
Differential Revision:	https://reviews.freebsd.org/D19576
This commit is contained in:
Kai Knoblich 2019-03-25 15:55:31 +00:00
parent 0eeeb07225
commit 5d6c24b1dd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=496828
5 changed files with 47 additions and 0 deletions

View File

@ -1508,6 +1508,7 @@
SUBDIR += py-cssselect
SUBDIR += py-cssutils
SUBDIR += py-ddgr
SUBDIR += py-dj21-django-auth-ldap
SUBDIR += py-dj21-django-cors-headers
SUBDIR += py-dj21-django-crispy-forms
SUBDIR += py-dj21-django-debug-toolbar

View File

@ -0,0 +1,36 @@
# Created by: Alexander Kriventsov <avk@vl.ru>
# $FreeBSD$
PORTNAME= django-auth-ldap
PORTVERSION= 1.7.0
CATEGORIES= www security python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}dj21-
MAINTAINER= kai@FreeBSD.org
COMMENT= LDAP integration for django.contrib.auth
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django21>=1.11:www/py-django21@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}ldap>=3.1:net/py-ldap@${PY_FLAVOR}
USES= python:3.5+
USE_PYTHON= autoplist distutils
NO_ARCH= yes
PORTDOCS= *
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}django-auth-ldap
OPTIONS_DEFINE= DOCS
DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=0:textproc/py-sphinx@${PY_FLAVOR}
DOCS_VARS= PYDISTUTILS_BUILD_TARGET+="build_sphinx -a -E"
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/build/sphinx/html && \
${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} \
"! -name .buildinfo -and ! -name objects.inv")
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1551179543
SHA256 (django-auth-ldap-1.7.0.tar.gz) = 72848b3b036d299114be3c6ef38b12f83f6cf1cf1696c5f92e06fe45a1b8e27b
SIZE (django-auth-ldap-1.7.0.tar.gz) = 48897

View File

@ -0,0 +1,6 @@
This is a Django authentication backend that authenticates against an LDAP
service. Configuration can be as simple as a single distinguished name template,
but there are many rich configuration options for working with users, groups,
and permissions.
WWW: https://github.com/django-auth-ldap/django-auth-ldap

View File

@ -21,6 +21,7 @@ USE_PYTHON= autoplist distutils
NO_ARCH= yes
PORTDOCS= *
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}dj21-django-auth-ldap
OPTIONS_DEFINE= DOCS
DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=0:textproc/py-sphinx@${PY_FLAVOR}