21a283f3be
UNIQUENAME was never unique, it was only used by USE_LDCONFIG and now, we won't have conflicts there. Use PKGBASE instead of LATEST_LINK in PKGLATESTFILE, the *only* consumer is pkg-devel, and it works just fine without LATEST_LINK as pkg-devel has the correct PKGNAME anyway. Now that UNIQUENAME is gone, OPTIONSFILE is too. (it's been called OPTIONS_FILE now.) Reviewed by: antoine, bapt Exp-run by: antoine Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D3336
49 lines
957 B
Makefile
49 lines
957 B
Makefile
# Created by: Jim Riggs <ports@christianserving.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= zabbix2
|
|
PKGNAMESUFFIX= -frontend
|
|
CATEGORIES= net-mgmt
|
|
|
|
MASTERDIR= ${.CURDIR}/../zabbix2-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
|
|
|
|
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:
|
|
@${INSTALL} -d ${STAGEDIR}${WWWDIR}
|
|
@cd ${WRKSRC}/frontends/php/ && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
|
|
|
|
.include "${MASTERDIR}/Makefile"
|