diff options
author | dbaio <dbaio@FreeBSD.org> | 2017-08-27 02:14:55 +0800 |
---|---|---|
committer | Koop Mast <kwm@rainbow-runner.nl> | 2018-02-04 05:26:02 +0800 |
commit | 0e58a2bbcebd089b5eec32ba3d415694ebc0b93d (patch) | |
tree | c994485cce4cd269181c95401ab472285e1315b0 /databases | |
parent | d4ab781d5b8639e471398ea75abeffacd674939e (diff) | |
download | freebsd-ports-gnome-0e58a2bbcebd089b5eec32ba3d415694ebc0b93d.tar.gz freebsd-ports-gnome-0e58a2bbcebd089b5eec32ba3d415694ebc0b93d.tar.zst freebsd-ports-gnome-0e58a2bbcebd089b5eec32ba3d415694ebc0b93d.zip |
databases/libzbxpgsql: Update to 1.1.0, Rename to databases/zabbix3-libzbxpgsql
Rename to allow multiple version of libzbxpgsql to coexist, each one
uses a different zabbix-agent version.
Add CONFLICTS in preparation for multiple versions as well.
PR: 221798
Submitted by: Martin Waschbüsch <martin@waschbuesch.de> (maintainer)
Diffstat (limited to 'databases')
-rw-r--r-- | databases/Makefile | 2 | ||||
-rw-r--r-- | databases/libzbxpgsql/distinfo | 3 | ||||
-rw-r--r-- | databases/libzbxpgsql/pkg-plist | 2 | ||||
-rw-r--r-- | databases/zabbix3-libzbxpgsql/Makefile (renamed from databases/libzbxpgsql/Makefile) | 26 | ||||
-rw-r--r-- | databases/zabbix3-libzbxpgsql/distinfo | 3 | ||||
-rw-r--r-- | databases/zabbix3-libzbxpgsql/files/patch-src_libzbxpgsql.c (renamed from databases/libzbxpgsql/files/patch-src_libzbxpgsql.c) | 0 | ||||
-rw-r--r-- | databases/zabbix3-libzbxpgsql/pkg-descr (renamed from databases/libzbxpgsql/pkg-descr) | 2 | ||||
-rw-r--r-- | databases/zabbix3-libzbxpgsql/pkg-message (renamed from databases/libzbxpgsql/pkg-message) | 2 | ||||
-rw-r--r-- | databases/zabbix3-libzbxpgsql/pkg-plist | 4 |
9 files changed, 27 insertions, 17 deletions
diff --git a/databases/Makefile b/databases/Makefile index 28a31db57445..6ec65af144be 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -159,7 +159,6 @@ SUBDIR += libpbl SUBDIR += libpqtypes SUBDIR += libsdb - SUBDIR += libzbxpgsql SUBDIR += libzdb SUBDIR += linux-c6-sqlite3 SUBDIR += linux-c7-sqlite3 @@ -1043,6 +1042,7 @@ SUBDIR += xapian-core10 SUBDIR += xapian-core12 SUBDIR += xtrabackup + SUBDIR += zabbix3-libzbxpgsql SUBDIR += zodb3 .include <bsd.port.subdir.mk> diff --git a/databases/libzbxpgsql/distinfo b/databases/libzbxpgsql/distinfo deleted file mode 100644 index c2aedf235b2f..000000000000 --- a/databases/libzbxpgsql/distinfo +++ /dev/null @@ -1,3 +0,0 @@ -TIMESTAMP = 1471426354 -SHA256 (libzbxpgsql-1.0.0.tar.gz) = fd934f24ccfc5e9f4542860700b817477c9b45c85783b50a8e33ec4f8d01b68e -SIZE (libzbxpgsql-1.0.0.tar.gz) = 346344 diff --git a/databases/libzbxpgsql/pkg-plist b/databases/libzbxpgsql/pkg-plist deleted file mode 100644 index 05b5204cca2f..000000000000 --- a/databases/libzbxpgsql/pkg-plist +++ /dev/null @@ -1,2 +0,0 @@ -lib/libzbxpgsql.so -@sample share/examples/libzbxpgsql/template_postgresql_server.xml.sample diff --git a/databases/libzbxpgsql/Makefile b/databases/zabbix3-libzbxpgsql/Makefile index e2efe1759c21..62d1eaeca0b9 100644 --- a/databases/libzbxpgsql/Makefile +++ b/databases/zabbix3-libzbxpgsql/Makefile @@ -2,29 +2,41 @@ # $FreeBSD$ PORTNAME= libzbxpgsql -PORTVERSION= 1.0.0 -PORTREVISION= 1 +PORTVERSION= 1.1.0 +DISTVERSIONPREFIX= v CATEGORIES= databases -MASTER_SITES= http://s3.cavaliercoder.com/libzbxpgsql/ +PKGNAMEPREFIX= zabbix3- MAINTAINER= martin@waschbuesch.de COMMENT= Zabbix agent module for comprehensive monitoring of PostgreSQL servers -LICENSE= GPLv2 +LICENSE= GPLv2+ +LICENSE_FILE= ${WRKSRC}/COPYING -BUILD_DEPENDS= ${NONEXISTENT}:net-mgmt/zabbix3-agent:patch -RUN_DEPENDS= ${LOCALBASE}/sbin/zabbix_agentd:net-mgmt/zabbix3-agent +BUILD_DEPENDS= ${NONEXISTENT}:net-mgmt/${PKGNAMEPREFIX}agent:patch +RUN_DEPENDS= zabbix_agentd:net-mgmt/${PKGNAMEPREFIX}agent +LIB_DEPENDS= libconfig.so:devel/libconfig + +CONFLICTS= zabbix[0-9][0-9]-libzbxpgsql USES= autoreconf gmake libtool pgsql + +USE_GITHUB= yes +GH_ACCOUNT= cavaliercoder + GNU_CONFIGURE= yes GET_ZBX_WRKSRC= cd ${.CURDIR:H:H}/net-mgmt/zabbix3-agent && make -V WRKSRC CONFIGURE_ARGS= --with-zabbix=$$(${GET_ZBX_WRKSRC}) USE_LDCONFIG= yes +OPTIONS_DEFINE= EXAMPLES + do-install: ${INSTALL_LIB} ${WRKSRC}/src/.libs/libzbxpgsql.so ${STAGEDIR}${PREFIX}/lib/libzbxpgsql.so + +do-install-EXAMPLES-on: ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} - ${INSTALL_MAN} ${WRKSRC}/template_postgresql_server.xml ${STAGEDIR}${EXAMPLESDIR}/template_postgresql_server.xml.sample + ${INSTALL_DATA} ${WRKSRC}/templates/*.xml ${STAGEDIR}${EXAMPLESDIR} .include <bsd.port.mk> diff --git a/databases/zabbix3-libzbxpgsql/distinfo b/databases/zabbix3-libzbxpgsql/distinfo new file mode 100644 index 000000000000..269563ce15d3 --- /dev/null +++ b/databases/zabbix3-libzbxpgsql/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1503755196 +SHA256 (cavaliercoder-libzbxpgsql-v1.1.0_GH0.tar.gz) = 50acc4364241253a013058daf76c4184cc522104f78005d3c4d5e7e09d77571a +SIZE (cavaliercoder-libzbxpgsql-v1.1.0_GH0.tar.gz) = 61106 diff --git a/databases/libzbxpgsql/files/patch-src_libzbxpgsql.c b/databases/zabbix3-libzbxpgsql/files/patch-src_libzbxpgsql.c index e1ae90077e39..e1ae90077e39 100644 --- a/databases/libzbxpgsql/files/patch-src_libzbxpgsql.c +++ b/databases/zabbix3-libzbxpgsql/files/patch-src_libzbxpgsql.c diff --git a/databases/libzbxpgsql/pkg-descr b/databases/zabbix3-libzbxpgsql/pkg-descr index 9df2997c40c5..0b6a261aae10 100644 --- a/databases/libzbxpgsql/pkg-descr +++ b/databases/zabbix3-libzbxpgsql/pkg-descr @@ -4,6 +4,4 @@ natively compiled Zabbix agent module, written in C. The module enables discovery and monitoring of tablespaces, databases, namespaces, tables, indexes, etc. -A preconfigured Zabbix Template is also included for your convenience. - WWW: http://cavaliercoder.com/libzbxpgsql/ diff --git a/databases/libzbxpgsql/pkg-message b/databases/zabbix3-libzbxpgsql/pkg-message index d906dcaf5853..23d85feb7007 100644 --- a/databases/libzbxpgsql/pkg-message +++ b/databases/zabbix3-libzbxpgsql/pkg-message @@ -1,5 +1,3 @@ In order to enable the module, add libzbxpgsql.so to the LoadModule= line in zabbix_agentd.conf and restart the agent with service zabbix_agentd restart -A sample template has been placed in %%EXAMPLESDIR%% -It can be imported into zabbix and assigned to a host. diff --git a/databases/zabbix3-libzbxpgsql/pkg-plist b/databases/zabbix3-libzbxpgsql/pkg-plist new file mode 100644 index 000000000000..765ec35e2459 --- /dev/null +++ b/databases/zabbix3-libzbxpgsql/pkg-plist @@ -0,0 +1,4 @@ +lib/libzbxpgsql.so +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Template_PostgreSQL_Server_2.0.xml +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Template_PostgreSQL_Server_2.4.xml +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Template_PostgreSQL_Server_3.0.xml |