Bug 185959 - [NEW PORT] www/py-django-auth-ldap: LDAP integration for django.contrib.auth
Summary: [NEW PORT] www/py-django-auth-ldap: LDAP integration for django.contrib.auth
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Ruslan Makhmatkhanov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-21 07:50 UTC by Alexander Kriventsov
Modified: 2014-01-21 20:10 UTC (History)
0 users

See Also:


Attachments
file.shar (2.98 KB, text/plain)
2014-01-21 07:50 UTC, Alexander Kriventsov
no flags Details
py-django-auth-ldap.txt (1.89 KB, text/plain; charset=windows-1251)
2014-01-21 08:43 UTC, Alexander Kriventsov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kriventsov 2014-01-21 07:50:00 UTC
LDAP integration for django.contrib.auth

Fix: Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-01-21 07:50:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->freebsd-python

freebsd-python@ wants this port PRs (via the GNATS Auto Assign Tool)
Comment 2 R.Mahmatkhanov 2014-01-21 08:12:47 UTC
Alexander, would you please fix your submission a little bit?

1. New ports should be stage-aware. For python ports it's quite easy do. 
Just add PYDISTUTILS_AUTOPLIST=yes and remove NO_STAGE=yes from 
Makefile. After that, you may also freely remove pkg-plist, because it's 
contents will now be generated automatically.

2. LICENSE=BSD - portlint warns about recent change in this area. Plain 
"BSD" value in this knob is deprecated. It should look like 
BSD[?]CLAUSE. I see on official site that the actual license of 
django-auth-ldap is 2-clause BSD license, so you need to change it to 
LICENSE=BSD2CLAUSE.

Except of that, this new port is fine!

-- 
Regards,
Ruslan

T.O.S. Of Reality
Comment 3 Alexander Kriventsov 2014-01-21 08:43:59 UTC
Hello.
New port in attachment.
Thanks a lot.

21.01.2014 12:12, Ruslan Makhmatkhanov пиÑеÑ:
> Alexander, would you please fix your submission a little bit?
>
> 1. New ports should be stage-aware. For python ports it's quite easy do.
> Just add PYDISTUTILS_AUTOPLIST=yes and remove NO_STAGE=yes from
> Makefile. After that, you may also freely remove pkg-plist, because it's
> contents will now be generated automatically.
>
> 2. LICENSE=BSD - portlint warns about recent change in this area. Plain
> "BSD" value in this knob is deprecated. It should look like
> BSD[?]CLAUSE. I see on official site that the actual license of
> django-auth-ldap is 2-clause BSD license, so you need to change it to
> LICENSE=BSD2CLAUSE.
>
> Except of that, this new port is fine!
>
Comment 4 Ruslan Makhmatkhanov freebsd_committer freebsd_triage 2014-01-21 09:15:53 UTC
Responsible Changed
From-To: freebsd-python->rm

I will take it.
Comment 5 dfilter service freebsd_committer freebsd_triage 2014-01-21 20:02:26 UTC
Author: rm
Date: Tue Jan 21 20:02:18 2014
New Revision: 340647
URL: http://svnweb.freebsd.org/changeset/ports/340647
QAT: https://qat.redports.org/buildarchive/r340647/

Log:
  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: http://pythonhosted.org/django-auth-ldap/
  
  PR:		185959
  Submitted by:	Alexander Kriventsov <avk@vl.ru>

Added:
  head/www/py-django-auth-ldap/
  head/www/py-django-auth-ldap/Makefile   (contents, props changed)
  head/www/py-django-auth-ldap/distinfo   (contents, props changed)
  head/www/py-django-auth-ldap/pkg-descr   (contents, props changed)
Modified:
  head/www/Makefile

Modified: head/www/Makefile
==============================================================================
--- head/www/Makefile	Tue Jan 21 19:56:44 2014	(r340646)
+++ head/www/Makefile	Tue Jan 21 20:02:18 2014	(r340647)
@@ -1496,6 +1496,7 @@
     SUBDIR += py-django-app-plugins
     SUBDIR += py-django-appconf
     SUBDIR += py-django-appmedia
+    SUBDIR += py-django-auth-ldap
     SUBDIR += py-django-caching-app-plugins
     SUBDIR += py-django-classy-tags
     SUBDIR += py-django-cms

Added: head/www/py-django-auth-ldap/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/py-django-auth-ldap/Makefile	Tue Jan 21 20:02:18 2014	(r340647)
@@ -0,0 +1,22 @@
+# Created by: Alexander Kriventsov <avk@vl.ru>
+# $FreeBSD$
+
+PORTNAME=	django-auth-ldap
+PORTVERSION=	1.1.7
+CATEGORIES=	www security python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	avk@vl.ru
+COMMENT=	LDAP integration for django.contrib.auth
+
+LICENSE=	BSD2CLAUSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}django>=1.3.1:${PORTSDIR}/www/py-django \
+		${PYTHON_PKGNAMEPREFIX}ldap2>=2.0:${PORTSDIR}/net/py-ldap2
+
+USE_PYTHON=		yes
+USE_PYDISTUTILS=	yes
+PYDISTUTILS_AUTOPLIST=	yes
+
+.include <bsd.port.mk>

Added: head/www/py-django-auth-ldap/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/py-django-auth-ldap/distinfo	Tue Jan 21 20:02:18 2014	(r340647)
@@ -0,0 +1,2 @@
+SHA256 (django-auth-ldap-1.1.7.tar.gz) = d4817ce758be27cbc687d83958d0109cdb2b7dbc696da661bd66c9975cb14b61
+SIZE (django-auth-ldap-1.1.7.tar.gz) = 127186

Added: head/www/py-django-auth-ldap/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/py-django-auth-ldap/pkg-descr	Tue Jan 21 20:02:18 2014	(r340647)
@@ -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: http://pythonhosted.org/django-auth-ldap/
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 6 Ruslan Makhmatkhanov freebsd_committer freebsd_triage 2014-01-21 20:03:08 UTC
State Changed
From-To: open->closed

Committed, thank you!