aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/zabbix2
diff options
context:
space:
mode:
authorsat <sat@FreeBSD.org>2007-08-28 02:35:50 +0800
committersat <sat@FreeBSD.org>2007-08-28 02:35:50 +0800
commitf147c2783fcd789ae9289a24049cb2477d7f48a4 (patch)
treeab7432eb6fd6bcc9cd94093ab41dd835c909c079 /net-mgmt/zabbix2
parent32aacd5138e6ad12dcc0d12dd92978aaa298599a (diff)
downloadfreebsd-ports-gnome-f147c2783fcd789ae9289a24049cb2477d7f48a4.tar.gz
freebsd-ports-gnome-f147c2783fcd789ae9289a24049cb2477d7f48a4.tar.zst
freebsd-ports-gnome-f147c2783fcd789ae9289a24049cb2477d7f48a4.zip
- Update to 1.4.2
- Always link server against pthread libs when sqlite3 is selected - Clean up a bit
Diffstat (limited to 'net-mgmt/zabbix2')
-rw-r--r--net-mgmt/zabbix2/Makefile24
-rw-r--r--net-mgmt/zabbix2/distinfo6
-rw-r--r--net-mgmt/zabbix2/files/zabbix_server.sh.in2
-rw-r--r--net-mgmt/zabbix2/pkg-plist6
4 files changed, 18 insertions, 20 deletions
diff --git a/net-mgmt/zabbix2/Makefile b/net-mgmt/zabbix2/Makefile
index 8345aca426fc..5608cc9142c4 100644
--- a/net-mgmt/zabbix2/Makefile
+++ b/net-mgmt/zabbix2/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= zabbix
-PORTVERSION= 1.4.1
-PORTREVISION= 2
+PORTVERSION= 1.4.2
PORTEPOCH= 1
CATEGORIES= net-mgmt
MASTER_SITES= SF
@@ -65,18 +64,14 @@ IGNORE= zabbix needs a database backend
post-patch:
@${FIND} ${WRKSRC}/src/ -type f|${XARGS} \
- ${REINPLACE_CMD} -Ee 's|(/etc/zabbix)|${PREFIX}\1|;s|/usr/sbin|${LOCALBASE}/sbin|'
- @${REINPLACE_CMD} -e '/test.*rf/s|-rf|-f|;/LDFLAGS/s|-static||' ${WRKSRC}/configure
- @${REINPLACE_CMD} -i '' -e '/^SDI.*pg_connection_string/d' ${WRKSRC}/frontends/php/include/db.inc.php
+ ${REINPLACE_CMD} -e 's|/etc/zabbix|${ETCDIR}|;s|/usr/sbin|${LOCALBASE}/sbin|'
+ @${REINPLACE_CMD} -e '/test.*rf/s|-rf|-f|;/LDFLAGS/s|-static||;\
+ /LIBS="-lnetsnmp/s|="|="-lcrypto |;s|-lsqlite3|-lsqlite3 ${PTHREAD_LIBS}|'\
+ ${WRKSRC}/configure
.ifdef WITHOUT_FPING
@${ECHO} 'DisablePinger=yes' >> ${WRKSRC}/misc/conf/zabbix_server.conf
.endif
-pre-configure:
- @if ldd ${LOCALBASE}/lib/libsqlite3.so 2>&- |${GREP} -q thr;then\
- ${REINPLACE_CMD} -e 's|-lsqlite3|-lsqlite3 ${PTHREAD_LIBS}|'\
- ${WRKSRC}/configure; fi
-
.if ${ARCH} == "amd64"
post-configure:
${ECHO_CMD} "#define HAVE_VA_COPY 1" >> ${WRKSRC}/include/config.h
@@ -84,11 +79,12 @@ post-configure:
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/src/zabbix_server/zabbix_server ${PREFIX}/bin/
- @${INSTALL} -d ${PREFIX}/etc/zabbix/ ${DATADIR}/create/
+ @${INSTALL} -d ${ETCDIR}/
@${INSTALL_DATA} ${WRKSRC}/misc/conf/zabbix_server.conf\
- ${PREFIX}/etc/zabbix/zabbix_server.conf.sample
- @${CP} -Rf ${WRKSRC}/frontends/ ${WRKSRC}/upgrades/dbpatches ${DATADIR}/
- @${CP} -Rf ${WRKSRC}/create/data ${WRKSRC}/create/schema ${DATADIR}/create/
+ ${ETCDIR}/zabbix_server.conf.sample
+ @cd ${WRKSRC}/frontends/&&${COPYTREE_SHARE} . ${DATADIR}/
+ @cd ${WRKSRC}/upgrades/&&${COPYTREE_SHARE} dbpatches ${DATADIR}/
+ @cd ${WRKSRC}/create/&&${COPYTREE_SHARE} "data schema" ${DATADIR}/create/
@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
@${CAT} ${PKGMESSAGE}
diff --git a/net-mgmt/zabbix2/distinfo b/net-mgmt/zabbix2/distinfo
index 712dce49566e..fc172025f3ac 100644
--- a/net-mgmt/zabbix2/distinfo
+++ b/net-mgmt/zabbix2/distinfo
@@ -1,3 +1,3 @@
-MD5 (zabbix-1.4.1.tar.gz) = c9e9a12eeb3ae784075cb7899f200889
-SHA256 (zabbix-1.4.1.tar.gz) = 631445f5a1a9b0852bb20644cfdf735d8e1ecdc04c4c0a9b394bfb3429a5a6dc
-SIZE (zabbix-1.4.1.tar.gz) = 3246817
+MD5 (zabbix-1.4.2.tar.gz) = 1a89f3b8b0925c6373379b4c5dd3138b
+SHA256 (zabbix-1.4.2.tar.gz) = 8dd0455e8a723cc9f31f0d41e7fbefa4d72088727c470c918e29de94c71c99bd
+SIZE (zabbix-1.4.2.tar.gz) = 3302530
diff --git a/net-mgmt/zabbix2/files/zabbix_server.sh.in b/net-mgmt/zabbix2/files/zabbix_server.sh.in
index cb269de48f62..4543669f7000 100644
--- a/net-mgmt/zabbix2/files/zabbix_server.sh.in
+++ b/net-mgmt/zabbix2/files/zabbix_server.sh.in
@@ -11,6 +11,6 @@ load_rc_config $name
eval : \${${rcvar}='NO'}
command="%%PREFIX%%/bin/${name}"
-required_files="%%PREFIX%%/etc/zabbix/${name}.conf"
+required_files="%%ETCDIR%%/${name}.conf"
run_rc_command "$1"
diff --git a/net-mgmt/zabbix2/pkg-plist b/net-mgmt/zabbix2/pkg-plist
index 08224a370ca7..181d3b44ae2c 100644
--- a/net-mgmt/zabbix2/pkg-plist
+++ b/net-mgmt/zabbix2/pkg-plist
@@ -1,5 +1,5 @@
bin/zabbix_server
-etc/zabbix/zabbix_server.conf.sample
+%%ETCDIR%%/zabbix_server.conf.sample
%%DATADIR%%/create/data/data.sql
%%DATADIR%%/create/data/images_mysql.sql
%%DATADIR%%/create/data/images_oracle.sql
@@ -154,6 +154,7 @@ etc/zabbix/zabbix_server.conf.sample
%%DATADIR%%/php/include/images.inc.php
%%DATADIR%%/php/include/import.inc.php
%%DATADIR%%/php/include/items.inc.php
+%%DATADIR%%/php/include/js.inc.php
%%DATADIR%%/php/include/locales/cn_zh.inc.php
%%DATADIR%%/php/include/locales/de_de.inc.php
%%DATADIR%%/php/include/locales/en_gb.inc.php
@@ -186,6 +187,7 @@ etc/zabbix/zabbix_server.conf.sample
%%DATADIR%%/php/js/cookies.js
%%DATADIR%%/php/js/menu.js
%%DATADIR%%/php/js/services.js
+%%DATADIR%%/php/js/showhint.js
%%DATADIR%%/php/js/tree.js
%%DATADIR%%/php/latest.php
%%DATADIR%%/php/map.php
@@ -244,7 +246,7 @@ etc/zabbix/zabbix_server.conf.sample
@dirrm %%DATADIR%%/php/include/locales
@dirrm %%DATADIR%%/php/include
@dirrm %%DATADIR%%/php/js
+@dirrmtry %%ETCDIR%%
@dirrmtry %%DATADIR%%/php/conf
@dirrmtry %%DATADIR%%/php
@dirrmtry %%DATADIR%%
-@dirrmtry etc/zabbix