Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Aug 2024 14:56:01 GMT
From:      Dan Langille <dvl@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 703ed6015360 - main - net-mgmt/icingadb: include sql files needed for upgrade
Message-ID:  <202408041456.474Eu1k4009245@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by dvl:

URL: https://cgit.FreeBSD.org/ports/commit/?id=703ed60153609912b2dd311d0f50370e6c953346

commit 703ed60153609912b2dd311d0f50370e6c953346
Author:     Dan Langille <dvl@FreeBSD.org>
AuthorDate: 2024-08-04 14:55:03 +0000
Commit:     Dan Langille <dvl@FreeBSD.org>
CommitDate: 2024-08-04 14:55:03 +0000

    net-mgmt/icingadb: include sql files needed for upgrade
    
    Not sure how this worked without this change.
    
    PR:             280595
---
 net-mgmt/icingadb/Makefile  | 3 ++-
 net-mgmt/icingadb/pkg-plist | 4 ++++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/net-mgmt/icingadb/Makefile b/net-mgmt/icingadb/Makefile
index b1ad81f33784..fa83e0fdbc78 100644
--- a/net-mgmt/icingadb/Makefile
+++ b/net-mgmt/icingadb/Makefile
@@ -1,4 +1,5 @@
 PORTNAME=	icingadb
+PORTREVISION=	1
 DISTVERSIONPREFIX=	v
 DISTVERSION=	1.2.0
 CATEGORIES=	net-mgmt
@@ -43,7 +44,7 @@ post-patch:
 post-install:
 	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
 	${MKDIR} ${STAGEDIR}${ETCDIR}
-	(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
+	(cd ${WRKSRC} && ${COPYTREE_SHARE} "schema" ${STAGEDIR}${EXAMPLESDIR})
 	${INSTALL_DATA} ${WRKSRC}/config.example.yml ${STAGEDIR}${ETCDIR}/config.yml.sample
 
 .include <bsd.port.mk>
diff --git a/net-mgmt/icingadb/pkg-plist b/net-mgmt/icingadb/pkg-plist
index dd7f07a70e47..2f3a3e154b7c 100644
--- a/net-mgmt/icingadb/pkg-plist
+++ b/net-mgmt/icingadb/pkg-plist
@@ -1,8 +1,12 @@
 bin/%%PORTNAME%%
 @sample(root,wheel,0640) etc/%%PORTNAME%%/config.yml.sample
+%%EXAMPLESDIR%%/schema/pgsql/upgrades/optional/1.2-0-history.sql
 %%EXAMPLESDIR%%/schema/pgsql/upgrades/1.1.1.sql
+%%EXAMPLESDIR%%/schema/pgsql/upgrades/1.2.0.sql
 %%EXAMPLESDIR%%/schema/pgsql/schema.sql
 %%EXAMPLESDIR%%/schema/mysql/schema.sql
+%%EXAMPLESDIR%%/schema/mysql/upgrades/optional/1.2.0-history.sql
 %%EXAMPLESDIR%%/schema/mysql/upgrades/1.1.1.sql
 %%EXAMPLESDIR%%/schema/mysql/upgrades/1.0.0.sql
 %%EXAMPLESDIR%%/schema/mysql/upgrades/1.0.0-rc2.sql
+%%EXAMPLESDIR%%/schema/mysql/upgrades/1.2.0.sql



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202408041456.474Eu1k4009245>