svn commit: r442731 - in head/net-mgmt: . cacti cacti88 cacti88/files
Danilo G. Baio
dbaio at FreeBSD.org
Tue Jun 6 00:47:27 UTC 2017
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 <egypcio at googlemail.com>
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 at dan.me.uk
+MAINTAINER= egypcio at 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 = " <p style='font-family: Verdana, Arial; font-size: 16px; font-weight: bold; color: red;'>Error</p>
<p style='font-family: Verdana, Arial; font-size: 12px;'>The following PHP extensions are missing:</p><ul>";
-@@ -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 (<PROCESS>) {
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
- at group wheel
- at owner root
+ at group
+ at owner
More information about the svn-ports-all
mailing list