freebsd-ports/net-mgmt/zabbix24-frontend/Makefile
John Marino f9c6c53e66 Add four zabbix24 ports to net-mgmt (similar to zabbix22* ports)
This add Zabbix 2.4.1 server, agent, frontend, and proxy

PR:		194104
Submitted by:	pakhom706 (gmail)
2014-11-09 11:06:52 +00:00

52 lines
1.0 KiB
Makefile

# Created by: Pakhom Golynga <pakhom706@gmail.com>
# $FreeBSD$
PORTNAME= zabbix24
CATEGORIES= net-mgmt
PKGNAMESUFFIX= -frontend
MASTERDIR= ${.CURDIR}/../zabbix24-server
NO_BUILD= yes
PATCHDIR=
PLIST= ${PKGDIR}/pkg-plist.frontend
USE_PHP= bcmath ctype gd pcre snmp sockets mbstring session dom xml \
xmlreader xmlwriter simplexml gettext ldap
WANT_PHP_WEB= yes
OPTIONSFILE= ${PORT_DBDIR}/${PORTNAME}${PKGNAMESUFFIX}/options
OPTIONS_DEFINE= MYSQL MYSQLI PGSQL SQLITE ORACLE
OPTIONS_DEFAULT= MYSQL MYSQLI
MYSQLI_DESC= MySQLI backend
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MMYSQL}
USE_PHP+= mysql
.endif
.if ${PORT_OPTIONS:MMYSQLI}
USE_PHP+= mysqli
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PHP+= pgsql
.endif
.if ${PORT_OPTIONS:MSQLITE}
USE_PHP+= sqlite3
.endif
.if ${PORT_OPTIONS:MORACLE}
ZABBIX_REQUIRE=
CONFIGURE_ARGS+= --with-oracle
.endif
do-install:
@${MKDIR} ${STAGEDIR}${WWWDIR}
(cd ${WRKSRC}/frontends/php && \
${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR})
.include "${MASTERDIR}/Makefile"