3d67141a02
- Add php-json to USE_PHP in -frontend while here - Sort USE_PHP list PR: 215319 Submitted by: pg@pakhom.spb.ru
57 lines
1.1 KiB
Makefile
57 lines
1.1 KiB
Makefile
# Created by: Pakhom Golynga <pg@pakhom.spb.ru>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= zabbix3
|
|
CATEGORIES= net-mgmt
|
|
PKGNAMESUFFIX= -frontend
|
|
|
|
MAINTAINER= pg@pakhom.spb.ru
|
|
COMMENT= Enterprise-class open source distributed monitoring (${PKGNAMESUFFIX:S/^-//}) LTS
|
|
|
|
LICENSE= GPLv2
|
|
|
|
MASTERDIR= ${.CURDIR}/../zabbix3-server
|
|
|
|
NO_BUILD= yes
|
|
NO_ARCH= yes
|
|
PATCHDIR=
|
|
PLIST= ${PKGDIR}/pkg-plist.frontend
|
|
|
|
USE_PHP= bcmath ctype dom gd gettext json ldap mbstring pcre \
|
|
session simplexml snmp sockets xml xmlreader xmlwriter
|
|
|
|
USES= php:web gettext
|
|
|
|
OPTIONS_DEFINE= MYSQL MYSQLI PGSQL SQLITE ORACLE
|
|
OPTIONS_DEFAULT= 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"
|