From owner-svn-ports-all@freebsd.org Tue Jun 6 00:47:27 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0C699B7DD4F; Tue, 6 Jun 2017 00:47:27 +0000 (UTC) (envelope-from dbaio@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D0BC274D9F; Tue, 6 Jun 2017 00:47:26 +0000 (UTC) (envelope-from dbaio@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v560lQ6i098522; Tue, 6 Jun 2017 00:47:26 GMT (envelope-from dbaio@FreeBSD.org) Received: (from dbaio@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v560lPHX098512; Tue, 6 Jun 2017 00:47:25 GMT (envelope-from dbaio@FreeBSD.org) Message-Id: <201706060047.v560lPHX098512@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dbaio set sender to dbaio@FreeBSD.org using -f From: "Danilo G. Baio" Date: Tue, 6 Jun 2017 00:47:25 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r442731 - in head/net-mgmt: . cacti cacti88 cacti88/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jun 2017 00:47:27 -0000 Author: dbaio Date: Tue Jun 6 00:47:24 2017 New Revision: 442731 URL: https://svnweb.freebsd.org/changeset/ports/442731 Log: Repocopy from net-mgmt/cacti (r416066) -> net-mgmt/cacti88 Web-driven graphing interface for RRDTool (Old version of net-mgmt/cacti) New releases of Cacti are still unable to work with useful plugins like "GPS Map" and "Network Weathermap". While here, minor fixes and get improvements from the current port. PR: 219685 Submitted by: Vinicius Zavam Approved by: garga (mentor) Differential Revision: https://reviews.freebsd.org/D11023 Added: head/net-mgmt/cacti88/ - copied from r416066, head/net-mgmt/cacti/ Modified: head/net-mgmt/Makefile head/net-mgmt/cacti/Makefile head/net-mgmt/cacti88/Makefile head/net-mgmt/cacti88/files/patch-include__global.php head/net-mgmt/cacti88/files/patch-include__global_settings.php head/net-mgmt/cacti88/files/patch-install__index.php head/net-mgmt/cacti88/files/patch-lib__functions.php head/net-mgmt/cacti88/files/patch-scripts__diskfree.pl head/net-mgmt/cacti88/files/patch-scripts__ping.pl head/net-mgmt/cacti88/pkg-plist Modified: head/net-mgmt/Makefile ============================================================================== --- head/net-mgmt/Makefile Tue Jun 6 00:28:56 2017 (r442730) +++ head/net-mgmt/Makefile Tue Jun 6 00:47:24 2017 (r442731) @@ -27,6 +27,7 @@ SUBDIR += bwm-ng SUBDIR += cacti SUBDIR += cacti-spine + SUBDIR += cacti88 SUBDIR += ccnet-client SUBDIR += ccnet-server SUBDIR += cdpd Modified: head/net-mgmt/cacti/Makefile ============================================================================== --- head/net-mgmt/cacti/Makefile Tue Jun 6 00:28:56 2017 (r442730) +++ head/net-mgmt/cacti/Makefile Tue Jun 6 00:47:24 2017 (r442731) @@ -44,6 +44,8 @@ PLIST_SUB+= CACTIDIR=${CACTIDIR} CACTIUSER=${CACTIUSE 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 Modified: head/net-mgmt/cacti88/Makefile ============================================================================== --- head/net-mgmt/cacti/Makefile Sat May 28 20:09:26 2016 (r416066) +++ head/net-mgmt/cacti88/Makefile Tue Jun 6 00:47:24 2017 (r442731) @@ -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 +MAINTAINER= egypcio@googlemail.com COMMENT= Web-driven graphing interface for RRDTool -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,21 @@ SHEBANG_FILES= scripts/3com_cable_modem.pl \ scripts/weatherbug.pl \ scripts/webhits.pl -CACTIDIR?= share/cacti -CACTIUSER?= cacti -CACTIGROUP?= cacti +CACTIDIR= share/cacti +CACTIUSER= cacti +CACTIGROUP= cacti -USERS?= ${CACTIUSER} -GROUPS?= ${CACTIGROUP} +USERS= ${CACTIUSER} +GROUPS= ${CACTIGROUP} -WRKSRC= ${WRKDIR}/${PORTNAME}-${SITEDISTVERSION} - -SITEDISTVERSION= ${PORTVERSION:S/${PATCHLEVEL}$//} - 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; \ Modified: head/net-mgmt/cacti88/files/patch-include__global.php ============================================================================== --- head/net-mgmt/cacti/files/patch-include__global.php Sat May 28 20:09:26 2016 (r416066) +++ head/net-mgmt/cacti88/files/patch-include__global.php Tue Jun 6 00:47:24 2017 (r442731) @@ -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__); Modified: head/net-mgmt/cacti88/files/patch-include__global_settings.php ============================================================================== --- head/net-mgmt/cacti/files/patch-include__global_settings.php Sat May 28 20:09:26 2016 (r416066) +++ head/net-mgmt/cacti88/files/patch-include__global_settings.php Tue Jun 6 00:47:24 2017 (r442731) @@ -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", Modified: head/net-mgmt/cacti88/files/patch-install__index.php ============================================================================== --- head/net-mgmt/cacti/files/patch-install__index.php Sat May 28 20:09:26 2016 (r416066) +++ head/net-mgmt/cacti88/files/patch-install__index.php Tue Jun 6 00:47:24 2017 (r442731) @@ -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:

    "; -@@ -267,7 +267,7 @@ +@@ -267,7 +267,7 @@ $input["path_cactilog"]["description"] = if (config_value_exists("path_cactilog")) { $input["path_cactilog"]["default"] = read_config_option("path_cactilog"); } else { Modified: head/net-mgmt/cacti88/files/patch-lib__functions.php ============================================================================== --- head/net-mgmt/cacti/files/patch-lib__functions.php Sat May 28 20:09:26 2016 (r416066) +++ head/net-mgmt/cacti88/files/patch-lib__functions.php Tue Jun 6 00:47:24 2017 (r442731) @@ -1,6 +1,6 @@ ---- lib/functions.php.orig 2016-05-28 10:58:17.522042409 +0100 -+++ lib/functions.php 2016-05-28 11:00:31.399032747 +0100 -@@ -670,8 +670,10 @@ +--- lib/functions.php.orig 2016-05-08 14:46:52 UTC ++++ lib/functions.php +@@ -670,8 +670,10 @@ function update_host_status($status, $ho $issue_log_message = false; $ping_failure_count = read_config_option("ping_failure_count"); $ping_recovery_count = read_config_option("ping_recovery_count"); Modified: head/net-mgmt/cacti88/files/patch-scripts__diskfree.pl ============================================================================== --- head/net-mgmt/cacti/files/patch-scripts__diskfree.pl Sat May 28 20:09:26 2016 (r416066) +++ head/net-mgmt/cacti88/files/patch-scripts__diskfree.pl Tue Jun 6 00:47:24 2017 (r442731) @@ -1,7 +1,7 @@ ---- ./scripts/diskfree.pl.orig 2014-08-15 15:39:51.000000000 +0200 -+++ ./scripts/diskfree.pl 2014-08-15 15:40:16.000000000 +0200 +--- scripts/diskfree.pl.orig 2017-06-01 00:09:48 UTC ++++ scripts/diskfree.pl @@ -1,5 +1,5 @@ - #!/usr/bin/perl + #!/usr/local/bin/perl -open(PROCESS,"df --block-size=1024 -P $ARGV[0] | grep -v Filesystem |"); +open(PROCESS,"df -k $ARGV[0] | grep -v Filesystem |"); foreach () { Modified: head/net-mgmt/cacti88/files/patch-scripts__ping.pl ============================================================================== --- head/net-mgmt/cacti/files/patch-scripts__ping.pl Sat May 28 20:09:26 2016 (r416066) +++ head/net-mgmt/cacti88/files/patch-scripts__ping.pl Tue Jun 6 00:47:24 2017 (r442731) @@ -1,6 +1,6 @@ ---- ./scripts/ping.pl.orig 2014-08-15 15:39:56.000000000 +0200 -+++ ./scripts/ping.pl 2014-08-15 15:40:35.000000000 +0200 -@@ -6,7 +6,7 @@ +--- scripts/ping.pl.orig 2017-06-01 00:09:48 UTC ++++ scripts/ping.pl +@@ -7,7 +7,7 @@ $host =~ s/:[0-9]{1,5}/$1/gis; # old linux version use "icmp_seq" # newer use "icmp_req" instead Modified: head/net-mgmt/cacti88/pkg-plist ============================================================================== --- head/net-mgmt/cacti/pkg-plist Sat May 28 20:09:26 2016 (r416066) +++ head/net-mgmt/cacti88/pkg-plist Tue Jun 6 00:47:24 2017 (r442731) @@ -3,7 +3,7 @@ %%CACTIDIR%%/about.php %%CACTIDIR%%/auth_changepassword.php %%CACTIDIR%%/auth_login.php -%%CACTIDIR%%/%%CACTIUSER%%.sql +%%CACTIDIR%%/cacti.sql %%CACTIDIR%%/cdef.php %%CACTIDIR%%/cli/.htaccess %%CACTIDIR%%/cli/index.php @@ -43,9 +43,9 @@ %%CACTIDIR%%/docs/html/basics.html %%CACTIDIR%%/docs/html/batch_copy_users.html %%CACTIDIR%%/docs/html/bsd_ports.html -%%CACTIDIR%%/docs/html/%%CACTIUSER%%_help.html +%%CACTIDIR%%/docs/html/cacti_help.html %%CACTIDIR%%/docs/html/cdefs.html -%%CACTIDIR%%/docs/html/check_%%CACTIUSER%%_poller.html +%%CACTIDIR%%/docs/html/check_cacti_poller.html %%CACTIDIR%%/docs/html/check_data_gathering.html %%CACTIDIR%%/docs/html/check_mysql_updating.html %%CACTIDIR%%/docs/html/check_rrd_graph.html @@ -111,7 +111,7 @@ %%CACTIDIR%%/docs/html/install_unix.html %%CACTIDIR%%/docs/html/install_windows.html %%CACTIDIR%%/docs/html/installation.html -%%CACTIDIR%%/docs/html/making_scripts_work_with_%%CACTIUSER%%.html +%%CACTIDIR%%/docs/html/making_scripts_work_with_cacti.html %%CACTIDIR%%/docs/html/migration_php_scripts_to_script_server.html %%CACTIDIR%%/docs/html/new_graphs.html %%CACTIDIR%%/docs/html/operating_principles.html @@ -127,7 +127,7 @@ %%CACTIDIR%%/docs/html/templates.html %%CACTIDIR%%/docs/html/testing_script_in_script_server.html %%CACTIDIR%%/docs/html/unix_apply_patches.html -%%CACTIDIR%%/docs/html/unix_configure_%%CACTIUSER%%.html +%%CACTIDIR%%/docs/html/unix_configure_cacti.html %%CACTIDIR%%/docs/html/unix_configure_httpd.html %%CACTIDIR%%/docs/html/unix_configure_mysql.html %%CACTIDIR%%/docs/html/unix_configure_php.html @@ -175,10 +175,10 @@ %%CACTIDIR%%/images/button_save.gif %%CACTIDIR%%/images/button_view.gif %%CACTIDIR%%/images/button_yes.gif -%%CACTIDIR%%/images/%%CACTIUSER%%_about_logo.gif -%%CACTIDIR%%/images/%%CACTIUSER%%_backdrop.gif -%%CACTIDIR%%/images/%%CACTIUSER%%_backdrop2.gif -%%CACTIDIR%%/images/%%CACTIUSER%%_logo.gif +%%CACTIDIR%%/images/cacti_about_logo.gif +%%CACTIDIR%%/images/cacti_backdrop.gif +%%CACTIDIR%%/images/cacti_backdrop2.gif +%%CACTIDIR%%/images/cacti_logo.gif %%CACTIDIR%%/images/calendar.gif %%CACTIDIR%%/images/delete_icon.gif %%CACTIDIR%%/images/delete_icon_large.gif @@ -208,7 +208,7 @@ %%CACTIDIR%%/images/shadow.gif %%CACTIDIR%%/images/shadow_gray.gif %%CACTIDIR%%/images/show.gif -%%CACTIDIR%%/images/tab_%%CACTIUSER%%.gif +%%CACTIDIR%%/images/tab_cacti.gif %%CACTIDIR%%/images/tab_console.gif %%CACTIDIR%%/images/tab_console_down.gif %%CACTIDIR%%/images/tab_graphs.gif @@ -530,5 +530,5 @@ @dir /var/db/cacti/rra @dir /var/db/cacti/scripts @dir /var/db/cacti -@group wheel -@owner root +@group +@owner