pkgsrc/net/cacti/Makefile
tez 6647fc36fb security update to 0.8.7i (with Plugin Architecture version 3.1)
bug#0001963: Bandwidth summation "total in" and "total out"
		 are always 0
     bug#0002040: ICMP ping errors for Windows 7 with PHP 5.3
     bug#0002062: Multiple security vulnerabilities
     bug#0002063: Multiple value poller output incorrectly interpreted
		 as hexadecimal value
     bug#0002064: Removing "~" (tilde) by sanitize_uri() conflicts with
		 Apache UserDir translation
     bug#0002066: Graph without host id "Notice: Undefined variable:
		 host_id"
     bug#0002067: Custom time range filter not working
     bug#0002068: Missing header include in analyze_database.php
     bug#0002071: MySQL table poller_item is dropped always when "Data
		 Input Method" is changed or added.
     bug#0002079: Using input field of a script in graph title does not
		 work
     bug#0002080: Database password containing "@" does not connect
     bug#0002083: Adding a new users generates errors in apache logs
     bug#0002084: Incorrect normalization of hrStorageTable values
		 over 2^31
     bug#0002086: Incorrect usage of mysql custom tcp port
     bug#0002087: PHP recache problems due to missing slashes in reindex
		 table
     bug#0002093: Unit exponent value of 0 not imported with graph
		 template
     bug#0002094: CDEF: "another cdef" references not included in
		 template export
     bug#0002106: Command line add device does not accept "None" for
		 host template
     bug: Update host template cli script help to fix incorrect options
     bug: Refresh of Cacti log viewer not working
     bug: Problems saving User Graph Permissions in IE9
     bug: Bandwidth summation fails if NAN values are present
     bug: Special Type Code "host_id" available in Data Queries by Not
	 Data Input Methods
     bug: Do not generate error messages when creating non host based
	 graphs
     bug: Wrong index used for Data Queries using VALUE/REGEXP
     bug: Fix issue with title variable replacement failing when no host
	 is associated with graph
     bug: Cacti generating MySQL 1100 Errors when modifying the tree
     bug: Resolved "Fatal error: Cannot use string offset as an array"
	 in lib/data_query.php
     feature: Properly support ifHighSpeed replacement variable
     feature: Increase granularity of availability options to correct
	     spine bug
     feature: Replace "event count" with last changed date for host
	     availability
2011-12-20 23:57:33 +00:00

89 lines
3 KiB
Makefile

# $NetBSD: Makefile,v 1.2 2011/12/20 23:57:33 tez Exp $
#
PKGNAME= cacti-0.8.7i
DISTNAME= cacti-0.8.7i-PIA-3.1
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
PKG_DESTDIR_SUPPORT= user-destdir
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
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"