1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00
freebsd-ports/net-mgmt/cacti/Makefile
2004-04-10 10:39:59 +00:00

48 lines
1.2 KiB
Makefile

# New ports collection makefile for: cacti
# Date created: 6 December 2003
# Whom: Vincent Tantardini <vinc@freebsd-fr.org>
#
# $FreeBSD$
#
PORTNAME= cacti
PORTVERSION= 0.8.5
CATEGORIES= net
MASTER_SITES= http://www.raxnet.net/downloads/cacti/
MAINTAINER= ports@FreeBSD.org
COMMENT= Web-driven graphing interface for RRDTool
RUN_DEPENDS= php:${PORTSDIR}/lang/php4 \
rrdtool:${PORTSDIR}/net/rrdtool \
net-snmp-config:${PORTSDIR}/net-mgmt/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>