pkgsrc-WIP-changes archive

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

zabbix50-proxy: Install pgsql-specific files only when pgsql is selected.



Module Name:	pkgsrc-wip
Committed By:	Juraj Lutter <otis%NetBSD.org@localhost>
Pushed By:	otis
Date:		Tue Sep 22 11:16:41 2020 +0000
Changeset:	822bc9a6d1bab08f50624824a60c20a81b369b8c

Modified Files:
	zabbix50-proxy/PLIST
	zabbix50-proxy/options.mk

Log Message:
zabbix50-proxy: Install pgsql-specific files only when pgsql is selected.

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

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

diffstat:
 zabbix50-proxy/PLIST      | 4 ++--
 zabbix50-proxy/options.mk | 3 +++
 2 files changed, 5 insertions(+), 2 deletions(-)

diffs:
diff --git a/zabbix50-proxy/PLIST b/zabbix50-proxy/PLIST
index f52b171d50..595287ed8c 100644
--- a/zabbix50-proxy/PLIST
+++ b/zabbix50-proxy/PLIST
@@ -3,9 +3,9 @@ bin/zabbix_proxy_js
 man/man8/zabbix_proxy.8
 sbin/zabbix_proxy
 share/examples/${PKGBASE}/zabbix_proxy.conf
-share/${PKGBASE}/double.sql
+${PLIST.pgsql}share/${PKGBASE}/double.sql
 share/${PKGBASE}/schema.sql
-share/${PKGBASE}/timescaledb.sql
+${PLIST.pgsql}share/${PKGBASE}/timescaledb.sql
 @pkgdir share/${PKGBASE}/externalscripts
 @pkgdir lib/modules
 @pkgdir etc/zabbix_proxy.conf.d
diff --git a/zabbix50-proxy/options.mk b/zabbix50-proxy/options.mk
index dac394f711..8272f77edb 100644
--- a/zabbix50-proxy/options.mk
+++ b/zabbix50-proxy/options.mk
@@ -12,6 +12,8 @@ PKG_SUGGESTED_OPTIONS+=		inet6
 
 .include "../../mk/bsd.options.mk"
 
+PLIST_VARS+=            pgsql
+
 .if !empty(PKG_OPTIONS:Minet6)
 CONFIGURE_ARGS+=	--enable-ipv6
 .endif
@@ -41,6 +43,7 @@ CONFIGURE_ARGS+=	--with-net-snmp
 CONFIGURE_ARGS+=	--with-postgresql
 .include "../../mk/pgsql.buildlink3.mk"
 ZABBIX_DB_TYPE=		postgresql
+PLIST.pgsql=		yes
 .endif
 
 .if !empty(PKG_OPTIONS:Msqlite3)


Home | Main Index | Thread Index | Old Index