2000-08-01 16:48:21 +02:00
|
|
|
# New ports collection makefile for: web2ldap
|
|
|
|
# Date created: 21 July 2000
|
|
|
|
# Whom: Oddbjorn Steffensen <oddbjorn@tricknology.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2001-01-16 18:33:20 +01:00
|
|
|
PORTNAME= web2ldap
|
2008-09-03 15:36:27 +02:00
|
|
|
PORTVERSION= 1.0.0
|
2001-01-16 18:33:20 +01:00
|
|
|
CATEGORIES= www
|
2005-10-11 10:33:06 +02:00
|
|
|
MASTER_SITES= http://www.web2ldap.de/download/ \
|
|
|
|
ftp://ftp.ipt.ru/pub/download/
|
2000-08-01 16:48:21 +02:00
|
|
|
|
2006-10-07 18:15:56 +02:00
|
|
|
MAINTAINER= bsam@FreeBSD.org
|
2003-02-21 15:08:24 +01:00
|
|
|
COMMENT= Python-based WWW gateway to LDAP servers
|
2000-08-01 16:48:21 +02:00
|
|
|
|
2008-03-28 19:49:07 +01:00
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ldap2>=2.3.1:${PORTSDIR}/net/py-ldap2 \
|
2005-06-22 01:58:28 +02:00
|
|
|
${PYTHON_SITELIBDIR}/pyweblib/__init__.py:${PORTSDIR}/www/pyweblib \
|
2005-05-16 22:53:46 +02:00
|
|
|
${LOCALBASE}/etc/mime.types:${PORTSDIR}/misc/mime-support
|
2000-08-01 16:48:21 +02:00
|
|
|
|
2001-01-16 18:33:20 +01:00
|
|
|
USE_PYTHON= yes
|
2000-08-01 16:48:21 +02:00
|
|
|
|
2005-05-08 19:02:20 +02:00
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
2005-05-16 22:53:46 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
|
|
|
|
${WRKSRC}/etc/web2ldap/web2ldapcnf/standalone.py
|
2005-11-08 04:26:59 +01:00
|
|
|
@${FIND} ${WRKSRC} -name '*.orig' -o -name '*.bak' | ${XARGS} ${RM}
|
2005-05-16 22:53:46 +02:00
|
|
|
|
2005-07-15 07:12:26 +02:00
|
|
|
do-build:
|
|
|
|
@(cd ${WRKSRC} && ${PYTHON_CMD} ./sbin/compile.py)
|
|
|
|
|
2000-08-01 16:48:21 +02:00
|
|
|
do-install:
|
2005-11-08 04:26:59 +01:00
|
|
|
@${ECHO_CMD} "==> Installing program files..."
|
|
|
|
@${MKDIR} ${DATADIR}
|
|
|
|
@(cd ${WRKSRC}; \
|
2006-01-15 00:28:46 +01:00
|
|
|
${FIND} * -type d | ${GREP} -vE "^htdocs" | ${CPIO} -p ${DATADIR}; \
|
2005-11-08 04:26:59 +01:00
|
|
|
${FIND} * -type f | ${GREP} -vE "^htdocs" | ${CPIO} -pd ${DATADIR})
|
2000-08-01 16:48:21 +02:00
|
|
|
|
|
|
|
post-install:
|
2005-11-08 04:26:59 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${ECHO_CMD} "==> Installing document files..."
|
2006-01-15 00:28:46 +01:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2005-11-08 04:26:59 +01:00
|
|
|
@(cd ${WRKSRC}; \
|
2006-01-15 00:28:46 +01:00
|
|
|
${FIND} * -type d | ${GREP} "^htdocs" | ${CPIO} -p ${DOCSDIR}; \
|
2005-11-08 04:26:59 +01:00
|
|
|
${FIND} * -type f | ${GREP} "^htdocs" | ${CPIO} -pd ${DOCSDIR})
|
|
|
|
.endif
|
|
|
|
@${SETENV} "PKG_PREFIX=${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
2000-10-08 12:23:48 +02:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2000-08-01 16:48:21 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|