COMMENT =	full-featured LDAP client running as web application

MODPY_DISTV =	1.8.1
DISTNAME =	web2ldap-${MODPY_DISTV}
REVISION =	3

CATEGORIES =	databases www sysutils

HOMEPAGE =	https://web2ldap.de/web2ldap.html

MAINTAINER =	Lucas Raab <tuftedocelot@fastmail.fm>

# Apache 2.0
PERMIT_PACKAGE =	Yes

SITES =		https://www.web2ldap.de/download/

MODULES =	lang/python

FIX_EXTRACT_PERMISSIONS =	Yes
MODPY_PYBUILD =	setuptools

BUILD_DEPENDS =	databases/py-ldap0>=1.4.7 \
		devel/py-iso3166 \
		textproc/py-xlwt \
		net/py-dnspython \
		security/py-asn1crypto \
		security/py-paramiko
RUN_DEPENDS =	${BUILD_DEPENDS} \
		graphics/py-Pillow \
		sysutils/py-prometheus_client \
		telephony/py-phonenumbers \
		textproc/py-defusedxml

CONFDIR =	${PREFIX}/share/examples/web2ldap

# tests are not shipped with the tarball
NO_TEST =	Yes

post-install:
	cp -r ${WRKSRC}/htdocs ${PREFIX}/share/doc/web2ldap
	mv ${PREFIX}/etc/web2ldap ${PREFIX}/share/examples/web2ldap
	rmdir ${PREFIX}/etc

.include <bsd.port.mk>
