aboutsummaryrefslogtreecommitdiffstats
path: root/databases/zabbix32-libzbxpgsql/Makefile
blob: 3e36971a116de3b90fe99d0e2cf05f959d03c68d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Created by: Martin Waschbuesch <martin@waschbuesch.de>
# $FreeBSD$

PORTNAME=   libzbxpgsql
PORTVERSION=    1.1.0
DISTVERSIONPREFIX=  v
CATEGORIES= databases
PKGNAMEPREFIX=  zabbix32-

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>