1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00
freebsd-ports/www/web2ldap/Makefile
Pav Lucistnik a734ebf032 - Update to 0.15.20
PR:		ports/87242
Submitted by:	Boris B. Samorodov <bsam@ipt.ru> (maintainer)
2005-10-11 08:33:06 +00:00

55 lines
1.6 KiB
Makefile

# New ports collection makefile for: web2ldap
# Date created: 21 July 2000
# Whom: Oddbjorn Steffensen <oddbjorn@tricknology.org>
#
# $FreeBSD$
#
PORTNAME= web2ldap
PORTVERSION= 0.15.20
CATEGORIES= www
MASTER_SITES= http://www.web2ldap.de/download/ \
ftp://ftp.ipt.ru/pub/download/
MAINTAINER= bsam@ipt.ru
COMMENT= Python-based WWW gateway to LDAP servers
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/_ldap.so:${PORTSDIR}/net/py-ldap2 \
${PYTHON_SITELIBDIR}/pyweblib/__init__.py:${PORTSDIR}/www/pyweblib \
${LOCALBASE}/etc/mime.types:${PORTSDIR}/misc/mime-support
USE_PYTHON= yes
USE_REINPLACE= yes
SUB_FILES= pkg-message
post-patch:
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
${WRKSRC}/etc/web2ldap/web2ldapcnf/standalone.py
do-build:
@(cd ${WRKSRC} && ${PYTHON_CMD} ./sbin/compile.py)
do-install:
@${RM} -f ${WRKSRC}/fcgi/web2ldap.py.orig
@${RM} -f ${WRKSRC}/scgi/web2ldap.py.orig
@${RM} -f ${WRKSRC}/etc/web2ldap/web2ldapcnf/standalone.py.orig
@${RM} -f ${WRKSRC}/etc/web2ldap/web2ldapcnf/standalone.py.bak
@${RM} -f ${WRKSRC}/sbin/compile.py.orig
@${RM} -f ${WRKSRC}/sbin/web2ldap.py.orig
@${ECHO} "Installing program files..."
@cd ${WRKSRC}; \
${FIND} * -type f | ${GREP} -vE "^htdocs" | ${CPIO} -pd ${DATADIR}
@${MKDIR} ${DATADIR}/var ${DATADIR}/var/run ${DATADIR}/var/log
@if [ -w /var/log ]; then ${MKDIR} /var/log/web2ldap; fi
.if !defined(NOPORTDOCS)
@${ECHO} "Installing document files..."
@cd ${WRKSRC}; \
${FIND} * -type f | ${GREP} "^htdocs" | ${CPIO} -pd ${DOCSDIR}
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>