pkgsrc/net/cacti/Makefile
wiz 950f26244b Update to 0.8.8a, slightly based on PR 46399 by Nils Ratusznik.
0.8.8a:
Important Notices

    Plugin Architecture is now part of Cacti

Changelog
bug#0002207: cannot export graph templates
bug#0002208: Graphs with CDEFs fail to generate
bug#0002209: External auth does not work behind a reverse proxy
bug#0002211: creating an index USING BTREE fails ony MySQL < 5.0.60
bug#0002213: CLI upgrade script is missing 0.8.7i as a target
bug#0002214: SQL error during non-PIA upgrade to 088 when giving a default for a text field in plugin_realms
bug#0002216: use of define_syslog_variables() gone in PHP 5.4
bug#0002217: url_path should default to /cacti/
bug#0002221: Missing plugin directory causes endless loop in plugins.php
bug#0002222: tail_logfile hangs when cacti.log not readable, filling apache log with fgets warnings

0.8.8:
Important Notices

    Plugin Architecture is now part of Cacti

Changelog
bug#0002056: un-initialized datetime used for host status (was: Zero length string != NULL)
bug#0002081: In Graph Management, search display graph title breaks when using pattern symbol "/"
bug#0002132: need to include pa.sql with the 0.8.7i and future releases
bug#0002134: rebuild_poller_cache.php --host-id deletes table poller_item completely
bug#0002141: cacti.sql missing BTREE PRIMARY KEY for poller_output
bug#0002146: Utilities -> View Log File -> refresh does not work
bug#0002150: usort_data_query_index() is broken -> graph order for hosts with data query sort option fails
bug#0002151: When building HTML forms with sub_checkbox on_change parameter is not used
bug#0002152: Issue with filter on graphs_new.php
bug#0002153: Cant search for patterns containing a forward-slash
bug#0002156: CDEF strings are not escaped before passed to rrdtool command
bug#0002158: Minor changes to grammar of displayed messages
bug#0002165: Using data input field in data source name (related to 2079 in 0.8.7i)
bug#0002167: New poller hook poller_finishing
bug#0002172: structure_rra_paths.php does not handle disabled data sources
bug#0002174: poller_item.host_id has wrong type
bug#0002178: typo in include/global_form.php: Mimimum -> Minimum
bug#0002181: session_unregister (use in functions.php) doesn't exist anymore in PHP 5.4
bug#0002182: When there is no suitable (unique) index, graphs are not shown in data query ordering on host leafs
bug#0002189: Proper graph hooks
bug#0002191: Refresh issues
bug#0002194: changing data query XML does not propagate to existing data sources
bug: Fix input validation on cli/api_device.php
bug: Fix issue with data source template associate command line script inserting incorrect rra information
bug: Fix minor display issue on data source pages
bug: Fix minor issue with counting items in the poller_output table
bug: Graph settings and settings check boxes do not allow unchecking to be saved
bug: Fix minor issue with plugin library caused by non-session
bug: Fix SQL error on data input save for non-templated graphs
bug: user_log index added to increase performance
feature: Merge Plugin Architecture into Cacti
feature: Added index to data_template_data to increase performance
2012-12-12 10:48:43 +00:00

89 lines
2.9 KiB
Makefile

# $NetBSD: Makefile,v 1.12 2012/12/12 10:48:43 wiz Exp $
#
DISTNAME= cacti-0.8.8a
CATEGORIES= net
MASTER_SITES= http://www.cacti.net/downloads/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.cacti.net/
COMMENT= Frontend to rrdtool for monitoring systems and services
LICENSE= gnu-gpl-v2
USE_LANGUAGES= # none
USE_TOOLS+= pax
NO_BUILD= yes
DEPENDS+= ${PHP_PKG_PREFIX}-mysql-[0-9]*:../../databases/php-mysql
DEPENDS+= ${PHP_PKG_PREFIX}-snmp-[0-9]*:../../net/php-snmp
DEPENDS+= ${PHP_PKG_PREFIX}-sockets-[0-9]*:../../net/php-sockets
DEPENDS+= ${APACHE_PKG_PREFIX}-${PHP_PKG_PREFIX}-[0-9]*:../../www/ap-php
.include "../../mk/bsd.prefs.mk"
.include "../../lang/php/phpversion.mk"
.include "../../mk/apache.mk"
PKG_USERS= ${CACTI_USER}:${CACTI_GROUP}
PKG_GROUPS= ${CACTI_GROUP}
PKG_GECOS.${CACTI_USER}= Cacti user
PKG_HOME.${CACTI_USER}= ${CACTIDIR}
PKG_SHELL.${CACTI_USER}= ${SH}
PKG_USERS_VARS+= CACTI_USER
PKG_GROUPS_VARS+= CACTI_GROUP
BUILD_DEFS+= PKG_SYSCONFBASE
PKG_SYSCONFSUBDIR?= httpd
EGDIR= ${PREFIX}/share/examples/cacti
CONF_FILES+= ${EGDIR}/httpd-cacti.conf ${PKG_SYSCONFDIR}/httpd-cacti.conf
CACTIDIR= ${PREFIX}/share/cacti
CACTI_LOGDIR?= ${CACTIDIR}/log
CACTI_RRADIR?= ${CACTIDIR}/rra
REPLACE_INTERPRETER+= php
REPLACE.php.old= .*php[^ ]*
REPLACE.php.new= ${PREFIX}/bin/php
REPLACE_FILES.php= cli/*.php
REPLACE_PERL+= scripts/*.pl
MESSAGE_SUBST+= CACTIDIR=${CACTIDIR}
MESSAGE_SUBST+= CACTI_LOGDIR=${CACTI_LOGDIR}
MESSAGE_SUBST+= CACTI_USER=${CACTI_USER}
MESSAGE_SUBST+= EGDIR=${EGDIR}
MESSAGE_SUBST+= PREFIX=${PREFIX}
MESSAGE_SUBST+= PKG_SYSCONFBASE=${PKG_SYSCONFBASE}
FILES_SUBST+= CACTIDIR=${CACTIDIR}
SUBST_CLASSES+= paths
SUBST_STAGE.paths= pre-configure
SUBST_FILES.paths= ${WRKDIR}/httpd-cacti.conf install/index.php
SUBST_FILES.paths+= include/global.php include/global_settings.php
SUBST_VARS.paths= CACTIDIR PREFIX CACTI_USER CACTI_LOGDIR CACTI_RRADIR
SUBST_VARS.paths+= PKG_PHP_MAJOR_VERS
SUBST_CLASSES+= docs
SUBST_STAGE.docs= pre-configure
SUBST_FILES.docs= docs/txt/manual.txt docs/html/*.html
SUBST_SED.docs= -e 's,/var/www/html/cacti,${CACTIDIR},g'
OWN_DIRS_PERMS+= ${CACTI_LOGDIR} ${CACTI_USER} ${CACTI_GROUP} 755
OWN_DIRS_PERMS+= ${CACTI_RRADIR} ${CACTI_USER} ${CACTI_GROUP} 755
SPECIAL_PERMS+= share/cacti/log/cacti.log ${CACTI_USER} ${CACTI_GROUP} 755
INSTALLATION_DIRS= share/examples/cacti
INSTALLATION_DIRS+= share/cacti
post-extract:
${CP} ${FILESDIR}/httpd-cacti.conf ${WRKDIR}/
${CP} ${FILESDIR}/freebsd_memory.pl ${WRKSRC}/scripts/
${CP} ${FILESDIR}/netbsd_memory.pl ${WRKSRC}/scripts/
${CP} ${FILESDIR}/solaris_memory.pl ${WRKSRC}/scripts/
do-install:
${INSTALL_DATA} ${WRKDIR}/httpd-cacti.conf ${DESTDIR}${EGDIR}/httpd-cacti.conf
${FIND} ${WRKSRC} -type f -name '*.orig' -exec ${RM} -f {} \;
cd ${WRKSRC} && ${PAX} -wr * ${DESTDIR}${CACTIDIR}
.include "../../databases/rrdtool/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"