git: 97b6f142c429 - main - databases/qdrant: Install config sample

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sat, 27 May 2023 10:02:14 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=97b6f142c429d009706dc609fda21367789fec55

commit 97b6f142c429d009706dc609fda21367789fec55
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-05-27 09:37:25 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-05-27 10:02:09 +0000

    databases/qdrant: Install config sample
---
 databases/qdrant/Makefile  | 6 +++++-
 databases/qdrant/pkg-plist | 1 +
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/databases/qdrant/Makefile b/databases/qdrant/Makefile
index 710ee920d251..914b7e462215 100644
--- a/databases/qdrant/Makefile
+++ b/databases/qdrant/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	qdrant
 DISTVERSIONPREFIX=	v
 DISTVERSION=	1.1.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	databases
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -468,6 +468,10 @@ PLIST_FILES=	bin/${PORTNAME} \
 		bin/schema_generator
 
 post-install:
+	# install config sample
+	@${MKDIR} ${STAGEDIR}${ETCDIR}
+	@${INSTALL_DATA} ${WRKSRC}/config/config.yaml ${STAGEDIR}${ETCDIR}/config.yaml.sample
+	# strip binaries
 	@${STRIP_CMD} \
 		${STAGEDIR}${PREFIX}/bin/${PORTNAME}  \
 		${STAGEDIR}${PREFIX}/bin/schema_generator
diff --git a/databases/qdrant/pkg-plist b/databases/qdrant/pkg-plist
new file mode 100644
index 000000000000..fecd90b8a619
--- /dev/null
+++ b/databases/qdrant/pkg-plist
@@ -0,0 +1 @@
+@sample %%ETCDIR%%/config.yaml.sample