diff options
author | pav <pav@FreeBSD.org> | 2003-12-22 01:01:41 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2003-12-22 01:01:41 +0800 |
commit | 8bc326a6ea30bfa201c9ba0cbb54e3cbf2251e1b (patch) | |
tree | 05f37be975e8f6634b76c3f3c45d9d49634b53d5 /net/cacti/Makefile | |
parent | 44aa6bb0591a1cc7aff835058d21efa0e0c634b0 (diff) | |
download | freebsd-ports-graphics-8bc326a6ea30bfa201c9ba0cbb54e3cbf2251e1b.tar.gz freebsd-ports-graphics-8bc326a6ea30bfa201c9ba0cbb54e3cbf2251e1b.tar.zst freebsd-ports-graphics-8bc326a6ea30bfa201c9ba0cbb54e3cbf2251e1b.zip |
Add cacti, a PHP based frontend to RRDtool configuration.
PR: ports/59996
Submitted by: Vincent Tantardini <vinc@freebsd-fr.org>
Diffstat (limited to 'net/cacti/Makefile')
-rw-r--r-- | net/cacti/Makefile | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/net/cacti/Makefile b/net/cacti/Makefile new file mode 100644 index 00000000000..8aa1a8563dc --- /dev/null +++ b/net/cacti/Makefile @@ -0,0 +1,47 @@ +# New ports collection makefile for: cacti +# Date created: 6 December 2003 +# Whom: Vincent Tantardini <vinc@freebsd-fr.org> +# +# $FreeBSD$ +# + +PORTNAME= cacti +PORTVERSION= 0.8.4 +CATEGORIES= net +MASTER_SITES= http://www.raxnet.net/downloads/ + +MAINTAINER= vinc@freebsd-fr.org +COMMENT= Web-driven graphing interface for RRDTool + +RUN_DEPENDS= php:${PORTSDIR}/lang/php4 \ + rrdtool:${PORTSDIR}/net/rrdtool \ + net-snmp-config:${PORTSDIR}/net/net-snmp + +USE_MYSQL= yes +NO_BUILD= yes +PKGMESSAGE= ${WRKDIR}/pkg-message + +CACTIDIR?= share/cacti +CACTIUSER?= cacti +CACTIGROUP?= ${CACTIUSER} +PLIST_SUB+= CACTIDIR=${CACTIDIR} + +post-patch: + @${CAT} pkg-message | ${SED} -e 's|%%PREFIX%%|${PREFIX}| ; \ + s|%%CACTIDIR%%|${CACTIDIR}| ; \ + s|%%CACTIUSER%%|${CACTIUSER}|' > ${PKGMESSAGE} + +pre-install: + @PREFIX=${PREFIX} CACTIDIR=${CACTIDIR} CACTIUSER=${CACTIUSER} CACTIGROUP=${CACTIGROUP} \ + ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL + +do-install: + @${MKDIR} ${PREFIX}/${CACTIDIR}/ + @${CP} -R ${WRKSRC}/* ${PREFIX}/${CACTIDIR}/ + +post-install: + @PREFIX=${PREFIX} CACTIDIR=${CACTIDIR} CACTIUSER=${CACTIUSER} CACTIGROUP=${CACTIGROUP} \ + ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.mk> |