aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2014-03-28 22:05:55 +0800
committergarga <garga@FreeBSD.org>2014-03-28 22:05:55 +0800
commit955e00f5dd1a2d42392e791533c2ab58cdba2120 (patch)
treeb3160878a6ddc1e7cd8709f748140ef296bb6bcd /www
parent506df28982352a36837e185b9e6436a99d9bcdde (diff)
downloadfreebsd-ports-gnome-955e00f5dd1a2d42392e791533c2ab58cdba2120.tar.gz
freebsd-ports-gnome-955e00f5dd1a2d42392e791533c2ab58cdba2120.tar.zst
freebsd-ports-gnome-955e00f5dd1a2d42392e791533c2ab58cdba2120.zip
. Support stage
. Reset maintainership as asked by maintainer Approved by: portmgr (blanket)
Diffstat (limited to 'www')
-rw-r--r--www/monast/Makefile28
1 files changed, 12 insertions, 16 deletions
diff --git a/www/monast/Makefile b/www/monast/Makefile
index f7f946ff046f..d5b375a6963f 100644
--- a/www/monast/Makefile
+++ b/www/monast/Makefile
@@ -7,7 +7,7 @@ PORTREVISION= 2
CATEGORIES= www net
MASTER_SITES= SF/monast/MonAst%20for%20Asterisk%201.4_1.6/1.4
-MAINTAINER= marcelorossi@gmail.com
+MAINTAINER= ports@FreeBSD.org
COMMENT= A monitoring and an operator panel interface for AsteriskTM
USE_PYTHON= yes
@@ -15,30 +15,26 @@ USE_RC_SUBR= monast
NO_BUILD= YES
-NO_STAGE= 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} ${PREFIX}/monast/amapi ${PREFIX}/monast/simplejson ${WWWDIR}
- ${INSTALL_SCRIPT} ${WRKSRC}/pymon/monast.py ${PREFIX}/monast/monast.py
- ${INSTALL_DATA} ${WRKSRC}/pymon/monast.conf.sample ${PREFIX}/etc/monast.conf.default
- ${INSTALL_DATA} ${WRKSRC}/pymon/amapi/* ${PREFIX}/monast/amapi/
- ${INSTALL_DATA} ${WRKSRC}/pymon/simplejson/* ${PREFIX}/monast/simplejson/
- ${INSTALL_DATA} ${WRKSRC}/*.php ${WWWDIR}/
+ @${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/monast.conf.default
+ ${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} ${WWWDIR}/${f}
- ${INSTALL_DATA} ${WRKSRC}/${f}/* ${WWWDIR}/${f}/
+ @${MKDIR} ${STAGEDIR}${WWWDIR}/${f}
+ ${INSTALL_DATA} ${WRKSRC}/${f}/* ${STAGEDIR}${WWWDIR}/${f}/
.endfor
- (cd ${WRKSRC}/lib/ && ${COPYTREE_SHARE} \* ${WWWDIR}/lib)
+ (cd ${WRKSRC}/lib/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${WWWDIR}/lib)
post-install:
- @if [ ! -f ${PREFIX}/etc/monast.conf ]; then \
- ${CP} -p ${PREFIX}/etc/monast.conf.default ${PREFIX}/etc/monast.conf ; \
- fi
- ${PYTHON_CMD} -O -mcompileall ${PREFIX}/monast/
- ${PYTHON_CMD} -mcompileall ${PREFIX}/monast/
+ ${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>