2013-09-11 08:56:53 +00:00
|
|
|
# Created by: Rong-En Fan <rafan@FreeBSD.org>
|
2007-12-13 06:55:32 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= bindgraph
|
|
|
|
PORTVERSION= 0.2
|
2014-09-13 13:46:52 +00:00
|
|
|
PORTREVISION= 6
|
2007-12-13 06:55:32 +00:00
|
|
|
CATEGORIES= dns
|
|
|
|
MASTER_SITES= http://www.linux.it/~md/software/
|
|
|
|
|
|
|
|
MAINTAINER= rafan@FreeBSD.org
|
2014-06-10 07:39:01 +00:00
|
|
|
COMMENT= RRDtool frontend for BIND statistics
|
2007-12-13 06:55:32 +00:00
|
|
|
|
2012-06-29 18:30:42 +00:00
|
|
|
RUN_DEPENDS= rrdtool>=0:${PORTSDIR}/databases/rrdtool \
|
|
|
|
p5-File-Tail>=0:${PORTSDIR}/devel/p5-File-Tail
|
2007-12-13 06:55:32 +00:00
|
|
|
|
|
|
|
NO_BUILD= yes
|
2014-07-29 19:11:51 +00:00
|
|
|
USES= perl5 shebangfix tar:tgz
|
2014-06-10 08:33:40 +00:00
|
|
|
SHEBANG_FILES= bindgraph.pl bindgraph.cgi
|
2007-12-13 06:55:32 +00:00
|
|
|
|
|
|
|
CGIDIR?= ${PREFIX}/www/cgi-bin
|
|
|
|
DATADIR?= /var/db/bindgraph
|
|
|
|
BINDGRAPH_USER?= ${WWWOWN}
|
|
|
|
BINDGRAPH_GROUP?= ${WWWGRP}
|
|
|
|
|
|
|
|
USE_RC_SUBR= ${PORTNAME}
|
|
|
|
SUB_LIST+= BINDGRAPH_USER=${BINDGRAPH_USER} BINDGRAPH_GROUP=${BINDGRAPH_GROUP}
|
2014-09-13 13:46:52 +00:00
|
|
|
PLIST_SUB= CGIDIR=${CGIDIR:S,${PREFIX}/,,} \
|
|
|
|
BINDGRAPH_USER="${BINDGRAPH_USER}" \
|
|
|
|
BINDGRAPH_GROUP="${BINDGRAPH_GROUP}"
|
2007-12-13 06:55:32 +00:00
|
|
|
|
|
|
|
DOCS= README ChangeLog
|
|
|
|
PORTDOCS= ${DOCS}
|
2014-07-03 21:57:31 +00:00
|
|
|
|
|
|
|
OPTIONS_DEFINE= DOCS
|
2007-12-13 06:55:32 +00:00
|
|
|
|
|
|
|
pre-everything::
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "You may set following options:"
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "DATADIR=/var/db/bindgraph Where do you put RRD databases?"
|
|
|
|
@${ECHO_MSG} "CGIDIR=${PREFIX}/www/cgi-bin Where do you put cgi?"
|
|
|
|
@${ECHO_MSG} "BINDGRAPH_USER=www User to run bindgraph (Default: ${WWWOWN})"
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e "s,%%DATADIR%%,${DATADIR}," ${WRKSRC}/bindgraph.cgi
|
|
|
|
|
|
|
|
do-install:
|
2014-05-30 13:51:04 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${CGIDIR}
|
|
|
|
${MKDIR} ${STAGEDIR}${DATADIR}
|
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/bindgraph.pl ${STAGEDIR}${PREFIX}/sbin/
|
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/bindgraph.cgi ${STAGEDIR}${CGIDIR}/
|
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2007-12-13 06:55:32 +00:00
|
|
|
for f in ${DOCS}; do \
|
2014-05-30 13:51:04 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/$$f ${STAGEDIR}${DOCSDIR}/; \
|
2007-12-13 06:55:32 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|