pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

zabbix50-frontend: Make package DB-type dependent



Module Name:	pkgsrc-wip
Committed By:	Juraj Lutter <otis%NetBSD.org@localhost>
Pushed By:	otis
Date:		Tue Nov 3 22:24:16 2020 +0000
Changeset:	c075539924b321326c7d4ac20b860aebdad9e9b7

Modified Files:
	zabbix50-frontend/Makefile
	zabbix50-frontend/PLIST

Log Message:
zabbix50-frontend: Make package DB-type dependent

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=c075539924b321326c7d4ac20b860aebdad9e9b7

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 zabbix50-frontend/Makefile | 7 ++++++-
 zabbix50-frontend/PLIST    | 4 ++--
 2 files changed, 8 insertions(+), 3 deletions(-)

diffs:
diff --git a/zabbix50-frontend/Makefile b/zabbix50-frontend/Makefile
index 32755c1c38..fbc94c70db 100644
--- a/zabbix50-frontend/Makefile
+++ b/zabbix50-frontend/Makefile
@@ -2,7 +2,7 @@
 
 .include "../../sysutils/zabbix50-server/Makefile.common"
 
-PKGNAME=	${DISTNAME:S/-/-frontend-/}
+PKGNAME=	${DISTNAME:S/-/-frontend-${ZABBIX_DB_TYPE}-/}
 COMMENT=	Zabbix PHP 7.2+ frontend
 
 CONFLICTS+=	zabbix-frontend-[0-9]*
@@ -16,6 +16,7 @@ NO_CONFIGURE=		yes
 REPLACE_SH+=	ui/locale/*.sh
 
 .include "../../mk/bsd.prefs.mk"
+.include "options.mk"
 
 BUILD_DEFS+=		APACHE_GROUP APACHE_USER
 PKG_GROUPS_VARS+=	${APACHE_GROUP}
@@ -27,8 +28,12 @@ DEPENDS+=	${PHP_PKG_PREFIX}-gettext>=7.2.0:../../devel/php-gettext
 DEPENDS+=	${PHP_PKG_PREFIX}-json>=7.2.0:../../textproc/php-json
 DEPENDS+=	${PHP_PKG_PREFIX}-ldap>=7.2.0:../../databases/php-ldap
 DEPENDS+=	${PHP_PKG_PREFIX}-mbstring>=7.2.0:../../converters/php-mbstring
+.if ${ZABBIX_DB_TYPE} == "mysql"
 DEPENDS+=	${PHP_PKG_PREFIX}-mysqli>=7.2.0:../../databases/php-mysqli
+.endif
+.if ${ZABBIX_DB_TYPE} == "pgsql"
 DEPENDS+=	${PHP_PKG_PREFIX}-pgsql>=7.2.0:../../databases/php-pgsql
+.endif
 DEPENDS+=	${PHP_PKG_PREFIX}-sockets>=7.2.0:../../net/php-sockets
 DEPENDS+=	${PHP_PKG_PREFIX}-sysvsem>=7.2.0:../../devel/php-sysvsem
 
diff --git a/zabbix50-frontend/PLIST b/zabbix50-frontend/PLIST
index 86411815a8..20b30695cb 100644
--- a/zabbix50-frontend/PLIST
+++ b/zabbix50-frontend/PLIST
@@ -1,6 +1,6 @@
 @comment $NetBSD$
-share/examples/zabbix-frontend/httpd-zabbix.conf
-share/examples/zabbix-frontend/php-fpm-zabbix.conf
+share/examples/${PKGBASE}/httpd-zabbix.conf
+share/examples/${PKGBASE}/php-fpm-zabbix.conf
 share/zabbix/actionconf.php
 share/zabbix/api_jsonrpc.php
 share/zabbix/app/.htaccess


Home | Main Index | Thread Index | Old Index