1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-02 06:03:50 +00:00
freebsd-ports/net/ntlmaps/Makefile
Kevin Lo 88caf168d8 Replace CR/LF's with unix LF's.
PR: ports/141637
Submitted by: ehaupt
2009-12-31 10:32:29 +00:00

46 lines
1.3 KiB
Makefile

# New ports collection makefile for: ntlmaps
# Date created: 1 August 2007
# Whom: kevlo
#
# $FreeBSD$
PORTNAME= ntlmaps
PORTVERSION= 0.9.9.0.1
PORTREVISION= 2
CATEGORIES= net
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= kevlo@FreeBSD.org
COMMENT= A proxy that authenticates the user using the NTLM protocol
USE_PYTHON= yes
USE_DOS2UNIX= yes
DOCS= COPYING Install.txt changelog.txt readme.txt research.txt
post-patch:
@${REINPLACE_CMD} -e \
's,^#! /usr/bin/python,#!${PYTHON_CMD},' ${WRKSRC}/main.py
@${RM} -rf ${WRKSRC}/main.py.bak
do-build:
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
do-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for file in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
@${MKDIR} ${PYTHON_SITELIBDIR}/${PORTNAME}
@${MKDIR} ${PREFIX}/share/examples/ntlmaps
${INSTALL_DATA} ${WRKSRC}/*.py* ${PYTHON_SITELIBDIR}/${PORTNAME}
${INSTALL_DATA} ${WRKSRC}/lib/*.py* ${PYTHON_SITELIBDIR}/${PORTNAME}
${CHMOD} +x ${PYTHON_SITELIBDIR}/${PORTNAME}/main.py
${LN} -fs ${PYTHON_SITELIBDIR}/${PORTNAME}/main.py ${PREFIX}/bin/ntlmaps
${INSTALL_DATA} ${WRKSRC}/server.cfg ${PREFIX}/share/examples/ntlmaps
.include <bsd.port.mk>