[71305] trunk/dports/net/zabbix

markd at macports.org markd at macports.org
Tue Sep 7 18:38:12 PDT 2010


Revision: 71305
          http://trac.macports.org/changeset/71305
Author:   markd at macports.org
Date:     2010-09-07 18:38:10 -0700 (Tue, 07 Sep 2010)
Log Message:
-----------
Ticket #26131.  Update to 1.8.2 and change ui_msg to notes.

Modified Paths:
--------------
    trunk/dports/net/zabbix/Portfile

Added Paths:
-----------
    trunk/dports/net/zabbix/files/patch-src-zabbix_server-poller-checks_snmp.c.diff

Removed Paths:
-------------
    trunk/dports/net/zabbix/files/patch-include-common.h

Modified: trunk/dports/net/zabbix/Portfile
===================================================================
--- trunk/dports/net/zabbix/Portfile	2010-09-08 01:19:10 UTC (rev 71304)
+++ trunk/dports/net/zabbix/Portfile	2010-09-08 01:38:10 UTC (rev 71305)
@@ -3,8 +3,7 @@
 PortSystem	1.0
 
 name			zabbix
-version			1.6.8
-revision		4
+version			1.8.2
 categories		net
 maintainers		markd openmaintainer
 platforms		darwin
@@ -13,10 +12,10 @@
 
 long_description	${description}
 
-homepage		http://www.zabbix.com
+homepage		http://www.zabbix.com/
 master_sites		sourceforge
-checksums		md5 3255afd2d44454bae3ec5158920a824f
-patchfiles		patch-include-common.h
+checksums		md5 fa4be4fa7ac20a33cc0aa5c27b827746
+patchfiles	patch-src-zabbix_server-poller-checks_snmp.c.diff
 depends_lib		port:fping \
 			port:curl \
 			port:openssl
@@ -176,13 +175,10 @@
 			${destroot}${prefix}/share/zabbix/zabbix_agent_win32
 }
 
-post-activate {
 
-if { [variant_isset agent_only] } {
+notes \
+"#### ZABBIX agent installation section (steps 1 - 3 only) ####
 
-ui_msg "\n#### To complete the ZABBIX agent installation ####
-
-
 1) Edit the sample .conf file ${prefix}/etc/zabbix/zabbix_agentd.conf (rename & omit .sample)
 
    Set the following variable to the ip address of your ZABBIX server to
@@ -202,31 +198,25 @@
    installation on Windows NT 4.0, Windows 2000, and Windows XP.
 
 
-\n"
+#### End ZABBIX agent installation section ####
+####                                       ####
 
-} else {
 
-ui_msg "\n#### To complete the ZABBIX installation ####
+####                                          ####
+#### Begin ZABBIX server installation section ####
 
 
-1) Setup MySQL (for new MySQL installs)
+1) Setup MySQL, i.e. via MacPorts:
 
--Configure MySQL:
-        sudo -u mysql ${prefix}/lib/mysql5/bin/mysql_install_db
+	sudo port install mysql5-server
 
--Start MySQL and set it to run at system boot:
-        sudo launchctl load -w /Library/LaunchDaemons/org.macports.mysql5.plist
 
--Set a root MySQL password
-   Follow the instructions that were given after you executed 'mysql_install_db' above
-
-
 2) Setup the ZABBIX MySQL database
 
 -Create the ZABBIX database
 	mysql5 -u root -p (enter password at prompt)
-	mysql> create database zabbix;
-	mysql> exit;
+	mysql> create database zabbix character set utf8;
+	mysql> quit;
 
 -Import the ZABBIX Schema
 	cd ${prefix}/share/zabbix/schema
@@ -237,11 +227,10 @@
 
 -Create a MySQL 'zabbix' user and password
 	mysql5 -u root -p
-	mysql> grant SELECT, INSERT, UPDATE, DELETE, CREATE on zabbix.* to zabbix at localhost;
-	mysql> grant SELECT, INSERT, UPDATE, DELETE, CREATE on zabbix.* to zabbix;
-	mysql> set PASSWORD FOR zabbix at localhost = OLD_PASSWORD('zabbix-db-password');
+	mysql> grant all privileges on zabbix.* to zabbix at localhost identified by '<zabbix-mysql-password>';
+	mysql> grant all privileges on zabbix.* to zabbix identified by '<zabbix-mysql-password>';
+	mysql> quit;
 
-NOTE: ZABBIX uses MySQL old-style password hashes so the OLD_PASSWORD keyword is necessary
 
 3) Edit the sample .conf file ${prefix}/etc/zabbix/zabbix_server.conf (rename & omit .sample)
 
@@ -252,19 +241,11 @@
 	DBPassword=<zabbix-mysql-password>
 
 
-4) Install PHP 4 or 5 (not covered)
+4) Install PHP 5, i.e. via MacPorts:
 
-   Set mysql.default_socket path to ${prefix}/var/run/mysql5/mysqld.sock in this PHP file:
+	sudo port install php5 php5-gd php5-mbstring php5-mysql php5-sockets
 
-	./phpx/lib/php.ini (in /usr/local, ${prefix}, or /Library depending on PHP package)
 
-   Modify the variables below in this Zabbix file:
-	${prefix}/share/zabbix/frontends/php/include/db.inc.php
-
-	\$DB_USER        =\"zabbix\";
-	\$DB_PASSWORD    =\"mysql-zabbix-password\";
-
-
 5) Set a symbolic link in your Apache document root pointing to the PHP frontend files
 
 	sudo ln -s ${prefix}/share/zabbix/frontends/php <Apache-docroot>/zabbix
@@ -276,18 +257,15 @@
 
    To start Zabbix manually, use: ${prefix}/share/zabbix/zabbix_server.init start (stop|status)
 
+	Note: Eventually your shared memory has to be increased (see http://www.zabbix.org/forum/showthread.php?p=64232)!
 
+
 7) A Win32 agent is in ${prefix}/share/zabbix/zabbix_agent_win32 for
    installation on Windows NT 4.0, Windows 2000, and Windows XP.  See
    the ReadMe.txt for instructions.
 
 
-8) Login at http://localhost/zabbix with default user 'admin' with no password, then
-   be sure to read the manual: http://www.zabbix.com/manual/v1.1/index.php
+8) Open http://localhost/zabbix/ in your browser and walk through the setup, then login with default user 'Admin' and password 'zabbix'.
 
-\n"
-# End else clause
 
-}
-}
-
+9) Read the fine manual at http://www.zabbix.com/documentation/"

Deleted: trunk/dports/net/zabbix/files/patch-include-common.h
===================================================================
--- trunk/dports/net/zabbix/files/patch-include-common.h	2010-09-08 01:19:10 UTC (rev 71304)
+++ trunk/dports/net/zabbix/files/patch-include-common.h	2010-09-08 01:38:10 UTC (rev 71305)
@@ -1,10 +0,0 @@
---- include/common.h.orig	2008-11-04 13:44:59.000000000 -0800
-+++ include/common.h	2008-11-11 16:25:09.000000000 -0800
-@@ -21,6 +21,7 @@
- #define ZABBIX_COMMON_H
- 
- #include "sysinc.h"
-+#undef HAVE_FUNCTION_SYSCTLBYNAME
- 
- #include "zbxtypes.h"
- 

Added: trunk/dports/net/zabbix/files/patch-src-zabbix_server-poller-checks_snmp.c.diff
===================================================================
--- trunk/dports/net/zabbix/files/patch-src-zabbix_server-poller-checks_snmp.c.diff	                        (rev 0)
+++ trunk/dports/net/zabbix/files/patch-src-zabbix_server-poller-checks_snmp.c.diff	2010-09-08 01:38:10 UTC (rev 71305)
@@ -0,0 +1,14 @@
+--- src/zabbix_server/poller/checks_snmp.c.orig	2010-08-17 17:51:56.000000000 +0200
++++ src/zabbix_server/poller/checks_snmp.c	2010-08-17 17:52:51.000000000 +0200
+@@ -595,9 +595,9 @@
+ 				SET_UI64_RESULT(value, (((zbx_uint64_t)vars->val.counter64->high) << 32) +
+ 						(zbx_uint64_t)vars->val.counter64->low);
+ 			}
+-			else if (vars->type == ASN_INTEGER ||
++			else if (vars->type == ASN_INTEGER
+ #ifdef OPAQUE_SPECIAL_TYPES
+-					vars->type == ASN_INTEGER64
++					|| vars->type == ASN_INTEGER64
+ #endif
+ 					)
+ 			{
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100907/f75eeb11/attachment.html>


More information about the macports-changes mailing list