Index: net-mgmt/Makefile =================================================================== --- net-mgmt/Makefile +++ net-mgmt/Makefile @@ -27,6 +27,7 @@ SUBDIR += bwm-ng SUBDIR += cacti SUBDIR += cacti-spine + SUBDIR += cacti88 SUBDIR += ccnet-client SUBDIR += ccnet-server SUBDIR += cdpd Index: net-mgmt/cacti/Makefile =================================================================== --- net-mgmt/cacti/Makefile +++ net-mgmt/cacti/Makefile @@ -44,6 +44,8 @@ SUB_LIST+= CACTIDIR=${CACTIDIR} CACTIUSER=${CACTIUSER} \ CACTIGROUP=${CACTIGROUP} +CONFLICTS_INSTALL= cacti88 + post-patch: @${FIND} ${WRKSRC} -name \*.orig -delete; \ ${MV} ${WRKSRC}/include/config.php ${WRKSRC}/include/config.php.sample Index: net-mgmt/cacti88/Makefile =================================================================== --- net-mgmt/cacti88/Makefile +++ net-mgmt/cacti88/Makefile @@ -1,26 +1,29 @@ # $FreeBSD$ PORTNAME= cacti -PORTVERSION= 0.8.8h${PATCHLEVEL} +PORTVERSION= 0.8.8h CATEGORIES= net-mgmt www -MASTER_SITES= http://www.cacti.net/downloads/ \ - ftp://ftpmirror.uk/freebsd-ports/cacti/ +MASTER_SITES= http://www.cacti.net/downloads/ +PKGNAMESUFFIX= 88 -MAINTAINER= freebsd-ports@dan.me.uk -COMMENT= Web-driven graphing interface for RRDTool +MAINTAINER= egypcio@googlemail.com +COMMENT= Graphing interface for RRDTool (Old version of net-mgmt/cacti) -LICENSE= GPLv2 +LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/LICENSE RUN_DEPENDS= rrdtool:databases/rrdtool -USES= cpe mysql shebangfix +USES= cpe mysql php:web shebangfix USE_PHP= mysqli pcre session sockets snmp xml -WANT_PHP_WEB= yes + NO_ARCH= yes NO_BUILD= yes -PKGMESSAGE= ${WRKDIR}/pkg-message + +IGNORE_WITH_PHP= 70 71 + SUB_FILES= pkg-message + SHEBANG_FILES= scripts/3com_cable_modem.pl \ scripts/diskfree.pl \ scripts/linux_memory.pl \ @@ -34,21 +37,17 @@ scripts/weatherbug.pl \ scripts/webhits.pl -CACTIDIR?= share/cacti -CACTIUSER?= cacti -CACTIGROUP?= cacti +CACTIDIR= share/cacti -USERS?= ${CACTIUSER} -GROUPS?= ${CACTIGROUP} +USERS= cacti +GROUPS= cacti -WRKSRC= ${WRKDIR}/${PORTNAME}-${SITEDISTVERSION} +PLIST_SUB+= CACTIDIR=${CACTIDIR} +SUB_LIST+= CACTIDIR=${CACTIDIR} -SITEDISTVERSION= ${PORTVERSION:S/${PATCHLEVEL}$//} +CONFLICTS_INSTALL= cacti- -PLIST_SUB+= CACTIDIR=${CACTIDIR} CACTIUSER=${CACTIUSER} \ - CACTIGROUP=${CACTIGROUP} -SUB_LIST+= CACTIDIR=${CACTIDIR} CACTIUSER=${CACTIUSER} \ - CACTIGROUP=${CACTIGROUP} +PORTSCOUT= limit:^0.* post-patch: @${FIND} ${WRKSRC} -name \*.orig -delete; \ Index: net-mgmt/cacti88/files/patch-include__global.php =================================================================== --- net-mgmt/cacti88/files/patch-include__global.php +++ net-mgmt/cacti88/files/patch-include__global.php @@ -1,6 +1,6 @@ ---- include/global.php.bak 2015-03-12 03:07:05.768314249 -0700 -+++ include/global.php 2015-03-12 03:08:04.171320391 -0700 -@@ -113,7 +113,7 @@ +--- include/global.php.orig 2016-03-06 23:26:59 UTC ++++ include/global.php +@@ -116,7 +116,7 @@ if ($config["cacti_server_os"] == "win32 $config["library_path"] = preg_replace("/(.*[\/])include/", "\\1lib", dirname(__FILE__)); } $config["include_path"] = dirname(__FILE__); Index: net-mgmt/cacti88/files/patch-include__global_settings.php =================================================================== --- net-mgmt/cacti88/files/patch-include__global_settings.php +++ net-mgmt/cacti88/files/patch-include__global_settings.php @@ -1,6 +1,6 @@ ---- include/global_settings.php.bak 2015-03-12 03:08:59.333297709 -0700 -+++ include/global_settings.php 2015-03-12 03:10:47.532302704 -0700 -@@ -96,7 +96,7 @@ +--- include/global_settings.php.orig 2016-02-07 19:26:54 UTC ++++ include/global_settings.php +@@ -96,7 +96,7 @@ $settings = array( ), "path_cactilog" => array( "friendly_name" => "Cacti Log File Path", Index: net-mgmt/cacti88/files/patch-install__index.php =================================================================== --- net-mgmt/cacti88/files/patch-install__index.php +++ net-mgmt/cacti88/files/patch-install__index.php @@ -1,6 +1,6 @@ ---- install/index.php.orig 2016-05-28 10:54:08.124059773 +0100 -+++ install/index.php 2016-05-28 10:54:34.252057818 +0100 -@@ -63,7 +63,7 @@ +--- install/index.php.orig 2016-03-06 23:26:59 UTC ++++ install/index.php +@@ -63,7 +63,7 @@ if ($old_cacti_version == $config["cacti } function verify_php_extensions() { @@ -9,7 +9,7 @@ $ok = true; $missing_extension = "

Error

The following PHP extensions are missing: