1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/www/web2ldap/Makefile
Jean-Yves Lefort 4fbc1c8f3c Do not ship mime.types, use misc/mime-support instead
PR:		ports/81083
Submitted by:	maintainer
2005-05-16 20:53:46 +00:00

47 lines
1.3 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.10
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= http://www.web2ldap.de/download/ \
http://www.tricknology.org/ports/
MAINTAINER= bsam@ipt.ru
COMMENT= Python-based WWW gateway to LDAP servers
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/_ldap.so:${PORTSDIR}/net/py-ldap2 \
${LOCALBASE}/etc/mime.types:${PORTSDIR}/misc/mime-support
NO_BUILD= yes
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-install:
@${MKDIR} ${PREFIX}/${PORTNAME}
@${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
@(cd ${WRKSRC} && ${LOCALBASE}/bin/python ./sbin/compile.py)
@${CP} -r ${WRKSRC}/ ${PREFIX}/${PORTNAME}
@if [ -w /var/log ]; then ${MKDIR} /var/log/web2ldap; fi
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>