Index: head/www/Makefile =================================================================== --- head/www/Makefile +++ head/www/Makefile @@ -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 Index: head/www/py-dj21-django-auth-ldap/Makefile =================================================================== --- head/www/py-dj21-django-auth-ldap/Makefile +++ head/www/py-dj21-django-auth-ldap/Makefile @@ -0,0 +1,36 @@ +# Created by: Alexander Kriventsov +# $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 Index: head/www/py-dj21-django-auth-ldap/distinfo =================================================================== --- head/www/py-dj21-django-auth-ldap/distinfo +++ head/www/py-dj21-django-auth-ldap/distinfo @@ -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 Index: head/www/py-dj21-django-auth-ldap/pkg-descr =================================================================== --- head/www/py-dj21-django-auth-ldap/pkg-descr +++ head/www/py-dj21-django-auth-ldap/pkg-descr @@ -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 Index: head/www/py-django-auth-ldap/Makefile =================================================================== --- head/www/py-django-auth-ldap/Makefile +++ head/www/py-django-auth-ldap/Makefile @@ -21,6 +21,7 @@ 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}