freebsd-ports/databases/zabbix34-libzbxpgsql/Makefile
Danilo G. Baio 5a9235f94e New port databases/zabbix34-libzbxpgsql: PostgreSQL monitoring module for zabbix34-agent
This project provides comprehensive monitoring of PostgreSQL servers using a
natively compiled Zabbix agent module, written in C.

The module enables discovery and monitoring of tablespaces, databases,
namespaces, tables, indexes, etc.

WWW: http://cavaliercoder.com/libzbxpgsql/

databases/zabbix32-libzbxpgsql -> databases/zabbix34-libzbxpgsql

PR:		222600
Submitted by:	pg@pakhom.spb.ru
Approved by:	Martin Waschbüsch <martin@waschbuesch.de> (maintainer)
2017-10-12 14:02:39 +00:00

44 lines
1.1 KiB
Makefile

# Created by: Martin Waschbuesch <martin@waschbuesch.de>
# $FreeBSD$
PORTNAME= libzbxpgsql
PORTVERSION= 1.1.0
DISTVERSIONPREFIX= v
CATEGORIES= databases
PKGNAMEPREFIX= zabbix34-
MAINTAINER= martin@waschbuesch.de
COMMENT= Zabbix agent module for comprehensive monitoring of PostgreSQL servers
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
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-24-9][0-13-9]-libzbxpgsql zabbix[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/${PKGNAMEPREFIX}agent && make -V WRKSRC
CONFIGURE_ARGS= --with-zabbix=$$(${GET_ZBX_WRKSRC})
USE_LDCONFIG= yes
OPTIONS_DEFINE= EXAMPLES
PORTSCOUT= skipv:latest,gh-pages
do-install:
${INSTALL_LIB} ${WRKSRC}/src/.libs/libzbxpgsql.so ${STAGEDIR}${PREFIX}/lib/libzbxpgsql.so
do-install-EXAMPLES-on:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/templates/*.xml ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>