Index: head/net-mgmt/Makefile =================================================================== --- head/net-mgmt/Makefile +++ head/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: head/net-mgmt/cacti/Makefile =================================================================== --- head/net-mgmt/cacti/Makefile +++ head/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: head/net-mgmt/cacti88/Makefile =================================================================== --- head/net-mgmt/cacti88/Makefile +++ head/net-mgmt/cacti88/Makefile @@ -0,0 +1,74 @@ +# $FreeBSD$ + +PORTNAME= cacti +PORTVERSION= 0.8.8h +CATEGORIES= net-mgmt www +MASTER_SITES= http://www.cacti.net/downloads/ +PKGNAMESUFFIX= 88 + +MAINTAINER= egypcio@googlemail.com +COMMENT= Web-driven graphing interface for RRDTool + +LICENSE= GPLv2+ +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= rrdtool:databases/rrdtool + +USES= cpe mysql php:web shebangfix +USE_PHP= mysqli pcre session sockets snmp xml + +NO_ARCH= yes +NO_BUILD= yes + +IGNORE_WITH_PHP= 70 71 + +SUB_FILES= pkg-message + +SHEBANG_FILES= scripts/3com_cable_modem.pl \ + scripts/diskfree.pl \ + scripts/linux_memory.pl \ + scripts/loadavg.pl \ + scripts/loadavg_multi.pl \ + scripts/ping.pl \ + scripts/query_unix_partitions.pl \ + scripts/unix_processes.pl \ + scripts/unix_tcp_connections.pl \ + scripts/unix_users.pl \ + scripts/weatherbug.pl \ + scripts/webhits.pl + +CACTIDIR= share/cacti +CACTIUSER= cacti +CACTIGROUP= cacti + +USERS= ${CACTIUSER} +GROUPS= ${CACTIGROUP} + +PLIST_SUB+= CACTIDIR=${CACTIDIR} CACTIUSER=${CACTIUSER} \ + CACTIGROUP=${CACTIGROUP} +SUB_LIST+= CACTIDIR=${CACTIDIR} CACTIUSER=${CACTIUSER} \ + CACTIGROUP=${CACTIGROUP} + +CONFLICTS_INSTALL= cacti + +PORTSCOUT= limit:^0.* + +post-patch: + @${FIND} ${WRKSRC} -name \*.orig -delete; \ + ${MV} ${WRKSRC}/include/config.php ${WRKSRC}/include/config.php.sample + ${RM} -r ${WRKSRC}/log ${WRKSRC}/rra + +do-install: + ${MKDIR} ${STAGEDIR}/${PREFIX}/${CACTIDIR} + ${MKDIR} ${STAGEDIR}/var/log/cacti + ${MKDIR} ${STAGEDIR}/var/db/cacti/rra + ${MKDIR} ${STAGEDIR}/var/db/cacti/scripts + ${CP} -R ${WRKSRC}/* ${STAGEDIR}/${PREFIX}/${CACTIDIR} + if [ -f ${PREFIX}/${CACTIDIR}/include/db-settings.php ]; then \ + ${ECHO_CMD} "======================================================================="; \ + ${ECHO_CMD} "WARNING! You have to move DB settings from"; \ + ${ECHO_CMD} "${PREFIX}/${CACTIDIR}/include/db-settings.php file to"; \ + ${ECHO_CMD} "${PREFIX}/${CACTIDIR}/include/config.php and remove db-settings.php"; \ + fi + +.include Index: head/net-mgmt/cacti88/distinfo =================================================================== --- head/net-mgmt/cacti88/distinfo +++ head/net-mgmt/cacti88/distinfo @@ -0,0 +1,2 @@ +SHA256 (cacti-0.8.8h.tar.gz) = 0673bd9513dad381c8bbb9133c721a32bc6422dc91c5a81de16e3cd32e4d0600 +SIZE (cacti-0.8.8h.tar.gz) = 2585226 Index: head/net-mgmt/cacti88/files/patch-include__global.php =================================================================== --- head/net-mgmt/cacti88/files/patch-include__global.php +++ head/net-mgmt/cacti88/files/patch-include__global.php @@ -0,0 +1,11 @@ +--- 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__); +-$config["rra_path"] = $config["base_path"] . '/rra'; ++$config["rra_path"] = '/var/db/cacti/rra'; + + /* colors */ + $colors["dark_outline"] = "454E53"; Index: head/net-mgmt/cacti88/files/patch-include__global_settings.php =================================================================== --- head/net-mgmt/cacti88/files/patch-include__global_settings.php +++ head/net-mgmt/cacti88/files/patch-include__global_settings.php @@ -0,0 +1,11 @@ +--- 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", +- "description" => "The path to your Cacti log file (if blank, defaults to /log/cacti.log)", ++ "description" => "The path to your Cacti log file (if blank, defaults to /var/log/cacti/log)", + "method" => "filepath", + "default" => $config["base_path"] . "/log/cacti.log", + "max_length" => "255" Index: head/net-mgmt/cacti88/files/patch-install__index.php =================================================================== --- head/net-mgmt/cacti88/files/patch-install__index.php +++ head/net-mgmt/cacti88/files/patch-install__index.php @@ -0,0 +1,20 @@ +--- 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() { +- $extensions = array("session", "sockets", "mysql", "xml"); ++ $extensions = array("session", "sockets", "mysqli", "xml"); + $ok = true; + $missing_extension = "

Error

+

The following PHP extensions are missing: