summaryrefslogtreecommitdiff
path: root/net-mgmt/icingaweb2
diff options
context:
space:
mode:
authorLars Engels <lme@FreeBSD.org>2019-12-17 13:43:14 +0000
committerLars Engels <lme@FreeBSD.org>2019-12-17 13:43:14 +0000
commit7fee23336210ffecf432776972fa264636b0243d (patch)
tree6833d4dc2dfac86479479e25d6d6c99ce74ad483 /net-mgmt/icingaweb2
parentcb1bf26737603c2011565c6f6d42cb0c8e4e95b5 (diff)
downloadfreebsd-ports-7fee23336210ffecf432776972fa264636b0243d.zip
net-mgmt/icingaweb2 and modules:
- Drop stale dependency on www/zendframework1 - FLAVORize for all php releases - Improve OPTIONS for supported databases PR: 242664 Submitted by: fluffy@
Diffstat (limited to 'net-mgmt/icingaweb2')
-rw-r--r--net-mgmt/icingaweb2/Makefile24
1 files changed, 14 insertions, 10 deletions
diff --git a/net-mgmt/icingaweb2/Makefile b/net-mgmt/icingaweb2/Makefile
index b9452796c110..ce6969199293 100644
--- a/net-mgmt/icingaweb2/Makefile
+++ b/net-mgmt/icingaweb2/Makefile
@@ -3,7 +3,9 @@
PORTNAME= icingaweb2
DISTVERSIONPREFIX= v
DISTVERSION= 2.7.3
+PORTREVISION= 1
CATEGORIES= net-mgmt www
+PKGNAMESUFFIX= ${PHP_PKGNAMESUFFIX}
MAINTAINER= lme@FreeBSD.org
COMMENT= Next generation web interface for Icinga 1 and 2
@@ -11,7 +13,11 @@ COMMENT= Next generation web interface for Icinga 1 and 2
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
-RUN_DEPENDS= zf:www/zend-framework1
+USES= php:build,web,flavors
+USE_PHP= bcmath bitset ctype curl dom gd gettext hash iconv \
+ json ldap mbstring mcrypt memcache memcached \
+ opcache openssl pcre pdo pdo_sqlite posix \
+ session simplexml soap sockets sqlite3 xml zlib
USE_GITHUB= yes
GH_ACCOUNT= icinga
@@ -19,9 +25,6 @@ GH_ACCOUNT= icinga
NO_BUILD= yes
NO_ARCH= yes
-USES= php:build
-USE_PHP= ctype dom gd gettext hash json openssl session sockets
-
SUB_FILES= pkg-message
SUB_LIST= WWWDIR=${WWWDIR} \
ETCDIR=${ETCDIR} \
@@ -30,17 +33,18 @@ SUB_LIST= WWWDIR=${WWWDIR} \
PLIST_SUB= WWWOWN=${WWWOWN} \
WWWGRP=${WWWGRP}
-OPTIONS_DEFINE= NLS LDAP MYSQL PGSQL PDF EXAMPLES
-OPTIONS_DEFAULT= LDAP MYSQL PGSQL
+OPTIONS_DEFINE= NLS LDAP MYSQL PGSQL PDF SQLITE EXAMPLES
+OPTIONS_DEFAULT= LDAP MYSQL PGSQL SQLITE
PDF_DESC= Export graphs as PDF
+PDF_RUN_DEPENDS= ${PHPBASE}/lib/php/${PHP_EXT_DIR}/imagick.so:graphics/pecl-imagick@${PHP_FLAVOR}
NLS_USES= gettext
NLS_USE= php=intl
-PGSQL_USE= PHP=pdo_pgsql,pgsql
-MYSQL_USE= PHP=pdo_mysql
-LDAP_USE= PHP=ldap
-PDF_RUN_DEPENDS= ${PHPBASE}/lib/php/${PHP_EXT_DIR}/imagick.so:graphics/pecl-imagick@${PHP_FLAVOR}
+PGSQL_USE= php=pdo_pgsql,pgsql
+MYSQL_USE= php=pdo_mysql,mysqli
+SQLITE_USE= php=pdo_sqlite,sqlite3
+LDAP_USE= php=ldap
post-patch:
${REINPLACE_CMD} 's%\(/etc/icingaweb2\)%${PREFIX}\1%g' \