From a737bdca73256d3b82247b2c771953efc3f82a6f Mon Sep 17 00:00:00 2001 From: zux Date: Mon, 1 Oct 2018 22:51:42 +0100 Subject: network/zabbix_proxy: Updated for version 3.4.14 + new maintainer. Signed-off-by: David Spencer --- network/zabbix_proxy/README.SLACKWARE | 33 +++++++++++++++------------- network/zabbix_proxy/zabbix_proxy.SlackBuild | 9 ++++---- network/zabbix_proxy/zabbix_proxy.info | 12 +++++----- 3 files changed, 28 insertions(+), 26 deletions(-) (limited to 'network') diff --git a/network/zabbix_proxy/README.SLACKWARE b/network/zabbix_proxy/README.SLACKWARE index 7257f04e44ae..2c4104ecaefb 100644 --- a/network/zabbix_proxy/README.SLACKWARE +++ b/network/zabbix_proxy/README.SLACKWARE @@ -4,9 +4,9 @@ README.Slackware This file contains some specific instructions to complete the installation of zabbix_proxy on Slackware. -You will need to have a working installation of MySQL (*) for zabbix_proxy +You will need to have a working installation of MySQL (*) for zabbix_proxy to run. MySQL server does not have to be on the same box as your -zabbix_proxy, but they need to be able to communicate and you will need at +zabbix_proxy, but they need to be able to communicate and you will need at least the MySQL client on the box that will run zabbix_proxy. (*) zabbix can work with MySQL, Oracle, PostgreSQL and SQLite databases, @@ -33,29 +33,31 @@ running: 1.1) Create initial database +Never use the same DB, as the zabbix server uses. That will defenetly break it. + On your MySQL server, connect with full privileges: # mysql -u -p Create the zabbix database & user: - mysql> create database zabbix character set utf8; + mysql> create database zabbix_proxy character set utf8; mysql> use mysql; - mysql> grant all on zabbix.* to zabbix@ identified by ''; + mysql> grant all on zabbix_proxy.* to zabbix_proxy@ identified by ''; mysql> flush privileges; mysql> quit -(note: if your MySQL server and zabbix server are the same, use "localhost" +(note: if your MySQL server and zabbix proxy are the same, use "localhost" for ) -On your zabbix server, connect to the new database: +On your zabbix proxy, connect to the new database: - # cd /usr/share/zabbix_proxy/create - # mysql -h -u zabbix -p zabbix + # cd /usr/share/zabbix_proxy/database/mysql + # mysql -h -u zabbix_proxy -p zabbix_proxy In MySQL, create the schema & add initial data: - mysql> source schema/mysql.sql; + mysql> source schema.sql; mysql> quit 1.2) zabbix_proxy configuration file @@ -67,11 +69,12 @@ You will need to change at least the following lines: Server= Hostname= - DBHost= (Change if MySQL is not on localhost) - DBUser=zabbix ("root" doesn't sound like a good idea) - DBPassword= (Change as defined above) + DBHost= (Change if MySQL is not on localhost) + DBName=zabbix_proxy + DBUser=zabbix_proxy ("root" doesn't sound like a good idea) + DBPassword= (Change as defined above) -2) Start & Stop scripts for zabbix server +2) Start & Stop scripts for zabbix proxy ----------------------------------------- 2.1) Automatic startup and shutdown @@ -85,7 +88,7 @@ your /etc/rc.d/rc.local: /etc/rc.d/rc.zabbix_proxy start fi -To guarantee a clean shutdown of zabbix_proxy, include this in +To guarantee a clean shutdown of zabbix_proxy, include this in /etc/rc.d/rc.local_shutdown: # Stop zabbix_proxy @@ -96,7 +99,7 @@ To guarantee a clean shutdown of zabbix_proxy, include this in 2.2) Make /etc/rc.d/rc.zabbix_proxy executable -Additionally, you'll have to set the rc script to be executable just like +Additionally, you'll have to set the rc script to be executable just like any other Slackware rc script: # chmod +x /etc/rc.d/rc.zabbix_proxy diff --git a/network/zabbix_proxy/zabbix_proxy.SlackBuild b/network/zabbix_proxy/zabbix_proxy.SlackBuild index c780d28d7ee0..c03f1218ff01 100644 --- a/network/zabbix_proxy/zabbix_proxy.SlackBuild +++ b/network/zabbix_proxy/zabbix_proxy.SlackBuild @@ -23,13 +23,13 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=zabbix_proxy -VERSION=${VERSION:-2.4.3} +VERSION=${VERSION:-3.4.14} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -59,8 +59,8 @@ if [ "$(grep ^$ZABBIXUSER: /etc/passwd)" = "" -o "$(grep ^$ZABBIXGROUP: /etc/gro exit 1 fi -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -98,7 +98,6 @@ CXXFLAGS="$SLKCFLAGS" \ --docdir=/usr/doc/$PRGNAM-$VERSION \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --enable-proxy \ - --enable-java \ --with-mysql \ --with-jabber \ --with-libcurl \ diff --git a/network/zabbix_proxy/zabbix_proxy.info b/network/zabbix_proxy/zabbix_proxy.info index d5b173f259d3..28596da5c6d7 100644 --- a/network/zabbix_proxy/zabbix_proxy.info +++ b/network/zabbix_proxy/zabbix_proxy.info @@ -1,10 +1,10 @@ PRGNAM="zabbix_proxy" -VERSION="2.4.3" +VERSION="3.4.14" HOMEPAGE="https://www.zabbix.com" -DOWNLOAD="https://downloads.sourceforge.net/zabbix/zabbix-2.4.3.tar.gz" -MD5SUM="e8a0699c4e49999a15c63650a2280600" +DOWNLOAD="https://downloads.sourceforge.net/zabbix/zabbix-3.4.14.tar.gz" +MD5SUM="16cdacf7198538c0456523d75bb149c7" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="iksemel jdk" -MAINTAINER="Michal Bialozor" -EMAIL="bialyy@o2.pl" +REQUIRES="iksemel" +MAINTAINER="zux" +EMAIL="zux@pie-dabas.net" -- cgit v1.2.3