1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-08 06:48:28 +00:00
freebsd-ports/www/drraw/Makefile
Edwin Groothuis 3de5a84967 First steps in a big migration:
Move net/rrdtool to databases/rrdtool.

    It's an itch which needs to be scratched: net/rrdtool came from
    net/mrtg, which was a good location for it. net/mrtg has later
    been moved to net-mgmt/mrtg. net/rrdtool is "Round Robin Database
    Tools", therefor it's better if it moves to databases/rrdtool.
    Same with net/rrdtool10.

PR:		ports/112942
Submitted by:	Edwin Groothuis <edwin@mavetju.org>
2007-07-05 06:19:49 +00:00

67 lines
1.6 KiB
Makefile

# New ports collection makefile for: drraw
# Date created: 2006-08-08
# Whom: Jim Riggs <ports@christianserving.org>
#
# $FreeBSD$
#
PORTNAME= drraw
PORTVERSION= 2.1.3
CATEGORIES= www
MASTER_SITES= http://web.taranis.org/drraw/dist/ \
http://christianserving.org/ports/mail/imapsync/
MAINTAINER= ports@christianserving.org
COMMENT= A simple web-based presentation front-end for RRDtool
RUN_DEPENDS+= ${SITE_PERL}/RRDp.pm:${PORTSDIR}/databases/rrdtool
USE_PERL5_RUN= yes
NO_BUILD= yes
PORTDOCS= CHANGES INSTALL LICENSE README.EVENTS WISHLIST
CONFDIR?= etc
DATADIRS?= "/var/db/rrdtool" => "[Label1] "
SAVEDDIR?= /var/db/${PORTNAME}/saved
TMPDIR?= /var/db/${PORTNAME}/tmp
PLIST_SUB+= CONFDIR=${CONFDIR}
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}
${MKDIR} ${WWWDIR}
${INSTALL_SCRIPT} ${WRKSRC}/drraw.cgi ${WWWDIR}
${MKDIR} ${WWWDIR}/icons
.for theFile in bomb.gif folder.gif folder.open.gif generic.gif link.gif text.gif unknown.gif
${INSTALL_DATA} ${WRKSRC}/icons/${theFile} ${WWWDIR}/icons
.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
.include <bsd.port.mk>