aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2013-12-16 06:02:22 +0000
committerXin LI <delphij@FreeBSD.org>2013-12-16 06:02:22 +0000
commitd643939751dd923d44af50c322900d30bc1f91f3 (patch)
treebd6ca2776c30303a7de7118345cd68682482c76d /net-mgmt
parentcca9ffb48d4ea70be4f0e4c349faf3069de68aaa (diff)
downloadports-d643939751dd923d44af50c322900d30bc1f91f3.tar.gz
ports-d643939751dd923d44af50c322900d30bc1f91f3.zip
Notes
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/zabbix2-frontend/Makefile9
-rw-r--r--net-mgmt/zabbix2-server/Makefile29
-rw-r--r--net-mgmt/zabbix2-server/distinfo4
-rw-r--r--net-mgmt/zabbix2-server/files/patch-src_shutdown.sh12
-rw-r--r--net-mgmt/zabbix2-server/files/patch-src_startup.sh32
-rw-r--r--net-mgmt/zabbix2-server/pkg-plist2
-rw-r--r--net-mgmt/zabbix2-server/pkg-plist.frontend4
7 files changed, 78 insertions, 14 deletions
diff --git a/net-mgmt/zabbix2-frontend/Makefile b/net-mgmt/zabbix2-frontend/Makefile
index 36a4961e8f1d..63dbe46facee 100644
--- a/net-mgmt/zabbix2-frontend/Makefile
+++ b/net-mgmt/zabbix2-frontend/Makefile
@@ -12,11 +12,11 @@ PATCHDIR=
PLIST= ${PKGDIR}/pkg-plist.frontend
USE_PHP= bcmath ctype gd pcre snmp sockets mbstring session dom xml \
- xmlreader xmlwriter simplexml gettext
+ xmlreader xmlwriter simplexml gettext ldap
WANT_PHP_WEB= yes
OPTIONSFILE= ${PORT_DBDIR}/${PORTNAME}${PKGNAMESUFFIX}/options
-OPTIONS_DEFINE= MYSQL MYSQLI PGSQL SQLITE
+OPTIONS_DEFINE= MYSQL MYSQLI PGSQL SQLITE ORACLE
OPTIONS_DEFAULT= MYSQL MYSQLI
MYSQLI_DESC= MySQLI backend
@@ -39,6 +39,11 @@ USE_PHP+= pgsql
USE_PHP+= sqlite3
.endif
+.if ${PORT_OPTIONS:MORACLE}
+ZABBIX_REQUIRE=
+CONFIGURE_ARGS+= --with-oracle
+.endif
+
do-install:
@${INSTALL} -d ${WWWDIR}
@cd ${WRKSRC}/frontends/php/ && ${COPYTREE_SHARE} . ${WWWDIR}
diff --git a/net-mgmt/zabbix2-server/Makefile b/net-mgmt/zabbix2-server/Makefile
index edec37d6398c..4b67948bf289 100644
--- a/net-mgmt/zabbix2-server/Makefile
+++ b/net-mgmt/zabbix2-server/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= zabbix2
-PORTVERSION= 2.0.8
+PORTVERSION= 2.0.10
PORTREVISION?= 0
CATEGORIES= net-mgmt
MASTER_SITES= SF/zabbix/ZABBIX%20Latest%20Stable/${PORTVERSION}
@@ -16,6 +16,8 @@ LICENSE= GPLv2
CONFLICTS= ${PKGBASE}-1.[0-8]*
+IGNORE_WITH_MYSQL= 41
+
.if ${PKGNAMESUFFIX} != "-agent"
CONFLICTS+= ${PORTNAME}-1.[0-8]*
.endif
@@ -68,8 +70,8 @@ CONFIGURE_ARGS+= --with-net-snmp
OPTIONSFILE= ${PORT_DBDIR}/${PORTNAME}${PKGNAMESUFFIX}/options
-OPTIONS_DEFINE= IPV6 FPING JABBER CURL LDAP IPMI SSH NMAP ODBC JAVAGW
-OPTIONS_DEFAULT= MYSQL IPV6 FPING JABBER CURL LDAP
+OPTIONS_DEFINE= IPV6 FPING JABBER CURL LDAP IPMI SSH NMAP ODBC JAVAGW MYSQL
+OPTIONS_DEFAULT= MYSQL IPV6 FPING JABBER CURL
CURL_DESC= Support for web monitoring
FPING_DESC= Build/install fping for ping checks
@@ -84,7 +86,7 @@ IODBC_DESC= Use iODBC for ODBC support
UNIXODBC_DESC= Use UnixODBC for ODBC support
OPTIONS_SINGLE= DB ODBC
-OPTIONS_SINGLE_DB= MYSQL PGSQL SQLITE
+OPTIONS_SINGLE_DB= MYSQL PGSQL SQLITE ORACLE
OPTIONS_SINGLE_ODBC= IODBC UNIXODBC
NO_STAGE= yes
@@ -103,11 +105,16 @@ CONFIGURE_ARGS+= --with-postgresql
.endif
.if ${PORT_OPTIONS:MSQLITE}
-ZABBIX_REQUIRE=
+ZABBIX_REQUIRE= " sqlite"
USE_SQLITE= 3
CONFIGURE_ARGS+= --with-sqlite3
.endif
+.if ${PORT_OPTIONS:MORACLE}
+ZABBIX_REQUIRE=
+CONFIGURE_ARGS+= --with-oracle
+.endif
+
.if ${PORT_OPTIONS:MCURL}
LIB_DEPENDS+= curl:${PORTSDIR}/ftp/curl
CONFIGURE_ARGS+= --with-libcurl
@@ -173,13 +180,12 @@ post-patch:
.if ${ZABBIX_BUILD} != "agent"
.if empty(PORT_OPTIONS:MFPING)
- @${ECHO} 'DisablePinger=yes' >> ${WRKSRC}/conf/zabbix_${ZABBIX_BUILD}.conf
.endif
.for d in mysql oracle postgresql sqlite3
@${REINPLACE_CMD} -e 's|/bin/ping|/sbin/ping|g; \
- s|/usr/bin/traceroute|/usr/sbin/traceroute|g; \
- s|sudo /usr/bin/nmap|sudo ${LOCALBASE}/bin/nmap|g;' \
- ${WRKSRC}/database/${d}/data.sql
+ s|/usr/bin/traceroute|/usr/sbin/traceroute|g; \
+ s|sudo /usr/bin/nmap|sudo ${LOCALBASE}/bin/nmap|g;' \
+ ${WRKSRC}/database/${d}/data.sql
.endfor
.endif
@${REINPLACE_CMD} -Ee 's|(@sysconfdir@/(\$$\([A-Z]*_CONFIG\)))" ([|][|] cp "../../conf/\$$\([A-Z]*_CONFIG\)" "\$$\(DESTDIR\)@sysconfdir@)"|\1.sample" \3/\2.sample"|;' \
@@ -187,6 +193,11 @@ post-patch:
@${FIND} ${WRKSRC} -type f \( -name '*.bak' -or -name '*.orig' \) -exec ${RM} -f {} +
post-install:
+
+.if defined(WITH_JAVAGW)
+ @${MV} ${PREFIX}/sbin/zabbix_java/settings.sh ${PREFIX}/sbin/zabbix_java/settings.sh.sample
+.endif
+
.if ${ZABBIX_BUILD} != "agent"
@${MKDIR} "${DATADIR}/${ZABBIX_BUILD}/database"
@cd ${WRKSRC}/upgrades/ && ${COPYTREE_SHARE} dbpatches ${DATADIR}/${ZABBIX_BUILD}/upgrades/
diff --git a/net-mgmt/zabbix2-server/distinfo b/net-mgmt/zabbix2-server/distinfo
index e2fbe0376dfa..d09223ff9f42 100644
--- a/net-mgmt/zabbix2-server/distinfo
+++ b/net-mgmt/zabbix2-server/distinfo
@@ -1,2 +1,2 @@
-SHA256 (zabbix-2.0.8.tar.gz) = c4b94960de0a1d0b20604a08503e9715c15845409368162c1e321040b8e4519a
-SIZE (zabbix-2.0.8.tar.gz) = 13457936
+SHA256 (zabbix-2.0.10.tar.gz) = 71415b5da223c6c0ba2f1c21c3c03cad9a5be0c8986791d7031c014986a9065d
+SIZE (zabbix-2.0.10.tar.gz) = 13671284
diff --git a/net-mgmt/zabbix2-server/files/patch-src_shutdown.sh b/net-mgmt/zabbix2-server/files/patch-src_shutdown.sh
new file mode 100644
index 000000000000..51d8a765194c
--- /dev/null
+++ b/net-mgmt/zabbix2-server/files/patch-src_shutdown.sh
@@ -0,0 +1,12 @@
+--- src/zabbix_java/shutdown.sh.orig 2013-11-12 10:07:23.000000000 +0400
++++ src/zabbix_java/shutdown.sh 2013-12-04 16:37:38.000000000 +0400
+@@ -1,7 +1,7 @@
+-#!/bin/bash
++#!/bin/sh
+
+ cd $(dirname $0)
+-source settings.sh
++. settings.sh
+
+ if [ -n "$PID_FILE" ]; then
+ if [ -e "$PID_FILE" ]; then
diff --git a/net-mgmt/zabbix2-server/files/patch-src_startup.sh b/net-mgmt/zabbix2-server/files/patch-src_startup.sh
new file mode 100644
index 000000000000..b1a5f7dbb024
--- /dev/null
+++ b/net-mgmt/zabbix2-server/files/patch-src_startup.sh
@@ -0,0 +1,32 @@
+--- src/zabbix_java/startup.sh.orig 2013-11-12 10:07:23.000000000 +0400
++++ src/zabbix_java/startup.sh 2013-12-04 16:37:05.000000000 +0400
+@@ -1,7 +1,7 @@
+-#!/bin/bash
++#!/bin/sh
+
+ cd $(dirname $0)
+-source settings.sh
++. settings.sh
+
+ if [ -n "$PID_FILE" -a -e "$PID_FILE" ]; then
+ echo "Zabbix Java Gateway is already running"
+@@ -16,8 +16,8 @@
+ fi
+
+ CLASSPATH="lib"
+-for jar in {lib,bin}/*.jar; do
+- if [[ $jar != *junit* ]]; then
++for jar in lib/*.jar bin/*.jar; do
++ if [ "$jar" != "*junit*" ]; then
+ CLASSPATH="$CLASSPATH:$jar"
+ fi
+ done
+@@ -39,7 +39,7 @@
+ COMMAND_LINE="$JAVA $JAVA_OPTIONS -classpath $CLASSPATH $ZABBIX_OPTIONS com.zabbix.gateway.JavaGateway"
+
+ if [ -n "$PID_FILE" ]; then
+- PID=$(/bin/bash -c "$COMMAND_LINE > /dev/null 2>&1 & echo \$!")
++ PID=$(/bin/sh -c "$COMMAND_LINE > /dev/null 2>&1 & echo \$!")
+ if ps -p $PID > /dev/null 2>&1; then
+ echo $PID > $PID_FILE
+ else
diff --git a/net-mgmt/zabbix2-server/pkg-plist b/net-mgmt/zabbix2-server/pkg-plist
index 7ca9a33fc70a..366e4d554569 100644
--- a/net-mgmt/zabbix2-server/pkg-plist
+++ b/net-mgmt/zabbix2-server/pkg-plist
@@ -38,7 +38,7 @@ sbin/zabbix_%%ZABBIX_BUILD%%
%%JAVAGW%%%%ZABBIX_JAVA%%/lib/logback-classic-0.9.27.jar
%%JAVAGW%%%%ZABBIX_JAVA%%/lib/logback.xml
%%JAVAGW%%%%ZABBIX_JAVA%%/lib/slf4j-api-1.6.1.jar
-%%JAVAGW%%%%ZABBIX_JAVA%%/settings.sh
+%%JAVAGW%%%%ZABBIX_JAVA%%/settings.sh.sample
%%JAVAGW%%%%ZABBIX_JAVA%%/startup.sh
%%JAVAGW%%%%ZABBIX_JAVA%%/bin/zabbix-java-gateway-%%PORTVERSION%%.jar
%%JAVAGW%%@dirrmtry %%ZABBIX_JAVA%%/lib
diff --git a/net-mgmt/zabbix2-server/pkg-plist.frontend b/net-mgmt/zabbix2-server/pkg-plist.frontend
index e203422f1132..b630a08ba17a 100644
--- a/net-mgmt/zabbix2-server/pkg-plist.frontend
+++ b/net-mgmt/zabbix2-server/pkg-plist.frontend
@@ -645,6 +645,8 @@
%%WWWDIR%%/locale/bg/LC_MESSAGES/frontend.mo
%%WWWDIR%%/locale/lt/LC_MESSAGES/frontend.po
%%WWWDIR%%/locale/lt/LC_MESSAGES/frontend.mo
+%%WWWDIR%%/locale/ro/LC_MESSAGES/frontend.po
+%%WWWDIR%%/locale/ro/LC_MESSAGES/frontend.mo
%%WWWDIR%%/locale/add_new_language.sh
%%WWWDIR%%/conf/zabbix.conf.php.example
%%WWWDIR%%/conf/maintenance.inc.php
@@ -858,6 +860,8 @@
@dirrm %%WWWDIR%%/locale/bg/
@dirrm %%WWWDIR%%/locale/lt/LC_MESSAGES/
@dirrm %%WWWDIR%%/locale/lt/
+@dirrm %%WWWDIR%%/locale/ro/LC_MESSAGES/
+@dirrm %%WWWDIR%%/locale/ro/
@dirrm %%WWWDIR%%/locale
@dirrm %%WWWDIR%%/conf
@dirrm %%WWWDIR%%/js/jquery