freebsd-ports/www/web2ldap/Makefile
Mathieu Arnold f899c758a6 When there is a do-install target, do not use a post-install target, do
everything at once.  Sometime, rename post-install into a options helper
target.

I did not fix ports that were such a mess that I could not figure out
what they really wanted to do.  I also did not change ports that had
some version of an auto-plist code in post-install, for the same reason.

With hat:	portmgr
Sponsored by:	Absolight
2016-07-19 11:04:13 +00:00

58 lines
1.7 KiB
Makefile

# Created by: Oddbjorn Steffensen <oddbjorn@tricknology.org>
# $FreeBSD$
PORTNAME= web2ldap
PORTVERSION= 1.2.19
PORTREVISION= 3
CATEGORIES= www
MASTER_SITES= http://www.web2ldap.de/download/ \
http://www.sfr-fresh.com/unix/www/ \
LOCAL/bsam
MAINTAINER= bsam@FreeBSD.org
COMMENT= Python-based WWW gateway to LDAP servers
LICENSE= GPLv2
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ldap>=2.4.0:net/py-ldap \
${PYTHON_SITELIBDIR}/pyweblib/__init__.py:www/pyweblib \
${PYTHON_PKGNAMEPREFIX}ipaddr>0:devel/py-ipaddr \
${LOCALBASE}/etc/mime.types:misc/mime-support
OPTIONS_DEFINE= DOCS
USES= cpe python:2 shebangfix
SHEBANG_FILES= sbin/*.py fcgi/*.py
SUB_FILES= pkg-message
NO_ARCH= yes
PORTDOCS= *
PORTDATA= *
PLIST_DIRS= %%DATADIR%%/var/log %%DATADIR%%/var/run
post-patch:
@${REINPLACE_CMD} -e 's|/opt/fcgi/bin/cgi-fcgi|${LOCALBASE}/bin/cgi-fcgi|g' \
${WRKSRC}/cgi-bin/web2ldap.cgi
@${REINPLACE_CMD} -e 's|/etc|${LOCALBASE}/etc|g' \
-e 's|nobody|web2ldap|g' \
${WRKSRC}/etc/web2ldap/web2ldapcnf/standalone.py
@${FIND} ${WRKSRC} -name '*.orig' -delete -o -name '*.bak' -delete
do-build:
${PYTHON_CMD} -m compileall ${WRKSRC}
${PYTHON_CMD} -O -m compileall ${WRKSRC}
do-install:
@${ECHO_MSG} "==> Installing program files..."
@${MKDIR} ${STAGEDIR}${DATADIR}
@(cd ${WRKSRC}; \
${FIND} * -type d | ${GREP} -vE "^htdocs" | ${CPIO} -p ${STAGEDIR}${DATADIR}; \
${FIND} * -type f | ${GREP} -vE "^htdocs" | ${CPIO} -pd ${STAGEDIR}${DATADIR})
post-install-DOCS-on:
@${ECHO_MSG} "==> Installing document files..."
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@(cd ${WRKSRC}; \
${FIND} * -type d | ${GREP} "^htdocs" | ${CPIO} -p ${STAGEDIR}${DOCSDIR}; \
${FIND} * -type f | ${GREP} "^htdocs" | ${CPIO} -pd ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>