1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-30 01:15:52 +00:00
freebsd-ports/www/monast/Makefile
Dmitry Marakasov 656d500d54 - Add NO_ARCH
- Modernize plist
2015-06-11 09:26:45 +00:00

42 lines
1.4 KiB
Makefile

# Created by: Marcelo/Porks Rossi <marcelorossi@gmail.com>
# $FreeBSD$
PORTNAME= monast
PORTVERSION= 1.4
PORTREVISION= 3
CATEGORIES= www net
MASTER_SITES= SF/monast/MonAst%20for%20Asterisk%201.4_1.6/1.4
MAINTAINER= ports@FreeBSD.org
COMMENT= Monitoring and an operator panel interface for AsteriskTM
USES= python
USE_RC_SUBR= monast
NO_BUILD= yes
NO_ARCH= yes
post-patch:
@${REINPLACE_CMD} -e 's,/usr/bin/python,${PYTHON_CMD},' \
-e 's,/etc,${PREFIX}/etc,g' \
${WRKSRC}/pymon/monast.py
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/monast/amapi ${STAGEDIR}${PREFIX}/monast/simplejson ${STAGEDIR}${WWWDIR}
${INSTALL_SCRIPT} ${WRKSRC}/pymon/monast.py ${STAGEDIR}${PREFIX}/monast/monast.py
${INSTALL_DATA} ${WRKSRC}/pymon/monast.conf.sample ${STAGEDIR}${PREFIX}/etc/
${INSTALL_DATA} ${WRKSRC}/pymon/amapi/* ${STAGEDIR}${PREFIX}/monast/amapi/
${INSTALL_DATA} ${WRKSRC}/pymon/simplejson/* ${STAGEDIR}${PREFIX}/monast/simplejson/
${INSTALL_DATA} ${WRKSRC}/*.php ${STAGEDIR}${WWWDIR}/
.for f in css image template js
@${MKDIR} ${STAGEDIR}${WWWDIR}/${f}
${INSTALL_DATA} ${WRKSRC}/${f}/* ${STAGEDIR}${WWWDIR}/${f}/
.endfor
(cd ${WRKSRC}/lib/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${WWWDIR}/lib)
post-install:
${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py -d ${PYTHONPREFIX_SITELIBDIR} -f ${STAGEDIR}${PREFIX}/monast
${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py -d ${PYTHONPREFIX_SITELIBDIR} -f ${STAGEDIR}${PREFIX}/monast
.include <bsd.port.mk>