aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/zabbix-frontend/Makefile
blob: a57bfff739e20176987fbd9c155f037c050ff280 (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
45
46
47
48
# New ports collection makefile for:	zabbix-frontend
# Date created:		2009-12-09
# Whom:			Jim Riggs <ports@christianserving.org>
#
# $FreeBSD$
#

PORTNAME=	zabbix
PKGNAMESUFFIX=	-frontend

MASTERDIR=	${.CURDIR}/../zabbix-server

NO_BUILD=	yes
PATCHDIR=
PLIST=		${PKGDIR}/pkg-plist.frontend

USE_PHP=	bcmath gd pcre snmp sockets
IGNORE_WITH_PHP=	4
WANT_PHP_WEB=	yes

OPTIONSFILE=	${PORT_DBDIR}/${PORTNAME}${PKGNAMESUFFIX}/options
OPTIONS=	MYSQL "Use MySQL backend" on \
		PGSQL "Use PostgreSQL backend" off \
		SQLITE "Use SQLite backend" off

.include <bsd.port.options.mk>

.ifndef WITHOUT_MYSQL
USE_PHP+=	mysql
.endif

.ifdef WITH_MYSQLI
USE_PHP+=	mysqli
.endif

.ifdef WITH_PGSQL
USE_PHP+=	pgsql
.endif

.ifdef WITH_SQLITE
USE_PHP+=	sqlite
.endif

do-install:
	@${INSTALL} -d ${WWWDIR}
	@cd ${WRKSRC}/frontends/php/ && ${COPYTREE_SHARE} . ${WWWDIR}

.include "${MASTERDIR}/Makefile"