openbsd-ports/databases/web2ldap/Makefile

44 lines
1.1 KiB
Makefile

COMMENT = full-featured LDAP client running as web application
MODPY_EGG_VERSION = 1.7.8
DISTNAME = web2ldap-${MODPY_EGG_VERSION}
REVISION = 0
CATEGORIES = databases www sysutils
HOMEPAGE = https://web2ldap.de/web2ldap.html
MAINTAINER = Lucas Raab <tuftedocelot@fastmail.fm>
# Apache 2.0
PERMIT_PACKAGE = Yes
MASTER_SITES = https://www.web2ldap.de/download/
MODULES = lang/python
FIX_EXTRACT_PERMISSIONS = Yes
MODPY_SETUPTOOLS = Yes
MODPY_PYTEST = Yes
BUILD_DEPENDS = databases/py-ldap0${MODPY_FLAVOR}>=1.4.7 \
devel/py-iso3166${MODPY_FLAVOR} \
textproc/py-xlwt${MODPY_FLAVOR} \
net/py-dnspython${MODPY_FLAVOR} \
security/py-asn1crypto${MODPY_FLAVOR} \
security/py-paramiko${MODPY_FLAVOR}
RUN_DEPENDS = ${BUILD_DEPENDS} \
graphics/py-Pillow${MODPY_FLAVOR} \
sysutils/py-prometheus_client${MODPY_FLAVOR} \
telephony/py-phonenumbers${MODPY_FLAVOR} \
textproc/py-defusedxml${MODPY_FLAVOR}
CONFDIR = ${PREFIX}/share/examples/web2ldap
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>