2006-09-13 10:35:59 +00:00
|
|
|
# New ports collection makefile for: drraw
|
|
|
|
# Date created: 2006-08-08
|
|
|
|
# Whom: Jim Riggs <ports@christianserving.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= drraw
|
2010-09-14 10:51:30 +00:00
|
|
|
DISTVERSION= 2.2b2
|
2006-09-13 10:35:59 +00:00
|
|
|
CATEGORIES= www
|
2007-06-22 06:30:21 +00:00
|
|
|
MASTER_SITES= http://web.taranis.org/drraw/dist/ \
|
|
|
|
http://christianserving.org/ports/mail/imapsync/
|
2006-09-13 10:35:59 +00:00
|
|
|
|
2010-09-14 10:51:30 +00:00
|
|
|
MAINTAINER= avg@icyb.net.ua
|
2006-09-13 10:35:59 +00:00
|
|
|
COMMENT= A simple web-based presentation front-end for RRDtool
|
|
|
|
|
2007-07-05 06:19:49 +00:00
|
|
|
RUN_DEPENDS+= ${SITE_PERL}/RRDp.pm:${PORTSDIR}/databases/rrdtool
|
2006-09-13 10:35:59 +00:00
|
|
|
|
2010-09-14 10:51:30 +00:00
|
|
|
OPTIONS= ZOOM_PATCH "Zoom support using jQuery via external patch" off
|
|
|
|
|
2006-09-13 10:35:59 +00:00
|
|
|
USE_PERL5_RUN= yes
|
|
|
|
|
|
|
|
NO_BUILD= yes
|
|
|
|
|
2010-09-14 10:51:30 +00:00
|
|
|
PORTDOCS= CHANGES INSTALL LICENSE README.EVENTS
|
2006-09-13 10:35:59 +00:00
|
|
|
|
|
|
|
CONFDIR?= etc
|
|
|
|
DATADIRS?= "/var/db/rrdtool" => "[Label1] "
|
|
|
|
SAVEDDIR?= /var/db/${PORTNAME}/saved
|
|
|
|
TMPDIR?= /var/db/${PORTNAME}/tmp
|
|
|
|
|
2007-03-24 14:04:36 +00:00
|
|
|
PLIST_SUB+= CONFDIR=${CONFDIR}
|
2006-09-13 10:35:59 +00:00
|
|
|
|
2010-09-14 10:51:30 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_ZOOM_PATCH)
|
|
|
|
PATCH_SITES+= http://pero.blogs.aprilmayjune.org/files/2009/09/
|
|
|
|
PATCHFILES+= drraw.cgi.zoom_patch
|
|
|
|
.endif
|
|
|
|
|
2006-09-13 10:35:59 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|%%CONFDIR%%|${PREFIX}/${CONFDIR}|g' ${WRKSRC}/drraw.cgi
|
|
|
|
|
|
|
|
@${CP} -p ${WRKSRC}/drraw.conf ${WRKSRC}/drraw.conf-dist
|
|
|
|
@${REINPLACE_CMD} \
|
|
|
|
-e 's|%%DATADIRS%%|${DATADIRS}|g' \
|
|
|
|
-e 's|%%SAVEDDIR%%|${SAVEDDIR}|g' \
|
|
|
|
-e 's|%%TMPDIR%%|${TMPDIR}|g' \
|
|
|
|
${WRKSRC}/drraw.conf-dist
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/drraw.conf-dist ${PREFIX}/${CONFDIR}
|
|
|
|
|
2007-03-24 14:04:36 +00:00
|
|
|
${MKDIR} ${WWWDIR}
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/drraw.cgi ${WWWDIR}
|
2006-09-13 10:35:59 +00:00
|
|
|
|
2007-03-24 14:04:36 +00:00
|
|
|
${MKDIR} ${WWWDIR}/icons
|
2006-09-13 10:35:59 +00:00
|
|
|
.for theFile in bomb.gif folder.gif folder.open.gif generic.gif link.gif text.gif unknown.gif
|
2007-03-24 14:04:36 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/icons/${theFile} ${WWWDIR}/icons
|
2006-09-13 10:35:59 +00:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
. for theFile in ${PORTDOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${theFile} ${DOCSDIR}
|
|
|
|
. endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@if [ ! -f ${PREFIX}/etc/drraw.conf ];\
|
|
|
|
then \
|
|
|
|
${CP} -p ${PREFIX}/etc/drraw.conf-dist ${PREFIX}/etc/drraw.conf; \
|
|
|
|
fi
|
|
|
|
|
2010-09-14 10:51:30 +00:00
|
|
|
.include <bsd.port.post.mk>
|