5d6c24b1dd
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
36 lines
1,000 B
Makefile
36 lines
1,000 B
Makefile
# 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>
|