aboutsummaryrefslogtreecommitdiff
path: root/www/web2ldap
diff options
context:
space:
mode:
authorRuslan Makhmatkhanov <rm@FreeBSD.org>2015-06-18 06:37:08 +0000
committerRuslan Makhmatkhanov <rm@FreeBSD.org>2015-06-18 06:37:08 +0000
commit5d8d3df13cf1c392b6750f3d3115544d6408bbe1 (patch)
treea95af0d5f0a0b743feb0d41554a4247e5e116d02 /www/web2ldap
parenta21d57bbcc44b75a901188c80f85a67a8e049bf3 (diff)
downloadports-5d8d3df13cf1c392b6750f3d3115544d6408bbe1.tar.gz
ports-5d8d3df13cf1c392b6750f3d3115544d6408bbe1.zip
www/web2ldap: general cleanup
- replace patches with USES=shebangs and REINPLACE_CMD - add LICENSE (GPLv2) - limit python version to 2.x, because 3.x is not supported - modernize dependency upon devel/py-ipaddr and bump PORTREVISION accordingly Approved by: bsam (maintainer, by email)
Notes
Notes: svn path=/head/; revision=390016
Diffstat (limited to 'www/web2ldap')
-rw-r--r--www/web2ldap/Makefile11
-rw-r--r--www/web2ldap/files/patch-etc__web2ldap__web2ldapcnf__standalone.py_115
-rw-r--r--www/web2ldap/files/patch-etc__web2ldap__web2ldapcnf__standalone.py_219
-rw-r--r--www/web2ldap/files/patch-fcgi__web2ldap.py13
-rw-r--r--www/web2ldap/files/patch-sbin__compile.py19
-rw-r--r--www/web2ldap/files/patch-sbin__web2ldap.py13
6 files changed, 8 insertions, 82 deletions
diff --git a/www/web2ldap/Makefile b/www/web2ldap/Makefile
index d6f535d98834..7fdd24ba34c1 100644
--- a/www/web2ldap/Makefile
+++ b/www/web2ldap/Makefile
@@ -3,6 +3,7 @@
PORTNAME= web2ldap
PORTVERSION= 1.2.19
+PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= http://www.web2ldap.de/download/ \
http://www.sfr-fresh.com/unix/www/ \
@@ -11,13 +12,16 @@ MASTER_SITES= http://www.web2ldap.de/download/ \
MAINTAINER= bsam@FreeBSD.org
COMMENT= Python-based WWW gateway to LDAP servers
+LICENSE= GPLv2
+
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ldap2>=2.4.0:${PORTSDIR}/net/py-ldap2 \
${PYTHON_SITELIBDIR}/pyweblib/__init__.py:${PORTSDIR}/www/pyweblib \
- ${PYTHON_SITELIBDIR}/ipaddr.py:${PORTSDIR}/devel/py-ipaddr \
+ ${PYTHON_PKGNAMEPREFIX}ipaddr>0:${PORTSDIR}/devel/py-ipaddr \
${LOCALBASE}/etc/mime.types:${PORTSDIR}/misc/mime-support
OPTIONS_DEFINE= DOCS
-USES= cpe python
+USES= cpe python:2 shebangfix
+SHEBANG_FILES= sbin/*.py fcgi/*.py
SUB_FILES= pkg-message
PORTDOCS= *
@@ -25,7 +29,8 @@ PORTDATA= *
PLIST_DIRS= %%DATADIR%%/var/log %%DATADIR%%/var/run
post-patch:
- @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
+ @${REINPLACE_CMD} -e 's|/etc|${LOCALBASE}/etc|g' \
+ -e 's|nobody|web2ldap|g' \
${WRKSRC}/etc/web2ldap/web2ldapcnf/standalone.py
@${FIND} ${WRKSRC} -name '*.orig' -delete -o -name '*.bak' -delete
diff --git a/www/web2ldap/files/patch-etc__web2ldap__web2ldapcnf__standalone.py_1 b/www/web2ldap/files/patch-etc__web2ldap__web2ldapcnf__standalone.py_1
deleted file mode 100644
index 0f18b8b8111a..000000000000
--- a/www/web2ldap/files/patch-etc__web2ldap__web2ldapcnf__standalone.py_1
+++ /dev/null
@@ -1,15 +0,0 @@
-*** etc/web2ldap/web2ldapcnf/standalone.py.orig Sat Jun 5 12:03:35 2004
---- etc/web2ldap/web2ldapcnf/standalone.py Thu Feb 24 19:57:00 2005
-***************
-*** 65,69 ****
- document_root = os.path.join(web2ldapcnf.web2ldap_dir,'htdocs')
-
- # Path name of mime.types file
-! mime_types = '/etc/mime.types'
-
---- 65,69 ----
- document_root = os.path.join(web2ldapcnf.web2ldap_dir,'htdocs')
-
- # Path name of mime.types file
-! mime_types = '%%LOCALBASE%%/etc/mime.types'
-
diff --git a/www/web2ldap/files/patch-etc__web2ldap__web2ldapcnf__standalone.py_2 b/www/web2ldap/files/patch-etc__web2ldap__web2ldapcnf__standalone.py_2
deleted file mode 100644
index 1051d6127234..000000000000
--- a/www/web2ldap/files/patch-etc__web2ldap__web2ldapcnf__standalone.py_2
+++ /dev/null
@@ -1,19 +0,0 @@
-*** etc/web2ldap/web2ldapcnf/standalone.py.orig Thu Feb 24 20:11:25 2005
---- etc/web2ldap/web2ldapcnf/standalone.py Thu Feb 24 20:12:36 2005
-***************
-*** 22,28 ****
- access_allowed = ['127.0.0.0/255.0.0.0']
-
- # User account name to setuid after being started as root
-! run_username = 'web2ldap'
-
- # Contact mail address of the server admin when running stand-alone
- server_admin = 'admin@web2ldap.de'
---- 22,28 ----
- access_allowed = ['127.0.0.0/255.0.0.0']
-
- # User account name to setuid after being started as root
-! run_username = 'nobody'
-
- # Contact mail address of the server admin when running stand-alone
- server_admin = 'admin@web2ldap.de'
diff --git a/www/web2ldap/files/patch-fcgi__web2ldap.py b/www/web2ldap/files/patch-fcgi__web2ldap.py
deleted file mode 100644
index 707d6d18a922..000000000000
--- a/www/web2ldap/files/patch-fcgi__web2ldap.py
+++ /dev/null
@@ -1,13 +0,0 @@
-*** fcgi/web2ldap.py.orig Wed Mar 20 15:57:19 2002
---- fcgi/web2ldap.py Wed Mar 20 15:57:25 2002
-***************
-*** 1,4 ****
-! #!/usr/bin/python
-
- """
- fcgi/web2ldap.py - stub script for running as FastCGI server
---- 1,4 ----
-! #!/usr/local/bin/python
-
- """
- fcgi/web2ldap.py - stub script for running as FastCGI server
diff --git a/www/web2ldap/files/patch-sbin__compile.py b/www/web2ldap/files/patch-sbin__compile.py
deleted file mode 100644
index fd6a7a798a4f..000000000000
--- a/www/web2ldap/files/patch-sbin__compile.py
+++ /dev/null
@@ -1,19 +0,0 @@
-*** sbin/compile.py.orig Tue May 13 15:46:59 2003
---- sbin/compile.py Thu Feb 24 15:04:30 2005
-***************
-*** 4,10 ****
- $Id: compile.py,v 1.3 2003/05/13 11:46:59 michael Exp $
- """
-
-! #!/usr/bin/python
-
- import sys,compileall
-
---- 4,10 ----
- $Id: compile.py,v 1.3 2003/05/13 11:46:59 michael Exp $
- """
-
-! #!/usr/local/bin/python
-
- import sys,compileall
-
diff --git a/www/web2ldap/files/patch-sbin__web2ldap.py b/www/web2ldap/files/patch-sbin__web2ldap.py
deleted file mode 100644
index 4f7011c82a99..000000000000
--- a/www/web2ldap/files/patch-sbin__web2ldap.py
+++ /dev/null
@@ -1,13 +0,0 @@
-*** sbin/web2ldap.py.orig Wed Mar 20 15:58:37 2002
---- sbin/web2ldap.py Wed Mar 20 16:00:47 2002
-***************
-*** 1,4 ****
-! #!/usr/bin/python -OO
-
- """
- sbin/web2ldap.py - startscript for running as stand-alone HTTP server
---- 1,4 ----
-! #!/usr/local/bin/python -OO
-
- """
- sbin/web2ldap.py - startscript for running as stand-alone HTTP server