freebsd-ports/net-mgmt/cacti/Makefile
Sergey Matveychuk f3c484b38e - Integrate vendor patches:
1) Poller Auto Recache on Empty Output
Fixes a problem where the poller would force a data query recache
when a device returned empty output. This may have caused problems
for hosts that are frequently down.
2) Poller Output SQL Order By
Removes an SQL "order by" statement from the poller output processing
that might cause graph gaps for installations with a large number
of poller processes.
3) Additional RRDTool 1.2 Support
Adds more font control options that are supported in RRDTool 1.2.
The default slope mode has been changed for more organic looking
graph lines.
2005-06-09 12:20:07 +00:00

63 lines
1.6 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.6d
PORTREVISION= 1
CATEGORIES= net www
MASTER_SITES= http://www.cacti.net/downloads/
MAINTAINER= sem@FreeBSD.org
COMMENT= Web-driven graphing interface for RRDTool
# Vendor's patches
PATCH_SITES= http://www.cacti.net/downloads/patches/${PORTVERSION}/
PATCHFILES= auto_recache_empty_output.patch \
poller_output_order_by.patch \
rrdtool12_additional_features.patch
PATCH_DIST_STRIP=-p1
RUN_DEPENDS= rrdtool:${PORTSDIR}/net/rrdtool \
net-snmp-config:${PORTSDIR}/net-mgmt/net-snmp
USE_MYSQL= yes
USE_PHP= mysql pcre session xml
WANT_PHP_WEB= yes
NO_BUILD= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
PKGINSTALL= ${WRKDIR}/pkg-install
SUB_FILES= pkg-message pkg-install
CACTIDIR?= share/cacti
CACTIUSER?= cacti
CACTIGROUP?= ${CACTIUSER}
PLIST_SUB+= CACTIDIR=${CACTIDIR}
SUB_LIST+= CACTIDIR=${CACTIDIR} CACTIUSER=${CACTIUSER} \
CACTIGROUP=${CACTIGROUP}
post-patch:
@${FIND} ${WRKSRC} -name \*.orig -delete; \
${MV} ${WRKSRC}/include/config.php ${WRKSRC}/include/config.php.orig
pre-install:
@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL; \
do-install:
@${MKDIR} ${PREFIX}/${CACTIDIR}; \
${CP} -R ${WRKSRC}/* ${PREFIX}/${CACTIDIR}/; \
if [ ! -f ${PREFIX}/${CACTIDIR}/include/config.php ]; then \
${CP} ${PREFIX}/${CACTIDIR}/include/config.php.orig \
${PREFIX}/${CACTIDIR}/include/config.php; \
fi; \
# Fix permissions
post-install:
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>