From f6f36be196f3be50b6b320cb7099a54ed73f90a4 Mon Sep 17 00:00:00 2001 From: Alexey Dokuchaev Date: Fri, 29 Jan 2021 13:35:49 +0000 Subject: - Resurrect and update to version 1.5.112 - Actualize dependencies and pkg-message --- MOVED | 1 - www/Makefile | 1 + www/web2ldap/Makefile | 34 +++++++++++++++++++++++ www/web2ldap/distinfo | 3 ++ www/web2ldap/files/patch-web2ldap_app_core.py | 29 +++++++++++++++++++ www/web2ldap/files/pkg-message.in | 21 ++++++++++++++ www/web2ldap/files/web2ldap.in | 40 +++++++++++++++++++++++++++ www/web2ldap/pkg-descr | 3 ++ www/web2ldap/pkg-install | 20 ++++++++++++++ 9 files changed, 151 insertions(+), 1 deletion(-) create mode 100644 www/web2ldap/Makefile create mode 100644 www/web2ldap/distinfo create mode 100644 www/web2ldap/files/patch-web2ldap_app_core.py create mode 100644 www/web2ldap/files/pkg-message.in create mode 100644 www/web2ldap/files/web2ldap.in create mode 100644 www/web2ldap/pkg-descr create mode 100644 www/web2ldap/pkg-install diff --git a/MOVED b/MOVED index 949dfee37475..b15064750eaf 100644 --- a/MOVED +++ b/MOVED @@ -13691,7 +13691,6 @@ sysutils/u-boot-zybo||2020-01-10|Has expired: Broken for more than 6 months x11-themes/kde-icons-kool-gorilla||2020-01-10|Has expired: Broken for more than 3 months, unmaintained sysutils/docker-freebsd||2020-01-11|Has expired: Broken for more than 9 months science/molden|biology/molden|2020-01-12|The duplicate port was removed in rev.505268 -www/web2ldap||2020-01-13|Broken: unfechable and missing dependencies net-mgmt/flow-extract||2020-01-14|Has expired: marked BROKEN for more than 6 months textproc/pootle||2020-01-14|Has expired: Unamaintained, marked BROKEN for more than 5 months cad/elmerfem|science/elmerfem|2020-01-15|Move to a proper category diff --git a/www/Makefile b/www/Makefile index e387bdba604e..225d8acce38b 100644 --- a/www/Makefile +++ b/www/Makefile @@ -2269,6 +2269,7 @@ SUBDIR += w3m SUBDIR += w3m-img SUBDIR += w3mir + SUBDIR += web2ldap SUBDIR += webalizer SUBDIR += webbrowser SUBDIR += webcopy diff --git a/www/web2ldap/Makefile b/www/web2ldap/Makefile new file mode 100644 index 000000000000..9931c2827210 --- /dev/null +++ b/www/web2ldap/Makefile @@ -0,0 +1,34 @@ +# Created by: Oddbjorn Steffensen +# $FreeBSD$ + +PORTNAME= web2ldap +PORTVERSION= 1.5.112 +CATEGORIES= www python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= girgen@FreeBSD.org +COMMENT= Python-based WWW gateway to LDAP servers + +LICENSE= APACHE20 + +RUN_DEPENDS= \ + ${PYTHON_PKGNAMEPREFIX}asn1crypto>=0.22.0:devel/py-asn1crypto@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}paramiko>0:security/py-paramiko@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}dnspython2>=2.0.0:dns/py-dnspython2@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}xlwt>0:textproc/py-xlwt@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}ldap0>=1.0.1:net/py-ldap0@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}defusedxml>0:devel/py-defusedxml@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}prometheus-client>=0.7.1:net-mgmt/py-prometheus-client@${PY_FLAVOR} \ + ${LOCALBASE}/etc/mime.types:misc/mime-support + +OPTIONS_DEFINE= DOCS +USES= cpe python:3.6+ +USE_PYTHON= distutils autoplist + +SUB_FILES= pkg-message ${PORTNAME} +USE_RC_SUBR= ${PORTNAME} +NO_ARCH= yes + +.include diff --git a/www/web2ldap/distinfo b/www/web2ldap/distinfo new file mode 100644 index 000000000000..e460c54b74be --- /dev/null +++ b/www/web2ldap/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1606422618 +SHA256 (web2ldap-1.5.112.tar.gz) = a8af312994d284b568bf4a4ca63d11b5ec5661245b2c94aafe1a221c3cd70644 +SIZE (web2ldap-1.5.112.tar.gz) = 523572 diff --git a/www/web2ldap/files/patch-web2ldap_app_core.py b/www/web2ldap/files/patch-web2ldap_app_core.py new file mode 100644 index 000000000000..128dc349ed74 --- /dev/null +++ b/www/web2ldap/files/patch-web2ldap_app_core.py @@ -0,0 +1,29 @@ +--- web2ldap/app/core.py.orig 2020-05-04 11:51:59 UTC ++++ web2ldap/app/core.py +@@ -19,12 +19,6 @@ import time + import web2ldap.__about__ + from web2ldap.log import logger + +-# prefixes considered to indicate system-wide installation outside a venv +-OS_SYS_PREFIXES = { +- '/usr', +- '/usr/local', +-} +- + logger.info('Starting web2ldap %s', web2ldap.__about__.__version__) + # this has to be done before import module package ldap0 + os.environ['LDAPNOINIT'] = '1' +@@ -39,11 +33,9 @@ check_inst() + if 'WEB2LDAP_HOME' in os.environ: + # env var points to web2ldap root directory + etc_dir = os.path.join(os.environ['WEB2LDAP_HOME'], 'etc', 'web2ldap') +-elif os.name == 'posix' and sys.prefix in OS_SYS_PREFIXES: +- # assume OS-wide installation on POSIX platform (Linux, BSD, etc.) +- etc_dir = '/etc/web2ldap' + else: +- # virtual env ++ # assume OS-wide installation on POSIX platform (Linux, BSD, etc.) ++ # or virtual env + etc_dir = os.path.join(sys.prefix, 'etc', 'web2ldap') + + # Default directory for [web2ldap]/etc/web2ldap/templates diff --git a/www/web2ldap/files/pkg-message.in b/www/web2ldap/files/pkg-message.in new file mode 100644 index 000000000000..85a83325de91 --- /dev/null +++ b/www/web2ldap/files/pkg-message.in @@ -0,0 +1,21 @@ +[ +{ type: install + message: <